Skip to content

Releases: dart-lang/build

package:build_resolvers v2.5.2

18 Jun 11:34
3ff3de4
Compare
Choose a tag to compare
  • Simplify warnings for outdated analyzer.

package:build v2.5.2

18 Jun 11:34
3ff3de4
Compare
Choose a tag to compare
  • Use build_runner_core 9.1.0.

package:build_runner_core v9.0.1

17 Jun 11:39
d043047
Compare
Choose a tag to compare
  • Don't log stack traces for subclasses of Exception.
  • Bug fix: don't run builders with multiple outputs once per output.

package:build_runner v2.5.1

17 Jun 11:39
d043047
Compare
Choose a tag to compare
  • Don't log stack traces for subclasses of Exception.
  • Bug fix: don't run builders with multiple outputs once per output.

package:build_resolvers v2.5.1

17 Jun 11:39
d043047
Compare
Choose a tag to compare
  • Use build_runner_core 2.5.1.

package:build v2.5.1

17 Jun 11:39
d043047
Compare
Choose a tag to compare
  • Use build_runner_core 9.0.1.

package:build_test v3.0.0

16 Jun 07:26
db6c413
Compare
Choose a tag to compare

Breaking changes:

  • Breaking change: removed tearDown parameter to resolveSources for
    keeping resolvers across multiple tests.
  • Breaking change: tests must use new TestReaderWriter instead of
    InMemoryAssetReader and InMemoryAssetWriter.
  • Breaking change: testBuilder no longer accepts a reader and a writer.
    Instead it returns a TestBuilderResult with the TestReaderWriter
    that was used.
  • Breaking change: resolveSources no longer automatically reads non-input
    files from the filesystem; specify explicitly which non-input files the
    test should read in nonInputsToReadFromFilesystem.
  • Breaking change: remove MultiAssetReader. Load the source into one
    TestReaderWriter instead.
  • Breaking change: TestReaderWriter.assetsRead does not take into account
    details of the build, it's just what was actually read. Use
    TestReaderWriter.inputsTracked for what was recorded as an input. Note that
    resolver entrypoints are now tracked separately from inputs, see
    TestReaderWriter.resolverEntrypointsTracked.
  • Breaking change: Remove StubAssetReader. Use TestReaderWriter instead.

Other user-visible changes:

  • resolveSources and testBuilder now do a full build_runner build, with
    configuration as much as possible based on the some parameters.
  • Add testBuilders to run a test build with multiple builders.
  • Add optionalBuilders to testBuilders to have some builders be optional.
  • Add visibleOutputBuilders to testBuilders to have some builders write
    their output next to their inputs.
  • Add testingBuilderConfig to testBuilders to control builder config
    override.
  • Add resolvers parameter to testBuild and testBuilders.
  • Add readerWriter and enableLowResourceMode parameters to testBuild
    and testBuilders.
  • TestReaderWriter writes and deletes are notified to FakeWatcher.
  • TestReaderWriter tracks assetsWritten.
  • Support checks on reader state after a build action in resolveSources.

Versions:

  • Bump the min SDK to 3.7.0.
  • Use build_runner_core 9.0.0.

Internal changes:

  • Start using package:build/src/internal.dart.
  • Refactor BuildCacheReader to BuildCacheAssetPathProvider.
  • Refactor FileBasedAssetReader and FileBasedAssetWriter to ReaderWriter.

package:build_runner_core v9.0.0

16 Jun 07:29
db6c413
Compare
Choose a tag to compare
  • Improved performance for large builds. More performance improvements
    will follow, if your workflow is affected by slow build_runner performance
    then please consider sharing details at
    https://github.com/dart-lang/build/discussions.
  • Improved logging: show what builders are running and, for long-running
    builders, where the time is spent.

Breaking changes:

  • Breaking: refactor OverridableEnvironment and IOEnvironment into
    BuildEnvironment
  • Breaking: add deleteDirectory to RunnerAssetWriter, make delete
    return Future<void>, remove deprecated OnDelete.

Versions:

  • Bump the min SDK to 3.7.0.
  • Use build_test 3.0.0.

