Skip to content

chore(deps): update dependency build_test to v3 #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 16, 2025

This PR contains the following updates:

Package Type Update Change
build_test (source) dev_dependencies major ^2.2.3 -> ^3.0.0

Release Notes

dart-lang/build (build_test)

v3.3.0

Compare Source

  • Read build configs using AssetReader so they're easier to test: you can now
    pass in build.yaml like any other asset.
  • Bug fix: don't crash when a builder logs during a testBuilder or
    resolveSource call outside a test.
  • Remove unused deps: async, convert.
  • Remove unused dev_deps: collection.
  • Files loaded from disk for resolveSources and testBuilders that are in
    the same package as explicitly-passed test inputs are now loaded if they
    match the default globs, such as lib/**, instead of ignored. This more
    closely matches version 2 behavior.
  • Use build 3.0.0.
  • Use build_resolvers 3.0.0.

v3.2.1: package:build_test v3.2.1

Compare Source

  • Files loaded from disk for resolveSources and testBuilders that are in
    the same package as explicitly-passed test inputs are now loaded if they
    match the default globs, such as lib/**, instead of ignored. This more
    closely matches version 2 behavior.

v3.2.0

Compare Source

  • Fixes when passing a readerWriter to testBuilders: don't count initial
    assets as outputs; do set up packages for initial assets; only apply builders
    to packages mentioned in sourceAssets.
  • Add readAllSourcesFromFilesystem parameter to resolveSources. Set it to
    true to make the method behave as it did in build_test 2.2.0.
  • Fix to resolveSources error handling.

v3.1.1: package:build_test v3.1.1

Compare Source

  • Bug fix: stop parsing testBuilder asset paths as globs.

v3.1.0

Compare Source

  • Add inputsTrackedFor and resolverEntrypointsTrackedFor to
    ReaderWriterTesting, so tests can determine what each build step
    read and resolved.
  • Add loadIsolateSources to ReaderWriterTesting. It loads all real
    sources visible to the test into memory.
  • testBuilder default onLog now works outside of tests: it falls
    back to print instead of crashing.
  • Update README.md.

v3.0.0

Compare Source

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.

Configuration

📅 Schedule: Branch creation - "after 9pm,before 6am" in timezone Europe/Zurich, 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot enabled auto-merge (squash) June 16, 2025 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants