Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Everything (major) #5243

Closed
wants to merge 1 commit into from
Closed

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 30, 2020

This PR contains the following updates:

Package Type Update Change
bazel_skylib http_archive major 0.8.0 -> 1.0.2
build_bazel_rules_nodejs http_archive major 0.38.1 -> 1.5.0
com_github_beorn7_perks go_repository major v0.0.0 -> v1.0.1
com_github_cespare_xxhash go_repository major v0.0.0 -> v2.1.1
com_github_davecgh_go_spew go_repository major v0.0.0 -> v1.1.1
com_github_deckarep_golang_set go_repository major v0.0.0 -> v1.7.1
com_github_edsrzf_mmap_go go_repository major v0.0.0 -> v1.0.0
com_github_ghodss_yaml go_repository major v0.0.0 -> v1.0.0
com_github_go_stack_stack go_repository major v0.0.0 -> v1.8.0
com_github_go_yaml_yaml go_repository major v0.0.0 -> v2.2.8
com_github_golang_mock go_repository major v0.0.0 -> v1.4.3
com_github_google_uuid go_repository major v0.0.0 -> v1.1.1
com_github_gorilla_websocket go_repository major v0.0.0 -> v1.4.2
com_github_grpc_ecosystem_go_grpc_middleware go_repository major v0.0.0 -> v1.2.0
com_github_grpc_ecosystem_go_grpc_prometheus go_repository major v0.0.0 -> v1.2.0
com_github_hashicorp_errwrap go_repository major v0.0.0 -> v1.0.0
com_github_hashicorp_go_multierror go_repository major v0.0.0 -> v1.0.0
com_github_huin_goupnp go_repository major v0.0.0 -> v1.0.0
com_github_inconshreveable_mousetrap go_repository major v0.0.0 -> v1.0.0
com_github_ipfs_go_log go_repository major v0.0.0 -> v2.0.3
com_github_jackpal_gateway go_repository major v0.0.0 -> v1.0.6
com_github_jackpal_go_nat_pmp go_repository major v0.0.0 -> v1.0.2
com_github_json_iterator_go go_repository major v0.0.0 -> v1.1.6
com_github_konsorten_go_windows_terminal_sequences go_repository major v0.0.0 -> v1.0.2
com_github_libp2p_go_yamux go_repository major v0.0.0 -> v1.3.4
com_github_matttproud_golang_protobuf_extensions go_repository major v0.0.0 -> v1.0.1
com_github_modern_go_reflect2 go_repository major v0.0.0 -> v1.0.1
com_github_mr_tron_base58 go_repository major v0.0.0 -> v1.1.3
com_github_opentracing_opentracing_go go_repository major v0.0.0 -> v1.1.0
com_github_patrickmn_go_cache go_repository major v0.0.0 -> v2.1.0
com_github_pborman_uuid go_repository major v0.0.0 -> v1.2.0
com_github_prometheus_client_golang go_repository major v0.0.0 -> v1.5.1
com_github_rs_cors go_repository major v0.0.0 -> v1.7.0
com_github_sirupsen_logrus go_repository major v0.0.0 -> v1.5.0
com_github_spaolacci_murmur3 go_repository major v0.0.0 -> v1.1.0
com_github_spf13_pflag go_repository major v0.0.0 -> v1.0.5
com_github_syndtr_goleveldb go_repository major v0.0.0 -> v1.0.0
com_github_wealdtech_go_bytesutil go_repository major v0.0.0 -> v1.1.1
com_github_wealdtech_go_ecodec go_repository major v0.0.0 -> v1.1.0
com_github_wealdtech_go_eth2_types go_repository major v0.0.0 -> v2.0.2
com_github_wealdtech_go_eth2_util go_repository major v0.0.0 -> v1.1.2
com_github_wealdtech_go_eth2_wallet go_repository major v0.0.0 -> v1.9.2
com_github_wealdtech_go_eth2_wallet_encryptor_keystorev4 go_repository major v0.0.0 -> v1.0.0
com_github_wealdtech_go_eth2_wallet_hd go_repository major v0.0.0 -> v2.0.0
com_github_wealdtech_go_eth2_wallet_nd go_repository major v0.0.0 -> v2.0.0
com_github_wealdtech_go_eth2_wallet_store_filesystem go_repository major v0.0.0 -> v1.7.1
com_github_wealdtech_go_eth2_wallet_store_s3 go_repository major v0.0.0 -> v1.6.1
com_github_wealdtech_go_eth2_wallet_types go_repository major v0.0.0 -> v2.0.0
com_github_wealdtech_go_indexer go_repository major v0.0.0 -> v1.0.0
com_github_whyrusleeping_mafmt go_repository major v0.0.0 -> v1.2.8
grpc_ecosystem_grpc_gateway go_repository major v0.0.0 -> v1.14.3
in_gopkg_d4l3k_messagediff_v1 go_repository major v0.0.0 -> v1.2.1
in_gopkg_yaml_v2 go_repository major v0.0.0 -> v2.2.8
io_k8s_client_go go_repository major v0.0.0 -> v12.0.0
io_k8s_klog go_repository major v0.0.0 -> v1.0.0
io_k8s_sigs_yaml go_repository major v0.0.0 -> v1.2.0
org_uber_go_automaxprocs go_repository major v0.0.0 -> v1.3.0