Internal changes:

  • Fix crash when running on assets ending in a dot.
  • Start using `package:build/src/internal.dart'.
  • Refactor PathProvidingAssetReader to AssetPathProvider.
  • Refactor MultiPackageAssetReader to internal AssetFinder.
  • FinalizedReader no longer implements AssetReader.
  • Add internal Filesystem that backs AssetReader and AssetWriter
    implementations.
  • Refactor CachingAssetReader to FilesystemCache.
  • Refactor BuildCacheReader to GeneratedAssetHider.
  • Refactor FileBasedAssetReader and FileBasedAssetWriter to ReaderWriter.
  • Move BuildStepImpl to build_runner_core, use SingleStepReader directly.
  • Remove BuildCacheWriter, functionality is handled by AssetPathProvider.
  • Refactor SingleStepReader to SingleStepReaderWriter, incorporating
    AssetWriterSpy functionality.
  • Add NodeType to AssetNode, remove subtypes. Make mutations explicit.
  • Use built_value for AssetNode and related types, and for serialization.
  • Add details of what changed and what is built to --verbose logging.
  • New change detection algorithm.
  • Add reportUnusedAssetsForInput to BuildOptions, to listen for when
    a builder notifies that an asset is unused.
  • Use LibraryCycleGraphLoader to load transitive deps for analysis.
  • Track post process builder outputs separately from the main graph Instead of
    in postProcessAnchor nodes.
  • Compute outputs as needed instead of storing them in the asset graph.
  • Check build options for changes in the phase setup instead of storing them
    in the asset graph.
  • Refactor invalidation to track current build progress in Build instead of
    in the asset graph.
  • Track resolver dependencies as library cycle graphs.
  • Ignore deprecated analyzer API usages.
  • Store errors in the asset graph instead of separate files.

package:build_runner v2.5.0

16 Jun 07:31
db6c413
Compare
Choose a tag to compare

User-visible changes:

  • Improved performance for large builds. More performance improvements
    will follow, if your workflow is affected by slow build_runner performance
    then please consider sharing details at
    https://github.com/dart-lang/build/discussions.
  • Improved logging: show what builders are running and, for long-running
    builders, where the time is spent.

Versions:

  • Bump the min SDK to 3.7.0.
  • Use build_test 3.0.0.
  • Use build_runner_core 9.0.0.

Internal changes:

  • Start using `package:build/src/internal.dart'.
  • Refactor MultiPackageAssetReader to internal AssetFinder.
  • FinalizedReader no longer implements AssetReader.
  • Refactor CachingAssetReader to FilesystemCache.
  • Refactor FileBasedAssetReader and FileBasedAssetWriter to ReaderWriter.
  • Remove OnDeleteWriter, add functionality to ReaderWriter.
  • Add NodeType to AssetNode, remove subtypes. Make mutations explicit.
  • Use built_value for AssetNode and related types.
  • Add details of what changed and what is built to --verbose logging.
  • Compute outputs as needed instead of storing them in the asset graph.
  • Refactor invalidation to track current build progress in Build instead of
    in the asset graph.
  • Remove completeBuild from RunnerAssetWriter as it's no longer needed.

package:build_resolvers v2.5.0

16 Jun 07:31
db6c413
Compare
Choose a tag to compare

User-visible changes:

  • Improved performance for large builds. More performance improvements
    will follow, if your workflow is affected by slow build_runner performance
    then please consider sharing details at
    https://github.com/dart-lang/build/discussions.
  • Improved logging: show what builders are running and, for long-running
    builders, where the time is spent.
  • Bug fix: fix delay on shutdown for fast builds when the "analyzer out of
    date" warning is displayed.

Versions:

  • Bump the min SDK to 3.7.0.
  • Use build_test 3.0.0.
  • Use build_runner_core 9.0.0.
  • Start using package:build/src/internal.dart.

Internal changes:

  • Switch BuildAssetUriResolver dependency crawl to an iterative
    algorithm, preventing stack overflows.
  • Move BuildStepImpl to build_runner_core, use SingleStepReader directly.
  • Stop building transitive_digest files by default.
  • Use LibraryCycleGraphLoader to load transitive deps for analysis.
  • Track resolver dependencies as library cycle graphs.
  • Ignore deprecated analyzer API usages.