Skip to content

feat: modernize package for Dart 3.4+ and remove code generation#9

Merged
LiorAgnin merged 2 commits intomasterfrom
feat/modernize-dart-3.4
Mar 14, 2026
Merged

feat: modernize package for Dart 3.4+ and remove code generation#9
LiorAgnin merged 2 commits intomasterfrom
feat/modernize-dart-3.4

Conversation

@LiorAgnin
Copy link
Member

Remove freezed/json_serializable dependencies and rewrite TransactionRequest as a hand-written final class. This eliminates all runtime dependencies and 5 code-gen dev dependencies, resulting in a zero-dependency pure Dart package.

  • Replace @freezed TransactionRequest with final class (Dart 3 class modifier)
  • Add manual copyWith, fromJson, toJson, operator==, hashCode, toString
  • Type-strengthen QueryString.parse to Map<String, String>
  • Remove all dynamic types from public and internal APIs
  • Update SDK constraint to >=3.4.0 <4.0.0
  • Update lints to ^5.1.1, test to ^1.25.15
  • Expand test suite from 2 to 34 tests (error cases, model, round-trip)
  • Clean analysis_options.yaml (remove freezed excludes)
  • Delete committed doc/api/ static docs from repo
  • Update README, CHANGELOG, example for 0.1.0
  • Add pub.dev topics: ethereum, blockchain, erc-681, erc-831, url-parser

Remove freezed/json_serializable dependencies and rewrite TransactionRequest
as a hand-written final class. This eliminates all runtime dependencies and
5 code-gen dev dependencies, resulting in a zero-dependency pure Dart package.

- Replace @freezed TransactionRequest with final class (Dart 3 class modifier)
- Add manual copyWith, fromJson, toJson, operator==, hashCode, toString
- Type-strengthen QueryString.parse to Map<String, String>
- Remove all dynamic types from public and internal APIs
- Update SDK constraint to >=3.4.0 <4.0.0
- Update lints to ^5.1.1, test to ^1.25.15
- Expand test suite from 2 to 34 tests (error cases, model, round-trip)
- Clean analysis_options.yaml (remove freezed excludes)
- Delete committed doc/api/ static docs from repo
- Update README, CHANGELOG, example for 0.1.0
- Add pub.dev topics: ethereum, blockchain, erc-681, erc-831, url-parser
Run analyze, format check, and tests against Dart 3.4.0 and stable on
every push/PR to master, with a publish dry-run gate.
@LiorAgnin LiorAgnin merged commit 9593e0f into master Mar 14, 2026
1 of 5 checks passed
@LiorAgnin LiorAgnin deleted the feat/modernize-dart-3.4 branch March 14, 2026 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant