Skip to content

Releases: bazel-contrib/rules_nodejs

5.4.0

06 Apr 06:44
Compare
Choose a tag to compare

Upgrade with

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

# or for the "core" package
http_archive(
    name = "rules_nodejs",
    sha256 = "1f9fca05f4643d15323c2dee12bd5581351873d45457f679f84d0fe0da6839b7",
    urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.4.0/rules_nodejs-core-5.4.0.tar.gz"],
)

and update @bazel-scoped npm packages.

What's Changed

Full Changelog: 5.3.1...5.4.0

5.3.1

29 Mar 21:42
Compare
Choose a tag to compare

Upgrade with:

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

# or for the core module:
http_archive(
    name = "rules_nodejs",
    sha256 = "f268b0ab459668073a33d7d5b156e45c258baf6238d8547b9ba626cc63ca45e5",
    urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.3.1/rules_nodejs-core-5.3.1.tar.gz"],
)

What's Changed

  • Update NodeJS Versions by @mattem in #3372
  • fix(builtin): require correct runfiles path to chdir script by @kormide in #3374
  • fix(builtin): allow static files to be specified in pkg_npm create_package helper by @devversion in #3379
  • fix: condition on target instead of exec by @thesayyn in #3373

Full Changelog: 5.3.0...5.3.1

5.3.0

20 Mar 17:05
Compare
Choose a tag to compare

Upgrade with:

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

# Or for "core" module
http_archive(
    name = "rules_nodejs",
    sha256 = "dfcfc36aab6ecf5ea9c64bafbf18c594f2b870bb6d0b298d01662b9ce8c1cebb",
    urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.3.0/rules_nodejs-core-5.3.0.tar.gz"],
)

and update @bazel-scoped npm packages to latest

What's Changed

New Contributors

Full Changelog: 5.2.0...5.3.0

5.2.0

01 Mar 15:54
Compare
Choose a tag to compare

Upgrade:

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

# or for the core module
http_archive(
    name = "rules_nodejs",
    sha256 = "1e03adc202a051335d21028b592d412100255e60901371ea44131b20e600778a",
    urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.2.0/rules_nodejs-core-5.2.0.tar.gz"],
)

And update @bazel-scoped npm packages.

What's Changed

  • Update doc for executing the Bazel fetched yarn by @cgrindel in #3313
  • Update esbuild versions by @mattem in #3310
  • test: add test for use_nvmrc in toolchain creation by @jstuder-gh in #3325
  • Update NodeJS Versions by @mattem in #3319
  • esbuild - switch sourcemap test to ts_project, add sources_content test by @jbedard in #3300
  • Update esbuild versions by @mattem in #3320
  • fix(builtin): avoid unnecessary chdir to prevent worker threads from failing by @kormide in #3322
  • feat(typescript): warn the user when rootDirs looks wrong in ts_proje… by @alexeagle in #3126
  • write captured exit code into the right directory by @ptarjan in #3334
  • Update esbuild versions by @mattem in #3332
  • ci: disable a build step on Windows by @alexeagle in #3335
  • feat(examples): example jest add junit reporter by @joeljeske in #3338
  • Update NodeJS Versions by @mattem in #3337
  • fix(builtin): take custom node_repositories value into account when checking if Node version exists for the platform by @mattem in #3339
  • feat(builtin): perform make variable substitution in npm_package_bin env vars by @kormide in #3343
  • docs: add data attribute to ts_project macro by @alexeagle in #3346
  • fix(builtin): use srcs on genrule to not build tool for host by @mattem in #3344
  • chore: followup to #3335 by @alexeagle in #3347
  • fix(typescript): account for rootDir when predicting json output paths by @alexeagle in #3348

New Contributors

Full Changelog: 5.1.0...5.2.0

4.7.0

01 Mar 00:41
Compare
Choose a tag to compare

There are no npm packages published for this release, since they are the same as 4.6.x

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

