Skip to content

Releases: aspect-build/rules_js

v0.6.2

11 May 21:59
5b6bd3d
Compare
Choose a tag to compare
v0.6.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 = "7bce67d6bfc7992f29f55405a6e750075987c9fc142fdb5d4f452a4b669c3faf",
    strip_prefix = "rules_js-0.6.2",
    url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v0.6.2.tar.gz",
)

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

rules_js_dependencies()

What's Changed

  • fix: don't double copy 3rd party packages when linking with no lifecycle hook by @gregmagolan in #98

Full Changelog: v0.6.1...v0.6.2

v0.6.1

11 May 18:32
95868fc
Compare
Choose a tag to compare
v0.6.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 = "b4c6ccffcead2be8f952ab2b9c3528d1cb1794c1866b412e606c212bbab68327",
    strip_prefix = "rules_js-0.6.1",
    url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v0.6.1.tar.gz",
)

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

rules_js_dependencies()

What's Changed

  • fix: set 755 folder permissions on extract npm packages by @gregmagolan in #95
  • refactor: drop node dependency from translate_pnpm_lock repo rule by @alexeagle in #94
  • fix: issues with pnpm workspaces with ../ importers by @gregmagolan in #97

Full Changelog: v0.6.0...v0.6.1

v0.6.0

09 May 16:50
8728b53
Compare
Choose a tag to compare
v0.6.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 = "6c3e47e35173ce2f8e523bfcae838eaf352483be21c125b6e942c6bae3744e6f",
    strip_prefix = "rules_js-0.6.0",
    url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v0.6.0.tar.gz",
)

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

rules_js_dependencies()

What's Changed

  • chore: cleanup & shellcheck of launcher bash by @gregmagolan in #57
  • Lifecycle fixes by @gregmagolan in #59
  • fix: handle non-dict bin entry in package.json by @gregmagolan in #62
  • feat: add support for DirectoryPathInfo entry points to js_binary by @gregmagolan in #71
  • refactor: use standard mechanism for finding yq binary by @kormide in #70
  • fix: use aspect_bazel_lib_host instead of nodejs_host repo by @gregmagolan in #72
  • feat: create macros for packages with bin entries by @thesayyn in #61
  • fix: fix expected_exit_code attribute on js_binary/js_test by @gregmagolan in #73
  • chore: replace is_windows select pattern with target_platform_has_constraint pattern by @gregmagolan in #74
  • test: add e2e tests for node_package (along with translate_package_lock and npm_import) by @gregmagolan in #48
  • refactor: rename node_package to link_node_package by @gregmagolan in #75
  • fix: get rid of _lc/node_modules tree and run lifecycle hooks in main node_modules tree by @gregmagolan in #78
  • test: add tests for translate_pnpm_lock, npm_import and pnpm_utils by @thesayyn in #77
  • refactor: rename link_node_package to link_js_package by @gregmagolan in #79
  • fix: ensure that npm deps are lazy loaded by @gregmagolan in #80
  • feat: add js_package rule by @gregmagolan in #76
  • chore: misc cleanup by @gregmagolan in #87
  • feat: support pnpm lockfile 5.4 which was introduced in pnpm 7.0.0 by @gregmagolan in #88
  • run fasterci on pull requests by @apesternikov in #90
  • feat: support pnpm workspaces by @gregmagolan in #89
  • chore: drop experimental in docstring by @gregmagolan in #93

New Contributors

Full Changelog: v0.5.0...v0.6.0

v0.5.0

26 Apr 20:47
e98bf59
Compare
Choose a tag to compare
v0.5.0 Pre-release
Pre-release

MAJOR BREAKING CHANGE!

This release has a new "pnpm-based approach" to installing third-party npm packages and resolving them at runtime.
See the updated README.md.

We'll add migration notes here as needed. See PRs/recent commits to aspect-build/rules{terser, esbuild, swc, ts}.

KNOWN ISSUES

  • lifecycle hooks sometimes don't work, add enable_lifecycle_hooks = False to workaround.

WORKSPACE snippet:

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

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

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

rules_js_dependencies()

What's Changed

  • refactor: rename nodejs_binary, nodejs_test, nodejs_package to js_binary, js_test and js_package for brevity, disambiguation and to match rule set name by @gregmagolan in #39
  • Remove ts_project rule by @alexeagle in #41
  • Rename js_package back to node_package by @alexeagle in #42
  • feat: create a pnpm-style symlinked node_modules trees structure to r… by @alexeagle in #44
  • fix type error by @alexeagle in #49
  • rename js_dependencies back to rules_js_dependencies by @alexeagle in #52
  • Remove stray reference to removed ts package by @alexeagle in #51
  • fix: don't instantiate __lc target of package unless there is a lifecycle hook by @gregmagolan in #53
  • fix: lifecycle-hooks.js should use mkdirp by @gregmagolan in #54
  • Delete md file that's no longer generated by @alexeagle in #55
  • Improve docs and user interface by @alexeagle in #56

