Releases: bazel-contrib/rules_nodejs
0.30.0
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
attributeexcluded_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
attributedata
is no longer needed, unless you'vesymlink_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
0.29.1
0.29.0
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
BREAKING CHANGES
npm_package
now throws for any files insrcs
which do not reside in the same package as the target. These files should be in thedeps
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 @jbedardrollup_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.jsonbin
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
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
- 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 generatednodejs_binary