feat: modernize package for Dart 3.4+ and remove code generation#9
Merged
feat: modernize package for Dart 3.4+ and remove code generation#9
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.