Releases: aspect-build/rules_js
v0.12.0
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_js",
sha256 = "72426f2c2588aee5d050d6d5bc4e40223a5d09ba40b66c6a9e2948a43c68e697",
strip_prefix = "rules_js-0.12.0",
url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v0.12.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",
)
load("@npm//:repositories.bzl", "npm_repositories")
npm_repositories()
What's Changed
- feat: import single packages as bzlmod extension by @kormide in #172
- refactor: name launcher script like nodejs_binary does by @alexeagle in #173
- chore: update versions by @kormide in #176
- fix: string substitution error on windows by @kormide in #174
- fix: broken windows build caused by missing bash script in runfiles by @kormide in #175
- Configure Renovate by @renovate in #168
- feat: support 'npm:' style package.json aliased npm deps by @gregmagolan in #171
New Contributors
Full Changelog: v0.11.1...v0.12.0
v0.11.1
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_js",
sha256 = "d75eb0a86e36b49f95d20cd9dea9b533fbb8f8054b7d8522ea2d65d3d9d0c403",
strip_prefix = "rules_js-0.11.1",
url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v0.11.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,
)
load("@aspect_rules_js//npm:npm_import.bzl", "npm_translate_lock")
npm_translate_lock(
name = "npm",
pnpm_lock = "//:pnpm-lock.yaml",
)
load("@npm//:repositories.bzl", "npm_repositories")
npm_repositories()
What's Changed
- fix: bazel-lib version in MODULE.bazel by @kormide in #163
- Add example for bazel integration to update lockfile by @alex-torok in #157
- chore: clean up two more examples folders by @alexeagle in #165
- fix: support github.com style npm dependency versions in pnpm lock files by @gregmagolan in #169
Full Changelog: v0.11.0...v0.11.1
v0.11.0
This release includes the last of the BREAKING CHANGES we are planning before launching 1.0.0 in the near future.
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_js",
sha256 = "f4693a937c5852e660d1da773436fc3dc3a6274b25f735c233a8cffc12ed2dbb",
strip_prefix = "rules_js-0.11.0",
url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v0.11.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",
)
load("@npm//:repositories.bzl", "npm_repositories")
npm_repositories()
Derivative Rule Sets
Derivative rule sets to go with these API changes are also published:
https://github.com/aspect-build/rules_terser/releases/tag/v0.5.0
https://github.com/aspect-build/rules_swc/releases/tag/v0.10.0
https://github.com/aspect-build/rules_ts/releases/tag/v0.5.0
https://github.com/aspect-build/rules_rollup/releases/tag/v0.5.0
https://github.com/aspect-build/rules_jest/releases/tag/v0.4.0
https://github.com/aspect-build/rules_esbuild/releases/tag/v0.6.0
What's Changed
- fix debug message formatting by @alex-torok in #156
- Update migrate.md by @alexeagle in #158
- refactor: public API renames after review by @gregmagolan in #159
- fix: don't generate scoped target if there are no direct deps in that scope by @gregmagolan in #160
- chore: simplify manual npm_package_link examples by @gregmagolan in #161
- refactor: rename @npm_import_dep//:jsp to @npm_import_dep//:pkg and related internal target names by @gregmagolan in #162
Full Changelog: v0.10.0...v0.11.0
v0.10.0
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_js",
sha256 = "2db66bedabc30f2dfa87bd4845e42b0dbc80fa9344d2dfbaa2685cdced2f1e03",
strip_prefix = "rules_js-0.10.0",
url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v0.10.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", "translate_pnpm_lock")
translate_pnpm_lock(
name = "npm",
pnpm_lock = "//:pnpm-lock.yaml",
)
load("@npm//:repositories.bzl", "npm_repositories")
npm_repositories()
What's Changed
- fix: fix bug when setting log_level in
run_js_binary
by @alex-torok in #151 - Refactor public API into near final shape for 1.0 launch by @gregmagolan in #152
Full Changelog: v0.9.3...v0.10.0
v0.9.3
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_js",
sha256 = "7745b11c5d4018e1befa51ba7366149d739aa2521bc2675506b37e1f602204bc",
strip_prefix = "rules_js-0.9.3",
url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v0.9.3.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//js:npm_import.bzl", "translate_pnpm_lock")
translate_pnpm_lock(
name = "npm",
pnpm_lock = "//:pnpm-lock.yaml",
)
load("@npm//:repositories.bzl", "npm_repositories")
npm_repositories()
What's Changed
- fix: apply npm_import patches before reading the package.json file incase package.json itself needs patching by @gregmagolan in #149
Full Changelog: v0.9.2...v0.9.3
v0.9.2
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_js",
sha256 = "bcceb21d6473a6346359f2f2ce22c3d31a8aa5f44bea4e71fc29683e420330ed",
strip_prefix = "rules_js-0.9.2",
url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v0.9.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,
)
load("@aspect_rules_js//js:npm_import.bzl", "translate_pnpm_lock")
translate_pnpm_lock(
name = "npm",
pnpm_lock = "//:pnpm-lock.yaml",
)
load("@npm//:repositories.bzl", "npm_repositories")
npm_repositories()
What's Changed
- chore: some minor cleanup; non-breaking by @gregmagolan in #144
- Bzlmod by @alexeagle in #58
- Update migrate.md by @alexeagle in #145
- feat: add manual tags to link_js_package (and derivative targets) so that npm deps are lazy fetch even with bazel build //... by @gregmagolan in #147
- ci: assert we don't fetch unused dependencies by @alexeagle in #82
- Update migrate.md by @alexeagle in #146
Full Changelog: v0.9.1...v0.9.2
v0.9.1
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_js",
sha256 = "f01010e1f6bd49a8da6f7350c60992b7eb2eb62058cfe7aa6abd9e416bc2158b",
strip_prefix = "rules_js-0.9.1",
url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v0.9.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,
)
load("@aspect_rules_js//js:npm_import.bzl", "translate_pnpm_lock")
translate_pnpm_lock(
name = "npm",
pnpm_lock = "//:pnpm-lock.yaml",
)
load("@npm//:repositories.bzl", "npm_repositories")
npm_repositories()
What's Changed
- feat: promote subset of pnpm_utils to public API as constants and utils in defs.bzl by @alexeagle in #142
- refactor: split npm_import data logic from starlark code generation by @alexeagle in #143
Full Changelog: v0.9.0...v0.9.1
v0.9.0
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_js",
sha256 = "52116506939fdf5f7ba0ecb4ce54a492de942bf215986b603c3357499d376a94",
strip_prefix = "rules_js-0.9.0",
url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v0.9.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//js:npm_import.bzl", "translate_pnpm_lock")
translate_pnpm_lock(
name = "npm",
pnpm_lock = "//:pnpm-lock.yaml",
)
load("@npm//:repositories.bzl", "npm_repositories")
npm_repositories()
What's Changed
- chore: some misc cleanup by @gregmagolan in #140
- refactor: yet more cleanup; this time breaking by @gregmagolan in #141
Full Changelog: v0.8.0...v0.9.0
v0.8.0
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_js",
sha256 = "06dd11130f05df3e8b9aa8cc1b93577e88f540cd4ece8f00035109cc17dcf5ff",
strip_prefix = "rules_js-0.8.0",
url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v0.8.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//js:npm_import.bzl", "translate_pnpm_lock")
translate_pnpm_lock(
name = "npm",
pnpm_lock = "//:pnpm-lock.yaml",
)
load("@npm//:repositories.bzl", "npm_repositories")
npm_repositories()
What's Changed
- fix: add js_package of npm package to the data of the generated js_binaries for its bins by @gregmagolan in #122
- fix: generate package qualified labels in generated bin targets by @gregmagolan in #123
- chore: update to aspect_bazel_lib 0.12.0 by @gregmagolan in #126
- fix: generate fully qualified (workspace name + package) labels in generated bin targets by @gregmagolan in #124
- feat: add @npm//@scope and @npm//link/path/@scope targets by @gregmagolan in #125
- feat: add additional verbose output to js_binary launcher to indicate cwd by @gregmagolan in #129
- refactor: use pnpm workspaces for main WORKSPACE pnpm-lock.yaml file by @gregmagolan in #128
- feat: promote run_js_binary to the public API by @gregmagolan in #131
- fix: don't pop data from kwargs attribute in generated bins build (run_js_binary) macro by @gregmagolan in #132
- refactor: reorganize example into multiple examples by @alexeagle in #136
- feat: add log_level attribute to js_binary and run_js_binary by @gregmagolan in #135
- refactor: move npm_deps dependencies into its workspace package by @alexeagle in #137
- Add example showing mocha integration by @jfirebaugh in #119
- feat: simplify public API link_js_package and package label helpers by @gregmagolan in #139
New Contributors
- @jfirebaugh made their first contribution in #119
Full Changelog: v0.7.2...v0.8.0
v0.7.2
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_js",
sha256 = "5c839b68b862c293de0f3ae3ebe38cd9678ca3fb24182d16ddfe75988c3e83b6",
strip_prefix = "rules_js-0.7.2",
url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v0.7.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,
)
load("@aspect_rules_js//js:npm_import.bzl", "translate_pnpm_lock")
translate_pnpm_lock(
name = "npm",
pnpm_lock = "//:pnpm-lock.yaml",
)
load("@npm//:repositories.bzl", "npm_repositories")
npm_repositories()
What's Changed
- Fix package_json.bzl file for packages with dashes in their names by @alex-torok in #112
- Delay expanding permissions on directories when extracting packages on linux by @alex-torok in #117
- refactor: make example npm_import/translate_pnpm_lock look like users… by @alexeagle in #120
New Contributors
- @alex-torok made their first contribution in #112
Full Changelog: v0.7.1...v0.7.2