Skip to content

Commit 985d06f

Browse files
committed
v4.1.0
1 parent 70481d8 commit 985d06f

File tree

6 files changed

+70
-50
lines changed

6 files changed

+70
-50
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## [4.1.0] - 2024-12-16
2+
3+
* Update `init` for package
4+
* Dependency updates
5+
16
## [4.0.5] - 2024-11-27
27

38
* Fix `wpAuth` method

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ In your flutter project add the dependency:
3030
``` dart
3131
dependencies:
3232
...
33-
wp_json_api: ^4.0.5
33+
wp_json_api: ^4.1.0
3434
```
3535

3636
### Usage example #

example/pubspec.lock

Lines changed: 29 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ packages:
7777
dependency: transitive
7878
description:
7979
name: collection
80-
sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
80+
sha256: a1ace0a119f20aabc852d165077c036cd864315bd99b7eaa10a60100341941bf
8181
url: "https://pub.dev"
8282
source: hosted
83-
version: "1.18.0"
83+
version: "1.19.0"
8484
convert:
8585
dependency: transitive
8686
description:
@@ -300,10 +300,10 @@ packages:
300300
dependency: transitive
301301
description:
302302
name: flutter_timezone
303-
sha256: ea53c61c9152f271a5e30624a624184804947b6a733ff2b64186bb2579446892
303+
sha256: "6e6a0a9d0dfc049b209e01e1dee3efd5ff2ddf2375e9de86589761b244eb5a5f"
304304
url: "https://pub.dev"
305305
source: hosted
306-
version: "3.0.1"
306+
version: "4.0.0"
307307
flutter_web_plugins:
308308
dependency: transitive
309309
description: flutter
@@ -317,6 +317,14 @@ packages:
317317
url: "https://pub.dev"
318318
source: hosted
319319
version: "2.1.1"
320+
http:
321+
dependency: transitive
322+
description:
323+
name: http
324+
sha256: b9c29a161230ee03d3ccf545097fccd9b87a5264228c5d348202e0f0c28f9010
325+
url: "https://pub.dev"
326+
source: hosted
327+
version: "1.2.2"
320328
http_parser:
321329
dependency: transitive
322330
description:
@@ -345,18 +353,18 @@ packages:
345353
dependency: transitive
346354
description:
347355
name: leak_tracker
348-
sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05"
356+
sha256: "7bb2830ebd849694d1ec25bf1f44582d6ac531a57a365a803a6034ff751d2d06"
349357
url: "https://pub.dev"
350358
source: hosted
351-
version: "10.0.5"
359+
version: "10.0.7"
352360
leak_tracker_flutter_testing:
353361
dependency: transitive
354362
description:
355363
name: leak_tracker_flutter_testing
356-
sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806"
364+
sha256: "9491a714cca3667b60b5c420da8217e6de0d1ba7a5ec322fab01758f6998f379"
357365
url: "https://pub.dev"
358366
source: hosted
359-
version: "3.0.5"
367+
version: "3.0.8"
360368
leak_tracker_testing:
361369
dependency: transitive
362370
description:
@@ -401,10 +409,10 @@ packages:
401409
dependency: transitive
402410
description:
403411
name: nylo_support
404-
sha256: "00ccf5ed65db90e6260626baf32803e4d8f5ff536e455fa1402e34448d1ded45"
412+
sha256: "143122780f5bdc769b71a6a26e615644a5635f96df5ad053545404f6e589199a"
405413
url: "https://pub.dev"
406414
source: hosted
407-
version: "6.7.0"
415+
version: "6.9.1"
408416
path:
409417
dependency: transitive
410418
description:
@@ -585,7 +593,7 @@ packages:
585593
dependency: transitive
586594
description: flutter
587595
source: sdk
588-
version: "0.0.99"
596+
version: "0.0.0"
589597
source_span:
590598
dependency: transitive
591599
description:
@@ -606,10 +614,10 @@ packages:
606614
dependency: transitive
607615
description:
608616
name: stack_trace
609-
sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
617+
sha256: "9f47fd3630d76be3ab26f0ee06d213679aa425996925ff3feffdec504931c377"
610618
url: "https://pub.dev"
611619
source: hosted
612-
version: "1.11.1"
620+
version: "1.12.0"
613621
stream_channel:
614622
dependency: transitive
615623
description:
@@ -622,10 +630,10 @@ packages:
622630
dependency: transitive
623631
description:
624632
name: string_scanner
625-
sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
633+
sha256: "688af5ed3402a4bde5b3a6c15fd768dbf2621a614950b17f04626c431ab3c4c3"
626634
url: "https://pub.dev"
627635
source: hosted
628-
version: "1.2.0"
636+
version: "1.3.0"
629637
term_glyph:
630638
dependency: transitive
631639
description:
@@ -638,10 +646,10 @@ packages:
638646
dependency: transitive
639647
description:
640648
name: test_api
641-
sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb"
649+
sha256: "664d3a9a64782fcdeb83ce9c6b39e78fd2971d4e37827b9b06c3aa1edc5e760c"
642650
url: "https://pub.dev"
643651
source: hosted
644-
version: "0.7.2"
652+
version: "0.7.3"
645653
theme_provider:
646654
dependency: transitive
647655
description:
@@ -654,10 +662,10 @@ packages:
654662
dependency: transitive
655663
description:
656664
name: timezone
657-
sha256: "2236ec079a174ce07434e89fcd3fcda430025eb7692244139a9cf54fdcf1fc7d"
665+
sha256: ffc9d5f4d1193534ef051f9254063fa53d588609418c84299956c3db9383587d
658666
url: "https://pub.dev"
659667
source: hosted
660-
version: "0.9.4"
668+
version: "0.10.0"
661669
typed_data:
662670
dependency: transitive
663671
description:
@@ -758,10 +766,10 @@ packages:
758766
dependency: transitive
759767
description:
760768
name: vm_service
761-
sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d"
769+
sha256: f6be3ed8bd01289b34d679c2b62226f63c0e69f9fd2e50a6b3c1c729a961041b
762770
url: "https://pub.dev"
763771
source: hosted
764-
version: "14.2.5"
772+
version: "14.3.0"
765773
web:
766774
dependency: transitive
767775
description:

lib/wp_json_api.dart

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import '/models/wp_user.dart';
2323
import '/networking/network_manager.dart';
2424

2525
/// The version of the wp_json_api
26-
String _wpJsonAPIVersion = "4.0.5";
26+
String _wpJsonAPIVersion = "4.1.0";
2727

2828
/// The base class to initialize and use WPJsonAPI
2929
class WPJsonAPI {
@@ -53,15 +53,14 @@ class WPJsonAPI {
5353
{required String baseUrl,
5454
String wpJsonPath = '/wp-json',
5555
bool shouldDebug = true,
56-
bool nylo = false}) {
56+
Nylo? nylo}) {
5757
_setBaseApi(baseUrl: baseUrl);
5858
_setApiPath(path: wpJsonPath);
5959
_setShouldDebug(value: shouldDebug);
6060

6161
// nylo setup
62-
if (!nylo) {
63-
Nylo.package();
64-
Nylo.instance.addAuthKey(storageKey());
62+
if (nylo != null) {
63+
nylo.addAuthKey(storageKey());
6564
}
6665
}
6766

pubspec.lock

Lines changed: 29 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ packages:
7777
dependency: "direct main"
7878
description:
7979
name: collection
80-
sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
80+
sha256: a1ace0a119f20aabc852d165077c036cd864315bd99b7eaa10a60100341941bf
8181
url: "https://pub.dev"
8282
source: hosted
83-
version: "1.18.0"
83+
version: "1.19.0"
8484
convert:
8585
dependency: transitive
8686
description:
@@ -300,10 +300,10 @@ packages:
300300
dependency: transitive
301301
description:
302302
name: flutter_timezone
303-
sha256: ea53c61c9152f271a5e30624a624184804947b6a733ff2b64186bb2579446892
303+
sha256: "6e6a0a9d0dfc049b209e01e1dee3efd5ff2ddf2375e9de86589761b244eb5a5f"
304304
url: "https://pub.dev"
305305
source: hosted
306-
version: "3.0.1"
306+
version: "4.0.0"
307307
flutter_web_plugins:
308308
dependency: transitive
309309
description: flutter
@@ -317,6 +317,14 @@ packages:
317317
url: "https://pub.dev"
318318
source: hosted
319319
version: "2.1.1"
320+
http:
321+
dependency: transitive
322+
description:
323+
name: http
324+
sha256: b9c29a161230ee03d3ccf545097fccd9b87a5264228c5d348202e0f0c28f9010
325+
url: "https://pub.dev"
326+
source: hosted
327+
version: "1.2.2"
320328
http_parser:
321329
dependency: transitive
322330
description:
@@ -345,18 +353,18 @@ packages:
345353
dependency: transitive
346354
description:
347355
name: leak_tracker
348-
sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05"
356+
sha256: "7bb2830ebd849694d1ec25bf1f44582d6ac531a57a365a803a6034ff751d2d06"
349357
url: "https://pub.dev"
350358
source: hosted
351-
version: "10.0.5"
359+
version: "10.0.7"
352360
leak_tracker_flutter_testing:
353361
dependency: transitive
354362
description:
355363
name: leak_tracker_flutter_testing
356-
sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806"
364+
sha256: "9491a714cca3667b60b5c420da8217e6de0d1ba7a5ec322fab01758f6998f379"
357365
url: "https://pub.dev"
358366
source: hosted
359-
version: "3.0.5"
367+
version: "3.0.8"
360368
leak_tracker_testing:
361369
dependency: transitive
362370
description:
@@ -401,10 +409,10 @@ packages:
401409
dependency: "direct main"
402410
description:
403411
name: nylo_support
404-
sha256: "00ccf5ed65db90e6260626baf32803e4d8f5ff536e455fa1402e34448d1ded45"
412+
sha256: "143122780f5bdc769b71a6a26e615644a5635f96df5ad053545404f6e589199a"
405413
url: "https://pub.dev"
406414
source: hosted
407-
version: "6.7.0"
415+
version: "6.9.1"
408416
path:
409417
dependency: transitive
410418
description:
@@ -585,7 +593,7 @@ packages:
585593
dependency: transitive
586594
description: flutter
587595
source: sdk
588-
version: "0.0.99"
596+
version: "0.0.0"
589597
source_span:
590598
dependency: transitive
591599
description:
@@ -606,10 +614,10 @@ packages:
606614
dependency: transitive
607615
description:
608616
name: stack_trace
609-
sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
617+
sha256: "9f47fd3630d76be3ab26f0ee06d213679aa425996925ff3feffdec504931c377"
610618
url: "https://pub.dev"
611619
source: hosted
612-
version: "1.11.1"
620+
version: "1.12.0"
613621
stream_channel:
614622
dependency: transitive
615623
description:
@@ -622,10 +630,10 @@ packages:
622630
dependency: transitive
623631
description:
624632
name: string_scanner
625-
sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
633+
sha256: "688af5ed3402a4bde5b3a6c15fd768dbf2621a614950b17f04626c431ab3c4c3"
626634
url: "https://pub.dev"
627635
source: hosted
628-
version: "1.2.0"
636+
version: "1.3.0"
629637
term_glyph:
630638
dependency: transitive
631639
description:
@@ -638,10 +646,10 @@ packages:
638646
dependency: transitive
639647
description:
640648
name: test_api
641-
sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb"
649+
sha256: "664d3a9a64782fcdeb83ce9c6b39e78fd2971d4e37827b9b06c3aa1edc5e760c"
642650
url: "https://pub.dev"
643651
source: hosted
644-
version: "0.7.2"
652+
version: "0.7.3"
645653
theme_provider:
646654
dependency: transitive
647655
description:
@@ -654,10 +662,10 @@ packages:
654662
dependency: transitive
655663
description:
656664
name: timezone
657-
sha256: "2236ec079a174ce07434e89fcd3fcda430025eb7692244139a9cf54fdcf1fc7d"
665+
sha256: ffc9d5f4d1193534ef051f9254063fa53d588609418c84299956c3db9383587d
658666
url: "https://pub.dev"
659667
source: hosted
660-
version: "0.9.4"
668+
version: "0.10.0"
661669
typed_data:
662670
dependency: transitive
663671
description:
@@ -758,10 +766,10 @@ packages:
758766
dependency: transitive
759767
description:
760768
name: vm_service
761-
sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d"
769+
sha256: f6be3ed8bd01289b34d679c2b62226f63c0e69f9fd2e50a6b3c1c729a961041b
762770
url: "https://pub.dev"
763771
source: hosted
764-
version: "14.2.5"
772+
version: "14.3.0"
765773
web:
766774
dependency: transitive
767775
description:

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: wp_json_api
22
description: WordPress and WooCommerce JSON API for Flutter Mobile. API allows you to login, register new users, get users info and more.
3-
version: 4.0.5
3+
version: 4.1.0
44
homepage: https://woosignal.com
55
repository: https://github.com/woosignal/wp-json-api-flutter
66
issue_tracker: https://github.com/woosignal/wp-json-api-flutter/issues
@@ -12,7 +12,7 @@ environment:
1212

1313
dependencies:
1414
dio: ^5.7.0
15-
nylo_support: ^6.7.0
15+
nylo_support: ^6.10.0
1616
flutter:
1717
sdk: flutter
1818
collection: ^1.17.0

0 commit comments

Comments
 (0)