AssetId
that is not a Dart library with libraryFor
to fit the contract expressed by the doc comment on Resolver
.You can now resolve additional libraries other than those imported by the primary entrypoint.
isLibrary
and libraryFor
methods on Resolver
, which will now resolve the provided asset if it is not already resolved.resolver.libraries
and resolver.findLibraryByName
if new libraries are discovered.Note: If using build_runner
then this will also require you to upgrade to version 4.2.0
of build_runner_core
.
hide
declaration to a show
declaration to support a package:analyzer
change.package:analyzer
version 0.39.0
.Check the build_resolvers version as a part of sdk summary invalidation.
Add flutters embedded sdk to the summary if available. This has the effect of making dart:ui
and any future libraries available if using the flutter sdk instead of the dart sdk.
Check the analyzer path before reading cached summaries in addition to the SDK version.
Update the AnalysisResolvers
class to no longer use the SDK summary that is shipped with the SDK by default. This is not guaranteed compatible with analyzer versions shipped on pub and should not be used by any non-sdk code.
In order to fix this the AnalysisResolvers
class now takes an optional method that returns the path to an arbitrary SDK summary. By default it will lazily generate a summary under .dart_tool/build_resolvers
which is invalidated based on the Platform.version
from dart:io
.
build
version 1.2.x.resolveSource
.package:analyzer
to <0.37.0
.dart-ext:
imports would cause the resolver to fail. These uris will now be ignored.BuildAssetUriResolver.restoreAbsolute
never returns null.AnalysisDriver
. There are behavior changes which may be breaking. The LibraryElement
instances returned by the resolver will now:context
fields.session
fields.Source
instances with different URIs than before.importedLibraries
getter. You can instead use the imports
getter to see all the imports.build
1.1.0
and add assetIdForElement
.package:analyzer
to <0.35.0
.package:analyzer
to <0.34.0
.build
to <1.1.0
.build
to <0.12.9
.null
.new
keyword for a working release on Dart 1 VM.<3.0.0
.AnalysisOptions
.package:analyzer
0.32.0
.firstWhere(orElse)
for compatibility with the SDK dev.45reset
call to indicate that a complete build is finished.analyzer
package.code_transformers
with a near-identical implementation.