Full Changelog: v0.4.0...v0.5.0

v0.4.0

15 Apr 05:56
Compare
Choose a tag to compare
v0.4.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 = "3e64e87a7885f1f4ae21ffaa2dc512b9bc315ff8b6e6332c9ccd5b38d66e230b",
    strip_prefix = "rules_js-0.4.0",
    url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v0.4.0.tar.gz",
)

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

rules_js_dependencies()

What's Changed

  • refactor: allow more reuse of nodejs_binary starlark lib by @alexeagle in #22
  • Allow users to reference the repositories.bzl file by @alexeagle in #23
  • chore: update to copy_directory by @alexeagle in #26
  • feat: apply patches through translate_package_lock by @kormide in #25
  • Demonstrate running ts_project with no npm install by @alexeagle in #27
  • chore: bump bazel version to 5.1.1 by @gregmagolan in #32
  • fix: workspace name references in CONTRIBUTING.md by @gregmagolan in #33
  • fix: add startup selector to --host_jvm_args=-DBAZEL_TRACK_SOURCE_DIRECTORIES=1 by @gregmagolan in #34

New Contributors

Full Changelog: v0.3.3...v0.4.0

v0.3.3

25 Mar 22:46
Compare
Choose a tag to compare
v0.3.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 = "db76e3ceab99716bb80182d6bbb749e1a0910f76471fb3e2022079ec515749ac",
    strip_prefix = "rules_js-0.3.3",
    url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v0.3.3.tar.gz",
)

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

rules_js_dependencies()

What's Changed

  • build: fix ci build caching by @kormide in #15
  • Update github archive URLs to have stable SHAs by @alexeagle in #18
  • perf: use merge_all to avoid deeply nested runfiles depsets by @mattem in #19

New Contributors

Full Changelog: v0.3.2...v0.3.3

v0.3.2

22 Dec 14:04
Compare
Choose a tag to compare
v0.3.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 = "dd797662028f60ad1f4e5b31947963494cbb916a70aa33be78f27b34c6f82019",
    strip_prefix = "rules_js-0.3.2",
    url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v0.3.2.tar.gz",
)

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

rules_js_dependencies()

What's Changed

  • fix: only check for --enable_runfiles on windows by @alexeagle in #13

Full Changelog: v0.3.1...v0.3.2

v0.3.1

20 Dec 18:12
Compare
Choose a tag to compare
v0.3.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 = "dd78b4911b7c2e6c6e919b85cd31572cc15e5baa62b9e7354d8a1065c67136e3",
    strip_prefix = "rules_js-0.3.1",
    url = "https://github.com/aspect-build/rules_js/archive/v0.3.1.tar.gz",
)

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

rules_js_dependencies()

What's Changed

Full Changelog: v0.3.0...v0.3.1

v0.3.0

11 Dec 21:00
Compare
Choose a tag to compare
v0.3.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 = "e8576a74a7e80b873179514cf1ad48b62b18ae024e74200ecd40ae6dc00c515a",
    strip_prefix = "rules_js-0.3.0",
    url = "https://github.com/aspect-build/rules_js/archive/v0.3.0.tar.gz",
)

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

rules_js_dependencies()

What's Changed

  • refactor: use aspect_bazel_lib to reduce duplication by @alexeagle in #6
  • refactor: rename test to example by @alexeagle in #7
  • fix: translate_package_lock handles semver ranges by @alexeagle in #8
  • chore: simplify distribution and release by @alexeagle in #9

Full Changelog: v0.2.0...v0.3.0

v0.2.0

08 Nov 23:57
Compare
Choose a tag to compare
v0.2.0 Pre-release
Pre-release
http_archive(
    name = "aspect_rules_js",
    sha256 = "fcdb34c2ef3427097564914c514fbc512c1a5fe7410f447b083eaf8cdf7f31ca",
    url = "https://github.com/aspect-dev/rules_js/releases/download/v0.2.0/rules_js-0.2.0.tar.gz",
)

What's Changed

  • feat: add translate_package_lock rule by @alexeagle in #3
  • fix merge conflict on npm_import rule by @mattem in #4
  • feat: add alias targets for unversioned reference to direct deps by @alexeagle in #5

New Contributors

  • @mattem made their first contribution in #4

Full Changelog: v0.1.0...v0.2.0