From ca06a34898d7bf114371c9d80450bb5458f49d8c Mon Sep 17 00:00:00 2001 From: Anthony Date: Tue, 31 Dec 2024 12:15:01 +0700 Subject: [PATCH] v4.2.0 --- CHANGELOG.md | 5 +++++ LICENSE | 2 +- README.md | 2 +- example/pubspec.lock | 10 +++++----- lib/enums/wp_auth_type.dart | 2 +- lib/enums/wp_meta_data_action_type.dart | 2 +- lib/enums/wp_route_type.dart | 2 +- lib/exceptions/empty_username_exception.dart | 2 +- lib/exceptions/existing_user_email_exception.dart | 2 +- lib/exceptions/existing_user_login_exception.dart | 2 +- lib/exceptions/incorrect_password_exception.dart | 2 +- lib/exceptions/invalid_email_exception.dart | 2 +- lib/exceptions/invalid_nonce_exception.dart | 2 +- lib/exceptions/invalid_params_exception.dart | 2 +- lib/exceptions/invalid_user_token_exception.dart | 2 +- lib/exceptions/invalid_username_exception.dart | 2 +- lib/exceptions/user_already_exist_exception.dart | 2 +- lib/exceptions/user_exists_exception.dart | 2 +- lib/exceptions/username_taken_exception.dart | 2 +- lib/exceptions/woocommerce_not_found_exception.dart | 2 +- lib/helpers/typedefs.dart | 2 +- lib/models/responses/wc_customer_info_response.dart | 2 +- lib/models/responses/wc_customer_updated_response.dart | 2 +- .../wc_points_and_rewards_calculate_points.dart | 2 +- lib/models/responses/wc_points_and_rewards_user.dart | 2 +- lib/models/responses/wp_nonce_response.dart | 2 +- lib/models/responses/wp_nonce_verified_response.dart | 2 +- lib/models/responses/wp_user_add_role_response.dart | 2 +- lib/models/responses/wp_user_delete_response.dart | 2 +- lib/models/responses/wp_user_info_response.dart | 2 +- .../responses/wp_user_info_updated_response.dart | 2 +- lib/models/responses/wp_user_login_response.dart | 2 +- lib/models/responses/wp_user_register_response.dart | 2 +- lib/models/responses/wp_user_remove_role_response.dart | 2 +- .../responses/wp_user_reset_password_response.dart | 2 +- lib/models/wp_meta_meta.dart | 2 +- lib/models/wp_user.dart | 2 +- lib/networking/network_manager.dart | 2 +- lib/wp_json_api.dart | 4 ++-- pubspec.lock | 8 ++++---- pubspec.yaml | 4 ++-- 41 files changed, 54 insertions(+), 49 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8aadea9..f1f9a61 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/LICENSE b/LICENSE index 68508c1..a958211 100644 --- a/LICENSE +++ b/LICENSE @@ -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 diff --git a/README.md b/README.md index d04560d..8f128ec 100644 --- a/README.md +++ b/README.md @@ -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 # diff --git a/example/pubspec.lock b/example/pubspec.lock index e20388c..8d18e8d 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -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: @@ -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: @@ -792,7 +792,7 @@ packages: path: ".." relative: true source: path - version: "4.0.5" + version: "4.2.0" xdg_directories: dependency: transitive description: diff --git a/lib/enums/wp_auth_type.dart b/lib/enums/wp_auth_type.dart index 9354741..97accbc 100644 --- a/lib/enums/wp_auth_type.dart +++ b/lib/enums/wp_auth_type.dart @@ -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 diff --git a/lib/enums/wp_meta_data_action_type.dart b/lib/enums/wp_meta_data_action_type.dart index a7a20e2..5932e4b 100644 --- a/lib/enums/wp_meta_data_action_type.dart +++ b/lib/enums/wp_meta_data_action_type.dart @@ -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 diff --git a/lib/enums/wp_route_type.dart b/lib/enums/wp_route_type.dart index 949dca7..8b8b505 100644 --- a/lib/enums/wp_route_type.dart +++ b/lib/enums/wp_route_type.dart @@ -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 diff --git a/lib/exceptions/empty_username_exception.dart b/lib/exceptions/empty_username_exception.dart index d6549a4..1403db0 100644 --- a/lib/exceptions/empty_username_exception.dart +++ b/lib/exceptions/empty_username_exception.dart @@ -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 diff --git a/lib/exceptions/existing_user_email_exception.dart b/lib/exceptions/existing_user_email_exception.dart index 6c689dc..7f611d4 100644 --- a/lib/exceptions/existing_user_email_exception.dart +++ b/lib/exceptions/existing_user_email_exception.dart @@ -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 diff --git a/lib/exceptions/existing_user_login_exception.dart b/lib/exceptions/existing_user_login_exception.dart index 45a86bc..db40d7e 100644 --- a/lib/exceptions/existing_user_login_exception.dart +++ b/lib/exceptions/existing_user_login_exception.dart @@ -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 diff --git a/lib/exceptions/incorrect_password_exception.dart b/lib/exceptions/incorrect_password_exception.dart index 662990f..6d3fb78 100644 --- a/lib/exceptions/incorrect_password_exception.dart +++ b/lib/exceptions/incorrect_password_exception.dart @@ -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 diff --git a/lib/exceptions/invalid_email_exception.dart b/lib/exceptions/invalid_email_exception.dart index 01628cf..d2fbb32 100644 --- a/lib/exceptions/invalid_email_exception.dart +++ b/lib/exceptions/invalid_email_exception.dart @@ -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 diff --git a/lib/exceptions/invalid_nonce_exception.dart b/lib/exceptions/invalid_nonce_exception.dart index 01cc83e..2767ed0 100644 --- a/lib/exceptions/invalid_nonce_exception.dart +++ b/lib/exceptions/invalid_nonce_exception.dart @@ -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 diff --git a/lib/exceptions/invalid_params_exception.dart b/lib/exceptions/invalid_params_exception.dart index be4e4ff..520d0a0 100644 --- a/lib/exceptions/invalid_params_exception.dart +++ b/lib/exceptions/invalid_params_exception.dart @@ -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 diff --git a/lib/exceptions/invalid_user_token_exception.dart b/lib/exceptions/invalid_user_token_exception.dart index 7064852..f1d10c4 100644 --- a/lib/exceptions/invalid_user_token_exception.dart +++ b/lib/exceptions/invalid_user_token_exception.dart @@ -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 diff --git a/lib/exceptions/invalid_username_exception.dart b/lib/exceptions/invalid_username_exception.dart index 1cf63da..29b76aa 100644 --- a/lib/exceptions/invalid_username_exception.dart +++ b/lib/exceptions/invalid_username_exception.dart @@ -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 diff --git a/lib/exceptions/user_already_exist_exception.dart b/lib/exceptions/user_already_exist_exception.dart index adcd26f..42bdf75 100644 --- a/lib/exceptions/user_already_exist_exception.dart +++ b/lib/exceptions/user_already_exist_exception.dart @@ -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 diff --git a/lib/exceptions/user_exists_exception.dart b/lib/exceptions/user_exists_exception.dart index 634b587..73c57ac 100644 --- a/lib/exceptions/user_exists_exception.dart +++ b/lib/exceptions/user_exists_exception.dart @@ -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 diff --git a/lib/exceptions/username_taken_exception.dart b/lib/exceptions/username_taken_exception.dart index 7945be0..d21d1ba 100644 --- a/lib/exceptions/username_taken_exception.dart +++ b/lib/exceptions/username_taken_exception.dart @@ -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 diff --git a/lib/exceptions/woocommerce_not_found_exception.dart b/lib/exceptions/woocommerce_not_found_exception.dart index dff88a9..4df1346 100644 --- a/lib/exceptions/woocommerce_not_found_exception.dart +++ b/lib/exceptions/woocommerce_not_found_exception.dart @@ -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 diff --git a/lib/helpers/typedefs.dart b/lib/helpers/typedefs.dart index 64d9ffe..7d50b82 100644 --- a/lib/helpers/typedefs.dart +++ b/lib/helpers/typedefs.dart @@ -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 diff --git a/lib/models/responses/wc_customer_info_response.dart b/lib/models/responses/wc_customer_info_response.dart index 4c90a4a..156431e 100644 --- a/lib/models/responses/wc_customer_info_response.dart +++ b/lib/models/responses/wc_customer_info_response.dart @@ -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 diff --git a/lib/models/responses/wc_customer_updated_response.dart b/lib/models/responses/wc_customer_updated_response.dart index bf2e47b..bc55d5b 100644 --- a/lib/models/responses/wc_customer_updated_response.dart +++ b/lib/models/responses/wc_customer_updated_response.dart @@ -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 diff --git a/lib/models/responses/wc_points_and_rewards_calculate_points.dart b/lib/models/responses/wc_points_and_rewards_calculate_points.dart index a605b84..e50457f 100644 --- a/lib/models/responses/wc_points_and_rewards_calculate_points.dart +++ b/lib/models/responses/wc_points_and_rewards_calculate_points.dart @@ -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 diff --git a/lib/models/responses/wc_points_and_rewards_user.dart b/lib/models/responses/wc_points_and_rewards_user.dart index e0cd478..0433230 100644 --- a/lib/models/responses/wc_points_and_rewards_user.dart +++ b/lib/models/responses/wc_points_and_rewards_user.dart @@ -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 diff --git a/lib/models/responses/wp_nonce_response.dart b/lib/models/responses/wp_nonce_response.dart index 817c14f..f52215f 100644 --- a/lib/models/responses/wp_nonce_response.dart +++ b/lib/models/responses/wp_nonce_response.dart @@ -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 diff --git a/lib/models/responses/wp_nonce_verified_response.dart b/lib/models/responses/wp_nonce_verified_response.dart index b1c9732..60fe5b6 100644 --- a/lib/models/responses/wp_nonce_verified_response.dart +++ b/lib/models/responses/wp_nonce_verified_response.dart @@ -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 diff --git a/lib/models/responses/wp_user_add_role_response.dart b/lib/models/responses/wp_user_add_role_response.dart index e11e4d4..a6f48c6 100644 --- a/lib/models/responses/wp_user_add_role_response.dart +++ b/lib/models/responses/wp_user_add_role_response.dart @@ -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 diff --git a/lib/models/responses/wp_user_delete_response.dart b/lib/models/responses/wp_user_delete_response.dart index 011bb84..e9dff2d 100644 --- a/lib/models/responses/wp_user_delete_response.dart +++ b/lib/models/responses/wp_user_delete_response.dart @@ -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 diff --git a/lib/models/responses/wp_user_info_response.dart b/lib/models/responses/wp_user_info_response.dart index 7b285fd..06b798f 100644 --- a/lib/models/responses/wp_user_info_response.dart +++ b/lib/models/responses/wp_user_info_response.dart @@ -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 diff --git a/lib/models/responses/wp_user_info_updated_response.dart b/lib/models/responses/wp_user_info_updated_response.dart index ce9719c..22f9747 100644 --- a/lib/models/responses/wp_user_info_updated_response.dart +++ b/lib/models/responses/wp_user_info_updated_response.dart @@ -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 diff --git a/lib/models/responses/wp_user_login_response.dart b/lib/models/responses/wp_user_login_response.dart index ad921b9..8b6df79 100644 --- a/lib/models/responses/wp_user_login_response.dart +++ b/lib/models/responses/wp_user_login_response.dart @@ -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 diff --git a/lib/models/responses/wp_user_register_response.dart b/lib/models/responses/wp_user_register_response.dart index ff9170d..a98d906 100644 --- a/lib/models/responses/wp_user_register_response.dart +++ b/lib/models/responses/wp_user_register_response.dart @@ -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 diff --git a/lib/models/responses/wp_user_remove_role_response.dart b/lib/models/responses/wp_user_remove_role_response.dart index c0a89ae..9b67a0e 100644 --- a/lib/models/responses/wp_user_remove_role_response.dart +++ b/lib/models/responses/wp_user_remove_role_response.dart @@ -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 diff --git a/lib/models/responses/wp_user_reset_password_response.dart b/lib/models/responses/wp_user_reset_password_response.dart index e45b4be..0c8fa1b 100644 --- a/lib/models/responses/wp_user_reset_password_response.dart +++ b/lib/models/responses/wp_user_reset_password_response.dart @@ -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 diff --git a/lib/models/wp_meta_meta.dart b/lib/models/wp_meta_meta.dart index e883ad1..f846fdd 100644 --- a/lib/models/wp_meta_meta.dart +++ b/lib/models/wp_meta_meta.dart @@ -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 diff --git a/lib/models/wp_user.dart b/lib/models/wp_user.dart index 8f88c56..b5b72fa 100644 --- a/lib/models/wp_user.dart +++ b/lib/models/wp_user.dart @@ -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 diff --git a/lib/networking/network_manager.dart b/lib/networking/network_manager.dart index f57cbc7..e43766b 100644 --- a/lib/networking/network_manager.dart +++ b/lib/networking/network_manager.dart @@ -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 diff --git a/lib/wp_json_api.dart b/lib/wp_json_api.dart index 8c62d0e..82ce26b 100644 --- a/lib/wp_json_api.dart +++ b/lib/wp_json_api.dart @@ -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 @@ -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 { diff --git a/pubspec.lock b/pubspec.lock index 6627c01..2daba34 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -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: @@ -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: diff --git a/pubspec.yaml b/pubspec.yaml index d250d31..9eb848f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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 @@ -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