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 dependency bazel_skylib - autoclosed #3

Closed
wants to merge 1 commit into from

Conversation

renovate-testing
Copy link
Owner

This PR contains the following updates:

Package Type Update Change
bazel_skylib http_archive minor 0.5.0 -> 0.9.0
build_bazel_rules_nodejs git_repository minor 0.3.1 -> 0.42.3
build_bazel_rules_typescript git_repository minor 0.6.1 -> 0.23.2
io_bazel_rules_sass git_repository minor 0.0.3 -> 0.1.0

Release Notes

bazelbuild/bazel-skylib

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()

v0.8.0

Compare Source

New Features

  • “Analysis Test” testing framework under unittest.bzl. See documentation for details. Some new feature highlights:
    • Support for verifying rule-under-test failure conditions
    • Support for verifying actions registered by a rule-under-test
    • Support for verifying rule behavior under non-default bazel flags
  • analysis_test rule to verify that targets under test pass Bazel’s analysis phase. This is similar to the existing build_test rule, except that actions of the underlying targets are not executed. See documentation.
  • write_file rule to write UTF-8 encoded text files. (Works for bash platforms and Windows)
  • copy_file rule to copy a file to another location. (Works for bash platforms and Windows)
  • dicts.add() now accepts kwargs to add to the resulting dict.

This release is tested with Bazel 0.23

Thanks to the following external contributors:

Please use the bazel-skylib.0.8.0.tar.gz release asset from your Bazel WORKSPACE.

SHA-256 digest: 2ef429f5d7ce7111263289644d233707dba35e39696377ebab8b0bc701f7818e

[Complete list of changes](

v0.7.0

Compare Source

Incompatible Changes

  • Made an incompatible change to unittest.bzl requiring minor migration effort:
    Test implementation functions for this framework now must return the result of unittest.end(env) instead of simply invoking this method. That is:
    def _your_test(ctx):
    env = unittest.begin(ctx)

Assert statements go here

    unittest.end(env)
```
must become:
```
def _your_test(ctx):
    env = unittest.begin(ctx)

Assert statements go here

    return unittest.end(env)
```

New Features

  • Added Windows support for unittest.bzl.

  • Added maprule rules (cmd_maprule and bash_maprule under //rules/maprule.bzl for Windows and bash support, respectively)

  • Added a build_test rule (build_test under //rules/build_test.bzl) to create test targets that verify that other targets build. Note that this rule does not currently work on Windows (though support for Windows shall come at a later time).

v0.6.0

Compare Source

  • Renamed several instances of "Skylark". The old label and symbol names remain as aliases to these new locations and names temporarily. The aliases will go away on a future release.
    //:skylark_library.bzl renamed to //:bzl_library.bzl
    skylark_library renamed to bzl_library
    SkylarkLibraryInfo renamed to StarlarkLibraryInfo

  • //:lib.bzl has been deprecated. Depend directly on the bazel-skylib modules you need instead of depending on lib.bzl.

  • //:sets.bzl has been deprecated. Depend instead on //:new_sets.bzl, which was introduced in version 0.4.0 and has better performance than sets.bzl. sets.bzl will be removed in a future release.

  • Updated Starlark code to be compatible with Bazel version 0.19.2

bazelbuild/rules_nodejs

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 @​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 @​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
BREAKING CHANGES
  • The dynamic_deps attribute of yarn_install and npm_install is removed,
    in favor of declaring needed packages in the deps/data of the rule that
    invokes the tool.

0.38.3 (2019-10-11)

Bug Fixes
  • terser: terser_minified should support .mjs files when running on directory (#​1264) (6b09b51)
Features

0.38.2 (2019-10-09)

Bug Fixes
  • clean_nested_workspaces.sh (acaa5fb)
  • rollup: handle transitive npm deps in rollup_bundle (77289e0)
  • dont generate build files in symlinked node_modules (#​1111) (2e7de34), closes #​871
  • linker can't assume that transitive module_mappings are in the sandbox (a67a844)
Features
  • examples: add closure compiler example (79b0927)
  • document the escape hatch from ts_library (#​1247) (baa9aa8)
  • examples: illustrate how to run a mocha test (#​1216) (5485a8a)
  • examples: update examples/angular to new rollup_bundle (#​1238) (54f5d8c)
  • terser: add source map links (32eb7ca)
  • typescript: add a transitive_js_ecma_script_module_info alias to js_ecma_script_module_info (#​1243) (77e2d4a)
  • typescript: add direct_sources field to JSEcmaScriptModuleInfo (1ee00e6)
  • typescript: add JSNamedModuleInfo provider to ts_library outputs (#​1215) (bb1f9b4)

0.38.1 (2019-10-03)

Bug Fixes
Features

v0.38.3

Compare Source

Bug Fixes
  • terser: terser_minified should support .mjs files when running on directory (#​1264) (6b09b51)
Features

v0.38.2

Compare Source

Bug Fixes
  • clean_nested_workspaces.sh (acaa5fb)
  • rollup: handle transitive npm deps in rollup_bundle (77289e0)
  • dont generate build files in symlinked node_modules (#​1111) (2e7de34), closes #​871
  • linker can't assume that transitive module_mappings are in the sandbox (a67a844)
Features
  • examples: add closure compiler example (79b0927)
  • document the escape hatch from ts_library (#​1247) (baa9aa8)
  • examples: illustrate how to run a mocha test (#​1216) (5485a8a)
  • examples: update examples/angular to new rollup_bundle (#​1238) (54f5d8c)
  • terser: add source map links (32eb7ca)
  • typescript: add a transitive_js_ecma_script_module_info alias to js_ecma_script_module_info (#​1243) (77e2d4a)
  • typescript: add direct_sources field to JSEcmaScriptModuleInfo (1ee00e6)
  • typescript: add JSNamedModuleInfo provider to ts_library outputs (#​1215) (bb1f9b4)

v0.38.1

Compare Source

Bug Fixes
Features

v0.38.0

Compare Source

Bug Fixes
  • builtin: linker test should run program as an action (#​1113) (7f0102e)
  • add golden file (9a02ee0)
  • add missing async test fixes (12f711a)
  • builtin: support for scoped modules in linker (#​1199) (94abf68)
  • protractor: update rules_webtesting patch to include additional windows fixes (#​1140) (f76e97b)
  • rollup: npm requires an index.js file (2ababdf)
chore
Code Refactoring
Features
  • builtin: detect APF node module format if ANGULAR_PACKAGE file found (#​1112) (162e436)
  • builtin: expose the new linker to node programs (65d8a36)
  • builtin: introduce npm_package_bin (#​1139) (2fd80cf)
  • builtin: linker should resolve workspace-absolute paths (307a796)
  • builtin: npm_package_bin can produce directory output (#​1164) (6d8c625)
  • examples: demonstrate that a macro assembles a workflow (7231aaa)
  • examples: replace examples/webapp with new rollup_bundle (c6cd91c)
  • examples: the Angular example now lives in rules_nodejs (9072ddb)
  • rollup: ensure that sourcemaps work end-to-end (f340589)
  • rollup: new implementation of rollup_bundle in @​bazel/rollup package (3873715), closes #​532 #​724
  • rollup: support multiple entry points (f660d39)
  • rollup: tests and docs for new rollup_bundle (cfef773)
  • terser: support directory inputs (21b5142)
  • add angular example (#​1124) (c376355)
  • terser: support source map files (#​1195) (d5bac48)
  • typescript: add JSEcmaScriptModuleInfo provider to ts_library outputs (1433eb9)
BREAKING CHANGES

The @​yarn workspace is no longer created. Use @​nodejs//:yarn instead.

  • history_server and http_server rules are no longer built-in.

To use them, first install the http-server and/or history-server packages
Then load("@​npm//http-server:index.bzl", "http_server")
(or replace with history-server, noting that the rule has underscore where the package has hyphen)

0.37.1 (2019-09-16)

Bug Fixes
  • protractor: update rules_webtesting patch to include additional windows fixes (#​1140) (f76e97b)
  • rollup: npm requires an index.js file (2ababdf)
  • add golden file (9a02ee0)
  • add missing async test fixes (12f711a)
  • builtin: linker test should run program as an action (#​1113) (7f0102e)
Features

v0.37.1

Compare Source

Bug Fixes
  • protractor: update rules_webtesting patch to include additional windows fixes (#​1140) (f76e97b)
  • rollup: npm requires an index.js file (2ababdf)
  • add golden file (9a02ee0)
  • add missing async test fixes (12f711a)
  • builtin: linker test should run program as an action (#​1113) (7f0102e)
Features

v0.37.0

Compare Source

Bug Fixes
  • builtin: --nolegacy_external_runfiles on build (38814aa)
  • builtin: fix localWorkspacePath logic (0a7fb01), closes #​1087
  • npm_install: dynamic_deps attribute not working for scoped packages (bf68577)
  • node executables not running on windows if bash toolchain path (#​1104) (c82b43d)
  • node_loader windows fix for RUNFILES_MANIFEST_FILE slashes (d3886ce)
chore
Features
  • add default DEBUG and VERBOSE_LOGS configuration_env_vars to nodejs_binary (#​1080) (df37fca)
  • builtin: add Kotlin example (0912014)
  • builtin: introduce a linker (62037c9)
BREAKING CHANGES

0.36.2 (2019-08-30)

Bug Fixes
Features
  • builtin: add a DeclarationInfo provider (3d7eb13)
  • add templated_args_file to allow long agrs to be written to a file (b34d7bb)
  • builtin: support yarn --frozen_lockfile (426861f)
  • terser: introduce @​bazel/terser package (232acfe)

0.36.1 (2019-08-20)

Features
  • builtin: add browser to rollup mainFields (e488cb6)
  • builtin: introduce dynamic dependencies concept (a47410e)
  • less: add less link to the docs's drawer (ec6e0d1)
  • less: new less package (462f6e9)
  • less: updated default compiler to @​bazel/less as mentioned in code review (fd71f26)
  • less: updated package.json in e2e/less to pull latest (6027aa3)

v0.36.2

Compare Source

Bug Fixes
Features
  • builtin: add a DeclarationInfo provider (3d7eb13)
  • add templated_args_file to allow long agrs to be written to a file (b34d7bb)
  • builtin: support yarn --frozen_lockfile (426861f)
  • terser: introduce @​bazel/terser package (232acfe)

v0.36.1

Compare Source

Features
  • builtin: add browser to rollup mainFields (e488cb6)
  • builtin: introduce dynamic dependencies concept (a47410e)
  • less: add less link to the docs's drawer (ec6e0d1)
  • less: new less package (462f6e9)
  • less: updated default compiler to @​bazel/less as mentioned in code review (fd71f26)
  • less: updated package.json in e2e/less to pull latest (6027aa3)

v0.36.0

Compare Source

Bug Fixes
  • jasmine: correct comment about behavior of config_file attr (59a7239)
  • fix yarn_install yarn cache mutex bug (31aa1a6)
  • get rules_go dependency from build_bazel_rules_typescript (ea6ee0b)
  • npm_package issue with external files on windows (8679b9e)
  • sconfig deps sandbox bug (161693c)
Features
  • jasmine: introduce config_file attribute (b0b2648)
  • jasmine_node_test: add attr jasmine_config (715ffc6)
  • worker: new worker package (9e26856)
  • add browser module main priority to generated umd bundles (17cfac9)

v0.35.0

Compare Source

Bug Fixes
  • jasmine: enforce that jasmine_node_test is loaded from new location (7708858), closes #​838
  • fencing for npm packages (#​946) (780dfb4)
Features
  • builtin: do code splitting even if only one entry point (f51c129)
  • stylus: add initial stylus rule (804a788)
  • stylus: output sourcemap (dac014a)
  • stylus: support import by allowing files in deps (3987070)
BREAKING CHANGES
  • jasmine: You can no longer get jasmine_node_test from @​build_bazel_rules_nodejs.

  • Use load("@&#8203;npm_bazel_jasmine//:index.bzl", "jasmine_node_test")
    instead

  • You need to remove @npm//jasmine from the deps of the
    jasmine_node_test

  • If you use user-managed dependencies, see the commit for examples of
    the change needed

Also makes the repo bazel-lint-clean, so running yarn bazel:lint-fix no
longer makes edits.

v0.34.0

Compare Source

Bug Fixes
  • builtin: process/browser should resolve from browserify (a98eda7)
  • fix for node windows cross-compile (001d945), closes #​909
  • node runfiles resolution from external workspaces (82500de)
Features
  • protractor: add protractor rule (35a344c)

0.33.1 (2019-07-12)

Bug Fixes
  • builtin: include package.json files in browserify inputs (13c09e6)

v0.33.1

Compare Source

Bug Fixes
  • builtin: include package.json files in browserify inputs (13c09e6)

v0.33.0

Compare Source

Bug Fixes
  • builtin: update to latest ncc (c1e3f4d), closes #​771
  • builtin: use a local mod to revert a browserify change (253e9cb)
Features
  • builtin: add nodejs toolchain support (9afb8db)

0.32.2 (2019-06-21)

Bug Fixes

0.32.1 (2019-06-19)

Bug Fixes

v0.32.2

Compare Source

Bug Fixes

v0.32.1

Compare Source

Bug Fixes

v0.32.0

Compare Source

Bug Fixes
Features

v0.31.1

[Compare Source](https://togithub.com/ba


Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻️ 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 Renovate Bot.

@renovate-testing renovate-testing changed the title Update dependency bazel_skylib Update dependency bazel_skylib - autoclosed Apr 21, 2021
@renovate-testing renovate-testing deleted the renovate/-0.x branch April 21, 2021 15:52
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