From e1f2696ae2e5ab011776b48837d108e29788aed9 Mon Sep 17 00:00:00 2001 From: Muntasir Ifaz Date: Sat, 23 Dec 2023 19:43:02 +0600 Subject: [PATCH 1/7] Due to the old version of http, the Algolia package cannot be added to Flutter projects that have http updates. So I updated all dependencies. --- pubspec.lock | 252 ++++++++++++++++++++++++++--------------- pubspec.yaml | 14 +-- test/algolia_test.dart | 12 +- 3 files changed, 173 insertions(+), 105 deletions(-) diff --git a/pubspec.lock b/pubspec.lock index 90f4a87..ea72c4f 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -5,351 +5,417 @@ packages: dependency: transitive description: name: _fe_analyzer_shared - url: "https://pub.dartlang.org" + sha256: "36a321c3d2cbe01cbcb3540a87b8843846e0206df3e691fa7b23e19e78de6d49" + url: "https://pub.dev" source: hosted - version: "47.0.0" + version: "65.0.0" analyzer: dependency: transitive description: name: analyzer - url: "https://pub.dartlang.org" + sha256: dfe03b90ec022450e22513b5e5ca1f01c0c01de9c3fba2f7fd233cb57a6b9a07 + url: "https://pub.dev" source: hosted - version: "4.7.0" + version: "6.3.0" args: dependency: transitive description: name: args - url: "https://pub.dartlang.org" + sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596 + url: "https://pub.dev" source: hosted - version: "2.3.1" + version: "2.4.2" async: dependency: transitive description: name: async - url: "https://pub.dartlang.org" + sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" + url: "https://pub.dev" source: hosted - version: "2.9.0" + version: "2.11.0" boolean_selector: dependency: transitive description: name: boolean_selector - url: "https://pub.dartlang.org" + sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" + url: "https://pub.dev" source: hosted version: "2.1.1" collection: dependency: transitive description: name: collection - url: "https://pub.dartlang.org" + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + url: "https://pub.dev" source: hosted - version: "1.17.0" + version: "1.18.0" convert: dependency: transitive description: name: convert - url: "https://pub.dartlang.org" + sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592" + url: "https://pub.dev" source: hosted - version: "3.1.0" + version: "3.1.1" coverage: dependency: transitive description: name: coverage - url: "https://pub.dartlang.org" + sha256: "8acabb8306b57a409bf4c83522065672ee13179297a6bb0cb9ead73948df7c76" + url: "https://pub.dev" source: hosted - version: "1.6.2" + version: "1.7.2" crypto: dependency: transitive description: name: crypto - url: "https://pub.dartlang.org" + sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab + url: "https://pub.dev" source: hosted - version: "3.0.2" + version: "3.0.3" dotenv: dependency: "direct dev" description: name: dotenv - url: "https://pub.dartlang.org" + sha256: "379e64b6fc82d3df29461d349a1796ecd2c436c480d4653f3af6872eccbc90e1" + url: "https://pub.dev" source: hosted - version: "3.0.0" + version: "4.2.0" file: dependency: transitive description: name: file - url: "https://pub.dartlang.org" + sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c" + url: "https://pub.dev" source: hosted - version: "6.1.4" + version: "7.0.0" frontend_server_client: dependency: transitive description: name: frontend_server_client - url: "https://pub.dartlang.org" + sha256: "408e3ca148b31c20282ad6f37ebfa6f4bdc8fede5b74bc2f08d9d92b55db3612" + url: "https://pub.dev" source: hosted - version: "2.1.3" + version: "3.2.0" glob: dependency: transitive description: name: glob - url: "https://pub.dartlang.org" + sha256: "0e7014b3b7d4dac1ca4d6114f82bf1782ee86745b9b42a92c9289c23d8a0ab63" + url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.2" http: dependency: "direct main" description: name: http - url: "https://pub.dartlang.org" + sha256: d4872660c46d929f6b8a9ef4e7a7eff7e49bbf0c4ec3f385ee32df5119175139 + url: "https://pub.dev" source: hosted - version: "0.13.5" + version: "1.1.2" http_multi_server: dependency: transitive description: name: http_multi_server - url: "https://pub.dartlang.org" + sha256: "97486f20f9c2f7be8f514851703d0119c3596d14ea63227af6f7a481ef2b2f8b" + url: "https://pub.dev" source: hosted version: "3.2.1" http_parser: dependency: transitive description: name: http_parser - url: "https://pub.dartlang.org" + sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" + url: "https://pub.dev" source: hosted version: "4.0.2" io: dependency: transitive description: name: io - url: "https://pub.dartlang.org" + sha256: "2ec25704aba361659e10e3e5f5d672068d332fc8ac516421d483a11e5cbd061e" + url: "https://pub.dev" source: hosted version: "1.0.4" js: dependency: transitive description: name: js - url: "https://pub.dartlang.org" + sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 + url: "https://pub.dev" source: hosted - version: "0.6.5" + version: "0.6.7" lints: dependency: "direct dev" description: name: lints - url: "https://pub.dartlang.org" + sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290 + url: "https://pub.dev" source: hosted - version: "1.0.1" + version: "3.0.0" logging: dependency: transitive description: name: logging - url: "https://pub.dartlang.org" + sha256: "623a88c9594aa774443aa3eb2d41807a48486b5613e67599fb4c41c0ad47c340" + url: "https://pub.dev" source: hosted - version: "1.1.0" + version: "1.2.0" matcher: dependency: transitive description: name: matcher - url: "https://pub.dartlang.org" + sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb + url: "https://pub.dev" source: hosted - version: "0.12.12" + version: "0.12.16+1" meta: dependency: "direct main" description: name: meta - url: "https://pub.dartlang.org" + sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 + url: "https://pub.dev" source: hosted - version: "1.9.0" + version: "1.11.0" mime: dependency: transitive description: name: mime - url: "https://pub.dartlang.org" + sha256: e4ff8e8564c03f255408decd16e7899da1733852a9110a58fe6d1b817684a63e + url: "https://pub.dev" source: hosted - version: "1.0.3" + version: "1.0.4" node_preamble: dependency: transitive description: name: node_preamble - url: "https://pub.dartlang.org" + sha256: "6e7eac89047ab8a8d26cf16127b5ed26de65209847630400f9aefd7cd5c730db" + url: "https://pub.dev" source: hosted - version: "2.0.1" + version: "2.0.2" package_config: dependency: transitive description: name: package_config - url: "https://pub.dartlang.org" + sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd" + url: "https://pub.dev" source: hosted version: "2.1.0" path: dependency: transitive description: name: path - url: "https://pub.dartlang.org" + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" + url: "https://pub.dev" source: hosted - version: "1.8.3" + version: "1.9.0" pool: dependency: transitive description: name: pool - url: "https://pub.dartlang.org" + sha256: "20fe868b6314b322ea036ba325e6fc0711a22948856475e2c2b6306e8ab39c2a" + url: "https://pub.dev" source: hosted version: "1.5.1" pub_semver: dependency: transitive description: name: pub_semver - url: "https://pub.dartlang.org" + sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c" + url: "https://pub.dev" source: hosted - version: "2.1.3" + version: "2.1.4" shelf: dependency: transitive description: name: shelf - url: "https://pub.dartlang.org" + sha256: ad29c505aee705f41a4d8963641f91ac4cee3c8fad5947e033390a7bd8180fa4 + url: "https://pub.dev" source: hosted - version: "1.4.0" + version: "1.4.1" shelf_packages_handler: dependency: transitive description: name: shelf_packages_handler - url: "https://pub.dartlang.org" + sha256: "89f967eca29607c933ba9571d838be31d67f53f6e4ee15147d5dc2934fee1b1e" + url: "https://pub.dev" source: hosted - version: "3.0.1" + version: "3.0.2" shelf_static: dependency: transitive description: name: shelf_static - url: "https://pub.dartlang.org" + sha256: a41d3f53c4adf0f57480578c1d61d90342cd617de7fc8077b1304643c2d85c1e + url: "https://pub.dev" source: hosted - version: "1.1.1" + version: "1.1.2" shelf_web_socket: dependency: transitive description: name: shelf_web_socket - url: "https://pub.dartlang.org" + sha256: "9ca081be41c60190ebcb4766b2486a7d50261db7bd0f5d9615f2d653637a84c1" + url: "https://pub.dev" source: hosted - version: "1.0.3" + version: "1.0.4" source_map_stack_trace: dependency: transitive description: name: source_map_stack_trace - url: "https://pub.dartlang.org" + sha256: "84cf769ad83aa6bb61e0aa5a18e53aea683395f196a6f39c4c881fb90ed4f7ae" + url: "https://pub.dev" source: hosted version: "2.1.1" source_maps: dependency: transitive description: name: source_maps - url: "https://pub.dartlang.org" + sha256: "708b3f6b97248e5781f493b765c3337db11c5d2c81c3094f10904bfa8004c703" + url: "https://pub.dev" source: hosted - version: "0.10.10" + version: "0.10.12" source_span: dependency: transitive description: name: source_span - url: "https://pub.dartlang.org" + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" + url: "https://pub.dev" + source: hosted + version: "1.10.0" + sprintf: + dependency: transitive + description: + name: sprintf + sha256: "1fc9ffe69d4df602376b52949af107d8f5703b77cda567c4d7d86a0693120f23" + url: "https://pub.dev" source: hosted - version: "1.9.1" + version: "7.0.0" stack_trace: dependency: transitive description: name: stack_trace - url: "https://pub.dartlang.org" + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" + url: "https://pub.dev" source: hosted - version: "1.10.0" + version: "1.11.1" stream_channel: dependency: transitive description: name: stream_channel - url: "https://pub.dartlang.org" + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 + url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.2" string_scanner: dependency: transitive description: name: string_scanner - url: "https://pub.dartlang.org" + sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + url: "https://pub.dev" source: hosted - version: "1.1.1" + version: "1.2.0" term_glyph: dependency: transitive description: name: term_glyph - url: "https://pub.dartlang.org" + sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 + url: "https://pub.dev" source: hosted version: "1.2.1" test: dependency: "direct dev" description: name: test - url: "https://pub.dartlang.org" + sha256: "3d028996109ad5c253674c7f347822fb994a087614d6f353e6039704b4661ff2" + url: "https://pub.dev" source: hosted - version: "1.21.4" + version: "1.25.0" test_api: dependency: transitive description: name: test_api - url: "https://pub.dartlang.org" + sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f" + url: "https://pub.dev" source: hosted - version: "0.4.12" + version: "0.7.0" test_core: dependency: transitive description: name: test_core - url: "https://pub.dartlang.org" + sha256: "2bc4b4ecddd75309300d8096f781c0e3280ca1ef85beda558d33fcbedc2eead4" + url: "https://pub.dev" source: hosted - version: "0.4.16" + version: "0.6.0" typed_data: dependency: transitive description: name: typed_data - url: "https://pub.dartlang.org" + sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c + url: "https://pub.dev" source: hosted - version: "1.3.1" + version: "1.3.2" universal_io: dependency: "direct main" description: name: universal_io - url: "https://pub.dartlang.org" + sha256: "1722b2dcc462b4b2f3ee7d188dad008b6eb4c40bbd03a3de451d82c78bba9aad" + url: "https://pub.dev" source: hosted - version: "2.0.4" + version: "2.2.2" uuid: dependency: "direct main" description: name: uuid - url: "https://pub.dartlang.org" + sha256: bb55f38968b9427ce5dcdb8aaaa41049282195e0cfa4cf48593572fa3d1f36bc + url: "https://pub.dev" source: hosted - version: "3.0.7" + version: "4.3.1" vm_service: dependency: transitive description: name: vm_service - url: "https://pub.dartlang.org" + sha256: a2662fb1f114f4296cf3f5a50786a2d888268d7776cf681aa17d660ffa23b246 + url: "https://pub.dev" source: hosted - version: "9.4.0" + version: "14.0.0" watcher: dependency: transitive description: name: watcher - url: "https://pub.dartlang.org" + sha256: "3d2ad6751b3c16cf07c7fca317a1413b3f26530319181b37e3b9039b84fc01d8" + url: "https://pub.dev" source: hosted - version: "1.0.2" + version: "1.1.0" + web: + dependency: transitive + description: + name: web + sha256: edc8a9573dd8c5a83a183dae1af2b6fd4131377404706ca4e5420474784906fa + url: "https://pub.dev" + source: hosted + version: "0.4.0" web_socket_channel: dependency: transitive description: name: web_socket_channel - url: "https://pub.dartlang.org" + sha256: "045ec2137c27bf1a32e6ffa0e734d532a6677bf9016a0d1a406c54e499ff945b" + url: "https://pub.dev" source: hosted - version: "2.3.0" + version: "2.4.1" webkit_inspection_protocol: dependency: transitive description: name: webkit_inspection_protocol - url: "https://pub.dartlang.org" + sha256: "87d3f2333bb240704cd3f1c6b5b7acd8a10e7f0bc28c28dcf14e782014f4a572" + url: "https://pub.dev" source: hosted - version: "1.2.0" + version: "1.2.1" yaml: dependency: transitive description: name: yaml - url: "https://pub.dartlang.org" + sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5" + url: "https://pub.dev" source: hosted - version: "3.1.1" + version: "3.1.2" sdks: - dart: ">=2.17.0 <3.0.0" + dart: ">=3.2.0 <4.0.0" diff --git a/pubspec.yaml b/pubspec.yaml index 9eb99bd..d3ce38e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -9,12 +9,12 @@ environment: sdk: '>=2.12.0 <3.0.0' dependencies: - meta: ^1.6.0 - http: ^0.13.0 - uuid: ^3.0.5 - universal_io: ^2.0.4 + meta: ^1.11.0 + http: ^1.1.2 + uuid: ^4.3.1 + universal_io: ^2.2.2 dev_dependencies: - lints: ^1.0.1 - test: ^1.17.12 - dotenv: ^3.0.0 + lints: ^3.0.0 + test: ^1.25.0 + dotenv: ^4.2.0 diff --git a/test/algolia_test.dart b/test/algolia_test.dart index 419ae09..70ff191 100644 --- a/test/algolia_test.dart +++ b/test/algolia_test.dart @@ -1,13 +1,14 @@ import 'package:algolia/algolia.dart'; -import 'package:dotenv/dotenv.dart' show load, env; +import 'package:dotenv/dotenv.dart'; // ignore: invalid_annotation_target @Timeout(Duration(seconds: 60)) import 'package:test/test.dart'; class Application { + static Algolia get algolia { - load(); + var env = DotEnv(includePlatformEnvironment: true)..load(); return Algolia.init( applicationId: env['ALGOLIA_APP_ID']?.toString() ?? '', apiKey: env['ALGOLIA_API_KEY']?.toString() ?? '', @@ -16,9 +17,10 @@ class Application { } void main() async { + var env = DotEnv(includePlatformEnvironment: true)..load(); test('Test Environment For Key', () { - print('ALGOLIA_APP_ID: ' + env['ALGOLIA_APP_ID'].toString()); - print('ALGOLIA_API_KEY: ' + env['ALGOLIA_API_KEY'].toString()); + print('ALGOLIA_APP_ID: ${env['ALGOLIA_APP_ID']}'); + print('ALGOLIA_API_KEY: ${env['ALGOLIA_API_KEY']}'); expect(env['ALGOLIA_APP_ID'].runtimeType, String); expect(env['ALGOLIA_API_KEY'].runtimeType, String); }); @@ -65,7 +67,7 @@ void main() async { .object(taskAdded.data['objectID']) .getObject(); } catch (err) { - print('err' + err.runtimeType.toString()); + print('err${err.runtimeType}'); } // Checking if has [AlgoliaObjectSnapshot] From f5367f4d1d20342b7501e1914cfbb83def7ea6d7 Mon Sep 17 00:00:00 2001 From: Muntasir Ifaz Date: Sat, 23 Dec 2023 19:55:04 +0600 Subject: [PATCH 2/7] change meta version --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index d3ce38e..c571665 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -9,7 +9,7 @@ environment: sdk: '>=2.12.0 <3.0.0' dependencies: - meta: ^1.11.0 + meta: ^1.10.0 http: ^1.1.2 uuid: ^4.3.1 universal_io: ^2.2.2 From 0ca195b91e5d0a7e432f23026798a8aa4f656d2c Mon Sep 17 00:00:00 2001 From: Muntasir Ifaz Date: Sat, 23 Dec 2023 19:56:51 +0600 Subject: [PATCH 3/7] change meta version --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index c571665..d3ce38e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -9,7 +9,7 @@ environment: sdk: '>=2.12.0 <3.0.0' dependencies: - meta: ^1.10.0 + meta: ^1.11.0 http: ^1.1.2 uuid: ^4.3.1 universal_io: ^2.2.2 From c41bf7a24ea7aa90226601f4fafc93abfc73b235 Mon Sep 17 00:00:00 2001 From: Muntasir Ifaz Date: Sat, 23 Dec 2023 19:58:01 +0600 Subject: [PATCH 4/7] change meta and uuid version --- pubspec.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pubspec.yaml b/pubspec.yaml index d3ce38e..b387b2e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -9,9 +9,9 @@ environment: sdk: '>=2.12.0 <3.0.0' dependencies: - meta: ^1.11.0 + meta: ^1.10.0 http: ^1.1.2 - uuid: ^4.3.1 + uuid: ^4.3.0 universal_io: ^2.2.2 dev_dependencies: From 8f160bbbfff7bca2f5bafc50c10bf5d2246ef31e Mon Sep 17 00:00:00 2001 From: Muntasir Ifaz Date: Sat, 23 Dec 2023 20:00:08 +0600 Subject: [PATCH 5/7] change meta and uuid version --- pubspec.lock | 12 ++---------- pubspec.yaml | 4 ++-- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/pubspec.lock b/pubspec.lock index ea72c4f..b799909 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -281,14 +281,6 @@ packages: url: "https://pub.dev" source: hosted version: "1.10.0" - sprintf: - dependency: transitive - description: - name: sprintf - sha256: "1fc9ffe69d4df602376b52949af107d8f5703b77cda567c4d7d86a0693120f23" - url: "https://pub.dev" - source: hosted - version: "7.0.0" stack_trace: dependency: transitive description: @@ -365,10 +357,10 @@ packages: dependency: "direct main" description: name: uuid - sha256: bb55f38968b9427ce5dcdb8aaaa41049282195e0cfa4cf48593572fa3d1f36bc + sha256: "648e103079f7c64a36dc7d39369cabb358d377078a051d6ae2ad3aa539519313" url: "https://pub.dev" source: hosted - version: "4.3.1" + version: "3.0.7" vm_service: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index b387b2e..a2b47f0 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -9,9 +9,9 @@ environment: sdk: '>=2.12.0 <3.0.0' dependencies: - meta: ^1.10.0 + meta: ^1.6.0 http: ^1.1.2 - uuid: ^4.3.0 + uuid: ^3.0.5 universal_io: ^2.2.2 dev_dependencies: From 10e0e45b47840a043d4cebce8624e9944b11b026 Mon Sep 17 00:00:00 2001 From: Muntasir Ifaz Date: Mon, 4 Mar 2024 11:36:21 +0600 Subject: [PATCH 6/7] upgrade uuid package --- pubspec.lock | 20 ++++++++++++++++++-- pubspec.yaml | 2 +- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/pubspec.lock b/pubspec.lock index b799909..5c4186f 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -89,6 +89,14 @@ packages: url: "https://pub.dev" source: hosted version: "7.0.0" + fixnum: + dependency: transitive + description: + name: fixnum + sha256: "25517a4deb0c03aa0f32fd12db525856438902d9c16536311e76cdc57b31d7d1" + url: "https://pub.dev" + source: hosted + version: "1.1.0" frontend_server_client: dependency: transitive description: @@ -281,6 +289,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.10.0" + sprintf: + dependency: transitive + description: + name: sprintf + sha256: "1fc9ffe69d4df602376b52949af107d8f5703b77cda567c4d7d86a0693120f23" + url: "https://pub.dev" + source: hosted + version: "7.0.0" stack_trace: dependency: transitive description: @@ -357,10 +373,10 @@ packages: dependency: "direct main" description: name: uuid - sha256: "648e103079f7c64a36dc7d39369cabb358d377078a051d6ae2ad3aa539519313" + sha256: cd210a09f7c18cbe5a02511718e0334de6559871052c90a90c0cca46a4aa81c8 url: "https://pub.dev" source: hosted - version: "3.0.7" + version: "4.3.3" vm_service: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index a2b47f0..0b4d069 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -11,7 +11,7 @@ environment: dependencies: meta: ^1.6.0 http: ^1.1.2 - uuid: ^3.0.5 + uuid: ^4.3.3 universal_io: ^2.2.2 dev_dependencies: From 64665ee4f5e984a6719dac7c6bc2f076dc864e52 Mon Sep 17 00:00:00 2001 From: Muntasir Ifaz Date: Mon, 4 Mar 2024 11:51:23 +0600 Subject: [PATCH 7/7] upgrade uuid package and some modification --- lib/src/algolia.dart | 2 +- lib/src/batch.dart | 2 +- lib/src/error.dart | 2 +- lib/src/event_snapshot.dart | 2 +- lib/src/facet_value_snapshot.dart | 2 +- lib/src/index_reference.dart | 2 +- lib/src/index_settings.dart | 5 ++--- lib/src/index_snapshot.dart | 2 +- lib/src/object_reference.dart | 2 +- lib/src/object_snapshot.dart | 2 +- lib/src/query.dart | 5 ++--- lib/src/query_snapshot.dart | 2 +- lib/src/synonyms_reference.dart | 2 +- lib/src/task.dart | 2 +- lib/src/util/enum_util.dart | 2 +- lib/src/util/json_encode.dart | 2 +- 16 files changed, 18 insertions(+), 20 deletions(-) diff --git a/lib/src/algolia.dart b/lib/src/algolia.dart index 0eb9127..113278c 100644 --- a/lib/src/algolia.dart +++ b/lib/src/algolia.dart @@ -1,4 +1,4 @@ -part of algolia; +part of '../algolia.dart'; enum ApiRequestType { get, diff --git a/lib/src/batch.dart b/lib/src/batch.dart index 4d10249..56dc403 100644 --- a/lib/src/batch.dart +++ b/lib/src/batch.dart @@ -1,4 +1,4 @@ -part of algolia; +part of '../algolia.dart'; /// **AlgoliaBatch** /// A [AlgoliaBatch] is a series of write operations to be performed as one unit. diff --git a/lib/src/error.dart b/lib/src/error.dart index 8be6cd1..c6125ed 100644 --- a/lib/src/error.dart +++ b/lib/src/error.dart @@ -1,4 +1,4 @@ -part of algolia; +part of '../algolia.dart'; class AlgoliaError { final Map _message; diff --git a/lib/src/event_snapshot.dart b/lib/src/event_snapshot.dart index abf6789..46bc4e4 100644 --- a/lib/src/event_snapshot.dart +++ b/lib/src/event_snapshot.dart @@ -1,4 +1,4 @@ -part of algolia; +part of '../algolia.dart'; enum AlgoliaEventType { click, diff --git a/lib/src/facet_value_snapshot.dart b/lib/src/facet_value_snapshot.dart index f378290..35a6b23 100644 --- a/lib/src/facet_value_snapshot.dart +++ b/lib/src/facet_value_snapshot.dart @@ -1,4 +1,4 @@ -part of algolia; +part of '../algolia.dart'; class AlgoliaFacetValueSnapshot { final Algolia algolia; diff --git a/lib/src/index_reference.dart b/lib/src/index_reference.dart index 29323b3..86fa92b 100644 --- a/lib/src/index_reference.dart +++ b/lib/src/index_reference.dart @@ -1,4 +1,4 @@ -part of algolia; +part of '../algolia.dart'; /// Scopes of the data to copy when copying an index. /// When copying, you may specify optional scopes to the operation. Doing diff --git a/lib/src/index_settings.dart b/lib/src/index_settings.dart index c5fbc09..d5d3ec0 100644 --- a/lib/src/index_settings.dart +++ b/lib/src/index_settings.dart @@ -1,4 +1,4 @@ -part of algolia; +part of '../algolia.dart'; /// /// **AlgoliaIndexSettings** @@ -59,8 +59,7 @@ class AlgoliaSettings { @override String toString() { return { - 'url': '${algolia._host}indexes' + - (_index.isNotEmpty ? '/' + Uri.encodeFull(_index) : ''), + 'url': '${algolia._host}indexes${_index.isNotEmpty ? '/${Uri.encodeFull(_index)}' : ''}', 'headers': algolia._headers, 'parameters': _parameters, }.toString(); diff --git a/lib/src/index_snapshot.dart b/lib/src/index_snapshot.dart index 41e9def..2d87ce0 100644 --- a/lib/src/index_snapshot.dart +++ b/lib/src/index_snapshot.dart @@ -1,4 +1,4 @@ -part of algolia; +part of '../algolia.dart'; class AlgoliaIndexesSnapshot { AlgoliaIndexesSnapshot._(this.algolia, Map map) diff --git a/lib/src/object_reference.dart b/lib/src/object_reference.dart index 5474f02..957a6d0 100644 --- a/lib/src/object_reference.dart +++ b/lib/src/object_reference.dart @@ -1,4 +1,4 @@ -part of algolia; +part of '../algolia.dart'; class AlgoliaObjectReference { AlgoliaObjectReference._(this.algolia, String? index, String? objectId) diff --git a/lib/src/object_snapshot.dart b/lib/src/object_snapshot.dart index e5d4569..32e8933 100644 --- a/lib/src/object_snapshot.dart +++ b/lib/src/object_snapshot.dart @@ -1,4 +1,4 @@ -part of algolia; +part of '../algolia.dart'; // Implementation & bug solved by https://github.com/franvera // - highlightResult [Bug] (commit ref: 0d76d24fe8aa347a0933920afe5ded43bdcbd68b) diff --git a/lib/src/query.dart b/lib/src/query.dart index 8d8d809..f6ea363 100644 --- a/lib/src/query.dart +++ b/lib/src/query.dart @@ -1,4 +1,4 @@ -part of algolia; +part of '../algolia.dart'; enum AlgoliaSortFacetValuesBy { alpha, @@ -49,8 +49,7 @@ class AlgoliaQuery { @override String toString() { return { - 'url': '${algolia._host}indexes' + - (encodedIndex.isNotEmpty ? '/' + encodedIndex : ''), + 'url': '${algolia._host}indexes${encodedIndex.isNotEmpty ? '/$encodedIndex' : ''}', 'headers': algolia._headers, 'parameters': _parameters, }.toString(); diff --git a/lib/src/query_snapshot.dart b/lib/src/query_snapshot.dart index d13b06a..00f6b2a 100644 --- a/lib/src/query_snapshot.dart +++ b/lib/src/query_snapshot.dart @@ -1,4 +1,4 @@ -part of algolia; +part of '../algolia.dart'; class AlgoliaQuerySnapshot { AlgoliaQuerySnapshot._(this.algolia, this.index, Map map) diff --git a/lib/src/synonyms_reference.dart b/lib/src/synonyms_reference.dart index d1b7aba..c830a45 100644 --- a/lib/src/synonyms_reference.dart +++ b/lib/src/synonyms_reference.dart @@ -1,4 +1,4 @@ -part of algolia; +part of '../algolia.dart'; enum SynonymsType { synonym, diff --git a/lib/src/task.dart b/lib/src/task.dart index d704306..affefd7 100644 --- a/lib/src/task.dart +++ b/lib/src/task.dart @@ -1,4 +1,4 @@ -part of algolia; +part of '../algolia.dart'; class AlgoliaTask { AlgoliaTask._(this.algolia, String? index, Map data) diff --git a/lib/src/util/enum_util.dart b/lib/src/util/enum_util.dart index 77d441d..336e083 100644 --- a/lib/src/util/enum_util.dart +++ b/lib/src/util/enum_util.dart @@ -1,4 +1,4 @@ -part of algolia; +part of '../../algolia.dart'; class EnumUtil { static T fromStringEnum(Iterable values, String stringType) { diff --git a/lib/src/util/json_encode.dart b/lib/src/util/json_encode.dart index 71e7f1a..b05d2e3 100644 --- a/lib/src/util/json_encode.dart +++ b/lib/src/util/json_encode.dart @@ -1,4 +1,4 @@ -part of algolia; +part of '../../algolia.dart'; dynamic jsonEncodeHelper(dynamic item) { if (item is DateTime) {