Skip to content

Releases: bazelbuild/rules_nodejs

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

4.4.2

28 Oct 19:11
Compare
Choose a tag to compare

Upgrade with

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

and update @bazel-scoped npm packages.

if using the new "core" package:

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

What's Changed

  • Update esbuild versions by @mattem in #3017
  • Update esbuild versions by @mattem in #3019
  • Update yarn versions by @mattem in #3020
  • Add darwin_arm64 outdir to tsconfig by @Jakob-em in #3022
  • Update esbuild versions by @mattem in #3023
  • fix: simplify portion of linker and fix case where runfiles node_modules symlinks are missing under bazel run by @gregmagolan in #3024
  • docs(esbuild): explain how to configure bazel downloader by @alexeagle in #3021
  • chore: remove Angular view engine example by @alexeagle in #3027
  • Update NodeJS Versions by @mattem in #3029
  • fix(create): relocate help argument evaluation by @mgred in #3031
  • Update esbuild versions by @mattem in #3032
  • Remove --incompatible_restrict_string_escapes by @Wyverald in #3033
  • docs(typescript): avoid duplicate headers in markdown by @alexeagle in #3034
  • fix(builtin): retrieve yarn shasums from Github releases, rather thanโ€ฆ by @mattem in #3037
  • Update NodeJS Versions by @mattem in #3038
  • fix(examples): run jest updateSnapshot in the workspace by @alexeagle in #3041
  • fix(typescript): don't declare outputs that collide with inputs by @alexeagle in #3046
  • docs(angular): the @bazel/angular package is moving out of rules_nodejs by @alexeagle in #3044
  • fix(esbuild): allow whitespace within args by @jbedard in #2998

New Contributors

Full Changelog: 4.4.1...4.4.2

4.4.1

13 Oct 16:17
Compare
Choose a tag to compare

Bugfix release just containing version bumps for node security patch.

Upgrade with

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

note, there are no new npm packages for this release, they are still at 4.4.0

Bug fixes

New Contributors

Full Changelog: 4.4.0...4.4.1

4.4.0

11 Oct 22:29
Compare
Choose a tag to compare

Upgrade with

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

and update @bazel-scoped packages.

To try out the new renamed "rules_nodejs" workspace, coming in 5.0:

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

(see e2e/core for more usage, documentation will come with 5.0)

Bug Fixes

  • ts_proto_library: use correct output path for external protos (#3002) (b48176f)
  • typescript: typescript downleveling breaking ESM variant of Angular v13 compiler (#2987) (5e4d17d)
  • update jasmine-reporters to v2.5.0 to fix xmldom vulnerability (#2994) (8ca234b)

Features

  • core: patch bazel-skylib; core can use npm (#3008) (e6ead39)
  • examples: change angular example to ts_project (#2209) (73e625a)

4.3.0

28 Sep 17:41
Compare
Choose a tag to compare

Upgrade with WORKSPACE:

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

and update @bazel-scoped npm packages.

Bug Fixes

  • cypress: use correct label to reference plugins/base.js (#2977) (6acec9d), closes #2976
  • esbuild: fix depending on testonly targets (#2984) (4278ef1)
  • runfiles: don't use false as a no-error value (#2974) (de1eaf6)

Features

  • builtin: expose a concrete toolchain for rules that don't underโ€ฆ (#2960) (64ad805)
  • esbuild: bump version of esbuild to 0.13.2 (#2985) (4bb25bf)
  • typescript: support for ESM variant of the Angular compiler plugin (#2982) (6f97a7c)

4.2.0

17 Sep 18:37
Compare
Choose a tag to compare

To upgrade:

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

and update @bazel-scoped npm packages

Bug Fixes

  • builtin: pkg_npm unable to copy files from transitioned actions (#2942) (4291e20)
  • typescript: exclude package(-lock).json from default ts_project srcs (0245b6d)
  • worker: check if the input digest present (b43c594)

Features

  • builtin: add a toolchain to new core that exposes the node for any platform (20f4a8f)
  • builtin: add support for stopping propagation of link_node_modules aspect (dedc982)
  • introduce "core" package at /nodejs (a32cf5c)