Repository navigation
package:build_runner v2.14.0
·
290 commits
to master
since this release
- Performance: further improvements to management of files for analysis
for 2x faster incremental builds. - Performance: default to AOT compilation for commands other than
run. This
costs more initial startup time but gives faster builds afterwards. Fall back
to JIT if the compile fails due to use ofdart:mirrors. Use the
--force-jitflag if you want the old default JIT builder compile. Use the
--force-aotflag to turn off the fallback to JIT compile. - Add support for
asset:scheme to the--build-filterflag. It is like
package:but for the whole package, not justlib. For example,
package:a/b.dartis the same asasset:a/lib/b.dart. - Paths specified using
--build-filterwhen using the--workspaceflag now
apply to the current package, not the workspace root. Other packages must
be referred to usingpackage:orasset:schemes. - Add OSC 8 hyperlinks for logged input paths.
- Better handling of deletions of files during the build: if the file is not
needed ignore the deletion, if it's needed try to use the cached version,
as a last resort restart the build. - Defer deletions of files by
build_runneruntil the build is complete. Don't
write files unless the contents changed. These reduce unnecessary work by
tools that watch the filesystem. --workspaceflag is no longer experimental, remove the warning.- Add
--workspaceflag tocleancommand, use it to clear the cache used for
a--workspacebuild. - Add new command
stop: rundart run build_runner stopto terminate a
runningwatchorservecommand in the current package or workspace. If
a build is in progress, the build will complete first. - Add locking:
build_runnerwill wait for any already-running command before
running. If there is an already-runningwatchorservecommand, it will be
closed after the currently-running build, as if you ran the new
dart run build_runner stop. - Note: the
daemoncommand ignoresbuild_runner stopand ignores the new
locking as it uses its own locking. - Bug fix: small correctness fix in input tracking.
- Bug fix: fix corner case that caused missing outputs with
build_runner serve
when directories were specified with a port, for example
build_runner serve web:0. Before the fix, non-optional outputs to cache
underwebwould be skipped unless they were used by another build step.
With the fix, all non-optional outputs underwebare built and served. - Bug fix: when building with
--workspacegenerate the entrypoint and compiled
artifacts under the workspace root instead of the current package root. - Remove
code_builderdependency so builders can use any version of it.