Skip to content

Releases: aspect-build/rules_js

v1.6.3

29 Oct 00:07
f4feec4
Compare
Choose a tag to compare

Using Bzlmod with Bazel 6:

Add to your MODULE.bazel file:

bazel_dep(name = "aspect_rules_js", version = "1.6.3")

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

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

use_repo(npm, "npm")

Using WORKSPACE

Paste this snippet into your WORKSPACE file:

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

http_archive(
    name = "aspect_rules_js",
    sha256 = "d8eabcd1e05d93147505ea806fa21089926b771d8813f01b92af5dec36617033",
    strip_prefix = "rules_js-1.6.3",
    url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v1.6.3.tar.gz",
)

load("@aspect_rules_js//js:repositories.bzl", "rules_js_dependencies")

rules_js_dependencies()

load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")

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

load("@aspect_rules_js//npm:npm_import.bzl", "npm_translate_lock")

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

load("@npm//:repositories.bzl", "npm_repositories")

npm_repositories()

What's Changed

  • renovate: fix aspect rule group, add webpack group, prioritize strict groups by @jbedard in #561
  • renovate: fix typo by @jbedard in #562
  • cleanup: remove fasterci config by @alexeagle in #566
  • chore: account for github actions deprecation by @alexeagle in #565
  • fix: always set JsInfo.declarations on npm_link_package_store targets by @jbedard in #563
  • chore: consolidate maybe pattern by @gregmagolan in #567
  • fix: make js_run_binary more compatible with tools that are sensitive to being found in multiple node_modules trees by @gregmagolan in #564
  • chore: update to aspect_bazel_lib 1.15.0 by @gregmagolan in #568

Full Changelog: v1.6.2...v1.6.3

v1.6.2

27 Oct 18:13
9b7dd62
Compare
Choose a tag to compare

Using Bzlmod with Bazel 6:

Add to your MODULE.bazel file:

bazel_dep(name = "aspect_rules_js", version = "1.6.2")

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

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

use_repo(npm, "npm")

Using WORKSPACE

Paste this snippet into your WORKSPACE file:

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

http_archive(
    name = "aspect_rules_js",
    sha256 = "5bb643d9e119832a383e67f946dc752b6d719d66d1df9b46d840509ceb53e1f1",
    strip_prefix = "rules_js-1.6.2",
    url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v1.6.2.tar.gz",
)

load("@aspect_rules_js//js:repositories.bzl", "rules_js_dependencies")

rules_js_dependencies()

load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")

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

load("@aspect_rules_js//npm:npm_import.bzl", "npm_translate_lock")

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

load("@npm//:repositories.bzl", "npm_repositories")

npm_repositories()

What's Changed

  • fix: support non-https registry protocols by @jbedard in #556
  • fix: fix windows regression in js_binary launcher bash script by @gregmagolan in #559

Full Changelog: v1.6.1...v1.6.2

v1.6.1

26 Oct 23:29
c6c257a
Compare
Choose a tag to compare

Using WORKSPACE

Paste this snippet into your WORKSPACE file:

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

http_archive(
    name = "aspect_rules_js",
    sha256 = "7ce35d171f626a7dd6fab808e104b51566e8f3d691d6def82aa6e15a0d7d8032",
    strip_prefix = "rules_js-1.6.1",
    url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v1.6.1.tar.gz",
)

load("@aspect_rules_js//js:repositories.bzl", "rules_js_dependencies")

rules_js_dependencies()

load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")

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

load("@aspect_rules_js//npm:npm_import.bzl", "npm_translate_lock")

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

load("@npm//:repositories.bzl", "npm_repositories")

npm_repositories()

What's Changed

Full Changelog: v1.6.0...v1.6.1

v1.6.0

25 Oct 19:10
6e8ee96
Compare
Choose a tag to compare

Using WORKSPACE

Paste this snippet into your WORKSPACE file:

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

http_archive(
    name = "aspect_rules_js",
    sha256 = "fbd602ec010f53881166b525a3dafc08fd1ca1d361ac61c5d4b8ded4c7341103",
    strip_prefix = "rules_js-1.6.0",
    url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v1.6.0.tar.gz",
)

load("@aspect_rules_js//js:repositories.bzl", "rules_js_dependencies")

rules_js_dependencies()

load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")

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

load("@aspect_rules_js//npm:npm_import.bzl", "npm_translate_lock")

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

load("@npm//:repositories.bzl", "npm_repositories")

npm_repositories()

What's Changed

New Contributors

Full Changelog: v1.5.3...v1.6.0

v1.5.3

20 Oct 19:25
9bf4e88
Compare
Choose a tag to compare

WORKSPACE snippet:

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

http_archive(
    name = "aspect_rules_js",
    sha256 = "515277ae357e62f52e29e0bfb60b73d2d062b8d00d21351d31f37c5bb275d4f5",
    strip_prefix = "rules_js-1.5.3",
    url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v1.5.3.tar.gz",
)

load("@aspect_rules_js//js:repositories.bzl", "rules_js_dependencies")

rules_js_dependencies()

load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")

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

load("@aspect_rules_js//npm:npm_import.bzl", "npm_translate_lock")

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

load("@npm//:repositories.bzl", "npm_repositories")

npm_repositories()

What's Changed

  • fix: fix async/await logic in lifecycle hooks copyPackageContents by @gregmagolan in #535
  • fix: remove package.json parsing retry logic by @jbedard in #536

Full Changelog: v1.5.2...v1.5.3

v1.5.2

19 Oct 01:54
ca914dd
Compare
Choose a tag to compare

WORKSPACE snippet:

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

http_archive(
    name = "aspect_rules_js",
    sha256 = "a4e586abac7750c261ead93ba4a9c962745cf0f825fcdf75c7c1b60a66426c09",
    strip_prefix = "rules_js-1.5.2",
    url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v1.5.2.tar.gz",
)

load("@aspect_rules_js//js:repositories.bzl", "rules_js_dependencies")

rules_js_dependencies()

load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")

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

load("@aspect_rules_js//npm:npm_import.bzl", "npm_translate_lock")

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

load("@npm//:repositories.bzl", "npm_repositories")

npm_repositories()

What's Changed

Full Changelog: v1.5.1...v1.5.2

v1.5.1

18 Oct 23:23
1d03e42
Compare
Choose a tag to compare

WORKSPACE snippet:

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

http_archive(
    name = "aspect_rules_js",
    sha256 = "019c1b1a3a3cc0e7045fd56d300f2d6a223ef15d9b183b038b1e59962bd1e43c",
    strip_prefix = "rules_js-1.5.1",
    url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v1.5.1.tar.gz",
)

load("@aspect_rules_js//js:repositories.bzl", "rules_js_dependencies")

rules_js_dependencies()

load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")

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

load("@aspect_rules_js//npm:npm_import.bzl", "npm_translate_lock")

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

load("@npm//:repositories.bzl", "npm_repositories")

npm_repositories()

What's Changed

  • chore(deps): update dependency @rollup/plugin-commonjs to v23 by @renovate in #508
  • test: add npm_package(root_paths) test by @jbedard in #496
  • fix: js_image bazel lib by @thesayyn in #506
  • chore: add additional information to js_test docstring re: the Bazel test runner contract by @gregmagolan in #510
  • renovate - group recommended/monorepo including major version, reduce stabilityDays to 3 by @jbedard in #513
  • renovate: only group patch updates of unrelated deps by @jbedard in #514
  • renovate: group rollup related updates by @jbedard in #516
  • renovate: fix regex syntax error by @jbedard in #517
  • chore(deps): update dependency io_bazel_rules_go to v0.35.0 by @renovate in #518
  • fix(deps): update dependency c8 to v7.12.0 by @renovate in #523
  • chore(deps): update rollup (major) by @renovate in #520
  • chore(deps): update dependency bazel_skylib to v1.3.0 by @renovate in #526
  • renovate: rollup, aspect, bazel groups by @jbedard in #528
  • fix: support generic npmrc registry config by @jbedard in #530

Full Changelog: v1.5.0...v1.5.1

v1.5.0

08 Oct 20:34
92bc063
Compare
Choose a tag to compare

WORKSPACE snippet:

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

http_archive(
    name = "aspect_rules_js",
    sha256 = "b9fde0f20de6324ad443500ae738bda00facbd73900a12b417ce794856e01407",
    strip_prefix = "rules_js-1.5.0",
    url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v1.5.0.tar.gz",
)

load("@aspect_rules_js//js:repositories.bzl", "rules_js_dependencies")

rules_js_dependencies()

load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")

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

load("@aspect_rules_js//npm:npm_import.bzl", "npm_translate_lock")

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

load("@npm//:repositories.bzl", "npm_repositories")

npm_repositories()

