Releases: bazelbuild/rules_nodejs
5.0.0-rc.1
Please use 5.0.0-rc2 instead.
5.0.0-rc.0
replaced by 5.0.0-rc.1
4.6.1
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
- fix(builtin): detect yarn 2+ berry and adjust CLI args by @alexeagle in #3195
- fix(typescript): add build_test to ensure typecheck is run under --bu… by @alexeagle in #3196
- chore: code review feedback for #3195 by @alexeagle in #3203
- Update NodeJS Versions by @mattem in #3211
- Update esbuild versions by @mattem in #3200
- docs: add diff_test note to generated_file_test by @alexeagle in #3217
- fix(typescript): filter out .d.ts before passing srcs to transpiler by @thesayyn in #3238
Full Changelog: 4.6.0...4.6.1
4.6.0
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
- Update NodeJS Versions by @mattem in #3149
- Update esbuild versions by @mattem in #3158
- Update esbuild versions by @mattem in #3161
- Update NodeJS Versions by @mattem in #3154
- fix: bump jasmine-reporters to 2.5.0 by @harsha509 in #3180
- Update esbuild versions by @mattem in #3179
- fix(builtin): js_library: propagate all default_runfiles by @alexeagle in #3183
- Update grpc-web and protobuf dependencies by @ronilichtman in #3185
- feat(typescript): allow alternative transpilers by @alexeagle in #3134
- Revert "fix(builtin): add transitive typings to runfiles provider pro… by @alexeagle in #3189
- fix(typescript): ts_project transpiler produces js_library by @alexeagle in #3187
New Contributors
- @harsha509 made their first contribution in #3180
- @ronilichtman made their first contribution in #3185
Full Changelog: 4.5.1...4.6.0
4.5.1
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
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
- fix: don't symlink execroot node_modules with a package_path when under bazel run by @gregmagolan in #3096
- fix: unset INIT_CWD and npm_config_registry before calling yarn in yarn_install by @gregmagolan in #3099
- fix(esbuild): do not ignore annotations when the
minify
shorthand attribute isfalse
by @devversion in #3106 - Update NodeJS Versions by @mattem in #3105
- fix(esbuild): format attribute not working with multiple entry points or output_dir by @devversion in #3103
- chore: update io_bazel_rules_docker commit hash to 2b35b2d by @renovate-bot in #3095
- Update esbuild versions by @mattem in #3100
- fix(builtin): support mjs/cjs files as javascript files in
js_library
by @devversion in #3108 - chore: increase max node version to 17.* by @UebelAndre in #3110
- Update esbuild versions by @mattem in #3115
- chore: update io_bazel_rules_docker commit hash to dc76ef7 by @renovate-bot in #3114
- Update NodeJS Versions by @mattem in #3112
- fix: allow cypress to run on m1 macs by @CooperBills in #3088
- chore: double stale timeouts by @alexeagle in #3111
- docs: fix typo in cypress load statement by @thesayyn in #3128
- feat: add bzlmod extension by @alexeagle in #3146
- Allow soft fail for "rbe_ubuntu1604" by @meteorcloudy in #3145
- Update esbuild versions by @mattem in #3140
- chore: update io_bazel_rules_docker commit hash to 86c54e5 by @renovate-bot in #3116
- feat(esbuild): make Starlark build settings usable as defines by @fmeum in #3122
New Contributors
Full Changelog: 4.4.6...4.5.0
4.4.6
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
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
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
- @UebelAndre made their first contribution in #3068
Full Changelog: 4.4.3...4.4.4
4.4.3
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