Releases: bazel-contrib/rules_nodejs
v6.0.0-beta1
Using Bzlmod with Bazel 6
- Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
bazel_dep(name = "rules_nodejs", version = "6.0.0-beta1")
Using WORKSPACE
Paste this snippet into your file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_nodejs",
sha256 = "d124665ea12f89153086746821cf6c9ef93ab88360a50c1aeefa1fe522421704",
strip_prefix = "rules_nodejs-6.0.0-beta1",
url = "https://github.com/bazelbuild/rules_nodejs/releases/download/v6.0.0-beta1/rules_nodejs-v6.0.0-beta1.tar.gz",
)
What's Changed
- chore: disable a failing test on windows by @alexeagle in #3661
- Update NodeJS Versions by @mattem in #3662
Full Changelog: v6.0.0-beta0...v6.0.0-beta1
v6.0.0-beta0
Good News
rules_nodejs is alive again, thanks to @jbedard who removed all the deprecated, unmaintained code.
This is a significantly smaller scope - it is only the "core" Bazel Module we used to ship in 5.x and earlier.
The 5.x
branch is your reference to the code before this removal.
Using Bzlmod with Bazel 6
- Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
bazel_dep(name = "rules_nodejs", version = "6.0.0-beta0")
Using WORKSPACE
Paste this snippet into your file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_nodejs",
sha256 = "e53d58cf072240bba7b48c0fbd3dfaa5ebf2e005cee0bfce5f3a4ba6b813df4e",
strip_prefix = "rules_nodejs-6.0.0-beta0",
url = "https://github.com/bazelbuild/rules_nodejs/releases/download/v6.0.0-beta0/rules_nodejs-v6.0.0-beta0.tar.gz",
)
What's Changed
- fix: allow root repositories to override node toolchain version under bzlmod by @kormide in #3626
- Update NodeJS Versions by @mattem in #3622
- Update NodeJS Versions by @mattem in #3628
- chore: update release instructions by @alexeagle in #3632
- chore(6.0): remove concatjs package by @jbedard in #3637
- chore(6.0): remove packages by @jbedard in #3638
- chore(6.0): remove @bazel/esbuild package by @alexeagle in #3640
- chore(6.x): remove cypress package by @jbedard in #3641
- chore(6.0): remove terser package by @jbedard in #3642
- chore(6.0): remove jasmine package by @jbedard in #3643
- chore(6.0): remove rollup package by @jbedard in #3644
- chore(6.0): remove typescript package by @jbedard in #3645
- chore: update release automation by @alexeagle in #3646
- chore: bzlmod by @alexeagle in #3647
- chore(6.x): cleanup examples by @alexeagle in #3648
- chore(6.0): remove internal typescript tools by @jbedard in #3649
- chore(6.0): remove pkg_web by @jbedard in #3651
- chore(6.0): remove @bazel/create by @jbedard in #3650
- chore(6.0): move providers to build_bazel_rules_nodejs by @jbedard in #3652
- ci: add github actions testing by @alexeagle in #3654
- chore: bump to node 18 LTS as default by @alexeagle in #3656
- refactor: remove rules_nodejs dependency on bazel_skylib by @jbedard in #3659
- chore(6.0): remove all unsupported rules and packages by @jbedard in #3655
- chore: restore GHA CI just for main branch by @alexeagle in #3660
Full Changelog: 5.8.1...v6.0.0-beta0
5.8.2
Note: no npm packages were pushed for this release since they were unchanged since 5.8.1
WORKSPACE snippet:
http_archive(
name = "rules_nodejs",
sha256 = "764a3b3757bb8c3c6a02ba3344731a3d71e558220adcb0cf7e43c9bba2c37ba8",
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.8.2/rules_nodejs-core-5.8.2.tar.gz"],
)
What's Changed
Full Changelog: 5.8.1...5.8.2
5.8.1
What's Changed
- feat: provide @nodejs repository by @alexeagle in #3610
- chore: turn off automation for esbuild versions by @alexeagle in #3608
- Update NodeJS Versions by @mattem in #3612
- chore: add more maintenance notices on the documentation by @alexeagle in #3615
- Update NodeJS Versions by @mattem in #3616
- Upgrade rules_pkg to 0.3.0 to remove Python 2 dependency. by @rickeylev in #3620
- fix(builtin): convert pkg_web to use cjs instead of js by @KrauseStefan in #3500
- fix(concatjs): resolve error with TypeScript 5.0 by @crisbeto in #3625
New Contributors
- @rickeylev made their first contribution in #3620
Full Changelog: 5.7.3...5.8.1
5.8.0
This release contains Bazel modules only, there are no accompanying npm packages because they weren't affected.
Upgrade with:
http_archive(
name = "build_bazel_rules_nodejs",
sha256 = "dcc55f810142b6cf46a44d0180a5a7fb923c04a5061e2e8d8eb05ccccc60864b",
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.8.0/rules_nodejs-5.8.0.tar.gz"],
)
# or for core module
http_archive(
name = "rules_nodejs",
sha256 = "08337d4fffc78f7fe648a93be12ea2fc4e8eb9795a4e6aa48595b66b34555626",
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.8.0/rules_nodejs-core-5.8.0.tar.gz"],
)
What's Changed
- feat: provide @nodejs repository by @alexeagle in #3610
- chore: turn off automation for esbuild versions by @alexeagle in #3608
- Update NodeJS Versions by @mattem in #3612
Full Changelog: 5.7.3...5.8.0
5.7.3
Update with
http_archive(
name = "build_bazel_rules_nodejs",
sha256 = "c2ad51299792d5af3b258f1dd71b3b57eff9424c2e1797d9c1d65717d95da03a",
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.7.3/rules_nodejs-5.7.3.tar.gz"],
)
# Or for the "core" module
http_archive(
name = "rules_nodejs",
sha256 = "323c780aeb0dd8e27673389362b5c67cf5fd7fde6a6d5b09a94ea9af761fc29e",
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.7.3/rules_nodejs-core-5.7.3.tar.gz"],
)
What's Changed
- Update esbuild versions by @mattem in #3604
- Update esbuild versions by @mattem in #3606
- fix(builtin): entry point from sources incorrectly used when binary is leveraged as tool, breaking resolution by @devversion in #3605
Full Changelog: 5.7.2...5.7.3
5.7.2
Update with:
http_archive(
name = "build_bazel_rules_nodejs",
sha256 = "0e8a818724c0d5dcc10c31f9452ebd54b2ab94c452d4dcbb0d45a6636d2d5a44",
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.7.2/rules_nodejs-5.7.2.tar.gz"],
)
# or for the "core" module
http_archive(
name = "rules_nodejs",
sha256 = "40b56e18c38295425381644f4d4efebccb5c704ac313f8baf88d047a3a6b4ab3",
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.7.2/rules_nodejs-core-5.7.2.tar.gz"],
)
What's Changed
- Update NodeJS Versions by @mattem in #3591
- Update esbuild versions by @mattem in #3593
- chore: default node should be latest v16 by @alexeagle in #3595
- fix: yarn binary is now run from separate @Yarn repo by @alexeagle in #3597
- chore: convert to yaml issue templates by @alexeagle in #3596
- Update esbuild versions by @mattem in #3600
- fix: check RUNFILES env variable in @bazel/runfiles helper by @gregmagolan in #3602
- Update esbuild versions by @mattem in #3601
Full Changelog: 5.7.1...5.7.2
5.7.1
Update with WORKSPACE:
http_archive(
name = "build_bazel_rules_nodejs",
sha256 = "5aae76dced38f784b58d9776e4ab12278bc156a9ed2b1d9fcd3e39921dc88fda",
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.7.1/rules_nodejs-5.7.1.tar.gz"],
)
# or for "core" module
http_archive(
name = "rules_nodejs",
sha256 = "50adf0b0ff6fc77d6909a790df02eefbbb3bc2b154ece3406361dda49607a7bd",
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.7.1/rules_nodejs-core-5.7.1.tar.gz"],
)
What's Changed
- Added support for linux ppc64le and linux s390x by @npanpaliya in #3574
- chore: export TsConfigInfo in public interface by @sallustfire in #3578
- Update NodeJS Versions by @mattem in #3579
- Fix: Deploy devserver-darwin_arm64 binary in concatjs package. by @nchavez324 in #3583
- Update esbuild versions by @mattem in #3584
- Update NodeJS Versions by @mattem in #3581
- Update NodeJS Versions by @mattem in #3589
- Update yarn version check by @yads in #3588
New Contributors
- @sallustfire made their first contribution in #3578
- @nchavez324 made their first contribution in #3583
- @yads made their first contribution in #3588
Full Changelog: 5.7.0...5.7.1
5.7.0
Update WORKSPACE
:
http_archive(
name = "build_bazel_rules_nodejs",
sha256 = "c29944ba9b0b430aadcaf3bf2570fece6fc5ebfb76df145c6cdad40d65c20811",
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.7.0/rules_nodejs-5.7.0.tar.gz"],
)
# or for the "core" module
http_archive(
name = "rules_nodejs",
sha256 = "33e309ba281fc73626a356a839bf5e5279360e7a2caea419c45c8017b5b3f7e2",
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.7.0/rules_nodejs-core-5.7.0.tar.gz"],
)
What's Changed
- fix(builtin): use updated rules_js launcher logic to source RUNFILES by @kormide in #3557
- fix(builtin): fix a bug where the launcher produces incorrect runfiles path on windows by @kormide in #3562
- chore: remove fasterci which is often red when buildkite is green by @gregmagolan in #3571
- chore: update dependency io_bazel to v5 by @renovate-bot in #3561
- Update NodeJS Versions by @mattem in #3563
- Update esbuild versions by @mattem in #3567
- feat: add npm binary & files to toolchain provider by @gregmagolan in #3570
Full Changelog: 5.6.0...5.7.0
5.6.0
Upgrade with
http_archive(
name = "build_bazel_rules_nodejs",
sha256 = "b011d6206e4e76696eda8287618a2b6375ff862317847cdbe38f8d0cd206e9ce",
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.6.0/rules_nodejs-5.6.0.tar.gz"],
)
# or for "core" module
http_archive(
name = "rules_nodejs",
sha256 = "bce105e7a3d2a3c5eb90dcd6436544bf11f82e97073fb29e4090321ba2b84d8f",
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.6.0/rules_nodejs-core-5.6.0.tar.gz"],
)
What's Changed
- fix: canonicalize @platforms//cpu:aarch64 by @alexeagle in #3555
- fix(typescript): include all .json in js_library DeclarationInfo by @jbedard in #3556
- feat: add support for darwin arm for concatjs by @josephperrott in #3554
- Update NodeJS Versions by @mattem in #3546
- fix(builtin): properly quote env vars passed to nodejs_binary by @kormide in #3553
- refactor: replace protobufjs with protobufjs-cli in examples/protobufjs by @Katee in #3543
- Update esbuild versions by @mattem in #3529
- feat(create): introduce
--workspaceDir
flag by @mgred in #3499
New Contributors
Full Changelog: 5.5.4...5.6.0