What's Changed

  • fix(deps): update dependency @aspect-test/a to v5 by @renovate in #487
  • chore: add documentation for debugging Node.js processes and example --config=debug settings to .bazelrc.common by @gregmagolan in #468
  • ci: use fixed releaser for bcr commit by @kormide in #491
  • chore: update RBE e2e test to use 6.0.0-pre.20220922.1 by @gregmagolan in #495
  • feat: add include_npm attribute to js_binary & js_test by @gregmagolan in #498
  • chore: add minimal root package workspace files to e2e tests so that you can run pnpm install in them by @gregmagolan in #501
  • chore: add e2e/npm_translate_lock_auth e2e test for coverage of new .npmrc auth token feature by @gregmagolan in #500
  • feat: support multiple npm registries and tokens via .npmrc by @pedrobarco in #503
  • chore: bump @aspect_bazel_lib to v1.30.0 by @gregmagolan in #504
  • chore: deprecate unused npm_translate_lock warn_on_unqualified_tarball_url param by @gregmagolan in #505

Full Changelog: v1.4.0...v1.5.0

v1.4.0

03 Oct 23:27
8e97fc3
Compare
Choose a tag to compare

WORKSPACE snippet:

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

http_archive(
    name = "aspect_rules_js",
    sha256 = "9d80f28eb59df0486cc1e8e82868e97d8167429ea309a7ae96dfac64ff73275b",
    strip_prefix = "rules_js-1.4.0",
    url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v1.4.0.tar.gz",
)

load("@aspect_rules_js//js:repositories.bzl", "rules_js_dependencies")

rules_js_dependencies()

load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")

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

load("@aspect_rules_js//npm:npm_import.bzl", "npm_translate_lock")

npm_translate_lock(
    name = "npm",
    bins = {
        # derived from "bin" attribute in node_modules/typescript/package.json
        "typescript": {
            "tsc": "./bin/tsc",
            "tsserver": "./bin/tsserver",
        },
    },
    pnpm_lock = "//:pnpm-lock.yaml",
    verify_node_modules_ignored = "//:.bazelignore",
)

load("@npm//:repositories.bzl", "npm_repositories")

npm_repositories()

What's Changed

  • fix(deps): update dependency @pnpm/lifecycle to v13.1.8 by @renovate in #376
  • chore(deps): update dependency bazel to v5.3.1 by @renovate in #460
  • chore: prove that Bazel at HEAD works with RBE now by @alexeagle in #462
  • docs: suggest --dir when bazel run pnpm by @alexeagle in #463
  • doc: point to how to run npm binaries by @alexeagle in #464
  • chore(deps): update dependency rollup to v2.79.1 by @renovate in #467
  • chore(deps): update dependency @types/node to v16.11.59 by @renovate in #407
  • chore(deps): only open renovate PRs weekly, on packages stable for 3 days by @jbedard in #472
  • fix(deps): fix renovate config requiring packageRules.matchDatasources by @jbedard in #474
  • fix: do not run coverage reporter if already reported by @thesayyn in #430
  • fix(typescript): include all .json in JsInfo.declarations by @jbedard in #477
  • feat: add missing fixed_env attribute to create_launcher helper for downstream rules to use by @gregmagolan in #482
  • chore: configure renovate to group PRs by @jbedard in #485
  • fix: retry package.json load+parse on error, log more detailed error message by @jbedard in #484
  • feat: enable npm authentication via .npmrc by @pedrobarco in #475
  • chore: update to aspect_bazel_lib 1.12.1 by @gregmagolan in #488

New Contributors

Full Changelog: v1.3.1...v1.4.0

v1.3.1

17 Sep 01:08
Compare
Choose a tag to compare

WORKSPACE snippet:

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

http_archive(
    name = "aspect_rules_js",
    sha256 = "0707a425093704fab05fb91c3a4b62cf22dca18ea334d8a72f156d4c18e8db90",
    strip_prefix = "rules_js-1.3.1",
    url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v1.3.1.tar.gz",
)

load("@aspect_rules_js//js:repositories.bzl", "rules_js_dependencies")

rules_js_dependencies()

load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")

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

load("@aspect_rules_js//npm:npm_import.bzl", "npm_translate_lock")

npm_translate_lock(
    name = "npm",
    bins = {
        # derived from "bin" attribute in node_modules/typescript/package.json
        "typescript": {
            "tsc": "./bin/tsc",
            "tsserver": "./bin/tsserver",
        },
    },
    pnpm_lock = "//:pnpm-lock.yaml",
    verify_node_modules_ignored = "//:.bazelignore",
)

load("@npm//:repositories.bzl", "npm_repositories")

npm_repositories()

What's Changed

  • fix: required for to use rules_js with Bazel 6 without --allow_experimental_unresolved_symlinks by @gregmagolan in #458
  • chore: update skylib by @kormide in #459

Full Changelog: v1.3.0...v1.3.1