This repository has been archived by the owner on Feb 6, 2024. It is now read-only.
Update dependency build_bazel_rules_nodejs to v1 #503
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.42.3
->1.1.0
Release Notes
bazelbuild/rules_nodejs
v1.1.0
Compare Source
Bug Fixes
Features
1.0.1 (2020-01-03)
Bug Fixes
Features
v1.0.1
Compare Source
Bug Fixes
Features
1.0.1 (2020-01-03)
Bug Fixes
Features
v1.0.0
Compare Source
Bug Fixes
chore
Code Refactoring
bootstrap
attribute & fix $(location) expansions in nodejs_binary templated_args (1860a6a)args
to yarn_install & npm_install (#1462) (d245d09)Features
Performance Improvements
BREAKING CHANGES
templated_args_file
removed from nodejs_binary, nodejs_test & jasmine_node_test. This was a separation of concerns and complicated node.bzl more than necessary while also being rigid in how the params file is formatted. It is more flexible to expose this functionality as another simple rule named params_file.To match standard$(location) and $ (locations) expansion, params_file args location expansions are also in the standard short_path form (this differs from the old templated_args behavior which was not Bazel idiomatic)
Usage example:
This can be replaced with the
--node_options=--require=$(location label)
argument such as,or
templated_args
$(location)
and$(locations)
are now correctly expanded when there is no space before$(location
such as
templated_args = ["--node_options=--require=$(rlocation $(location :bootstrap.js))"]
.Path is returned in runfiles manifest path format such as$(mlocation) and $ (mlocations) used to expand
repo/path/to/file
. This differs from how $(location)and $(locations) expansion behaves in expansion the
args
attribute of a __binary or __test which returnsthe runfiles short path of the format
./path/to/file
for user repo and../external_repo/path/to/file
for externalrepositories. We may change this behavior in the future with
to the runfiles manifest path.
See https://docs.bazel.build/versions/master/be/common-definitions.html#common-attributes-binaries.
args
in yarn_install and npm_install can be used to pass arbitrary arguments so we removed the following attributes:npm_package
renamed topkg_npm
. This is to match the naming convention for package rules https://docs.bazel.build/versions/master/be/pkg.html.//internal/common:npm_pacakge_info.bzl removed; load from //:providers.bzl instead
transitive_js_ecma_script_module_info macro removed; use js_ecma_script_module_info instead
@npm_bazel_karma//:browser_repositories.bzl removed; use @io_bazel_rules_webtesting//web/versioned:browsers-0.3.2.bzl instead
@npm_bazel_protractor//:browser_repositories.bzl removed; use @io_bazel_rules_webtesting//web/versioned:browsers-0.3.2.bzl instead
ts_web_test & ts_web_test_suite marcos removed; use karma_web_test & karma_web_test_suite instead
0.42.3 (2019-12-10)
To upgrade:
and run
yarn upgrade --scope @​bazel
to update all your@bazel
-scoped npm packages to the latest versions.(or manually do the npm equivalent - they don't have a way to update a scope)
Bug Fixes
Features
0.42.2 (2019-12-04)
Bug Fixes
0.42.1 (2019-11-27)
To upgrade:
and run
yarn upgrade --scope @​bazel
to update all your@bazel
-scoped npm packages to the latest versions.(or manually do the npm equivalent - they don't have a way to update a scope)
New stuff
In 0.41.0 we noted that a feature for inserting
<script>
and<link>
tags was dropped fromts_devserver
andpkg_web
but the replacement wasn't available. Now it is thanks to @jbedard who published a standalone npm packagehtml-insert-assets
. You can see how it's wired in the examples.If you waited to upgrade before, now you should.
Bug Fixes
BREAKING CHANGES
npm_package_bin
and all rules generated by it, to match genrule behavior as documented at https://docs.bazel.build/versions/master/be/make-variables.html#predefined_genrule_variablesThis means that usage of the
$@​
shortcut to refer to the output directory should now be$(@​D)
whenoutput_dir=True
and you can now use
$@​
to refer to the location of a single outputRenovate configuration
📅 Schedule: "at 7am on Monday" (UTC).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "
rebase!
".🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.