Skip to content

Releases: aspect-build/rules_js

v1.0.0-rc.1

30 Jun 02:08
Compare
Choose a tag to compare
v1.0.0-rc.1 Pre-release
Pre-release

WORKSPACE snippet:

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

http_archive(
    name = "aspect_rules_js",
    sha256 = "80e168f9cd62f3640de429b70b34ff817d0d94ada2abaf2cffeef46e35434e1d",
    strip_prefix = "rules_js-1.0.0-rc.1",
    url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v1.0.0-rc.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.0.0-rc.0...v1.0.0-rc.1

v1.0.0-rc.0

28 Jun 02:56
e22361d
Compare
Choose a tag to compare
v1.0.0-rc.0 Pre-release
Pre-release

WORKSPACE snippet:

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

http_archive(
    name = "aspect_rules_js",
    sha256 = "be39996444ab94de605e21cdcaa9bc4965a96186329d776e400b47fefd540902",
    strip_prefix = "rules_js-1.0.0-rc.0",
    url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v1.0.0-rc.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

  • Use pnpm workspace dep on a 1p package by @alexeagle in #170
  • fix: improve error handling if there are conflicting public hoisted packages by @gregmagolan in #224
  • chore: simplify 1p dep example by @gregmagolan in #230
  • refactor: tweak ':' separator locations in package_json.bzl load paths by @gregmagolan in #241
  • fix: use camel case in generated bin mnemonics by @alex-torok in #242
  • fix(deps): update dependency @pnpm/lifecycle to v13.1.0 by @renovate in #240
  • ci: auto-publish to bcr on release by @kormide in #243
  • chore: add suggestion when js_run_binary has no outs by @alexeagle in #253
  • chore(deps): update dependency bazel to v5.2.0 by @renovate in #233
  • refactor: expose bzl_library targets for generated bins by @alexeagle in #250
  • util: add basic ini parser by @jbedard in #246
  • fix: improved symlink guards for sandbox, runfiles & execroot by @gregmagolan in #237
  • fix: remove DefaultInfo.files from js_library by @mrmeku in #252
  • refactor: ask the runfiles API to create our symlinks by @alexeagle in #256
  • feat: add coverage support by @thesayyn in #238
  • fix: don't use orig fs.realpath from patched lstat by @gregmagolan in #258

New Contributors

Full Changelog: v1.0.0-beta.2...v1.0.0-rc.0

v1.0.0-beta.2

20 Jun 15:09
db88926
Compare
Choose a tag to compare
v1.0.0-beta.2 Pre-release
Pre-release

WORKSPACE snippet:

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

http_archive(
    name = "aspect_rules_js",
    sha256 = "529a7100fd757d1fe6d39901688b0ae4cfe033b7d432e9c4cfc022f33e3ec7fc",
    strip_prefix = "rules_js-1.0.0-beta.2",
    url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v1.0.0-beta.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

  • chore: mocha example doesn't need copy_to_bin by @alexeagle in #223
  • feat: add public_hoist_packages attribute to npm_translate_lock to emulate .npmrc public-hoist-pattern[] by @gregmagolan in #222

Full Changelog: v1.0.0-beta.1...v1.0.0-beta.2

v1.0.0-beta.1

17 Jun 14:43
Compare
Choose a tag to compare
v1.0.0-beta.1 Pre-release
Pre-release

WORKSPACE snippet:

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

http_archive(
    name = "aspect_rules_js",
    sha256 = "02486a3b54fab15e6af00a6b79944b9660e43fd91ac56f8e34812a9053dc60bb",
    strip_prefix = "rules_js-1.0.0-beta.1",
    url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v1.0.0-beta.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: update to aspect_bazel_lib 1.2.0 by @gregmagolan in #209
  • fix: broken tests caused by platform incompatible postinstall scripts by @kormide in #210
  • docs: improve our recommended pattern for amending the npm depgraph by @alexeagle in #212
  • fix: fix a broken diff_test on Windows requiring legacy external runfiles by @kormide in #213
  • fix: keep lockfile up to date example windows regression by @kormide in #215
  • feat: add out_dirs, mnemonic, progress_message and execution_requirements to js_run_binary rule and remote output_dir by @gregmagolan in #216
  • fix: add bin name as default mnemonic to generated bins by @thesayyn in #218
  • chore(deps): update dependency @aspect-test/c to v2.0.2 by @renovate in #211
  • temporary workaround for fasterci by @apesternikov in #204

Full Changelog: v0.13.0...v1.0.0-beta.1

v1.0.0-beta.0

15 Jun 15:02
Compare
Choose a tag to compare
v1.0.0-beta.0 Pre-release
Pre-release

WORKSPACE snippet:

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

http_archive(
    name = "aspect_rules_js",
    sha256 = "e7a21d8eec5565da01417bc809213405271a818e870890c2d3bb3dde5e808bcc",
    strip_prefix = "rules_js-1.0.0-beta.0",
    url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v1.0.0-beta.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

Full Changelog: v0.12.4...v1.0.0-beta.0

v0.13.0

15 Jun 01:56
Compare
Choose a tag to compare
v0.13.0 Pre-release
Pre-release

WORKSPACE snippet:

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

http_archive(
    name = "aspect_rules_js",
    sha256 = "1fe40fd2819745ad19b5bec8f97a82087145fc6f145d3c84b0147899bf3490ca",
    strip_prefix = "rules_js-0.13.0",
    url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v0.13.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

Full Changelog: v0.12.4...v0.13.0

v0.12.4

14 Jun 20:24
d5eab0c
Compare
Choose a tag to compare
v0.12.4 Pre-release
Pre-release

WORKSPACE snippet:

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

http_archive(
    name = "aspect_rules_js",
    sha256 = "79a04a308a9aca84d0ab57e5ff570adb7c6e176df2a2a76636eb1da1b8fa5e27",
    strip_prefix = "rules_js-0.12.4",
    url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v0.12.4.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 @aspect-test/c to v2.0.1 by @renovate in #188
  • fix: don't use hard-coded aspect_rules_js workspace name in path to node patches entry by @gregmagolan in #205

Full Changelog: v0.12.3...v0.12.4

v0.12.3

14 Jun 18:00
fbd0fd0
Compare
Choose a tag to compare
v0.12.3 Pre-release
Pre-release

WORKSPACE snippet:

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

http_archive(
    name = "aspect_rules_js",
    sha256 = "2b7e8500e76b73ff0a075d2573dcb150fe34810ba2f82c6c9f7de5edf7cfc4e3",
    strip_prefix = "rules_js-0.12.3",
    url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v0.12.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

  • feat: check that node_modules folders are in .bazelignore by @alexeagle in #197
  • chore(deps): update actions/checkout action to v3 by @renovate in #185
  • chore(deps): update actions/cache action to v3 by @renovate in #184
  • fix: failing windows test due to wrong expected line endings by @kormide in #183
  • feat: add execroot & runfiles symlink guards to js_binary by @gregmagolan in #133
  • fix: windows test newline error by @kormide in #199
  • chore: update README by @gregmagolan in #200
  • chore: bump bazel-lib to latest by @alexeagle in #201
  • fix: support variations of tarball URLs when .npmrc has registry settings by @gregmagolan in #203

Full Changelog: v0.12.2...v0.12.3

v0.12.2

13 Jun 20:12
Compare
Choose a tag to compare
v0.12.2 Pre-release
Pre-release

WORKSPACE snippet:

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

http_archive(
    name = "aspect_rules_js",
    sha256 = "ac67010f1c150a70d7ebf0026754b8a754f3be6d899b699f97be3c046a951c6a",
    strip_prefix = "rules_js-0.12.2",
    url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v0.12.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",
)

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

npm_repositories()

What's Changed

  • chore(deps): update yarn to v3.2.1 by @renovate in #180
  • fix(deps): update dependency @pnpm/lifecycle to v13.0.4 by @renovate in #181
  • fix: support transitive npm aliased deps in pnpm lockfile by @gregmagolan in #195

Full Changelog: v0.12.1...v0.12.2

v0.12.1

10 Jun 23:23
9593429
Compare
Choose a tag to compare
v0.12.1 Pre-release
Pre-release

WORKSPACE snippet:

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

http_archive(
    name = "aspect_rules_js",
    sha256 = "6b218d2ab2e365807d1d403580b2c865a771e7fda9449171b2abd9765d0299b3",
    strip_prefix = "rules_js-0.12.1",
    url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v0.12.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",
)

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

npm_repositories()

What's Changed

  • fix: remove unused load in generated code & that also generated a private visiblity warning in buildifier by @gregmagolan in #182

Full Changelog: v0.12.0...v0.12.1