Skip to content

Releases: bazelbuild/rules_nodejs

5.0.0-rc.1

14 Jan 21:14
Compare
Choose a tag to compare
5.0.0-rc.1 Pre-release
Pre-release

Please use 5.0.0-rc2 instead.

5.0.0-rc.0

14 Jan 16:23
Compare
Choose a tag to compare
5.0.0-rc.0 Pre-release
Pre-release

replaced by 5.0.0-rc.1

4.6.1

13 Jan 22:20
Compare
Choose a tag to compare

To upgrade,

http_archive(
    name = "build_bazel_rules_nodejs",
    sha256 = "d63ecec7192394f5cc4ad95a115f8a6c9de55c60d56c1f08da79c306355e4654",
    urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/4.6.1/rules_nodejs-4.6.1.tar.gz"],
)

# new "core" package
http_archive(
    name = "rules_nodejs",
    sha256 = "1962378ca94c37cc18521c86e2fa79b3715b6bb75ac0ec43c321f92274a56e16",
    urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/4.6.1/rules_nodejs-core-4.6.1.tar.gz"],
)

and update @bazel-scoped npm packages.

What's Changed

Full Changelog: 4.6.0...4.6.1

4.6.0

06 Jan 04:47
Compare
Choose a tag to compare

To update:

http_archive(
    name = "build_bazel_rules_nodejs",
    sha256 = "ddb78717b802f8dd5d4c01c340ecdc007c8ced5c1df7db421d0df3d642ea0580",
    urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/4.6.0/rules_nodejs-4.6.0.tar.gz"],
)

or for the core package

http_archive(
    name = "rules_nodejs",
    sha256 = "005c59bf299d15d1d9551f12f880b1a8967fa883654c897907a667cdbb77c7a6",
    urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/4.6.0/rules_nodejs-core-4.6.0.tar.gz"],
)

and update @bazel-scoped npm packages.

New Feature: faster TypeScript transpiles

We've added an attribute to ts_project called transpiler which lets you swap out which program is used to generate the JavaScript outputs, while still using tsc for type-checking. This pattern lets you decouple type-checking from your development loop, enabling an order of magnitude faster rebuilds, without having to create lots of boilerplate in your BUILD.bazel configs.

As an example, we've been using SWC in some large codebases and saw ~20x speedup in transpilation time. Here's a tiny working example

See the documentation for the transpiler attribute for more info on this.

Thanks to our friends at EngFlow for sponsoring this work!

What's Changed

New Contributors

Full Changelog: 4.5.1...4.6.0

4.5.1

17 Dec 03:57
Compare
Choose a tag to compare

Re-release of 4.5.0 for systems that cached wrong .tar.gz artifacts which were live for several hours.

No code changes from 4.5.0, and no npm packages for this release.

http_archive(
    name = "build_bazel_rules_nodejs",
    sha256 = "f0f76a06fd6c10e8fb9a6cb9389fa7d5816dbecd9b1685063f89fb20dc6822f3",
    urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/4.5.1/rules_nodejs-4.5.1.tar.gz"],
)
# OR
http_archive(
    name = "rules_nodejs",
    sha256 = "21ace31956ed2d42c4d1a71ec9bf44e88edc8d4e6d3e88f7743a56ee1fc95bb1",
    urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/4.5.1/rules_nodejs-core-4.5.1.tar.gz"],
)

4.5.0

16 Dec 01:50
Compare
Choose a tag to compare

Note: for several hours this release was published with wrong tar.gz artifacts. If your systems cached that artifact, and the SHA doesn't match, then please use 4.5.1 tar.gz artifacts instead. The npm packages are fine at 4.5.0. Sorry for mutating a release artifact!

Upgrade with:

http_archive(
    name = "build_bazel_rules_nodejs",
    sha256 = "778ed059ad37c3373c22adcb5c200cbbca72b370dd4de93379deb8325c0045cb",
    urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/4.5.0/rules_nodejs-4.5.0.tar.gz"],
)

and update @bazel-scoped npm packages.

For the new core package in MODULE.bazel (bzlmod users):

bazel_dep(name = "rules_nodejs", version = "4.5.0")

or for the new core package in WORKSPACE:

http_archive(
    name = "rules_nodejs",
    sha256 = "89d9ca25c4e63e69033e37af2fc04e261da7b99cbfe5dbf12ac1b326006aed8c",
    urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/4.5.0/rules_nodejs-core-4.5.0.tar.gz"],
)

What's Changed

New Contributors

Full Changelog: 4.4.6...4.5.0

4.4.6

23 Nov 20:22
Compare
Choose a tag to compare

Upgrade with:

http_archive(
    name = "build_bazel_rules_nodejs",
    sha256 = "cfc289523cf1594598215901154a6c2515e8bf3671fd708264a6f6aefe02bf39",
    urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/4.4.6/rules_nodejs-4.4.6.tar.gz"],
)

and update @bazel-scoped npm packages.

For the core package:

http_archive(
    name = "rules_nodejs",
    sha256 = "8f4a19de1eb16b57ac03a8e9b78344b44473e0e06b0510cec14a81f6adfdfc25",
    urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/4.4.6/rules_nodejs-core-4.4.6.tar.gz"],
)

What's Changed

  • Update esbuild versions by @mattem in #3082
  • fix(builtin): don't use local:1 spawn by @alexeagle in #3084
  • fix: add arm64 as a platform to //packages/concatjs:docs_scrub_platform by @CooperBills in #3089
  • chore: bump versioned browsers for rules_webtesting to 0.3.3 by @CooperBills in #3086
  • fix: update tsconfigs to include darwin_arm64-fastbuild in rootDirs by @CooperBills in #3087
  • Update esbuild versions by @mattem in #3092
  • fix: remove trailing forward slash when resolving workspace root link in runfiles MANIFEST by @gregmagolan in #3093
  • fix: normalize module path passed to runfiles helper for robustness by @gregmagolan in #3094
  • chore: update io_bazel_rules_docker commit hash to 61e2df8 by @renovate-bot in #2900

Full Changelog: 4.4.5...4.4.6

4.4.5

11 Nov 21:57
Compare
Choose a tag to compare

To upgrade,

http_archive(
    name = "build_bazel_rules_nodejs",
    sha256 = "f7037c8e295fdc921f714962aee7c496110052511e2b14076bd8e2d46bc9819c",
    urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/4.4.5/rules_nodejs-4.4.5.tar.gz"],
)

# OR

http_archive(
    name = "rules_nodejs",
    sha256 = "409f07eeccc7937b149b49bc191b103136ddf6aee411f580f0d69a462e8351a0",
    urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/4.4.5/rules_nodejs-core-4.4.5.tar.gz"],
)

What's Changed

  • Update esbuild versions by @mattem in #3070
  • fix(builtin): handle external repository file paths in js_library strip_prefix check by @gregmagolan in #3076
  • Fix link to managed dependencies by @mangini in #3075
  • fix(esbuild): add option to disable metafile generation by @mgred in #3066
  • fix(builtin): provide a DeclarationInfo from js_library is any input files are directories (TreeArtifacts) by @gregmagolan in #3077
  • fix(typescript): don't set resolveJsonModule in generated tsconfig if tsconfig is a dict and resolve_json_module is unset (now defaults to None) by @gregmagolan in #3078

Full Changelog: 4.4.4...4.4.5

4.4.4

08 Nov 17:20
Compare
Choose a tag to compare
http_archive(
    name = "build_bazel_rules_nodejs",
    sha256 = "4913ea835810c195df24d3a929315c29a64566cc48e409d8b0f35008b4e02e59",
    urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/4.4.4/rules_nodejs-4.4.4.tar.gz"],
)

# OR

http_archive(
    name = "rules_nodejs",
    sha256 = "995eb2fbcd6c0d27faea1f8b362a3a448d98d42b6c0fddc2943b72fe866a9d8e",
    urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/4.4.4/rules_nodejs-core-4.4.4.tar.gz"],
)

No npm packages were published for this bugfix release.

What's Changed

  • Update yarn versions by @mattem in #3064
  • fix(esbuild): allow passing additional args to the npm install for esbuild by @mattem in #3063
  • fix(builtin): fixed missing dist targets by @UebelAndre in #3068

New Contributors

Full Changelog: 4.4.3...4.4.4

4.4.3

04 Nov 22:06
Compare
Choose a tag to compare

To upgrade:

http_archive(
    name = "build_bazel_rules_nodejs",
    sha256 = "3720e99520c0bd31d23bf04cf365db934c5fa77badf68a8aaea523bbd442851a",
    urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/4.4.3/rules_nodejs-4.4.3.tar.gz"],
)

No npm packages were updated for this release.

For the new "core" package:

http_archive(
    name = "rules_nodejs",
    sha256 = "a2b1b60c51b0193ed1646accf77a28cfd4f4ce1f6c86f32ce11455101be3a9c4",
    urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/4.4.3/rules_nodejs-core-4.4.3.tar.gz"],
)

What's Changed

  • Update esbuild versions by @mattem in #3048
  • chore: update dependency com_google_protobuf to v3.19.1 by @renovate-bot in #3028
  • docs(examples): fix formatting issues in angular/README.md by @mgred in #3050
  • Update esbuild versions by @mattem in #3052
  • fix(docs): expose correct bzl_library targets by @alexeagle in #3049
  • chore: add jbedard as owner of angular examples by @alexeagle in #3057
  • fix: #3054 regression in linker behavior in 4.4.2 by @gregmagolan in #3059
  • refactor(examples): use dev/prod entry points in angular app by @mgred in #3053
  • fix: don't link runfiles node_modules to execroot node_modules if there is an external workspace node_modules by @gregmagolan in #3060

Full Changelog: 4.4.2...4.4.3