Skip to content

Releases: aran/rules_dart

v0.7.3

Choose a tag to compare

@github-actions github-actions released this 15 Oct 22:55
v0.7.3
2f79367

Add to your MODULE.bazel file:

bazel_dep(name = "rules_dart", version = "0.7.3")

0.7.3

Breaking

  • Removed injectable_library
  • Removed Gazelle's @InjectableInit support

Added

  • pub.from_lock builds package:webcrypto 0.6.1's native library
  • dart_test takes env, expanding $(rlocationpath) against data, and env_inherit

Changed

  • Code generators run on analyzer 14.5, package_config 3 and copy_with_extension_gen 18

Fixed

  • dart_binary and dart_test outputs no longer depend on the directory they were built in
  • dart_binary with code assets sees dart.vm.product as true in exe and aot-snapshot modes
  • dart_wasm_binary outputs the .mjs loader, .support.js and source map beside the .wasm
  • The pub extension works from a use_extension(..., dev_dependency = True) usage
  • A root lock with newer versions than rules_dart's own tool deps no longer fails the build

Full Changelog: v0.7.2...v0.7.3

v0.7.2

Choose a tag to compare

@github-actions github-actions released this 06 Oct 21:45
v0.7.2
3b0470c

Add to your MODULE.bazel file:

bazel_dep(name = "rules_dart", version = "0.7.2")

0.7.2

Added

  • dart_binary(record_use = True) provides the recorded @RecordUse uses as DartRecordedUsesInfo
  • dart_link_hook runs packages' hook/link.dart and provides their data assets
  • dart_library.link_hook names a package's hook/link.dart
  • A pub package shipping only hook/link.dart no longer fails a dart_binary or dart_test
  • dart_link_hook_actions in utils.bzl runs link hooks from inside another rule

Changed

  • Default Dart SDK is 3.13.5

Fixed

  • dart_test starts in the runfiles workspace root, so data files open by workspace-relative path
  • dart_test on Windows opens data files by workspace-relative path

Full Changelog: v0.7.1...v0.7.2

v0.7.1

Choose a tag to compare

@github-actions github-actions released this 02 Oct 04:41
v0.7.1
073b8f2

Add to your MODULE.bazel file:

bazel_dep(name = "rules_dart", version = "0.7.1")

0.7.1

Fixed

  • dart_analyze judges sdk_version_since against the package's language_version
  • dart_analyze assumes the toolchain's SDK version for packages with no language_version

Full Changelog: v0.7.0...v0.7.1

v0.7.0

Choose a tag to compare

@github-actions github-actions released this 30 Sep 04:19
v0.7.0
e8804a2

Add to your MODULE.bazel file:

bazel_dep(name = "rules_dart", version = "0.7.0")

0.7.0

Breaking

  • dart_test runs package:test tests under its runner; --test_filter and shard_count work
  • dart_test reports each package:test case in Bazel's test report
  • dart_test is limited by Bazel's timeout rather than package:test's 30 s default
  • dart_test requires package:test directly in deps when the test uses it
  • dart_test fails a test without package:test when given --test_filter or shard_count
  • Removed dart_analyze_test; the dart_analyze aspect analyzes each target bazel test builds
  • dart_analysis_config lists a repository's analysis_options.yaml; each file uses its nearest
  • no-dart-analyze tag skips a target's analysis
  • dart_fix fixes only its target's own files, with the options the aspect uses
  • Removed dart_fix.options and dart_fix.lib; set @rules_dart//dart:analysis_config
  • Removed dart_format_test; the dart_analyze aspect's dart_format group checks formatting
  • The format check uses each file's nearest listed options and its package's language version
  • no-dart-format tag skips a target's format check

Added

  • dart_format formats workspace files under bazel run with the settings the check uses
  • Gazelle generates dart_analysis_options and the root dart_analysis_config
  • Executable rules accept package, package_name and language_version, as dart_library does
  • dart_analysis_test checks named targets bazel test //... cannot reach

Fixed

  • Successful dart_binary builds and Dart analysis and format checks print nothing
  • The dart extension prints a note only when the root module's dart_version is overridden

Full Changelog: v0.6.6...v0.7.0

v0.6.6

Choose a tag to compare

@github-actions github-actions released this 23 Sep 23:27
v0.6.6
f4b839e

Add to your MODULE.bazel file:

bazel_dep(name = "rules_dart", version = "0.6.6")

Full Changelog: v0.6.5...v0.6.6

v0.6.5

Choose a tag to compare

@github-actions github-actions released this 22 Sep 23:07
7acbd87

Add to your MODULE.bazel file:

bazel_dep(name = "rules_dart", version = "0.6.5")

Full Changelog: v0.6.4...v0.6.5

v0.6.4

Choose a tag to compare

@github-actions github-actions released this 16 Sep 18:05
f477793

Add to your MODULE.bazel file:

bazel_dep(name = "rules_dart", version = "0.6.4")

Full Changelog: v0.6.3...v0.6.4

v0.6.3

Choose a tag to compare

@github-actions github-actions released this 09 Sep 23:43
836f85b

Add to your MODULE.bazel file:

bazel_dep(name = "rules_dart", version = "0.6.3")

Full Changelog: v0.6.2...v0.6.3

v0.6.2

Choose a tag to compare

@github-actions github-actions released this 03 Sep 04:53
bb141e9

Add to your MODULE.bazel file:

bazel_dep(name = "rules_dart", version = "0.6.2")

Full Changelog: v0.6.1...v0.6.2

v0.6.1

Choose a tag to compare

@github-actions github-actions released this 03 Sep 01:06
137dde6

Add to your MODULE.bazel file:

bazel_dep(name = "rules_dart", version = "0.6.1")

Full Changelog: v0.6.0...v0.6.1