Releases: aspect-build/rules_js
Releases · aspect-build/rules_js
v1.6.1
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
- ci: fix bcr registry config by @jbedard in #552
- chore: update to Bazel 6.0.0rc1 by @gregmagolan in #554
Full Changelog: v1.6.0...v1.6.1
v1.6.0
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
- fix(deps): update all patch updates by @renovate in #524
- fix: make js_binary more portable by removing dependency on bazel_tools/tools/bash/runfiles/runfiles.bash by @gregmagolan in #538
- fix: remove duplicate dependency in MODULE.bazel by @gregmagolan in #541
- chore: update bzlmod e2e to expected working shape by @gregmagolan in #542
- chore: update to @aspect_bazel_lib v1.3.1 by @gregmagolan in #543
- feat: support bzlmod by @gregmagolan in #539
- chore: document bzlmod usage in release notes by @alexeagle in #545
- perf: prevent preparing stack traces in fs *Sync patches by @jbedard in #546
- fix: update
expand_template
to returnDefaultInfo
by @cgrindel in #551 - feat: add additional env vars to js_binary by @gregmagolan in #550
- feat: add js_run_devserver rule by @gregmagolan in #540
New Contributors
Full Changelog: v1.5.3...v1.6.0
v1.5.3
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
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
- fix: downgrade rollup back to 2.79.0 by @gregmagolan in #533
- fix: sanitize all invalid chars when generating npm repository names by @gregmagolan in #532
Full Changelog: v1.5.1...v1.5.2
v1.5.1
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
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
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
- @pedrobarco made their first contribution in #475
Full Changelog: v1.3.1...v1.4.0
v1.3.1
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
v1.3.0
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_js",
sha256 = "bc9d48758458d72e743f6de4c485482e122b3b4472878cf6ff83bd0caa4ab855",
strip_prefix = "rules_js-1.3.0",
url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v1.3.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
- ci: prepare rules_js for publish-to-bcr app by @kormide in #451
- fix: mark intermediary targets in package_json.bzl as manual by @alex-torok in #454
- test: align commonjs + esm npm_link_package tests by @jbedard in #444
- fix: bzlmod bazel-lib version not in sync with WORKSPACE by @kormide in #455
- fix: add package.json to lifecycle hooks js_binary by @gregmagolan in #456
- feat: supply a @pnpm//:pnpm binary by @alexeagle in #457
Full Changelog: v1.2.0...v1.3.0
v1.2.0
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_js",
sha256 = "4011572f3ae50f107028384b7defc7144f3e17f4dd0d3e514c0988c74cbc8125",
strip_prefix = "rules_js-1.2.0",
url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v1.2.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
- ci: exclude rbe jobs if no engflow secret by @jbedard in #428
- fix(deps): update dependency sharp to v0.31.0 by @renovate in #431
- test: add e2e test containing transitive npm_package deps by @jbedard in #277
- doc caveat with pnpm-workspace.yaml and auto import by @jhchabran in #436
- chore(deps): update dependency rules_pkg to v0.7.1 by @renovate in #439
- fix(deps): update dependency sharp to v0.31.0 by @renovate in #438
- chore(deps): update dependency typescript to v4.8.3 by @renovate in #440
- fix: handle link: dependencies in pnpm-lock.yaml packages by @gregmagolan in #441
- chore: update npm_translate_lock docs to include info about compatabilty with pnpm outside of Bazel by @gregmagolan in #443
- chore(deps): update dependency rollup to v2.79.0 by @renovate in #379
- chore(deps): update dependency rules_nodejs to v5.5.4 by @renovate in #442
- feat: add npmrc attribute to npm_translate_lock to be available for pnpm import by @gregmagolan in #445
- chore(deps): update dependency @rollup/plugin-node-resolve to v14 by @renovate in #433
- chore: update to aspect_bazel_lib 1.11.8 by @gregmagolan in #448
New Contributors
- @jhchabran made their first contribution in #436
Full Changelog: v1.1.2...v1.2.0