Skip to content

Releases: bazel-contrib/rules_nodejs

0.30.0

22 May 19:54

Choose a tag to compare

BREAKING CHANGES:

  • We depend on Bazel 0.26 which has a new "managed directories" feature. This was added specifically to improve the integration with external package managers npm and yarn.

  • we now use the same node_modules directory under Bazel as your package manager does when run locally.
    See https://github.com/bazelbuild/rules_nodejs/wiki#migrating-to-rules_nodejs-030 for migration instructions.

  • yarn_install & npm_install attribute excluded_packages is now deprecated. Now that yarn_install and npm_install use node_modules in the user's folder by default, this attribute is no longer useful since large packages such as @bazel/bazel will no longer be installed twice.

  • yarn_install & npm_install attribute data is no longer needed, unless you've symlink_node_modules = False. This is because Bazel runs the package manager in your project directory so all files are available without explicit declaration.

  • npm_install#package_lock_json attribute is now mandatory

0.29.2

22 May 15:49

Choose a tag to compare

Add a terser compile-time constant for Angular

0.29.1

21 May 20:05

Choose a tag to compare

Version bumps for dependencies

Remove the extra yarn_install needed by the web_package rule

0.29.0

09 May 19:22

Choose a tag to compare

BREAKING CHANGES

ts_library strict dependencies now apply to libraries from npm.
You can use deps=["@npm//:node_modules"] to depend on all node_modules, but this has performance implications.
We suggest adding missing dependencies individually to the deps of the ts_library, following guidance from the compile errors.

Changes

New check_bazel_version_range function to ensure your team uses the Bazel version you require

We automatically generate a named UMD bundle at @npm//node_modules/package:package.umd.js so that the concatjs bundler can work with third-party libraries.

ts_library now automatically gathers typings from npm packages in the deps.

web_package

  • Support the same root paths as ts_devserver, fix for #728

rollup_bundle

  • now includes the json plugin
  • bugfix for downleveling

0.28.0

25 Apr 17:47

Choose a tag to compare

BREAKING CHANGES

  • npm_package now throws for any files in srcs which do not reside in the same package as the target. These files should be in the deps instead. (Note that in previous releases, we didn't permit these files in deps.)

Features

  • rollup_bundle: new output_group lets you select .js and .js.map files together for different output flavors, thanks @jbedard
  • rollup_bundle: UMD bundles can now be requested es5 and es5 minified, thanks @jbedard

Fixes

  • don't depend on Windows PowerShell, fixes angular/angular#29760
  • fixes for karma: get right dependency versions, use the same version of karma-jasmine as Angular CLI
  • add missing progress_messages, fixes #705
  • add LICENSE files for @bazel/bazel mirrored packages
  • don't create nodejs_binary targets when the package.json bin entry is empty, fixes #692 - thanks @manekinekko
  • external source maps on Windows, thanks @devversion
  • jasmine_node_test uses native test wrapper on windows, thanks @laszlocsomor

0.27.12

09 Apr 22:53

Choose a tag to compare

Fixed an issue with transitive node_modules not being available to the rollup_bundle rule. Such deps don't need to be repeated now.

Introduced new package http://npmjs.com/package/@bazel/labs - this contains more experimental features that might be breaking or even removed in the future.

This contains the start of a webpack_bundle rule.

0.27.10

03 Apr 23:13

Choose a tag to compare

  • add a special case when Angular Package Format packages are found in node_modules, generating a special BUILD file for them so that devmode scripts flow to downstream targets
  • you can now access the devmode manifest output of a ts_devserver, useful for plumbing through to your own server
  • packages can now publish a bazelBin key in their package.json, indicating additional attributes to put on the generated nodejs_binary

0.27.9

29 Mar 20:28

Choose a tag to compare

Changes to @bazel/jasmine/jasmine_node_test:

  • more fixes for sharding and loading
  • can produce coverage data
  • fix deprecation warnings about load path

0.27.8

25 Mar 17:34

Choose a tag to compare

rel: 0.27.8

0.27.7

19 Mar 18:28

Choose a tag to compare

Fixes for jasmine_node_test

Note: 0.27.6 and 0.27.5 had a regression in the web_package and ts_devserver rules and should not be used.