Skip to content

v1.1.0

Compare
Choose a tag to compare
@jbedard jbedard released this 27 Aug 04:22
· 963 commits to main since this release
e0c2462

This release includes new features, fixes, performance improvements and memory usage optimizations.

Thanks to @vpanta for helping us debug memory usage issues for this release and to all of our contributors.

Thanks to lots of work from @fmeum in Bazel upstream, this release can now be used with RBE. There's still one change not yet landed in Bazel upstream, so you have to use our fork for right now. https://github.com/aspect-build/rules_js/blob/be053d9980e91dc6303fdb0a040d5c4ea656f74d/.github/workflows/ci.yaml#L56 is our critical line that selects our fork when running RBE builds on CI.

If you're also using one of our downstream rule sets such as rules_ts, you'll also need to update to the latest version of those for compatibility with this release. At time of writing these are,

WORKSPACE snippet:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "aspect_rules_js",
    sha256 = "25bcb082d49616ac2da538bf7bdd33a9730c8884edbec787fec83db07e4f7f16",
    strip_prefix = "rules_js-1.1.0",
    url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v1.1.0.tar.gz",
)

load("@aspect_rules_js//js:repositories.bzl", "rules_js_dependencies")

rules_js_dependencies()

load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")

nodejs_register_toolchains(
    name = "nodejs",
    node_version = DEFAULT_NODE_VERSION,
)

load("@aspect_rules_js//npm:npm_import.bzl", "npm_translate_lock")

npm_translate_lock(
    name = "npm",
    pnpm_lock = "//:pnpm-lock.yaml",
    verify_node_modules_ignored = "//:.bazelignore",
)

load("@npm//:repositories.bzl", "npm_repositories")

npm_repositories()

What's Changed

  • docs: stardoc for js_image_layer by @alexeagle in #373
  • feat: always make a @pnpm workspace by @alexeagle in #377
  • refactor: cleanup bzl_library in js_image by @alexeagle in #380
  • feat: add expand_template rule that support stamp var substitutions; not yet part of the public API by @gregmagolan in #384
  • fix: run lifecycle hooks outside of sandbox by default by @gregmagolan in #389
  • fix: provide runfiles of all transitives from npm_link_package_store by @gregmagolan in #392
  • feat: add node_modules/.bin binary files support to npm_translate_lock, npm_import and npm_link_package_store by @gregmagolan in #390
  • fix: fix relative paths of bins in lifecycle hooks for @Scoped packages by @jfirebaugh in #388
  • fix: write lifecycle hook enable flag & custom postinstall to aspect_rules_js.json instead of overwriting package.json by @gregmagolan in #393
  • fix: fix node_modules/.bin script pathing when pnpm workspace is not at the root of the WORKSPACE by @gregmagolan in #395
  • fix: add error handling for failure of pnpm import by @alexeagle in #398
  • fix: handle nested symlinks via relative directory symlinks in sandbox by @gregmagolan in #404
  • fix: add link_workspace to npm_translate_lock to support change in repository_ctx label workspace_name behavior in bazel 5.3.0 by @gregmagolan in #405
  • chore(deps): update dependency @types/node to v16.11.54 by @renovate in #382
  • chore(deps): update dependency bazel to v5.3.0 by @renovate in #403
  • chore: add CI on RBE by @alexeagle in #400
  • feat: demonstrate stamping the version into package.json by @alexeagle in #402
  • fix: use depsets instead of lists in rules_js providers by @gregmagolan in #413
  • feat: add data attribute to npm_package for specifying runtime/linktime directory npm dependencies by @gregmagolan in #414
  • fix(deps): update dependency uvu to v0.5.6 by @renovate in #415

Full Changelog: v1.0.0...v1.1.0