Skip to content

Commit

Permalink
chore(deps): update dependency aspect_rules_js to v1.42.1 (#1590)
Browse files Browse the repository at this point in the history
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [aspect_rules_js](https://togithub.com/aspect-build/rules_js) | http_archive | patch | `v1.42.0` -> `v1.42.1` |

---

### Release Notes

<details>
<summary>aspect-build/rules_js (aspect_rules_js)</summary>

### [`v1.42.1`](https://togithub.com/aspect-build/rules_js/releases/tag/v1.42.1)

[Compare Source](https://togithub.com/aspect-build/rules_js/compare/v1.42.0...v1.42.1)

Many companies are successfully building with rules_js.
If you're getting value from the project, please let us know!
Just comment on our [Adoption Discussion](https://togithub.com/aspect-build/rules_js/discussions/1000).

#### Using Bzlmod with Bazel 6:

Add to your `MODULE.bazel` file:

```starlark
bazel_dep(name = "aspect_rules_js", version = "1.42.1")

####### Node.js version #########

### By default you get the node version from DEFAULT_NODE_VERSION in @&#8203;rules_nodejs//nodejs:repositories.bzl
### Optionally you can pin a different node version:
bazel_dep(name = "rules_nodejs", version = "5.8.2")
node = use_extension("@&#8203;rules_nodejs//nodejs:extensions.bzl", "node")
node.toolchain(node_version = "16.14.2")

#################################

npm = use_extension("@&#8203;aspect_rules_js//npm:extensions.bzl", "npm", dev_dependency = True)

npm.npm_translate_lock(
    name = "npm",
    pnpm_lock = "//:pnpm-lock.yaml",
    verify_node_modules_ignored = "//:.bazelignore",
)

use_repo(npm, "npm")
```

#### Using WORKSPACE

Paste this snippet into your `WORKSPACE` file:

```starlark
load("@&#8203;bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "aspect_rules_js",
    sha256 = "7d511ba9c617e593af07fa24984353f71ebd682f51fa0a384525216e2d28c512",
    strip_prefix = "rules_js-1.42.1",
    url = "https://togithub.com/aspect-build/rules_js/releases/download/v1.42.1/rules_js-v1.42.1.tar.gz",
)

load("@&#8203;aspect_rules_js//js:repositories.bzl", "rules_js_dependencies")

rules_js_dependencies()

load("@&#8203;rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")

nodejs_register_toolchains(
    name = "nodejs",
    node_version = DEFAULT_NODE_VERSION,
)

### For convenience, npm_translate_lock does this call automatically.
### Uncomment if you don't call npm_translate_lock at all.

#load("@&#8203;bazel_features//:deps.bzl", "bazel_features_deps")
#bazel_features_deps()

load("@&#8203;aspect_rules_js//npm:repositories.bzl", "npm_translate_lock")

npm_translate_lock(
    name = "npm",
    npmrc = "//:.npmrc",
    pnpm_lock = "//:pnpm-lock.yaml",
    verify_node_modules_ignored = "//:.bazelignore",
)

load("@&#8203;npm//:repositories.bzl", "npm_repositories")

npm_repositories()
```

To use rules_js with bazel-lib 2.x, you must additionally register the coreutils toolchain.

```starlark
load("@&#8203;aspect_bazel_lib//lib:repositories.bzl", "register_coreutils_toolchains")

register_coreutils_toolchains()
```

#### What's Changed

-   refactor: access root_package_json via getter by [@&#8203;jbedard](https://togithub.com/jbedard) in [https://togithub.com/aspect-build/rules_js/pull/1699](https://togithub.com/aspect-build/rules_js/pull/1699)
-   refactor: simplify collection of lifecycle hooks by [@&#8203;jbedard](https://togithub.com/jbedard) in [https://togithub.com/aspect-build/rules_js/pull/1697](https://togithub.com/aspect-build/rules_js/pull/1697)
-   chore: remove redundant bazelrc flag by [@&#8203;gregmagolan](https://togithub.com/gregmagolan) in [https://togithub.com/aspect-build/rules_js/pull/1703](https://togithub.com/aspect-build/rules_js/pull/1703)
-   chore: add bzlmod to js_image_oci e2e by [@&#8203;gregmagolan](https://togithub.com/gregmagolan) in [https://togithub.com/aspect-build/rules_js/pull/1704](https://togithub.com/aspect-build/rules_js/pull/1704)
-   chore: cleanup in e2e test by [@&#8203;gregmagolan](https://togithub.com/gregmagolan) in [https://togithub.com/aspect-build/rules_js/pull/1705](https://togithub.com/aspect-build/rules_js/pull/1705)
-   refactor: use BASH_RLOCATION_FUNCTION from @&#8203;aspect_bazel_lib in examples/js_binary/BUILD.bazel by [@&#8203;gregmagolan](https://togithub.com/gregmagolan) in [https://togithub.com/aspect-build/rules_js/pull/1707](https://togithub.com/aspect-build/rules_js/pull/1707)
-   refactor: cleanup js_image_layer impl and docs by [@&#8203;gregmagolan](https://togithub.com/gregmagolan) in [https://togithub.com/aspect-build/rules_js/pull/1706](https://togithub.com/aspect-build/rules_js/pull/1706)
-   refactor: extract repositories.bzl generation by [@&#8203;jbedard](https://togithub.com/jbedard) in [https://togithub.com/aspect-build/rules_js/pull/1709](https://togithub.com/aspect-build/rules_js/pull/1709)
-   ci: run e2e/npm_translate_lock_auth with bzlmod on CI by [@&#8203;gregmagolan](https://togithub.com/gregmagolan) in [https://togithub.com/aspect-build/rules_js/pull/1713](https://togithub.com/aspect-build/rules_js/pull/1713)
-   chore: fix typo in npm_import by [@&#8203;hunshcn](https://togithub.com/hunshcn) in [https://togithub.com/aspect-build/rules_js/pull/1717](https://togithub.com/aspect-build/rules_js/pull/1717)
-   refactor: pnpm repository rule cleanup and comments by [@&#8203;jbedard](https://togithub.com/jbedard) in [https://togithub.com/aspect-build/rules_js/pull/1718](https://togithub.com/aspect-build/rules_js/pull/1718)
-   chore: align ci and bazelrc patterns by [@&#8203;gregmagolan](https://togithub.com/gregmagolan) in [https://togithub.com/aspect-build/rules_js/pull/1719](https://togithub.com/aspect-build/rules_js/pull/1719)
-   refactor: reuse npm_translate_lock_state parse logic in bzlmod by [@&#8203;jbedard](https://togithub.com/jbedard) in [https://togithub.com/aspect-build/rules_js/pull/1721](https://togithub.com/aspect-build/rules_js/pull/1721)
-   refactor: fix npm_translate_lock(npmrc) setup by [@&#8203;jbedard](https://togithub.com/jbedard) in [https://togithub.com/aspect-build/rules_js/pull/1724](https://togithub.com/aspect-build/rules_js/pull/1724)
-   chore: bump to buildifier 6.4.0 by [@&#8203;gregmagolan](https://togithub.com/gregmagolan) in [https://togithub.com/aspect-build/rules_js/pull/1722](https://togithub.com/aspect-build/rules_js/pull/1722)
-   refactor: inline check_for_conflicting_public_links by [@&#8203;jbedard](https://togithub.com/jbedard) in [https://togithub.com/aspect-build/rules_js/pull/1720](https://togithub.com/aspect-build/rules_js/pull/1720)
-   chore: bump to stardoc 0.6.2 by [@&#8203;gregmagolan](https://togithub.com/gregmagolan) in [https://togithub.com/aspect-build/rules_js/pull/1726](https://togithub.com/aspect-build/rules_js/pull/1726)
-   chore: misc cleanup by [@&#8203;gregmagolan](https://togithub.com/gregmagolan) in [https://togithub.com/aspect-build/rules_js/pull/1725](https://togithub.com/aspect-build/rules_js/pull/1725)
-   chore: bump to gazelle 0.36.0 by [@&#8203;gregmagolan](https://togithub.com/gregmagolan) in [https://togithub.com/aspect-build/rules_js/pull/1727](https://togithub.com/aspect-build/rules_js/pull/1727)
-   fix(bzlmod): npm_translate_lock should read registry from npmrc by [@&#8203;gregmagolan](https://togithub.com/gregmagolan) in [https://togithub.com/aspect-build/rules_js/pull/1729](https://togithub.com/aspect-build/rules_js/pull/1729)

**Full Changelog**: https://togithub.com/aspect-build/rules_js/compare/v1.42.0...v1.42.1

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - 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.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/gapic-generator-typescript).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNTEuMiIsInVwZGF0ZWRJblZlciI6IjM3LjM1MS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
  • Loading branch information
renovate-bot authored May 15, 2024
1 parent 1937ce7 commit 8815bd5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ def gapic_generator_typescript_repositories():
maybe(
http_archive,
name = "aspect_rules_js",
sha256 = "eaa18e412822eacf2a98b62630ba0e8d638c6468917ea35bcd5ffb4b12c59fdf",
strip_prefix = "rules_js-1.42.0",
url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v1.42.0.tar.gz",
sha256 = "6c8fc7bb6cf47a7c8e8bad391b21f7cd7f377342e3e3c9deef5733acef462b8f",
strip_prefix = "rules_js-1.42.1",
url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v1.42.1.tar.gz",
)

maybe(
Expand Down

0 comments on commit 8815bd5

Please sign in to comment.