Skip to content

Conversation

@davidmorgan
Copy link
Collaborator

No description provided.

@davidmorgan davidmorgan requested a review from kevmoo September 5, 2025 09:43
@kevmoo kevmoo merged commit d95430c into google:master Sep 5, 2025
18 checks passed
vkorencik pushed a commit to TypeSoft-Ltd/json_serializable.dart that referenced this pull request Sep 11, 2025
fujidaiti pushed a commit to fujidaiti/embed.dart that referenced this pull request Oct 13, 2025
Allow
```yaml
  build: '>=3.0.0 <5.0.0'
  source_gen: '>=3.1.0 <5.0.0'
```

This change is once again inspired by a [PR made to
`json_serializable`](google/json_serializable.dart#1525).

I've had to silence some occurrences of the `deprecated_member_use` lint
in order to maintain compatibility with `build` version `3.x` and
`source_gen` version `3.x`. Once we are ready to force downstream users
to use versions `4.x`, the deprecated members can be replaced by their
actual replacements (for example `Element2` back to `Element` as
outlined in the [element model migration guide of the `analyzer`
package](https://github.com/dart-lang/sdk/blob/main/pkg/analyzer/doc/element_model_migration_guide.md)).

As far as I can tell, this shouldn't be a breaking change, therefore
bumping the version to `1.6.1` would be enough in case only this PR
would be included in the next release.

Let's hope that the dust around these `build_runner` related major
version changes settles soon, so I don't have to continue making these
PRs ;)
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