Skip to content

Commit

Permalink
v4.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
agordn52 committed Nov 27, 2024
1 parent 8265cba commit 70481d8
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 14 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [4.0.5] - 2024-11-27

* Fix `wpAuth` method

## [4.0.4] - 2024-11-27

* Fix auth issue
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ In your flutter project add the dependency:
``` dart
dependencies:
...
wp_json_api: ^4.0.4
wp_json_api: ^4.0.5
```

### Usage example #
Expand Down
11 changes: 6 additions & 5 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -400,10 +400,11 @@ packages:
nylo_support:
dependency: transitive
description:
path: "/Users/anthony/StudioProjects/support"
relative: false
source: path
version: "6.6.0"
name: nylo_support
sha256: "00ccf5ed65db90e6260626baf32803e4d8f5ff536e455fa1402e34448d1ded45"
url: "https://pub.dev"
source: hosted
version: "6.7.0"
path:
dependency: transitive
description:
Expand Down Expand Up @@ -783,7 +784,7 @@ packages:
path: ".."
relative: true
source: path
version: "4.0.4"
version: "4.0.5"
xdg_directories:
dependency: transitive
description:
Expand Down
6 changes: 3 additions & 3 deletions lib/wp_json_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import '/models/wp_user.dart';
import '/networking/network_manager.dart';

/// The version of the wp_json_api
String _wpJsonAPIVersion = "4.0.4";
String _wpJsonAPIVersion = "4.0.5";

/// The base class to initialize and use WPJsonAPI
class WPJsonAPI {
Expand Down Expand Up @@ -76,9 +76,9 @@ class WPJsonAPI {
}

/// Authenticate a user if they are logged in
static wpAuth() async {
static Future<WpUser?> wpAuth() async {
final data = await storageRead(WPJsonAPI.storageKey());
if (data != null) return null;
if (data == null) return null;
return WpUser.fromJson(data);
}

Expand Down
9 changes: 5 additions & 4 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -400,10 +400,11 @@ packages:
nylo_support:
dependency: "direct main"
description:
path: "/Users/anthony/StudioProjects/support"
relative: false
source: path
version: "6.6.0"
name: nylo_support
sha256: "00ccf5ed65db90e6260626baf32803e4d8f5ff536e455fa1402e34448d1ded45"
url: "https://pub.dev"
source: hosted
version: "6.7.0"
path:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: wp_json_api
description: WordPress and WooCommerce JSON API for Flutter Mobile. API allows you to login, register new users, get users info and more.
version: 4.0.4
version: 4.0.5
homepage: https://woosignal.com
repository: https://github.com/woosignal/wp-json-api-flutter
issue_tracker: https://github.com/woosignal/wp-json-api-flutter/issues
Expand Down

0 comments on commit 70481d8

Please sign in to comment.