# or for core package
http_archive(
    name = "rules_nodejs",
    sha256 = "028a98df48fd33c9932b3a442a3f55fee5f169d5e3670b3bc48b801f94e012a0",
    urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/4.7.0/rules_nodejs-core-4.7.0.tar.gz"],
)

4.6.3

25 Feb 19:42
Compare
Choose a tag to compare

Note, no npm packages were published for this release, as there were no changes since 4.6.2

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

# Or for core package
http_archive(
    name = "rules_nodejs",
    sha256 = "5107baea6eb4ca5ea114bd027e6cc7c92df33922d8af891e4a00c29a0183d267",
    urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/4.6.3/rules_nodejs-core-4.6.3.tar.gz"],
)

What's Changed

  • fix(builtin): take custom node_repositories value into account when checking if Node version exists for the platform by @mattem in #3342

Full Changelog: 4.6.2...4.6.3

4.6.2

15 Feb 18:34
Compare
Choose a tag to compare
http_archive(
    name = "build_bazel_rules_nodejs",
    sha256 = "2644a66772938db8d8c760334a252f1687455daa7e188073f2d46283f2f6fbb7",
    urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/4.6.2/rules_nodejs-4.6.2.tar.gz"],
)

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

note, npm packages are tagged lts rather than latest

What's Changed

  • chore: renovate stop sending PRs for examples by @alexeagle in #3246
  • fix(cypress): use depsets for runfiles and data by @mrmeku in #3240
  • fix(builtin): npm_package_bin include runfiles in DefaultInfo by @alexeagle in #3261
  • fix(typescript): propagate tags to validate_options by @djmarcin in #3260
  • Update NodeJS Versions by @mattem in #3265

New Contributors

Full Changelog: 4.6.1...4.6.2

5.1.0

02 Feb 20:31
Compare
Choose a tag to compare

Big thanks to @twheys for extending ts_project to allow filegroup-like inputs (where the outputs cannot be pre-declared by the rule)
and to @fmeum for a signficant performance fix for npm packages in the analysis phase!

Upgrade:

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

load("@build_bazel_rules_nodejs//:repositories.bzl", "build_bazel_rules_nodejs_dependencies")

build_bazel_rules_nodejs_dependencies()

and update @bazel-scoped npm packages.

For the "core" package

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

What's Changed

  • Update esbuild versions by @mattem in #3303
  • Add Glean as an organizational adopter by @tony-scio in #3305
  • fix(builtin): make linker aspect run in constant time per target by @fmeum in #3301
  • fix(builtin): reduce linker debug string allocations by @fmeum in #3309
  • Update NodeJS Versions by @mattem in #3308
  • Update esbuild versions by @mattem in #3307
  • Changed calculation of outs in ts_project to support using rule outputs as srcs by @twheys in #3228

New Contributors

Full Changelog: 5.0.2...5.1.0

5.0.2

27 Jan 23:30
Compare
Choose a tag to compare

Upgrade with:

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

# or

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

What's Changed

  • fix(builtin): pass kwargs from node_repositories helper by @alexeagle in #3287
  • Update esbuild versions by @mattem in #3288
  • fix(jasmine): replace deprecated Jasmine APIs that have been removed in version 4 by @alan-agius4 in #3283
  • fix: use robocopy in copy_file#is_directory so we don't hit file path length limit of xcopy by @gregmagolan in #3295
  • fix(jasmine): can not reference runner when exports_directories_only=… by @thesayyn in #3293

Full Changelog: 5.0.1...5.0.2

5.0.1

24 Jan 14:20
Compare
Choose a tag to compare

Upgrade to 5.0.0 first. Then, change WORKSPACE:

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

load("@build_bazel_rules_nodejs//:repositories.bzl", "build_bazel_rules_nodejs_dependencies")
build_bazel_rules_nodejs_dependencies()

for Core package

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

Then update @bazel-scoped npm packages.

What's Changed

Full Changelog: 5.0.0...5.0.1