Release Notes

bazelbuild/bazel-skylib

v1.0.2

Compare Source

New Features

  • Added types.is_set() to test whether an arbitrary object is a set as defined by sets.bzl.

Incompatible Changes

  • @​bazel_skylib//:lib.bzl is removed. You now must specify specific modules via @​bazel_skylib//lib:.bzl.
  • maprule.bzl is removed.
    Added types.is_set() to test whether an arbitrary object is a set as defined by sets.bzl.

WORKSPACE setup

load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "bazel_skylib",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz",
        "https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz",
    ],
    sha256 = "97e70364e9249702246c0e9444bccdc4b847bed1eb03c5a3ece4f83dfe6abc44",
)
load("@​bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
bazel_skylib_workspace()

Using the rules

See the source.

v1.0.1

Compare Source

New Features

Patch release to 1.0.0 to provide toolchain for unittest library.

WORKSPACE setup

load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "bazel_skylib",
    url = "https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.1/bazel-skylib-1.0.1.tar.gz",
    sha256 = "f1c8360c01fcf276778d3519394805dc2a71a64274a3a0908bc9edff7b5aebc8",
)
load("@​bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
bazel_skylib_workspace()

Using the rules

See the source.

v1.0.0

Compare Source

WARNING - unittests do not work. Wait for 1.0.1

Incompatible Changes

  • @​bazel_skylib//:lib.bzl is removed. You now must specify specific modules
    via @​bazel_skylib//lib:.bzl.
  • maprule.bzl is removed.

New Features

  • Added types.is_set() to test whether an arbitrary object is a set as defined by sets.bzl.

WORKSPACE setup

load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "bazel_skylib",
    url = "https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.0/bazel-skylib-1.0.0.tar.gz",
    sha256 = "e72747100a8b6002992cc0bf678f6279e71a3fd4a88cab3371ace6c73432be30",
)
load("@​bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
bazel_skylib_workspace()

Using the rules

See the source.

v0.9.0

Compare Source

Incompatible Changes

  • Make sets.bzl point to new_sets.bzl instead of old_sets.bzl new_sets.bzl and
    old_sets.bzl should be removed in a following skylib release.

New Features

  • common_settings.bzl: Standard data types for user defined build
    configuration. Common scalar build settings for rules to use so they don't
    recreate them locally. This fulfills part of the SBC design doc:
    https://docs.google.com/document/d/1vc8v-kXjvgZOdQdnxPTaV0rrLxtP2XwnD2tAZlYJOqw/edit#bookmark=id.iiumwic0jphr

  • selects.bzl: Add config_setting_group for config_setting AND/OR-chaining
    Implements
    https://github.com/bazelbuild/proposals/blob/master/designs/2018-11-09-config-setting-chaining.md.

  • run_binary: runs an executable as an action

    • This rule is an alternative for genrule(): it canrun a binary with the
      desired arguments, environment, inputs, and outputs, as a single build
      action, without shelling out to Bash.
    • Fixes #​149
  • New native_binary() and native_test() rules let you wrap a pre-built
    binary in a binary and test rule respectively.

    • native_binary() wraps a pre-built binary or script in a *_binary rule
      interface. Rules like genrule can tool-depend on it, and it can be
      executed with "bazel run". This rule can also augment the binary with
      runfiles.
    • native_test() is similar, but creates a testable rule instead of a
      binary rule.
    • Fixes #​148
  • diff_test: test rule compares two files and passes if the files match.

  • maprule: move functionality to maprule_util.bzl.
    maprule_util.bzl will benefit planned new rules (namely a genrule alternative).

This release is tested with Bazel 0.28

WORKSPACE setup

load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@​bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")

maybe(
    http_archive,
    name = "bazel_skylib",
    url = "https://github.com/bazelbuild/bazel-skylib/releases/download/0.9.0/bazel_skylib-0.9.0.tar.gz",
    sha256 = "1dde365491125a3db70731e25658dfdd3bc5dbdfd11b840b3e987ecf043c7ca0",
)

load("@​bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
bazel_skylib_workspace()
bazelbuild/rules_nodejs

v1.5.0

Compare Source

Bug Fixes
Features
  • builtin: add LinkablePackageInfo to pkg_npm, js_library & ts_library (1023852)
  • builtin: add support for predefined variables and custom variable to params_file (34b8cf4)
  • builtin: support $(rootpath), $(execpath), predefined & custom variables in templated_args (5358d56)
  • labs: introduce a new ts_proto_library with grpc support (8b43896)
  • rollup: add worker support to rollup_bundle (66db579)
  • typescript: add devmode_target, devmode_module, prodmode_target & prodmode_module attributes (#​1687) (1a83a7f)
  • typescript: add ts_project rule (#​1710) (26f6698)
Examples
  • examples: fix angular examples prod serve doesn't work on windows (#​1699) (063fb13),
Documentation

1.4.1 (2020-03-06)

Bug Fixes
  • builtin: Bazel build failing when project is not on the system drive on Windows (C:) (#​1641) (d9cbb99f
  • windows_utils: Escaping \ and " before passing args to bash scrip… (#​1685) (f9be953d

v1.4.1

Compare Source

Bug Fixes
  • builtin: Bazel build failing when project is not on the system drive on Windows (C:) (#​1641) (d9cbb99f
  • windows_utils: Escaping \ and " before passing args to bash scrip… (#​1685) (f9be953d

v1.4.0

Compare Source

Bug Fixes
  • builtin: don't include external files when pkg_npm is in root package (#​1677) (8089999), closes #​1499
  • examples: change build target label to //src:prodapp (a7f07d1)
  • examples: fix angular examples to use bazelisk (02e6462)
  • ensure BAZEL_NODE_RUNFILES_HELPER & BAZEL_NODE_PATCH_REQUIRE are absolute (#​1634) (25600ea)
  • expand_variables helper should handle external labels (3af3a0d)
  • logic error in expand_variables (#​1631) (32c003f)
  • yarn cache path should be a string (#​1679) (a43809b)
  • builtin: use posix paths in assembler (d635dca), closes #​1635
  • create: use latest typescript (a8ba18e), closes #​1602
  • examples: add fixes to angular architect (f6f40c3)
  • remove empty arguments from launcher (#​1650) (aa3cd6c)
Features
  • @​bazel/jasmine: update dependencies to jasmine v3.5.0 (98fab93)
  • docs: add authroing instructions (4dde728)
  • docs: add header anchor links (2002046)
  • docs: add vscode debugging section (78d308f)
  • examples: add serve to angular architect (1569f4b)
  • jasmine: configure XML reporter to capture detailed testlogs (8abd20d)
  • rollup: add args attribute to rollup_bundle rule (#​1681) (94c6182)
  • rollup: add silent attr to rollup_bundle to support --silent flag (#​1680) (18e8001)
  • typescript: use run_node helper to execute tsc (066a52c)

v1.3.0

Compare Source

Bug Fixes
Features
  • builtin: add environment attribute to yarn_install & npm_install (#​1596) (87b2a64)
  • builtin: expose @npm//foo__all_files filegroup that includes all files in the npm package (#​1600) (8d77827)
  • examples: add protractor angular architect (#​1594) (d420019)

1.2.4 (2020-01-31)

Bug Fixes
  • builtin: fix logic error in linker conflict resolution (#​1597) (b864223)

1.2.2 (2020-01-31)

Bug Fixes
  • unset YARN_IGNORE_PATH in yarn_install before calling yarn (5a2af71)
  • fixes bazelbuild/rules_nodejs#​1567 Recursively copy files from subdirectories into mirrored structure in the npm archive (c83b026)
Code Refactoring
  • Replace grep with bash's regex operator (9fb080b)
Examples
  • enable test file crawling for jest example (8854bfd)
  • add angular bazel architect (6dc919d)

1.2.1 (2020-01-30)

Bug Fixes
  • allow "src" and "bin" module mappings to win over "runfiles" (110e00e)
  • also link "runfiles" mappings from *_test rules (79bedc5)
  • osx hide-bazel-files issue with fsevents (#​1578) (64a31ab)
  • yarn_install failure if yarn is a dependency (#​1581) (f712377)

v1.2.4

Compare Source

Bug Fixes
  • builtin: fix logic error in linker conflict resolution (#​1597) (b864223)

v1.2.2

Compare Source

Bug Fixes
  • unset YARN_IGNORE_PATH in yarn_install before calling yarn (5a2af71)
  • fixes bazelbuild/rules_nodejs#​1567 Recursively copy files from subdirectories into mirrored structure in the npm archive (c83b026)
Code Refactoring
  • Replace grep with bash's regex operator (9fb080b)
Examples
  • enable test file crawling for jest example (8854bfd)
  • add angular bazel architect (6dc919d)

v1.2.1

Compare Source

Bug Fixes
  • allow "src" and "bin" module mappings to win over "runfiles" (110e00e)
  • also link "runfiles" mappings from *_test rules (79bedc5)
  • osx hide-bazel-files issue with fsevents (#​1578) (64a31ab)
  • yarn_install failure if yarn is a dependency (#​1581) (f712377)

v1.2.0

Compare Source

Bug Fixes
  • builtin: legacy module_mappings_runtime_aspect handles dep with module_name but no module_root (9ac0534)
  • builtin: nodejs_binary collects module_mappings for linker (4419f95)
  • builtin: set cwd before running yarn for yarn_install (#​1569) (d7083ac)
Features
  • builtin: add configuration_env_vars to npm_package_bin (07d9f5d)

v1.1.0

Compare Source

Bug Fixes
  • separate nodejs require patches from loader and —require them first (b10d230)
  • karma: pass --node_options to karma (d48f237)
  • protractor: pass --node_options to protractor (a3b39ab)
Features
  • builtin: add support for Predefined variables and Custom variable to npm_package_bin (34176e5)
  • examples: add nestjs test (f448931)
  • examples: add nodejs_binary cluster example (#​1515) (f217519)

1.0.1 (2020-01-03)

Bug Fixes
  • don't bake COMPILATION_MODE into launcher as exported environment var (8a931d8)
  • builtin: make .pack and .publish targets work again (43716d3), closes #​1493
  • create: @​bazel/create should verbose log based on VERBOSE_LOGS instead of COMPILATION_MODE (c1b97d6)
Features
  • builtin: allow patching require in bootstrap scripts (842dfb4)

v1.0.1

Compare Source

Bug Fixes
  • don't bake COMPILATION_MODE into launcher as exported environment var (8a931d8)
  • builtin: make .pack and .publish targets work again (43716d3), closes #​1493
  • create: @​bazel/create should verbose log based on VERBOSE_LOGS instead of COMPILATION_MODE (c1b97d6)
Features
  • builtin: allow patching require in bootstrap scripts (842dfb4)

v1.0.0

Compare Source

Bug Fixes
  • builtin: bin folder was included in runfiles path for tests when link type was 'bin' (f938ab7)
  • builtin: link module_name to directories recursively to avoid directory clashes (#​1432) (0217724), closes #​1411
  • builtin: strip BOM when parsing package.json (#​1453) (c65d9b7), closes #​1448
  • typescript: remove stray references to ts_auto_deps (#​1449) (aacd924)
chore
Code Refactoring
  • pkg_npm attributes renames packages=>nested_packages & replacements=>substitutions (7e1b7df)
  • remove bootstrap attribute & fix $(location) expansions in nodejs_binary templated_args (1860a6a)
  • remove templated_args_file from nodejs_binary & nodejs_test (799acb4)
  • builtin: add args to yarn_install & npm_install (#​1462) (d245d09)
  • builtin: remove legacy jasmine_node_test (6d731cf)
  • builtin: renamed npm_package to pkg_npm to match naming convention (7df4109)
  • pre-1.0 release breaking changes (cc64818)
  • remove unused exclude_packages from npm_install & yarn_install (f50dea3)
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:

load("@​build_bazel_rules_nodejs//:index.bzl", "params_file", "nodejs_binary")

params_file(
    name = "params_file",
    args = [
        "--some_param",
        "$(location //path/to/some:file)",
        "--some_other_param",
        "$(location //path/to/some/other:file)",
    ],
    data = [
        "//path/to/some:file",
        "//path/to/some/other:file",
    ],
)

nodejs_binary(
    name = "my_binary",
    data = [":params_file"],
    entry_point = ":my_binary.js",
    templated_args = ["$(location :params_file)"],
)
  • bootstrap attribute in nodejs_binary, nodejs_test & jasmine_node_test removed

This can be replaced with the --node_options=--require=$(location label) argument such as,

nodejs_test(
name = "bootstrap_test",
templated_args = ["--node_options=--require=$(rlocation $(location :bootstrap.js))"],
entry_point = ":bootstrap.spec.js",
data = ["bootstrap.js"],
)

or

jasmine_node_test(
name = "bootstrap_test",
srcs = ["bootstrap.spec.js"],
templated_args = ["--node_options=--require=$(rlocation $(location :bootstrap.js))"],
data = ["bootstrap.js"],
)

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 repo/path/to/file. This differs from how $(location)
and $(locations) expansion behaves in expansion the args attribute of a __binary or __test which returns
the runfiles short path of the format ./path/to/file for user repo and ../external_repo/path/to/file for external
repositories. We may change this behavior in the future with $(mlocation) and $(mlocations) used to expand
to the runfiles manifest path.
See https://docs.bazel.build/versions/master/be/common-definitions.html#common-attributes-binaries.

    • pkg_npm attribute packages renamed to nested_packages
  • pkg_npm attribute replacements renamed to substitutions
  • builtin: legacy @​build_bazel_rules_nodejs//internal/jasmine_node_test removed; use jasmine_node_test from @​bazel/jasmine npm package instead
  • builtin: args in yarn_install and npm_install can be used to pass arbitrary arguments so we removed the following attributes:
  • prod_only from yarn_install and npm_install; should be replaced by args = ["--prod"] and args = ["--production"] respectively
  • frozen_lockfile from yarn_install; should be replaced by args = ["--frozen-lockfile"]
  • network_timeout from yanr_install; should be replaced by args = ["--network_timeout", ""]
  • builtin: npm_package renamed to pkg_npm. This is to match the naming convention for package rules https://docs.bazel.build/versions/master/be/pkg.html.
  • Users must now switch to loading from index.bzl
  • Removed unused exclude_packages from npm_install & yarn_install
  • //:declaration_provider.bzl deleted; load from //:providers.bzl instead
    //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:

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

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
  • builtin: handle scoped packages in generated npm_umd_bundle targets (#​1425) (e9e2e8e), closes #​1095
  • builtin: only stamp artifacts when --stamp is passed to bazel (#​1441) (cbaab60)
  • docs default values are now documented for rule attributes
Features
  • builtin: wire linker/node-patches to npm-generated index.bzl rules (3321ed5), closes #​1382

0.42.2 (2019-12-04)

Bug Fixes
  • builtin: additional_root_paths in pkg_web should also include paths in genfiles and bin dirs (#​1402) (9ce8c85)
  • typescript: fix for cross platform ts_devserver issue #​1409 (#​1413) (172caff), closes #​1415
  • support realpath.native and fix crash in mkdirp (b9282b9)

0.42.1 (2019-11-27)

To upgrade:

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

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 from ts_devserver and pkg_web but the replacement wasn't available. Now it is thanks to @​jbedard who published a standalone npm package html-insert-assets. You can see how it's wired in the examples.

If you waited to upgrade before, now you should.

Bug Fixes
  • @​npm//foobar:foobar__files target no longer includes nested node_modules (#​1390) (a13f2b6)
  • allow files in protractor data attribute (3feb13c)
  • builtin: $(RULEDIR) npm_package_bin expansion should always be the root output directory (b494974)
  • builtin: locations arg of npm_package_bin should result in separate argv (242379f)
  • builtin: use correct genrule-style make vars (77039b1)
  • examples: kotlin example server working (adf6934)
BREAKING CHANGES

v0.42.3

Compare Source

To upgrade:

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

and run yarn upgrade --scope @&#8203;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
  • builtin: handle scoped packages in generated npm_umd_bundle targets (#​1425) (e9e2e8e), closes #​1095
  • builtin: only stamp artifacts when --stamp is passed to bazel (#​1441) (cbaab60)
  • docs default values are now documented for rule attributes
Features
  • builtin: wire linker/node-patches to npm-generated index.bzl rules (3321ed5), closes #​1382

v0.42.2

Compare Source

Bug Fixes
  • builtin: additional_root_paths in pkg_web should also include paths in genfiles and bin dirs (#​1402) (9ce8c85)
  • typescript: fix for cross platform ts_devserver issue #​1409 (#​1413) (172caff), closes #​1415
  • support realpath.native and fix crash in mkdirp (b9282b9)

v0.42.1

Compare Source

To upgrade:

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

and run yarn upgrade --scope @&#8203;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 from ts_devserver and pkg_web but the replacement wasn't available. Now it is thanks to @​jbedard who published a standalone npm package html-insert-assets. You can see how it's wired in the examples.

If you waited to upgrade before, now you should.

Bug Fixes
  • @​npm//foobar:foobar__files target no longer includes nested node_modules (#​1390) (a13f2b6)
  • allow files in protractor data attribute (3feb13c)
  • builtin: $(RULEDIR) npm_package_bin expansion should always be the root output directory (b494974)
  • builtin: locations arg of npm_package_bin should result in separate argv (242379f)
  • builtin: use correct genrule-style make vars (77039b1)
  • examples: kotlin example server working (adf6934)
BREAKING CHANGES

v0.42.0

Compare Source

This release had a bug, see 0.42.1 instead
https://github.com/bazelbuild/rules_nodejs/releases/tag/0.42.1

v0.41.0

Compare Source

To upgrade:

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

and run yarn upgrade --scope @&#8203;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)

BREAKING CHANGES

As mentioned before, we are close to a 1.0 release, so we are making all our breaking changes now to prepare for a period of stability. Sorry for the long list this time!

  • web_package rule has been renamed to pkg_web and is now a public API

Update your load statements from

load("@&#8203;build_bazel_rules_nodejs//internal/web_package:web_package.bzl", "web_package")

to

load("@&#8203;build_bazel_rules_nodejs//:index.bzl", "pkg_web")
  • ts_devserver and pkg_web (previously web_package) no longer have an index_html attribute.

They expect an index.html file to be among the assets, and to already
have the script and link tags needed for the app to work.

The feature where those tags were injected into the html dynamically has
been moved to its own rule, inject_html.

We are in a transition state where the inject_html rule is not published, because we want this to be a plain npm package and not Bazel-specific. We will publish this functionality soon. If you depend on it, you may want to delay this upgrade.

  • internal/rollup_bundle rule is removed. see https://github.com/bazelbuild/rules_nodejs/wiki for migration instructions

  • Removed the expand_location_into_runfiles helper from //internal:node.bzl
    Load it from //internal/common:expand_into_runfiles instead

  • npm karma deps for karma_web_test and karma_web_suite are now peer deps so that the versions used can be chosen by the user.

This PR also removes the built-in @io_bazel_rules_webtesting//browsers/sauce:chrome-win10 saucelabs support. It is not very useful as it only tests a single browser and it difficult to use. In the angular repo, saucelabs support was implemented with a custom karma config using karma_web_test. This is the recommended approach.

  • --define=DEBUG=1 is no longer functional to request debugging outputs. Use -c dbg instead (this matches Bazel's behavior for C++).

  • We renamed some of the generated targets in the @nodejs// workspace:

bazel run @&#8203;nodejs//:npm is replaced with bazel run @&#8203;nodejs//:npm_node_repositories and bazel run @&#8203;nodejs//:yarn is replaced with bazel run @&#8203;nodejs//:yarn_node_repositories. @nodejs//:yarn and @nodejs//:npm now run yarn & npm in the current working directory instead of on all of the package.json files in node_repositories().

@nodejs//:bin/node & @nodejs//:bin/node.cmd (on Windows) are no longer valid targets. Use @nodejs//:node instead on all platforms. You can still call the old targets in their platform specific node repositories such as @nodejs_darwin_amd64//:bin/node.

@nodejs//:bin/yarn & @nodejs//:bin/yarn.cmd (on Windows) are no longer valid targets. Use @nodejs//:yarn instead on all platforms. You can still call the old targets in their platform specific node repositories such as @nodejs_darwin_amd64//:bin/yarn.

@nodejs//:bin/npm & @nodejs//:bin/npm.cmd (on Windows) are no longer valid targets. Use @nodejs//:npm instead on all platforms. You can still call the old targets in their platform specific node repositories such as @nodejs_darwin_amd64//:bin/npm.

Bug Fixes
  • builtin: allow .tsx entry_point in node binary/test (313d484), closes #​1351
  • terser: call terser binary instead of uglifyjs (#​1360) (a100420)
  • terser: remove ngDevMode & ngI18nClosureMode global_defs from default terser config (98c8dbc)
chore
Code Refactoring
  • move injector feature to own rule (be06d23)
Features
  • node-patches\filesystem patcher. (#​1332) (0b2f675)
  • support --compilation_mode flag (9fa4343)
  • builtin: rename @​nodejs//:npm and @​nodejs//:yarn to @​nodejs//:[yarn/npm]_node_repositories (#​1369) (01079a3)
  • karma: npm peer deps & remove @​rules_webtesting//browsers/sauce:chrome-win10 support (318bbf3)
  • protractor: protractor npm package is now a peer deps (#​1352) (5db7c8e)

v0.40.0

Compare Source

Bug Fixes
  • fix nodejs_binary cross-platform RBE issue #​1305 (38d0b3d)
  • prevent dpulicate entries in owners files for global owners (afea290)
Features
  • karma: remove ts_web_test and ts_web_test_suite rules (8384562)
  • terser: add args attribute to support additional command line arguments (563bad7)

0.39.1 (2019-10-29)

Bug Fixes
Features
  • examples: demonstrate using Webpack to build and serve a React app (c5d0909)

v0.39.1

Compare Source

Bug Fixes
Features
  • examples: demonstrate using Webpack to build and serve a React app (c5d0909)

v0.39.0

Compare Source

Bug Fixes
Code Refactoring
Features

Renovate configuration

📅 Schedule: "before 3am on Monday" (UTC).

🚦 Automerge: Enabled.

♻️ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by WhiteSource Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/major-everything branch from 7fbc14e to 37bb0ad Compare March 30, 2020 13:01
@rauljordan rauljordan closed this Mar 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants