Skip to content

Releases: bazelbuild/rules_nodejs

0.16.4

18 Dec 22:33
Compare
Choose a tag to compare

Introduce web_package rule for inserting script tags and link tags into html.

0.16.3

04 Dec 21:03
Compare
Choose a tag to compare

Minor bugfixes

Bugfixes, improved npm/yarn install flow

20 Nov 17:43
Compare
Choose a tag to compare

New behavior of npm_install and yarn_install rules:

  • instead of symlinking the package.json file into bazel, we now copy it. This means Bazel will no longer make edits to your lock file.
  • the output from the command will be streamed to your terminal. Instead of bazel silently saying "analyzing" you'll now see the install progress. Set quiet to True in the npm_install or yarn_install rule to get the previous behavior
  • the exclude_packages attribute filters out @bazel/bazel from being installed again under Bazel.
  • we no longer omit test and .bin directories from the generated BUILD file
  • set the --network-timeout option when running yarn install since we saw a lot of timeouts

0.16.1

16 Nov 15:57
Compare
Choose a tag to compare

Minor bugfixes

Performance fix: remove globs

13 Nov 21:26
Compare
Choose a tag to compare

Builds should now be faster because Bazel doesn't need to scan directories during the analysis phase. Previously we created BUILD files under the Bazel-managed dependencies when using yarn_install that contained glob
https://docs.bazel.build/versions/master/be/functions.html#glob

Note the new included_files option to yarn_install https://bazelbuild.github.io/rules_nodejs/npm_install/npm_install.html#yarn_install which lets you further trim the files needed as inputs to Bazel actions.

BREAKING CHANGE:

  • yarn_install and npm_install no longer generate "lite" targets like @npm//node_modules/glob:glob__lite

yarn cache

16 Oct 21:08
Compare
Choose a tag to compare

Should improve performance of repository rule yarn_install by using the global yarn cache on your machine.

0.15.0

04 Oct 23:18
Compare
Choose a tag to compare

BREAKING CHANGES:

  • Fine grained deps targets changed from @wksp//:pkg to @wksp//pkg and binary targets changed from @wksp//:pkg/name to @wksp//pkg/bin:name

0.14.0

21 Sep 19:04
Compare
Choose a tag to compare

Various bug fixes including Windows support for rollup.

BREAKING CHANGES:

  • If your nodejs_binary relies on variables from bazel build --define=foo=bar to be available as environment variables in the node process, you must now list those variable names in the configuration_env_vars attribute
  • The manual_build_file_contents attribute on yarn_install and npm_install is now appended to generated build file instead of replacing its contents
  • The prod_only attribute on yarn_install was removed since fine-grained npm deps gives more control

0.13.1

14 Sep 17:21
Compare
Choose a tag to compare

Minor bugfix to jasmine spec filtering.

See https://github.com/bazelbuild/rules_nodejs/wiki#migrating-to-rules_nodejs-013 for breaking changes in 0.13

fine-grained deps

14 Sep 17:20
Compare
Choose a tag to compare