v1.0.0
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_js",
sha256 = "538049993bec3ee1ae9b1c3cd669156bca04eb67027b222883e47b0a2aed2e67",
strip_prefix = "rules_js-1.0.0",
url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v1.0.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
- 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
- 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
- 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
- docs: add usage guide by @alexeagle in #255
- fix: include direct DeclarationInfo files from srcs in npm_package by @gregmagolan in #259
- feat: support file: links in package.json & pnpm lockfile by @gregmagolan in #262
- util: add package glob util by @jbedard in #260
- chore: add an example of using out_dirs with js_run_binary by @gregmagolan in #264
- bug: js_library with 'deps' no longer pulls deps into sandbox output tree by @alex-torok in #265
- docs: remove stale reference to non-linked 3p targets by @alexeagle in #275
- feat: add patch_node_fs attribute to js_binary and js_run_binary for easy opt-out by @gregmagolan in #281
- feat: parse literal mulitline yaml strings by @kormide in #284
- fix: determine the RUNFILES directory when running a js_binary in an sh_binary by @gregmagolan in #286
- feat: add stamp attribute and docstring to js_run_binary by @gregmagolan in #290
- chore: rename pnpm_workspace_dot_dot => pnpm_workspace_rerooted by @gregmagolan in #291
- chore: refactor duplicate code info helper function in npm_translate_lock by @gregmagolan in #293
- fix: small typo in e2e code by @gregmagolan in #294
- fix: fix relative symlinks handing in node fs patches by @gregmagolan in #292
- chore: cleanup bzlmod e2e loose inconsistencies by @gregmagolan in #295
- fix: handle transitive file: dependencies by @gregmagolan in #288
- feat: allow lifecycle hooks environment variables for the npm_import rule by @JiaLiPassion in #280
- fix: only include direct DeclarationInfo dependencies in js_library DeclarationInfo by @jbedard in #300
- fix: make
//js/private:enable_runfiles
explicitly have//visibility:public
by @dgp1130 in #301 - test: add node process spawning tests by @jbedard in #299
- fix(deps): pin dependency sharp to 0.30.7 by @renovate in #297
- chore: add reminder to clean up bazelrc once skylib fix is released by @kormide in #303
- feat: add an example for js_image_layer by @thesayyn in #249
- fix: only run tests cases that depend on realpath on linux by @gregmagolan in #307
- feat: use declare_symlink in npm_link_package when --experimental_allow_unresolved_symlinks is set by @gregmagolan in #283
- docs: fix js_image fs tree by @thesayyn in #312
- fix: fix typo in make_symlink helper for the declare_symlink path that is not load bearing yet by @gregmagolan in #314
- fix: apply node fs patched symlink guards in spawned child node processes by @gregmagolan in #310
- docs: fix squished file tree by @thesayyn in #315
- fix: bcr actions not triggering by @kormide in #319
- fix: generate package_json.bzl only when pkg has bins by @thesayyn in #320
- chore: update to aspect_bazel_lib 1.8.0 by @gregmagolan in #322
- fix: ensure RUNFILES environment variable is always absolute by @gregmagolan in #323
- fix: pick up DeclarationInfo from srcs in js_libary by @gregmagolan in #324
- chore: update to aspect_bazel_lib 1.8.1 by @gregmagolan in #325
- chore: update to aspect_bazel_lib 1.9.0 by @gregmagolan in #326
- chore: update to aspect_bazel_lib 1.9.1 by @gregmagolan in #327
- chore: update to aspect_bazel_lib_1.9.2 by @gregmagolan in #329
- refactor: pre-factors for introducing JsInfo and related fixes and features by @gregmagolan in #330
- feat: add lifecycle_hooks_execution_requirements attribute by @JiaLiPassion in #331
- refactor: rename allow_unresolved_symlinks attribute on npm_package_store to use_declare_symlink by @gregmagolan in #332
- chore: rename some dangling 'direct link' references to just 'link' by @gregmagolan in #333
- fix(deps): update dependency chalk to v5 by @renovate in #306
- chore(deps): update yarn to v3.2.2 by @renovate in #302
- chore: rename some dangling 'direct link' references to just 'link' by @gregmagolan in #335
- fix: js_binary doesn't need to copy files to bin for runfiles inputs by @gregmagolan in #334
- chore: update out-of-date js_library docs by @gregmagolan in #336
- npm_translate_lock: accept package-lock.json and run
pnpm import
by @jfirebaugh in #276 - feat: introduce JsInfo provider that encapsulates information provided by rules in rules_js and derivative rule sets by @gregmagolan in #318
- refactor: follow up fixes and optimizations after JsInfo introduction by @gregmagolan in #339
- refactor: add JS_LIBRARY_DEPS_ATTR and JS_LIBRARY_DATA_ATTR helper attributes to //js:libs.bzl for downstream build/library rules to use by @gregmagolan in #340
- chore: improve js_library docstrings by @gregmagolan in #342
- fix: add missing file needed for gh actions bcr workflow by @kormide in #343
- refactor: rollback JS_LIBRARY_DATA_ATTR from the public API since it is not useful in any downstream rules at this time by @gregmagolan in #344
- chore: update presubmit.yml file for bcr ci by @kormide in #346
- chore: bump stardoc to latest by @alexeagle in #338
- feat: set --preserve-symlinks-main in js_binary by default and add preserve_symlinks_main attribute for opt-out by @gregmagolan in #352
- fix: add mocha-junit-reporter to peerDependencies of mocha-multi-reporters to fix resolution in //examples/macro:test by @gregmagolan in #355
- feat: add opt-in copy_files_to_bin attribute to js_binary by @gregmagolan in #354
- chore: adjust bcr template files by @kormide in #357
- chore(deps): update dependency io_bazel_rules_go to v0.34.0 by @renovate in #356
- chore(deps): update dependency bazel_skylib to v1.2.1 by @renovate in #351
- chore(deps): update dependency rules_nodejs to v5.5.3 by @renovate in #348
- chore(deps): update dependency bazel_gazelle to v0.26.0 by @renovate in #349
- fix(deps): update dependency @pnpm/lifecycle to v13.1.5 by @renovate in #350
- refactor: remove check for empty root importers by @alexeagle in #364
- fix: set copy_data_to_bin default to True to mitigate ESM loader issue #362 by @gregmagolan in #365
- Fix bazel caches in GitHub Actions by @tetsuok in #366
- chore: cleanup in pnpm_workspace & pnpm_workspace_rerooted e2e by @gregmagolan in #368
- fix(deps): update dependency @aspect-test/b to v5.0.2 by @renovate in #369
New Contributors
- @jbedard made their first contribution in #246
- @mrmeku made their first contribution in #252
- @JiaLiPassion made their first contribution in #280
- @dgp1130 made their first contribution in #301
- @tetsuok made their first contribution in #366
Full Changelog: v0.13.0...v1.0.0