Skip to content

refactor!: migrate Ack 2.0 to Dart 3.14 augmentations - #225

Open
leoafarias wants to merge 6 commits into
release/2.0from
refactor/dart-3.14-augmentations
Open

leoafarias wants to merge 6 commits into
release/2.0from
refactor/dart-3.14-augmentations

Conversation

@leoafarias

Copy link
Copy Markdown
Collaborator

Stacked on #224: main ← release/2.0 ← refactor/dart-3.14-augmentations.

Summary

  • Replace class-first generated mixins and handwritten schema/parsing forwarders with augmentations. Support primary and conventional constructors without a legacy compatibility mode.
  • Preserve validation and codec boundaries, typed nullable copyWith, and immutable parsed collections. Fix inherited primary-field constraints and generated-name shadowing, with compile/runtime regressions.
  • Align SDK constraints, dependencies, CI, documentation, and generated examples. Simplify emitter paths and update API auditing for the new Dart syntax.

Toolchain and migration

Uses the approved Flutter 3.50.0-0.1.pre / Dart 3.14.0-315.1.beta toolchain, not unavailable stable releases. Augmentations still require experiment flags. Consumers remove generated mixins and handwritten parsing/schema members; the single .g.dart part remains. A token-aware formatter workaround preserves augmentation declarations.

Validation

  • Strict workspace analysis and authored formatting: clean (284 files).
  • Generator migration suite plus corrected reruns; final augmentation/emitter regressions: 49 passed, with a passing real build/runtime and incremental-regeneration fixture.
  • Follow-up verification: 488 tests passed; 4 credential-dependent Firebase tests skipped. Earlier core/adapter suites and Chrome/Flutter smoke checks also passed.
  • Example regeneration: 18 outputs; git diff --check: clean.
  • Clean-tree publish dry run: all 5 packages passed with zero warnings.

Replace class-first mixins and handwritten forwarding members with augmentations, support primary constructors, and align the workspace toolchain, documentation, and CI.

Preserve inherited validation, isolate generated names from model scope, and update dependency and API-audit tooling with regression coverage.

BREAKING CHANGE: requires the approved Flutter 3.50.0 / Dart 3.14 prerelease toolchain and the augmentations experiment. Class-first models must remove generated mixins and handwritten parsing/schema forwarders.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-18T19:45:35.468273Z e6f6b27 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

leoafarias and others added 5 commits October 18, 2026 15:41
…hecks

Report the class when generated code is neither final nor sealed. Require
the full super-parameter id schema, and describe augmentation-based
class-first generation in the example.

Co-authored-by: Leo Farias <[email protected]>

This branch has not been deployed

No deployments
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.

2 participants