Skip to content

Fix Dart 3.10 dot-shorthand compatibility in stacked_generator#65

Merged
FilledStacks merged 6 commits intomainfrom
aymen/fix-dart-3-10-dot-shorthand
Feb 27, 2026
Merged

Fix Dart 3.10 dot-shorthand compatibility in stacked_generator#65
FilledStacks merged 6 commits intomainfrom
aymen/fix-dart-3-10-dot-shorthand

Conversation

@Eimen2018
Copy link
Collaborator

@Eimen2018 Eimen2018 commented Feb 27, 2026

Summary

  • migrate generator core to analyzer 8 / source_gen 4 APIs required for modern Dart toolchains
  • fix forms generation to sanitize executable references so we never emit invalid leading-dot symbols (for example, .validator)
  • align logger/get_it behavior and update tests for current dependency/runtime behavior
  • stabilize brittle snapshot-style tests to assert behavior where formatting-only differences were causing failures

Validation

  • dart analyze (no errors/warnings; infos only)
  • dart test (passes in packages/generator)
  • external repro for dot-shorthand issue using Dart 3.10 syntax now succeeds with local patched generator (dart run build_runner build -d)

Commits

  1. chore(generator): migrate core to analyzer 8/source_gen 4 for Dart 3.10
  2. fix(forms): sanitize generated executable refs for dot-shorthand syntax
  3. test(generator): stabilize suites for current analyzer/get_it/logger toolchain

Refs: Stacked-Org/stacked#1180

@github-actions
Copy link

LCOV of commit e41f8ca during Test Package #195

Summary coverage rate:
  lines......: 64.8% (1618 of 2497 lines)
  functions..: no data found
  branches...: no data found

Files changed coverage rate: n/a

Full coverage report

@Eimen2018 Eimen2018 marked this pull request as ready for review February 27, 2026 10:25
Copy link
Contributor

@FilledStacks FilledStacks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Happy to see they removed the name3 property again.

@FilledStacks FilledStacks merged commit 98c776c into main Feb 27, 2026
1 check passed
@FilledStacks FilledStacks deleted the aymen/fix-dart-3-10-dot-shorthand branch February 27, 2026 10:30
@FilledStacks
Copy link
Contributor

🎉 This PR is included in version 1.6.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants