fix(deps): update dependency source_gen to v4 #12
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.
Note
Mend has cancelled the proposed renaming of the Renovate GitHub app being renamed to
mend[bot]
.This notice will be removed on 2025-10-07.
This PR contains the following updates:
^1.2.2
->^4.0.0
Release Notes
dart-lang/source_gen (source_gen)
v4.0.1
Compare Source
analyzer: '>=8.1.1 <9.0.0'
.build: '>=3.0.0 <5.0.0'
.v4.0.0
Compare Source
TypeChecker.fromRuntime
, useTypeChecker.typeNamed
instead. This removes all use ofdart:mirror
, sobuilders using
source_gen
can be AOT compiled for better performance.// GENERATED FILE
comments on the first line.v3.1.0
Compare Source
dart:mirrors
: deprecateTypeChecker.fromRuntime
.It will be removed in version
4.0.0
. AddTypeChecker.typeNamed
which isthe recommended replacement.
dart:mirrors
: addinPackage
andinSdk
parametersto
GenerateForAnnotation
. These will start being used in version4.0.0
when it switches to
TypeChecker.typeNamed
.InvalidGenerationSource
support forFragment
,ElementDirective
andAnnotatable
.analyzer: '>=7.4.0 <9.0.0'
.v3.0.0
Compare Source
element2
APIs inanalyzer
. Builders thatdo resolution need to switch to the new API, see
https://github.com/dart-lang/sdk/blob/main/pkg/analyzer/doc/element_model_migration_guide.md.
For questions please use https://github.com/dart-lang/build/discussions.
and directives. If you use
TypeChecker().annotatedWith()
, see alsothe new
TypeChecker().libraryDirectivesAnnotatedWith()
. If you useGeneratorForAnnotation
see the newgenerateForAnnotatedDirective
.build: ^3.0.0
annotation names such as
override
,Deprecated
, andpragma
.v2.0.0
Compare Source
formatOutput
function to accept a languageversion parameter.
default (previously it would apply the single cascades statements fix). The
new formatter does not support applying fixes.
GeneratorForAnnotation.generateForAnnotatedElement
.analyzer: '>=6.9.0 <8.0.0'
package:dart_style
LibraryBuilder
,PartBuilder
, andSharedPartBuilder
now take an optionalwriteDescriptions
boolean. When set tofalse
, headers and generatordescriptions for the files will not be included in the builder output.
//dart format width=80
comments in files generated by aLibraryBuilder
orPartBuilder
and formatted with the default callback.Configuration
📅 Schedule: Branch creation - "after 9pm,before 6am" in timezone Africa/Johannesburg, Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.