aspect-build/rules_js (aspect_rules_js)
### [`v1.41.2`](https://togithub.com/aspect-build/rules_js/releases/tag/v1.41.2)
[Compare Source](https://togithub.com/aspect-build/rules_js/compare/v1.41.1...v1.41.2)
Many companies are successfully building with rules_js.
If you're getting value from the project, please let us know!
Just comment on our [Adoption Discussion](https://togithub.com/aspect-build/rules_js/discussions/1000).
#### Using Bzlmod with Bazel 6:
Add to your `MODULE.bazel` file:
```starlark
bazel_dep(name = "aspect_rules_js", version = "1.41.2")
####### Node.js version #########
### By default you get the node version from DEFAULT_NODE_VERSION in @rules_nodejs//nodejs:repositories.bzl
### Optionally you can pin a different node version:
bazel_dep(name = "rules_nodejs", version = "5.8.2")
node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node")
node.toolchain(node_version = "16.14.2")
#################################
npm = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm", dev_dependency = True)
npm.npm_translate_lock(
name = "npm",
pnpm_lock = "//:pnpm-lock.yaml",
verify_node_modules_ignored = "//:.bazelignore",
)
use_repo(npm, "npm")
```
#### Using WORKSPACE
Paste this snippet into your `WORKSPACE` file:
```starlark
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_js",
sha256 = "bc9b4a01ef8eb050d8a7a050eedde8ffb1e45a56b0e4094e26f06c17d5fcf1d5",
strip_prefix = "rules_js-1.41.2",
url = "https://github.com/aspect-build/rules_js/releases/download/v1.41.2/rules_js-v1.41.2.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,
)
### For convenience, npm_translate_lock does this call automatically.
### Uncomment if you don't call npm_translate_lock at all.
#load("@bazel_features//:deps.bzl", "bazel_features_deps")
#bazel_features_deps()
load("@aspect_rules_js//npm:repositories.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()
```
To use rules_js with bazel-lib 2.x, you must additionally register the coreutils toolchain.
```starlark
load("@aspect_bazel_lib//lib:repositories.bzl", "register_coreutils_toolchains")
register_coreutils_toolchains()
```
#### What's Changed
- chore: bump minimum bazel-lib version to 1.42.3 by [@gregmagolan](https://togithub.com/gregmagolan) in [https://github.com/aspect-build/rules_js/pull/1672](https://togithub.com/aspect-build/rules_js/pull/1672)
**Full Changelog**: https://github.com/aspect-build/rules_js/compare/v2.0.0-alpha.2...v1.41.2
### [`v1.41.1`](https://togithub.com/aspect-build/rules_js/releases/tag/v1.41.1)
[Compare Source](https://togithub.com/aspect-build/rules_js/compare/v1.41.0...v1.41.1)
Many companies are successfully building with rules_js.
If you're getting value from the project, please let us know!
Just comment on our [Adoption Discussion](https://togithub.com/aspect-build/rules_js/discussions/1000).
#### Using Bzlmod with Bazel 6:
Add to your `MODULE.bazel` file:
```starlark
bazel_dep(name = "aspect_rules_js", version = "1.41.1")
####### Node.js version #########
### By default you get the node version from DEFAULT_NODE_VERSION in @rules_nodejs//nodejs:repositories.bzl
### Optionally you can pin a different node version:
bazel_dep(name = "rules_nodejs", version = "5.8.2")
node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node")
node.toolchain(node_version = "16.14.2")
#################################
npm = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm", dev_dependency = True)
npm.npm_translate_lock(
name = "npm",
pnpm_lock = "//:pnpm-lock.yaml",
verify_node_modules_ignored = "//:.bazelignore",
)
use_repo(npm, "npm")
```
#### Using WORKSPACE
Paste this snippet into your `WORKSPACE` file:
```starlark
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_js",
sha256 = "85fe123d25f91a5cf53d3767da72ed4b490ccfe50f183b1774bde3cf89e04b13",
strip_prefix = "rules_js-1.41.1",
url = "https://github.com/aspect-build/rules_js/releases/download/v1.41.1/rules_js-v1.41.1.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,
)
### For convenience, npm_translate_lock does this call automatically.
### Uncomment if you don't call npm_translate_lock at all.
#load("@bazel_features//:deps.bzl", "bazel_features_deps")
#bazel_features_deps()
load("@aspect_rules_js//npm:repositories.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()
```
To use rules_js with bazel-lib 2.x, you must additionally register the coreutils toolchain.
```starlark
load("@aspect_bazel_lib//lib:repositories.bzl", "register_coreutils_toolchains")
register_coreutils_toolchains()
```
#### What's Changed
- chore: enable branch_freshsness rebase strategy by [@gregmagolan](https://togithub.com/gregmagolan) in [https://github.com/aspect-build/rules_js/pull/1611](https://togithub.com/aspect-build/rules_js/pull/1611)
- chore: run all e2e tests on CI by [@gregmagolan](https://togithub.com/gregmagolan) in [https://github.com/aspect-build/rules_js/pull/1613](https://togithub.com/aspect-build/rules_js/pull/1613)
- test: separate e2e bzlmod vs workspace repository rules by [@jbedard](https://togithub.com/jbedard) in [https://github.com/aspect-build/rules_js/pull/1612](https://togithub.com/aspect-build/rules_js/pull/1612)
- perf: reduce large array concatenation by [@jbedard](https://togithub.com/jbedard) in [https://github.com/aspect-build/rules_js/pull/1627](https://togithub.com/aspect-build/rules_js/pull/1627)
- refactor: simplify bzlmod tag implementations by [@jbedard](https://togithub.com/jbedard) in [https://github.com/aspect-build/rules_js/pull/1629](https://togithub.com/aspect-build/rules_js/pull/1629)
- refactor: move npm_import repository rule template into util method by [@jbedard](https://togithub.com/jbedard) in [https://github.com/aspect-build/rules_js/pull/1628](https://togithub.com/aspect-build/rules_js/pull/1628)
- perf: construct single list of linked packages by [@jbedard](https://togithub.com/jbedard) in [https://github.com/aspect-build/rules_js/pull/1630](https://togithub.com/aspect-build/rules_js/pull/1630)
- chore: tell renovate to stfu during work hours by [@gregmagolan](https://togithub.com/gregmagolan) in [https://github.com/aspect-build/rules_js/pull/1632](https://togithub.com/aspect-build/rules_js/pull/1632)
- chore: bring in llvm toolchain so we can update //js/private/test/image snapshots on darwin by [@gregmagolan](https://togithub.com/gregmagolan) in [https://github.com/aspect-build/rules_js/pull/1638](https://togithub.com/aspect-build/rules_js/pull/1638)
- fix: set default internal npm_translate_lock state by [@jbedard](https://togithub.com/jbedard) in [https://github.com/aspect-build/rules_js/pull/1642](https://togithub.com/aspect-build/rules_js/pull/1642)
- chore: disable windows tests on BCR pre-submit by [@gregmagolan](https://togithub.com/gregmagolan) in [https://github.com/aspect-build/rules_js/pull/1644](https://togithub.com/aspect-build/rules_js/pull/1644)
**Full Changelog**: https://github.com/aspect-build/rules_js/compare/v1.41.0...v1.41.1
### [`v1.41.0`](https://togithub.com/aspect-build/rules_js/releases/tag/v1.41.0)
[Compare Source](https://togithub.com/aspect-build/rules_js/compare/v1.40.1...v1.41.0)
Many companies are successfully building with rules_js.
If you're getting value from the project, please let us know!
Just comment on our [Adoption Discussion](https://togithub.com/aspect-build/rules_js/discussions/1000).
#### Using Bzlmod with Bazel 6:
Add to your `MODULE.bazel` file:
```starlark
bazel_dep(name = "aspect_rules_js", version = "1.41.0")
####### Node.js version #########
### By default you get the node version from DEFAULT_NODE_VERSION in @rules_nodejs//nodejs:repositories.bzl
### Optionally you can pin a different node version:
bazel_dep(name = "rules_nodejs", version = "5.8.2")
node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node")
node.toolchain(node_version = "16.14.2")
#################################
npm = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm", dev_dependency = True)
npm.npm_translate_lock(
name = "npm",
pnpm_lock = "//:pnpm-lock.yaml",
verify_node_modules_ignored = "//:.bazelignore",
)
use_repo(npm, "npm")
```
#### Using WORKSPACE
Paste this snippet into your `WORKSPACE` file:
```starlark
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_js",
sha256 = "d6dddd224b27d456820d19b9c23a7bcbe75660a6c040d83e31ba3da4fb1f6888",
strip_prefix = "rules_js-1.41.0",
url = "https://github.com/aspect-build/rules_js/releases/download/v1.41.0/rules_js-v1.41.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,
)
### For convenience, npm_translate_lock does this call automatically.
### Uncomment if you don't call npm_translate_lock at all.
#load("@bazel_features//:deps.bzl", "bazel_features_deps")
#bazel_features_deps()
load("@aspect_rules_js//npm:repositories.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()
```
To use rules_js with bazel-lib 2.x, you must additionally register the coreutils toolchain.
```starlark
load("@aspect_bazel_lib//lib:repositories.bzl", "register_coreutils_toolchains")
register_coreutils_toolchains()
```
#### What's Changed
- chore: restore test that was commented out unintentionally by [@gregmagolan](https://togithub.com/gregmagolan) in [https://github.com/aspect-build/rules_js/pull/1595](https://togithub.com/aspect-build/rules_js/pull/1595)
- chore: bump to Bazel 7.1.1 and Aspect CLI 5.9.24 by [@gregmagolan](https://togithub.com/gregmagolan) in [https://github.com/aspect-build/rules_js/pull/1600](https://togithub.com/aspect-build/rules_js/pull/1600)
- chore: test against latest rules_nodejs release 6.1.0 to ensure backward compat that release with rules_js 1.x by [@gregmagolan](https://togithub.com/gregmagolan) in [https://github.com/aspect-build/rules_js/pull/1602](https://togithub.com/aspect-build/rules_js/pull/1602)
- feat: support rules_nodejs improved toolchain attributes in rules_nodejs 6.1.0 with backward compat for older versions by [@gregmagolan](https://togithub.com/gregmagolan) in [https://github.com/aspect-build/rules_js/pull/1604](https://togithub.com/aspect-build/rules_js/pull/1604)
**Full Changelog**: https://github.com/aspect-build/rules_js/compare/v1.40.1...v1.41.0
### [`v1.40.1`](https://togithub.com/aspect-build/rules_js/releases/tag/v1.40.1)
[Compare Source](https://togithub.com/aspect-build/rules_js/compare/v1.40.0...v1.40.1)
Many companies are successfully building with rules_js.
If you're getting value from the project, please let us know!
Just comment on our [Adoption Discussion](https://togithub.com/aspect-build/rules_js/discussions/1000).
#### Using Bzlmod with Bazel 6:
Add to your `MODULE.bazel` file:
```starlark
bazel_dep(name = "aspect_rules_js", version = "1.40.1")
####### Node.js version #########
### By default you get the node version from DEFAULT_NODE_VERSION in @rules_nodejs//nodejs:repositories.bzl
### Optionally you can pin a different node version:
bazel_dep(name = "rules_nodejs", version = "5.8.2")
node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node")
node.toolchain(node_version = "16.14.2")
#################################
npm = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm", dev_dependency = True)
npm.npm_translate_lock(
name = "npm",
pnpm_lock = "//:pnpm-lock.yaml",
verify_node_modules_ignored = "//:.bazelignore",
)
use_repo(npm, "npm")
```
#### Using WORKSPACE
Paste this snippet into your `WORKSPACE` file:
```starlark
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_js",
sha256 = "d7500d59712accca9622bce723b8ea596b92fb9b4ff4a4dbd77ed353b9d29f34",
strip_prefix = "rules_js-1.40.1",
url = "https://github.com/aspect-build/rules_js/releases/download/v1.40.1/rules_js-v1.40.1.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,
)
### For convenience, npm_translate_lock does this call automatically.
### Uncomment if you don't call npm_translate_lock at all.
#load("@bazel_features//:deps.bzl", "bazel_features_deps")
#bazel_features_deps()
load("@aspect_rules_js//npm:repositories.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()
```
To use rules_js with bazel-lib 2.x, you must additionally register the coreutils toolchain.
```starlark
load("@aspect_bazel_lib//lib:repositories.bzl", "register_coreutils_toolchains")
register_coreutils_toolchains()
```
#### What's Changed
- chore: cleanup JsInfo docstrings by [@gregmagolan](https://togithub.com/gregmagolan) in [https://github.com/aspect-build/rules_js/pull/1553](https://togithub.com/aspect-build/rules_js/pull/1553)
- \[bzlmod] Mark npm extension as reproducible by [@dzbarsky](https://togithub.com/dzbarsky) in [https://github.com/aspect-build/rules_js/pull/1541](https://togithub.com/aspect-build/rules_js/pull/1541)
- chore: upgrade bazel rulesets by [@jbedard](https://togithub.com/jbedard) in [https://github.com/aspect-build/rules_js/pull/1537](https://togithub.com/aspect-build/rules_js/pull/1537)
- refactor: simplify npm_link_all_packages package linking by [@jbedard](https://togithub.com/jbedard) in [https://github.com/aspect-build/rules_js/pull/1550](https://togithub.com/aspect-build/rules_js/pull/1550)
- perf: don't set JsInfo declarations and transitive_declarations in npm_link_package_store by [@gregmagolan](https://togithub.com/gregmagolan) in [https://github.com/aspect-build/rules_js/pull/1554](https://togithub.com/aspect-build/rules_js/pull/1554)
- refactor: remove aspect_rules_js.npm. repo-name logic by [@jbedard](https://togithub.com/jbedard) in [https://github.com/aspect-build/rules_js/pull/1542](https://togithub.com/aspect-build/rules_js/pull/1542)
- refactor: remove extra npm_translate_lock_repo alias target by [@jbedard](https://togithub.com/jbedard) in [https://github.com/aspect-build/rules_js/pull/1543](https://togithub.com/aspect-build/rules_js/pull/1543)
- fix: bump minimum bazel-lib version to 1.42.2 by [@gregmagolan](https://togithub.com/gregmagolan) in [https://github.com/aspect-build/rules_js/pull/1556](https://togithub.com/aspect-build/rules_js/pull/1556)
- chore: hoist more TODOS to 2.0 by [@gregmagolan](https://togithub.com/gregmagolan) in [https://github.com/aspect-build/rules_js/pull/1565](https://togithub.com/aspect-build/rules_js/pull/1565)
- fix: add cannonical_id to npm_import by [@Aghassi](https://togithub.com/Aghassi) in [https://github.com/aspect-build/rules_js/pull/1564](https://togithub.com/aspect-build/rules_js/pull/1564)
- chore: write checked bzl files for both WORKSPACE and bzlmod by [@gregmagolan](https://togithub.com/gregmagolan) in [https://github.com/aspect-build/rules_js/pull/1590](https://togithub.com/aspect-build/rules_js/pull/1590)
- fix: add package_visibility support to npm_translate_lock and npm_import on bzlmod by [@gregmagolan](https://togithub.com/gregmagolan) in [https://github.com/aspect-build/rules_js/pull/1591](https://togithub.com/aspect-build/rules_js/pull/1591)
- chore: add a bzlmod variant of the js_binary_sh test for JS_BINARY\_\_WORKSPACE by [@gregmagolan](https://togithub.com/gregmagolan) in [https://github.com/aspect-build/rules_js/pull/1592](https://togithub.com/aspect-build/rules_js/pull/1592)
**Full Changelog**: https://github.com/aspect-build/rules_js/compare/v1.40.0...v1.40.1
### [`v1.40.0`](https://togithub.com/aspect-build/rules_js/releases/tag/v1.40.0)
[Compare Source](https://togithub.com/aspect-build/rules_js/compare/v1.39.1...v1.40.0)
Many companies are successfully building with rules_js.
If you're getting value from the project, please let us know!
Just comment on our [Adoption Discussion](https://togithub.com/aspect-build/rules_js/discussions/1000).
#### Using Bzlmod with Bazel 6:
Add to your `MODULE.bazel` file:
```starlark
bazel_dep(name = "aspect_rules_js", version = "1.40.0")
####### Node.js version #########
### By default you get the node version from DEFAULT_NODE_VERSION in @rules_nodejs//nodejs:repositories.bzl
### Optionally you can pin a different node version:
bazel_dep(name = "rules_nodejs", version = "5.8.2")
node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node")
node.toolchain(node_version = "16.14.2")
#################################
npm = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm", dev_dependency = True)
npm.npm_translate_lock(
name = "npm",
pnpm_lock = "//:pnpm-lock.yaml",
verify_node_modules_ignored = "//:.bazelignore",
)
use_repo(npm, "npm")
```
#### Using WORKSPACE
Paste this snippet into your `WORKSPACE` file:
```starlark
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_js",
sha256 = "41129b17c0951b663a30c55710a0842767cd162137b7cd3a200f43e32161ce7a",
strip_prefix = "rules_js-1.40.0",
url = "https://github.com/aspect-build/rules_js/releases/download/v1.40.0/rules_js-v1.40.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,
)
### For convenience, npm_translate_lock does this call automatically.
### Uncomment if you don't call npm_translate_lock at all.
#load("@bazel_features//:deps.bzl", "bazel_features_deps")
#bazel_features_deps()
load("@aspect_rules_js//npm:repositories.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()
```
To use rules_js with bazel-lib 2.x, you must additionally register the coreutils toolchain.
```starlark
load("@aspect_bazel_lib//lib:repositories.bzl", "register_coreutils_toolchains")
register_coreutils_toolchains()
```
#### What's Changed
- refactor: reduce duplicate npm_import logic by [@jbedard](https://togithub.com/jbedard) in [https://github.com/aspect-build/rules_js/pull/1524](https://togithub.com/aspect-build/rules_js/pull/1524)
- refactor: improve rule internal implementation method names by [@jbedard](https://togithub.com/jbedard) in [https://github.com/aspect-build/rules_js/pull/1525](https://togithub.com/aspect-build/rules_js/pull/1525)
- perf: cache transitive_closure computations by [@jbedard](https://togithub.com/jbedard) in [https://github.com/aspect-build/rules_js/pull/1521](https://togithub.com/aspect-build/rules_js/pull/1521)
- refactor: inline utils.package_directory_output_group in npm_import repo rules by [@jbedard](https://togithub.com/jbedard) in [https://github.com/aspect-build/rules_js/pull/1526](https://togithub.com/aspect-build/rules_js/pull/1526)
- test: add test of empty node_modules target by [@jbedard](https://togithub.com/jbedard) in [https://github.com/aspect-build/rules_js/pull/1513](https://togithub.com/aspect-build/rules_js/pull/1513)
- refactor: remove duplicate npm_package_internal from npm_import by [@gregmagolan](https://togithub.com/gregmagolan) in [https://github.com/aspect-build/rules_js/pull/1536](https://togithub.com/aspect-build/rules_js/pull/1536)
- chore(deps): update dependency plotly.js to v2.25.2 \[security] by [@renovate](https://togithub.com/renovate) in [https://github.com/aspect-build/rules_js/pull/1426](https://togithub.com/aspect-build/rules_js/pull/1426)
- chore: do not run renovate on examples by [@jbedard](https://togithub.com/jbedard) in [https://github.com/aspect-build/rules_js/pull/1539](https://togithub.com/aspect-build/rules_js/pull/1539)
- feat: extract npm package tars into virtual store as action using tar toolchain from bazel-lib by [@gregmagolan](https://togithub.com/gregmagolan) in [https://github.com/aspect-build/rules_js/pull/1538](https://togithub.com/aspect-build/rules_js/pull/1538)
**Full Changelog**: https://github.com/aspect-build/rules_js/compare/v1.39.1...v1.40.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, 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 has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
v1.39.1
->v1.41.2
Release Notes
aspect-build/rules_js (aspect_rules_js)
### [`v1.41.2`](https://togithub.com/aspect-build/rules_js/releases/tag/v1.41.2) [Compare Source](https://togithub.com/aspect-build/rules_js/compare/v1.41.1...v1.41.2) Many companies are successfully building with rules_js. If you're getting value from the project, please let us know! Just comment on our [Adoption Discussion](https://togithub.com/aspect-build/rules_js/discussions/1000). #### Using Bzlmod with Bazel 6: Add to your `MODULE.bazel` file: ```starlark bazel_dep(name = "aspect_rules_js", version = "1.41.2") ####### Node.js version ######### ### By default you get the node version from DEFAULT_NODE_VERSION in @rules_nodejs//nodejs:repositories.bzl ### Optionally you can pin a different node version: bazel_dep(name = "rules_nodejs", version = "5.8.2") node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node") node.toolchain(node_version = "16.14.2") ################################# npm = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm", dev_dependency = True) npm.npm_translate_lock( name = "npm", pnpm_lock = "//:pnpm-lock.yaml", verify_node_modules_ignored = "//:.bazelignore", ) use_repo(npm, "npm") ``` #### Using WORKSPACE Paste this snippet into your `WORKSPACE` file: ```starlark load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "aspect_rules_js", sha256 = "bc9b4a01ef8eb050d8a7a050eedde8ffb1e45a56b0e4094e26f06c17d5fcf1d5", strip_prefix = "rules_js-1.41.2", url = "https://github.com/aspect-build/rules_js/releases/download/v1.41.2/rules_js-v1.41.2.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, ) ### For convenience, npm_translate_lock does this call automatically. ### Uncomment if you don't call npm_translate_lock at all. #load("@bazel_features//:deps.bzl", "bazel_features_deps") #bazel_features_deps() load("@aspect_rules_js//npm:repositories.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() ``` To use rules_js with bazel-lib 2.x, you must additionally register the coreutils toolchain. ```starlark load("@aspect_bazel_lib//lib:repositories.bzl", "register_coreutils_toolchains") register_coreutils_toolchains() ``` #### What's Changed - chore: bump minimum bazel-lib version to 1.42.3 by [@gregmagolan](https://togithub.com/gregmagolan) in [https://github.com/aspect-build/rules_js/pull/1672](https://togithub.com/aspect-build/rules_js/pull/1672) **Full Changelog**: https://github.com/aspect-build/rules_js/compare/v2.0.0-alpha.2...v1.41.2 ### [`v1.41.1`](https://togithub.com/aspect-build/rules_js/releases/tag/v1.41.1) [Compare Source](https://togithub.com/aspect-build/rules_js/compare/v1.41.0...v1.41.1) Many companies are successfully building with rules_js. If you're getting value from the project, please let us know! Just comment on our [Adoption Discussion](https://togithub.com/aspect-build/rules_js/discussions/1000). #### Using Bzlmod with Bazel 6: Add to your `MODULE.bazel` file: ```starlark bazel_dep(name = "aspect_rules_js", version = "1.41.1") ####### Node.js version ######### ### By default you get the node version from DEFAULT_NODE_VERSION in @rules_nodejs//nodejs:repositories.bzl ### Optionally you can pin a different node version: bazel_dep(name = "rules_nodejs", version = "5.8.2") node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node") node.toolchain(node_version = "16.14.2") ################################# npm = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm", dev_dependency = True) npm.npm_translate_lock( name = "npm", pnpm_lock = "//:pnpm-lock.yaml", verify_node_modules_ignored = "//:.bazelignore", ) use_repo(npm, "npm") ``` #### Using WORKSPACE Paste this snippet into your `WORKSPACE` file: ```starlark load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "aspect_rules_js", sha256 = "85fe123d25f91a5cf53d3767da72ed4b490ccfe50f183b1774bde3cf89e04b13", strip_prefix = "rules_js-1.41.1", url = "https://github.com/aspect-build/rules_js/releases/download/v1.41.1/rules_js-v1.41.1.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, ) ### For convenience, npm_translate_lock does this call automatically. ### Uncomment if you don't call npm_translate_lock at all. #load("@bazel_features//:deps.bzl", "bazel_features_deps") #bazel_features_deps() load("@aspect_rules_js//npm:repositories.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() ``` To use rules_js with bazel-lib 2.x, you must additionally register the coreutils toolchain. ```starlark load("@aspect_bazel_lib//lib:repositories.bzl", "register_coreutils_toolchains") register_coreutils_toolchains() ``` #### What's Changed - chore: enable branch_freshsness rebase strategy by [@gregmagolan](https://togithub.com/gregmagolan) in [https://github.com/aspect-build/rules_js/pull/1611](https://togithub.com/aspect-build/rules_js/pull/1611) - chore: run all e2e tests on CI by [@gregmagolan](https://togithub.com/gregmagolan) in [https://github.com/aspect-build/rules_js/pull/1613](https://togithub.com/aspect-build/rules_js/pull/1613) - test: separate e2e bzlmod vs workspace repository rules by [@jbedard](https://togithub.com/jbedard) in [https://github.com/aspect-build/rules_js/pull/1612](https://togithub.com/aspect-build/rules_js/pull/1612) - perf: reduce large array concatenation by [@jbedard](https://togithub.com/jbedard) in [https://github.com/aspect-build/rules_js/pull/1627](https://togithub.com/aspect-build/rules_js/pull/1627) - refactor: simplify bzlmod tag implementations by [@jbedard](https://togithub.com/jbedard) in [https://github.com/aspect-build/rules_js/pull/1629](https://togithub.com/aspect-build/rules_js/pull/1629) - refactor: move npm_import repository rule template into util method by [@jbedard](https://togithub.com/jbedard) in [https://github.com/aspect-build/rules_js/pull/1628](https://togithub.com/aspect-build/rules_js/pull/1628) - perf: construct single list of linked packages by [@jbedard](https://togithub.com/jbedard) in [https://github.com/aspect-build/rules_js/pull/1630](https://togithub.com/aspect-build/rules_js/pull/1630) - chore: tell renovate to stfu during work hours by [@gregmagolan](https://togithub.com/gregmagolan) in [https://github.com/aspect-build/rules_js/pull/1632](https://togithub.com/aspect-build/rules_js/pull/1632) - chore: bring in llvm toolchain so we can update //js/private/test/image snapshots on darwin by [@gregmagolan](https://togithub.com/gregmagolan) in [https://github.com/aspect-build/rules_js/pull/1638](https://togithub.com/aspect-build/rules_js/pull/1638) - fix: set default internal npm_translate_lock state by [@jbedard](https://togithub.com/jbedard) in [https://github.com/aspect-build/rules_js/pull/1642](https://togithub.com/aspect-build/rules_js/pull/1642) - chore: disable windows tests on BCR pre-submit by [@gregmagolan](https://togithub.com/gregmagolan) in [https://github.com/aspect-build/rules_js/pull/1644](https://togithub.com/aspect-build/rules_js/pull/1644) **Full Changelog**: https://github.com/aspect-build/rules_js/compare/v1.41.0...v1.41.1 ### [`v1.41.0`](https://togithub.com/aspect-build/rules_js/releases/tag/v1.41.0) [Compare Source](https://togithub.com/aspect-build/rules_js/compare/v1.40.1...v1.41.0) Many companies are successfully building with rules_js. If you're getting value from the project, please let us know! Just comment on our [Adoption Discussion](https://togithub.com/aspect-build/rules_js/discussions/1000). #### Using Bzlmod with Bazel 6: Add to your `MODULE.bazel` file: ```starlark bazel_dep(name = "aspect_rules_js", version = "1.41.0") ####### Node.js version ######### ### By default you get the node version from DEFAULT_NODE_VERSION in @rules_nodejs//nodejs:repositories.bzl ### Optionally you can pin a different node version: bazel_dep(name = "rules_nodejs", version = "5.8.2") node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node") node.toolchain(node_version = "16.14.2") ################################# npm = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm", dev_dependency = True) npm.npm_translate_lock( name = "npm", pnpm_lock = "//:pnpm-lock.yaml", verify_node_modules_ignored = "//:.bazelignore", ) use_repo(npm, "npm") ``` #### Using WORKSPACE Paste this snippet into your `WORKSPACE` file: ```starlark load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "aspect_rules_js", sha256 = "d6dddd224b27d456820d19b9c23a7bcbe75660a6c040d83e31ba3da4fb1f6888", strip_prefix = "rules_js-1.41.0", url = "https://github.com/aspect-build/rules_js/releases/download/v1.41.0/rules_js-v1.41.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, ) ### For convenience, npm_translate_lock does this call automatically. ### Uncomment if you don't call npm_translate_lock at all. #load("@bazel_features//:deps.bzl", "bazel_features_deps") #bazel_features_deps() load("@aspect_rules_js//npm:repositories.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() ``` To use rules_js with bazel-lib 2.x, you must additionally register the coreutils toolchain. ```starlark load("@aspect_bazel_lib//lib:repositories.bzl", "register_coreutils_toolchains") register_coreutils_toolchains() ``` #### What's Changed - chore: restore test that was commented out unintentionally by [@gregmagolan](https://togithub.com/gregmagolan) in [https://github.com/aspect-build/rules_js/pull/1595](https://togithub.com/aspect-build/rules_js/pull/1595) - chore: bump to Bazel 7.1.1 and Aspect CLI 5.9.24 by [@gregmagolan](https://togithub.com/gregmagolan) in [https://github.com/aspect-build/rules_js/pull/1600](https://togithub.com/aspect-build/rules_js/pull/1600) - chore: test against latest rules_nodejs release 6.1.0 to ensure backward compat that release with rules_js 1.x by [@gregmagolan](https://togithub.com/gregmagolan) in [https://github.com/aspect-build/rules_js/pull/1602](https://togithub.com/aspect-build/rules_js/pull/1602) - feat: support rules_nodejs improved toolchain attributes in rules_nodejs 6.1.0 with backward compat for older versions by [@gregmagolan](https://togithub.com/gregmagolan) in [https://github.com/aspect-build/rules_js/pull/1604](https://togithub.com/aspect-build/rules_js/pull/1604) **Full Changelog**: https://github.com/aspect-build/rules_js/compare/v1.40.1...v1.41.0 ### [`v1.40.1`](https://togithub.com/aspect-build/rules_js/releases/tag/v1.40.1) [Compare Source](https://togithub.com/aspect-build/rules_js/compare/v1.40.0...v1.40.1) Many companies are successfully building with rules_js. If you're getting value from the project, please let us know! Just comment on our [Adoption Discussion](https://togithub.com/aspect-build/rules_js/discussions/1000). #### Using Bzlmod with Bazel 6: Add to your `MODULE.bazel` file: ```starlark bazel_dep(name = "aspect_rules_js", version = "1.40.1") ####### Node.js version ######### ### By default you get the node version from DEFAULT_NODE_VERSION in @rules_nodejs//nodejs:repositories.bzl ### Optionally you can pin a different node version: bazel_dep(name = "rules_nodejs", version = "5.8.2") node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node") node.toolchain(node_version = "16.14.2") ################################# npm = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm", dev_dependency = True) npm.npm_translate_lock( name = "npm", pnpm_lock = "//:pnpm-lock.yaml", verify_node_modules_ignored = "//:.bazelignore", ) use_repo(npm, "npm") ``` #### Using WORKSPACE Paste this snippet into your `WORKSPACE` file: ```starlark load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "aspect_rules_js", sha256 = "d7500d59712accca9622bce723b8ea596b92fb9b4ff4a4dbd77ed353b9d29f34", strip_prefix = "rules_js-1.40.1", url = "https://github.com/aspect-build/rules_js/releases/download/v1.40.1/rules_js-v1.40.1.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, ) ### For convenience, npm_translate_lock does this call automatically. ### Uncomment if you don't call npm_translate_lock at all. #load("@bazel_features//:deps.bzl", "bazel_features_deps") #bazel_features_deps() load("@aspect_rules_js//npm:repositories.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() ``` To use rules_js with bazel-lib 2.x, you must additionally register the coreutils toolchain. ```starlark load("@aspect_bazel_lib//lib:repositories.bzl", "register_coreutils_toolchains") register_coreutils_toolchains() ``` #### What's Changed - chore: cleanup JsInfo docstrings by [@gregmagolan](https://togithub.com/gregmagolan) in [https://github.com/aspect-build/rules_js/pull/1553](https://togithub.com/aspect-build/rules_js/pull/1553) - \[bzlmod] Mark npm extension as reproducible by [@dzbarsky](https://togithub.com/dzbarsky) in [https://github.com/aspect-build/rules_js/pull/1541](https://togithub.com/aspect-build/rules_js/pull/1541) - chore: upgrade bazel rulesets by [@jbedard](https://togithub.com/jbedard) in [https://github.com/aspect-build/rules_js/pull/1537](https://togithub.com/aspect-build/rules_js/pull/1537) - refactor: simplify npm_link_all_packages package linking by [@jbedard](https://togithub.com/jbedard) in [https://github.com/aspect-build/rules_js/pull/1550](https://togithub.com/aspect-build/rules_js/pull/1550) - perf: don't set JsInfo declarations and transitive_declarations in npm_link_package_store by [@gregmagolan](https://togithub.com/gregmagolan) in [https://github.com/aspect-build/rules_js/pull/1554](https://togithub.com/aspect-build/rules_js/pull/1554) - refactor: remove aspect_rules_js.npm. repo-name logic by [@jbedard](https://togithub.com/jbedard) in [https://github.com/aspect-build/rules_js/pull/1542](https://togithub.com/aspect-build/rules_js/pull/1542) - refactor: remove extra npm_translate_lock_repo alias target by [@jbedard](https://togithub.com/jbedard) in [https://github.com/aspect-build/rules_js/pull/1543](https://togithub.com/aspect-build/rules_js/pull/1543) - fix: bump minimum bazel-lib version to 1.42.2 by [@gregmagolan](https://togithub.com/gregmagolan) in [https://github.com/aspect-build/rules_js/pull/1556](https://togithub.com/aspect-build/rules_js/pull/1556) - chore: hoist more TODOS to 2.0 by [@gregmagolan](https://togithub.com/gregmagolan) in [https://github.com/aspect-build/rules_js/pull/1565](https://togithub.com/aspect-build/rules_js/pull/1565) - fix: add cannonical_id to npm_import by [@Aghassi](https://togithub.com/Aghassi) in [https://github.com/aspect-build/rules_js/pull/1564](https://togithub.com/aspect-build/rules_js/pull/1564) - chore: write checked bzl files for both WORKSPACE and bzlmod by [@gregmagolan](https://togithub.com/gregmagolan) in [https://github.com/aspect-build/rules_js/pull/1590](https://togithub.com/aspect-build/rules_js/pull/1590) - fix: add package_visibility support to npm_translate_lock and npm_import on bzlmod by [@gregmagolan](https://togithub.com/gregmagolan) in [https://github.com/aspect-build/rules_js/pull/1591](https://togithub.com/aspect-build/rules_js/pull/1591) - chore: add a bzlmod variant of the js_binary_sh test for JS_BINARY\_\_WORKSPACE by [@gregmagolan](https://togithub.com/gregmagolan) in [https://github.com/aspect-build/rules_js/pull/1592](https://togithub.com/aspect-build/rules_js/pull/1592) **Full Changelog**: https://github.com/aspect-build/rules_js/compare/v1.40.0...v1.40.1 ### [`v1.40.0`](https://togithub.com/aspect-build/rules_js/releases/tag/v1.40.0) [Compare Source](https://togithub.com/aspect-build/rules_js/compare/v1.39.1...v1.40.0) Many companies are successfully building with rules_js. If you're getting value from the project, please let us know! Just comment on our [Adoption Discussion](https://togithub.com/aspect-build/rules_js/discussions/1000). #### Using Bzlmod with Bazel 6: Add to your `MODULE.bazel` file: ```starlark bazel_dep(name = "aspect_rules_js", version = "1.40.0") ####### Node.js version ######### ### By default you get the node version from DEFAULT_NODE_VERSION in @rules_nodejs//nodejs:repositories.bzl ### Optionally you can pin a different node version: bazel_dep(name = "rules_nodejs", version = "5.8.2") node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node") node.toolchain(node_version = "16.14.2") ################################# npm = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm", dev_dependency = True) npm.npm_translate_lock( name = "npm", pnpm_lock = "//:pnpm-lock.yaml", verify_node_modules_ignored = "//:.bazelignore", ) use_repo(npm, "npm") ``` #### Using WORKSPACE Paste this snippet into your `WORKSPACE` file: ```starlark load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "aspect_rules_js", sha256 = "41129b17c0951b663a30c55710a0842767cd162137b7cd3a200f43e32161ce7a", strip_prefix = "rules_js-1.40.0", url = "https://github.com/aspect-build/rules_js/releases/download/v1.40.0/rules_js-v1.40.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, ) ### For convenience, npm_translate_lock does this call automatically. ### Uncomment if you don't call npm_translate_lock at all. #load("@bazel_features//:deps.bzl", "bazel_features_deps") #bazel_features_deps() load("@aspect_rules_js//npm:repositories.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() ``` To use rules_js with bazel-lib 2.x, you must additionally register the coreutils toolchain. ```starlark load("@aspect_bazel_lib//lib:repositories.bzl", "register_coreutils_toolchains") register_coreutils_toolchains() ``` #### What's Changed - refactor: reduce duplicate npm_import logic by [@jbedard](https://togithub.com/jbedard) in [https://github.com/aspect-build/rules_js/pull/1524](https://togithub.com/aspect-build/rules_js/pull/1524) - refactor: improve rule internal implementation method names by [@jbedard](https://togithub.com/jbedard) in [https://github.com/aspect-build/rules_js/pull/1525](https://togithub.com/aspect-build/rules_js/pull/1525) - perf: cache transitive_closure computations by [@jbedard](https://togithub.com/jbedard) in [https://github.com/aspect-build/rules_js/pull/1521](https://togithub.com/aspect-build/rules_js/pull/1521) - refactor: inline utils.package_directory_output_group in npm_import repo rules by [@jbedard](https://togithub.com/jbedard) in [https://github.com/aspect-build/rules_js/pull/1526](https://togithub.com/aspect-build/rules_js/pull/1526) - test: add test of empty node_modules target by [@jbedard](https://togithub.com/jbedard) in [https://github.com/aspect-build/rules_js/pull/1513](https://togithub.com/aspect-build/rules_js/pull/1513) - refactor: remove duplicate npm_package_internal from npm_import by [@gregmagolan](https://togithub.com/gregmagolan) in [https://github.com/aspect-build/rules_js/pull/1536](https://togithub.com/aspect-build/rules_js/pull/1536) - chore(deps): update dependency plotly.js to v2.25.2 \[security] by [@renovate](https://togithub.com/renovate) in [https://github.com/aspect-build/rules_js/pull/1426](https://togithub.com/aspect-build/rules_js/pull/1426) - chore: do not run renovate on examples by [@jbedard](https://togithub.com/jbedard) in [https://github.com/aspect-build/rules_js/pull/1539](https://togithub.com/aspect-build/rules_js/pull/1539) - feat: extract npm package tars into virtual store as action using tar toolchain from bazel-lib by [@gregmagolan](https://togithub.com/gregmagolan) in [https://github.com/aspect-build/rules_js/pull/1538](https://togithub.com/aspect-build/rules_js/pull/1538) **Full Changelog**: https://github.com/aspect-build/rules_js/compare/v1.39.1...v1.40.0Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.