From 25cfaac6e17d364aad7e4c54fb1d978c10ef4a25 Mon Sep 17 00:00:00 2001 From: ValentinVignal Date: Fri, 27 Feb 2026 14:11:25 +0800 Subject: [PATCH 1/4] Upgrade to new version of analyzer --- .../color_palette_example/pubspec.lock | 92 ++++++------------- .../pubspec.yaml | 6 +- 2 files changed, 29 insertions(+), 69 deletions(-) diff --git a/packages/static_json_serializable/examples/color_palette_example/pubspec.lock b/packages/static_json_serializable/examples/color_palette_example/pubspec.lock index 1523420..acbf156 100644 --- a/packages/static_json_serializable/examples/color_palette_example/pubspec.lock +++ b/packages/static_json_serializable/examples/color_palette_example/pubspec.lock @@ -5,18 +5,18 @@ packages: dependency: transitive description: name: _fe_analyzer_shared - sha256: da0d9209ca76bde579f2da330aeb9df62b6319c834fa7baae052021b0462401f + sha256: c209688d9f5a5f26b2fb47a188131a6fb9e876ae9e47af3737c0b4f58a93470d url: "https://pub.dev" source: hosted - version: "85.0.0" + version: "91.0.0" analyzer: dependency: transitive description: name: analyzer - sha256: "974859dc0ff5f37bc4313244b3218c791810d03ab3470a579580279ba971a48d" + sha256: f51c8499b35f9b26820cfe914828a6a98a94efd5cc78b37bb7d03debae3a1d08 url: "https://pub.dev" source: hosted - version: "7.7.1" + version: "8.4.1" args: dependency: transitive description: @@ -45,18 +45,18 @@ packages: dependency: transitive description: name: build - sha256: "51dc711996cbf609b90cbe5b335bbce83143875a9d58e4b5c6d3c4f684d3dda7" + sha256: "275bf6bb2a00a9852c28d4e0b410da1d833a734d57d39d44f94bfc895a484ec3" url: "https://pub.dev" source: hosted - version: "2.5.4" + version: "4.0.4" build_config: dependency: transitive description: name: build_config - sha256: "4ae2de3e1e67ea270081eaee972e1bd8f027d459f249e0f1186730784c2e7e33" + sha256: "4f64382b97504dc2fcdf487d5aae33418e08b4703fc21249e4db6d804a4d0187" url: "https://pub.dev" source: hosted - version: "1.1.2" + version: "1.2.0" build_daemon: dependency: transitive description: @@ -65,30 +65,14 @@ packages: url: "https://pub.dev" source: hosted version: "4.0.4" - build_resolvers: - dependency: transitive - description: - name: build_resolvers - sha256: ee4257b3f20c0c90e72ed2b57ad637f694ccba48839a821e87db762548c22a62 - url: "https://pub.dev" - source: hosted - version: "2.5.4" build_runner: dependency: "direct dev" description: name: build_runner - sha256: "382a4d649addbfb7ba71a3631df0ec6a45d5ab9b098638144faf27f02778eb53" - url: "https://pub.dev" - source: hosted - version: "2.5.4" - build_runner_core: - dependency: transitive - description: - name: build_runner_core - sha256: "85fbbb1036d576d966332a3f5ce83f2ce66a40bea1a94ad2d5fc29a19a0d3792" + sha256: "39ad4ca8a2876779737c60e4228b4bcd35d4352ef7e14e47514093edc012c734" url: "https://pub.dev" source: hosted - version: "9.1.2" + version: "2.11.1" build_verify: dependency: "direct dev" description: @@ -117,10 +101,10 @@ packages: dependency: transitive description: name: characters - sha256: f71061c654a3380576a52b451dd5532377954cf9dbd272a78fc8479606670803 + sha256: faf38497bda5ead2a8c7615f4f7939df04333478bf32e4173fcb06d428b5716b url: "https://pub.dev" source: hosted - version: "1.4.0" + version: "1.4.1" checked_yaml: dependency: transitive description: @@ -197,10 +181,10 @@ packages: dependency: transitive description: name: dart_style - sha256: "8a0e5fba27e8ee025d2ffb4ee820b4e6e2cf5e4246a6b1a477eb66866947e0bb" + sha256: a9c30492da18ff84efe2422ba2d319a89942d93e58eb0b73d32abe822ef54b7b url: "https://pub.dev" source: hosted - version: "3.1.1" + version: "3.1.3" fake_async: dependency: transitive description: @@ -267,14 +251,6 @@ packages: url: "https://pub.dev" source: hosted version: "2.3.2" - http: - dependency: transitive - description: - name: http - sha256: bb2ce4590bc2667c96f318d68cac1b5a7987ec819351d32b1c987239a815e007 - url: "https://pub.dev" - source: hosted - version: "1.5.0" http_multi_server: dependency: transitive description: @@ -299,14 +275,6 @@ packages: url: "https://pub.dev" source: hosted version: "1.0.5" - js: - dependency: transitive - description: - name: js - sha256: "53385261521cc4a0c4658fd0ad07a7d14591cf8fc33abbceae306ddb974888dc" - url: "https://pub.dev" - source: hosted - version: "0.7.2" json_annotation: dependency: transitive description: @@ -359,18 +327,18 @@ packages: dependency: transitive description: name: matcher - sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2 + sha256: "12956d0ad8390bbcc63ca2e1469c0619946ccb52809807067a7020d57e647aa6" url: "https://pub.dev" source: hosted - version: "0.12.17" + version: "0.12.18" material_color_utilities: dependency: transitive description: name: material_color_utilities - sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec + sha256: "9c337007e82b1889149c82ed242ed1cb24a66044e30979c44912381e9be4c48b" url: "https://pub.dev" source: hosted - version: "0.11.1" + version: "0.13.0" meta: dependency: transitive description: @@ -476,10 +444,10 @@ packages: dependency: transitive description: name: source_gen - sha256: "35c8150ece9e8c8d263337a265153c3329667640850b9304861faea59fc98f6b" + sha256: "1d562a3c1f713904ebbed50d2760217fd8a51ca170ac4b05b0db490699dbac17" url: "https://pub.dev" source: hosted - version: "2.0.0" + version: "4.2.0" source_map_stack_trace: dependency: transitive description: @@ -562,34 +530,26 @@ packages: dependency: transitive description: name: test - sha256: "75906bf273541b676716d1ca7627a17e4c4070a3a16272b7a3dc7da3b9f3f6b7" + sha256: "54c516bbb7cee2754d327ad4fca637f78abfc3cbcc5ace83b3eda117e42cd71a" url: "https://pub.dev" source: hosted - version: "1.26.3" + version: "1.29.0" test_api: dependency: transitive description: name: test_api - sha256: ab2726c1a94d3176a45960b6234466ec367179b87dd74f1611adb1f3b5fb9d55 + sha256: "93167629bfc610f71560ab9312acdda4959de4df6fac7492c89ff0d3886f6636" url: "https://pub.dev" source: hosted - version: "0.7.7" + version: "0.7.9" test_core: dependency: transitive description: name: test_core - sha256: "0cc24b5ff94b38d2ae73e1eb43cc302b77964fbf67abad1e296025b78deb53d0" - url: "https://pub.dev" - source: hosted - version: "0.6.12" - timing: - dependency: transitive - description: - name: timing - sha256: "62ee18aca144e4a9f29d212f5a4c6a053be252b895ab14b5821996cff4ed90fe" + sha256: "394f07d21f0f2255ec9e3989f21e54d3c7dc0e6e9dbce160e5a9c1a6be0e2943" url: "https://pub.dev" source: hosted - version: "1.0.2" + version: "0.6.15" typed_data: dependency: transitive description: diff --git a/packages/static_json_serializable/static_json_serializable_generator/pubspec.yaml b/packages/static_json_serializable/static_json_serializable_generator/pubspec.yaml index 1794baf..a94b57f 100644 --- a/packages/static_json_serializable/static_json_serializable_generator/pubspec.yaml +++ b/packages/static_json_serializable/static_json_serializable_generator/pubspec.yaml @@ -9,11 +9,11 @@ environment: sdk: ^3.3.0 dependencies: - analyzer: ^7.0.0 - build: ^2.4.2 + analyzer: ^8.0.0 + build: ^4.0.0 build_config: ^1.1.2 meta: ^1.11.0 - source_gen: ^2.0.0 + source_gen: ^4.0.0 static_json_serializable_annotation: ^0.1.0 dev_dependencies: From f005dc033c793cebefc9e89b4753dd3a59fbddfd Mon Sep 17 00:00:00 2001 From: ValentinVignal Date: Fri, 27 Feb 2026 14:13:00 +0800 Subject: [PATCH 2/4] Update changelog --- .../static_json_serializable_generator/CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/static_json_serializable/static_json_serializable_generator/CHANGELOG.md b/packages/static_json_serializable/static_json_serializable_generator/CHANGELOG.md index 931cb35..decdd47 100644 --- a/packages/static_json_serializable/static_json_serializable_generator/CHANGELOG.md +++ b/packages/static_json_serializable/static_json_serializable_generator/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +- Upgrade analyzer to `^8.0.0`. + ## 0.2.1 - Add example. From 4870b9b3248b0882df15021a84b7215de7fd7584 Mon Sep 17 00:00:00 2001 From: ValentinVignal Date: Fri, 27 Feb 2026 14:13:41 +0800 Subject: [PATCH 3/4] Upgrade to flutter 3.41 --- .../examples/counter/pubspec.lock | 16 ++++++++-------- .../example/pubspec.lock | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/packages/riverpod_state_provider/examples/counter/pubspec.lock b/packages/riverpod_state_provider/examples/counter/pubspec.lock index 017e0db..ce69f4f 100644 --- a/packages/riverpod_state_provider/examples/counter/pubspec.lock +++ b/packages/riverpod_state_provider/examples/counter/pubspec.lock @@ -117,10 +117,10 @@ packages: dependency: transitive description: name: characters - sha256: f71061c654a3380576a52b451dd5532377954cf9dbd272a78fc8479606670803 + sha256: faf38497bda5ead2a8c7615f4f7939df04333478bf32e4173fcb06d428b5716b url: "https://pub.dev" source: hosted - version: "1.4.0" + version: "1.4.1" checked_yaml: dependency: transitive description: @@ -375,18 +375,18 @@ packages: dependency: transitive description: name: matcher - sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2 + sha256: "12956d0ad8390bbcc63ca2e1469c0619946ccb52809807067a7020d57e647aa6" url: "https://pub.dev" source: hosted - version: "0.12.17" + version: "0.12.18" material_color_utilities: dependency: transitive description: name: material_color_utilities - sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec + sha256: "9c337007e82b1889149c82ed242ed1cb24a66044e30979c44912381e9be4c48b" url: "https://pub.dev" source: hosted - version: "0.11.1" + version: "0.13.0" meta: dependency: transitive description: @@ -586,10 +586,10 @@ packages: dependency: transitive description: name: test_api - sha256: ab2726c1a94d3176a45960b6234466ec367179b87dd74f1611adb1f3b5fb9d55 + sha256: "93167629bfc610f71560ab9312acdda4959de4df6fac7492c89ff0d3886f6636" url: "https://pub.dev" source: hosted - version: "0.7.7" + version: "0.7.9" timing: dependency: transitive description: diff --git a/packages/selective_ignore_pointer/example/pubspec.lock b/packages/selective_ignore_pointer/example/pubspec.lock index cc61e3e..a221d5f 100644 --- a/packages/selective_ignore_pointer/example/pubspec.lock +++ b/packages/selective_ignore_pointer/example/pubspec.lock @@ -21,10 +21,10 @@ packages: dependency: transitive description: name: characters - sha256: f71061c654a3380576a52b451dd5532377954cf9dbd272a78fc8479606670803 + sha256: faf38497bda5ead2a8c7615f4f7939df04333478bf32e4173fcb06d428b5716b url: "https://pub.dev" source: hosted - version: "1.4.0" + version: "1.4.1" clock: dependency: transitive description: @@ -111,18 +111,18 @@ packages: dependency: transitive description: name: matcher - sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2 + sha256: "12956d0ad8390bbcc63ca2e1469c0619946ccb52809807067a7020d57e647aa6" url: "https://pub.dev" source: hosted - version: "0.12.17" + version: "0.12.18" material_color_utilities: dependency: transitive description: name: material_color_utilities - sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec + sha256: "9c337007e82b1889149c82ed242ed1cb24a66044e30979c44912381e9be4c48b" url: "https://pub.dev" source: hosted - version: "0.11.1" + version: "0.13.0" meta: dependency: transitive description: @@ -195,10 +195,10 @@ packages: dependency: transitive description: name: test_api - sha256: ab2726c1a94d3176a45960b6234466ec367179b87dd74f1611adb1f3b5fb9d55 + sha256: "93167629bfc610f71560ab9312acdda4959de4df6fac7492c89ff0d3886f6636" url: "https://pub.dev" source: hosted - version: "0.7.7" + version: "0.7.9" vector_math: dependency: transitive description: From 1fa562094868b41040f002d07ff81b8028df811d Mon Sep 17 00:00:00 2001 From: ValentinVignal Date: Fri, 27 Feb 2026 14:18:02 +0800 Subject: [PATCH 4/4] Fix linter --- .../lib/src/static_json_serializable_generator.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/static_json_serializable/static_json_serializable_generator/lib/src/static_json_serializable_generator.dart b/packages/static_json_serializable/static_json_serializable_generator/lib/src/static_json_serializable_generator.dart index 1a44233..a47f646 100644 --- a/packages/static_json_serializable/static_json_serializable_generator/lib/src/static_json_serializable_generator.dart +++ b/packages/static_json_serializable/static_json_serializable_generator/lib/src/static_json_serializable_generator.dart @@ -23,7 +23,7 @@ class StaticJsonSerializableGenerator ); } - final name = element.name; + final name = element.name!; final staticFields = element.fields .where((field) => field.isStatic && (field.isConst || field.isFinal));