Skip to content

Commit

Permalink
v4.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
agordn52 committed Dec 31, 2024
1 parent 9e68ab1 commit ca06a34
Show file tree
Hide file tree
Showing 41 changed files with 54 additions and 49 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## [4.2.0] - 2024-12-31

* Update copyright year
* Dependency updates

## [4.1.0] - 2024-12-16

* Update `init` for package
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BSD 2-Clause License

Copyright (c) 2024, WooSignal Ltd
Copyright (c) 2025, WooSignal Ltd
All rights reserved.

Redistribution and use in source and binary forms, with or without
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.1.0
wp_json_api: ^4.2.0
```

### Usage example #
Expand Down
10 changes: 5 additions & 5 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ packages:
dependency: transitive
description:
name: date_field
sha256: "57c0bc3818f5c66d796ccbd9eaa786ba6e915222859f0ff26d4a1d5ae4806b8e"
sha256: "921246e5e8fb8e22c82e234de48dde27f9c739071a38dac666258909fd2f7b14"
url: "https://pub.dev"
source: hosted
version: "5.3.0"
version: "6.0.0"
dbus:
dependency: transitive
description:
Expand Down Expand Up @@ -409,10 +409,10 @@ packages:
dependency: transitive
description:
name: nylo_support
sha256: "143122780f5bdc769b71a6a26e615644a5635f96df5ad053545404f6e589199a"
sha256: "5ea5c95264e09e321fb31a362cd5b240d1083a178e3558a19f0fd1bc67af29c9"
url: "https://pub.dev"
source: hosted
version: "6.9.1"
version: "6.14.0"
path:
dependency: transitive
description:
Expand Down Expand Up @@ -792,7 +792,7 @@ packages:
path: ".."
relative: true
source: path
version: "4.0.5"
version: "4.2.0"
xdg_directories:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion lib/enums/wp_auth_type.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024, WooSignal Ltd.
// Copyright (c) 2025, WooSignal Ltd.
// All rights reserved.
//
// Redistribution and use in source and binary forms are permitted
Expand Down
2 changes: 1 addition & 1 deletion lib/enums/wp_meta_data_action_type.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024, WooSignal Ltd.
// Copyright (c) 2025, WooSignal Ltd.
// All rights reserved.
//
// Redistribution and use in source and binary forms are permitted
Expand Down
2 changes: 1 addition & 1 deletion lib/enums/wp_route_type.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024, WooSignal Ltd.
// Copyright (c) 2025, WooSignal Ltd.
// All rights reserved.
//
// Redistribution and use in source and binary forms are permitted
Expand Down
2 changes: 1 addition & 1 deletion lib/exceptions/empty_username_exception.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024, WooSignal Ltd.
// Copyright (c) 2025, WooSignal Ltd.
// All rights reserved.
//
// Redistribution and use in source and binary forms are permitted
Expand Down
2 changes: 1 addition & 1 deletion lib/exceptions/existing_user_email_exception.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024, WooSignal Ltd.
// Copyright (c) 2025, WooSignal Ltd.
// All rights reserved.
//
// Redistribution and use in source and binary forms are permitted
Expand Down
2 changes: 1 addition & 1 deletion lib/exceptions/existing_user_login_exception.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024, WooSignal Ltd.
// Copyright (c) 2025, WooSignal Ltd.
// All rights reserved.
//
// Redistribution and use in source and binary forms are permitted
Expand Down
2 changes: 1 addition & 1 deletion lib/exceptions/incorrect_password_exception.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024, WooSignal Ltd.
// Copyright (c) 2025, WooSignal Ltd.
// All rights reserved.
//
// Redistribution and use in source and binary forms are permitted
Expand Down
2 changes: 1 addition & 1 deletion lib/exceptions/invalid_email_exception.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024, WooSignal Ltd.
// Copyright (c) 2025, WooSignal Ltd.
// All rights reserved.
//
// Redistribution and use in source and binary forms are permitted
Expand Down
2 changes: 1 addition & 1 deletion lib/exceptions/invalid_nonce_exception.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024, WooSignal Ltd.
// Copyright (c) 2025, WooSignal Ltd.
// All rights reserved.
//
// Redistribution and use in source and binary forms are permitted
Expand Down
2 changes: 1 addition & 1 deletion lib/exceptions/invalid_params_exception.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024, WooSignal Ltd.
// Copyright (c) 2025, WooSignal Ltd.
// All rights reserved.
//
// Redistribution and use in source and binary forms are permitted
Expand Down
2 changes: 1 addition & 1 deletion lib/exceptions/invalid_user_token_exception.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024, WooSignal Ltd.
// Copyright (c) 2025, WooSignal Ltd.
// All rights reserved.
//
// Redistribution and use in source and binary forms are permitted
Expand Down
2 changes: 1 addition & 1 deletion lib/exceptions/invalid_username_exception.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024, WooSignal Ltd.
// Copyright (c) 2025, WooSignal Ltd.
// All rights reserved.
//
// Redistribution and use in source and binary forms are permitted
Expand Down
2 changes: 1 addition & 1 deletion lib/exceptions/user_already_exist_exception.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024, WooSignal Ltd.
// Copyright (c) 2025, WooSignal Ltd.
// All rights reserved.
//
// Redistribution and use in source and binary forms are permitted
Expand Down
2 changes: 1 addition & 1 deletion lib/exceptions/user_exists_exception.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024, WooSignal Ltd.
// Copyright (c) 2025, WooSignal Ltd.
// All rights reserved.
//
// Redistribution and use in source and binary forms are permitted
Expand Down
2 changes: 1 addition & 1 deletion lib/exceptions/username_taken_exception.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024, WooSignal Ltd.
// Copyright (c) 2025, WooSignal Ltd.
// All rights reserved.
//
// Redistribution and use in source and binary forms are permitted
Expand Down
2 changes: 1 addition & 1 deletion lib/exceptions/woocommerce_not_found_exception.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024, WooSignal Ltd.
// Copyright (c) 2025, WooSignal Ltd.
// All rights reserved.
//
// Redistribution and use in source and binary forms are permitted
Expand Down
2 changes: 1 addition & 1 deletion lib/helpers/typedefs.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024, WooSignal Ltd.
// Copyright (c) 2025, WooSignal Ltd.
// All rights reserved.
//
// Redistribution and use in source and binary forms are permitted
Expand Down
2 changes: 1 addition & 1 deletion lib/models/responses/wc_customer_info_response.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024, WooSignal Ltd.
// Copyright (c) 2025, WooSignal Ltd.
// All rights reserved.
//
// Redistribution and use in source and binary forms are permitted
Expand Down
2 changes: 1 addition & 1 deletion lib/models/responses/wc_customer_updated_response.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024, WooSignal Ltd.
// Copyright (c) 2025, WooSignal Ltd.
// All rights reserved.
//
// Redistribution and use in source and binary forms are permitted
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024, WooSignal Ltd.
// Copyright (c) 2025, WooSignal Ltd.
// All rights reserved.
//
// Redistribution and use in source and binary forms are permitted
Expand Down
2 changes: 1 addition & 1 deletion lib/models/responses/wc_points_and_rewards_user.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024, WooSignal Ltd.
// Copyright (c) 2025, WooSignal Ltd.
// All rights reserved.
//
// Redistribution and use in source and binary forms are permitted
Expand Down
2 changes: 1 addition & 1 deletion lib/models/responses/wp_nonce_response.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024, WooSignal Ltd.
// Copyright (c) 2025, WooSignal Ltd.
// All rights reserved.
//
// Redistribution and use in source and binary forms are permitted
Expand Down
2 changes: 1 addition & 1 deletion lib/models/responses/wp_nonce_verified_response.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024, WooSignal Ltd.
// Copyright (c) 2025, WooSignal Ltd.
// All rights reserved.
//
// Redistribution and use in source and binary forms are permitted
Expand Down
2 changes: 1 addition & 1 deletion lib/models/responses/wp_user_add_role_response.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024, WooSignal Ltd.
// Copyright (c) 2025, WooSignal Ltd.
// All rights reserved.
//
// Redistribution and use in source and binary forms are permitted
Expand Down
2 changes: 1 addition & 1 deletion lib/models/responses/wp_user_delete_response.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024, WooSignal Ltd.
// Copyright (c) 2025, WooSignal Ltd.
// All rights reserved.
//
// Redistribution and use in source and binary forms are permitted
Expand Down
2 changes: 1 addition & 1 deletion lib/models/responses/wp_user_info_response.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024, WooSignal Ltd.
// Copyright (c) 2025, WooSignal Ltd.
// All rights reserved.
//
// Redistribution and use in source and binary forms are permitted
Expand Down
2 changes: 1 addition & 1 deletion lib/models/responses/wp_user_info_updated_response.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024, WooSignal Ltd.
// Copyright (c) 2025, WooSignal Ltd.
// All rights reserved.
//
// Redistribution and use in source and binary forms are permitted
Expand Down
2 changes: 1 addition & 1 deletion lib/models/responses/wp_user_login_response.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024, WooSignal Ltd.
// Copyright (c) 2025, WooSignal Ltd.
// All rights reserved.
//
// Redistribution and use in source and binary forms are permitted
Expand Down
2 changes: 1 addition & 1 deletion lib/models/responses/wp_user_register_response.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024, WooSignal Ltd.
// Copyright (c) 2025, WooSignal Ltd.
// All rights reserved.
//
// Redistribution and use in source and binary forms are permitted
Expand Down
2 changes: 1 addition & 1 deletion lib/models/responses/wp_user_remove_role_response.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024, WooSignal Ltd.
// Copyright (c) 2025, WooSignal Ltd.
// All rights reserved.
//
// Redistribution and use in source and binary forms are permitted
Expand Down
2 changes: 1 addition & 1 deletion lib/models/responses/wp_user_reset_password_response.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024, WooSignal Ltd.
// Copyright (c) 2025, WooSignal Ltd.
// All rights reserved.
//
// Redistribution and use in source and binary forms are permitted
Expand Down
2 changes: 1 addition & 1 deletion lib/models/wp_meta_meta.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024, WooSignal Ltd.
// Copyright (c) 2025, WooSignal Ltd.
// All rights reserved.
//
// Redistribution and use in source and binary forms are permitted
Expand Down
2 changes: 1 addition & 1 deletion lib/models/wp_user.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024, WooSignal Ltd.
// Copyright (c) 2025, WooSignal Ltd.
// All rights reserved.
//
// Redistribution and use in source and binary forms are permitted
Expand Down
2 changes: 1 addition & 1 deletion lib/networking/network_manager.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024, WooSignal Ltd.
// Copyright (c) 2025, WooSignal Ltd.
// All rights reserved.
//
// Redistribution and use in source and binary forms are permitted
Expand Down
4 changes: 2 additions & 2 deletions lib/wp_json_api.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024, WooSignal Ltd.
// Copyright (c) 2025, WooSignal Ltd.
// All rights reserved.
//
// Redistribution and use in source and binary forms are permitted
Expand All @@ -23,7 +23,7 @@ import '/models/wp_user.dart';
import '/networking/network_manager.dart';

/// The version of the wp_json_api
String _wpJsonAPIVersion = "4.1.0";
String _wpJsonAPIVersion = "4.2.0";

/// The base class to initialize and use WPJsonAPI
class WPJsonAPI {
Expand Down
8 changes: 4 additions & 4 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ packages:
dependency: transitive
description:
name: date_field
sha256: "57c0bc3818f5c66d796ccbd9eaa786ba6e915222859f0ff26d4a1d5ae4806b8e"
sha256: "921246e5e8fb8e22c82e234de48dde27f9c739071a38dac666258909fd2f7b14"
url: "https://pub.dev"
source: hosted
version: "5.3.0"
version: "6.0.0"
dbus:
dependency: transitive
description:
Expand Down Expand Up @@ -409,10 +409,10 @@ packages:
dependency: "direct main"
description:
name: nylo_support
sha256: "5970a112f83a7fb66b10ea1c3da34414359ae56c47bf0c8b5614965996d5d6c8"
sha256: "5ea5c95264e09e321fb31a362cd5b240d1083a178e3558a19f0fd1bc67af29c9"
url: "https://pub.dev"
source: hosted
version: "6.10.0"
version: "6.14.0"
path:
dependency: transitive
description:
Expand Down
4 changes: 2 additions & 2 deletions 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.1.0
version: 4.2.0
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 All @@ -12,7 +12,7 @@ environment:

dependencies:
dio: ^5.7.0
nylo_support: ^6.10.0
nylo_support: ^6.14.0
flutter:
sdk: flutter
collection: ^1.17.0
Expand Down

0 comments on commit ca06a34

Please sign in to comment.