Releases: aspect-build/rules_terser
v2.0.0
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_terser",
sha256 = "30abdc21c1d539db8c9209b1705bbedc40c1b714d024fa630961533f8d08aab8",
strip_prefix = "rules_terser-2.0.0",
url = "https://github.com/aspect-build/rules_terser/releases/download/v2.0.0/rules_terser-v2.0.0.tar.gz",
)
######################
# rules_terser setup #
######################
# Fetch the Bazel module dependencies
load("@aspect_rules_terser//terser:dependencies.bzl", "rules_terser_dependencies")
rules_terser_dependencies()
# Fetch and register a nodejs interpreter, if you haven't already
load("@aspect_rules_js//js:toolchains.bzl", "DEFAULT_NODE_VERSION", "rules_js_register_toolchains")
rules_js_register_toolchains(node_version = DEFAULT_NODE_VERSION)
load("@aspect_rules_js//npm:repositories.bzl", "npm_translate_lock")
npm_translate_lock(
name = "npm",
npmrc = "//:.npmrc",
pnpm_lock = "//:pnpm-lock.yaml",
verify_node_modules_ignored = "//:.bazelignore",
)
load("@npm//:repositories.bzl", "npm_repositories")
npm_repositories()
What's Changed
- feat: upgrade to rules_js 2.0 by @gregmagolan in #86
- chore: bump to GHA actions/cache@v4 by @gregmagolan in #94
- chore: bump miminum dep to aspect_bazel_lib 2.7.6 by @gregmagolan in #95
- chore: bump to rules_js 2.0.0-rc1 and minimum aspect_bazel_lib 2.7.7 by @gregmagolan in #96
- chore: add --check_direct_dependencies to .bazelrc by @gregmagolan in #97
- chore: bump minimum rules_nodejs to 6.2.0 by @gregmagolan in #98
- build: upgrade to rules_js v2 by @jbedard in #99
Full Changelog: v1.0.1...v2.0.0
v2.0.0-rc0
Important
This release requires requires rules_js 2.x. It is not compatible with rules_js 1.x. rules_js 2 is currently in RC: https://github.com/aspect-build/rules_js/releases/tag/v2.0.0-rc0
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_terser",
sha256 = "a69f9d6e38debec79276e570433e051e4050272831506f7578202f64ff62fc0e",
strip_prefix = "rules_terser-2.0.0-rc0",
url = "https://github.com/aspect-build/rules_terser/releases/download/v2.0.0-rc0/rules_terser-v2.0.0-rc0.tar.gz",
)
######################
# rules_terser setup #
######################
# Fetch the Bazel module dependencies
load("@aspect_rules_terser//terser:dependencies.bzl", "rules_terser_dependencies")
rules_terser_dependencies()
# Fetch and register a nodejs interpreter, if you haven't already
load("@aspect_rules_js//js:toolchains.bzl", "DEFAULT_NODE_VERSION", "rules_js_register_toolchains")
rules_js_register_toolchains(node_version = DEFAULT_NODE_VERSION)
load("@aspect_rules_js//npm:repositories.bzl", "npm_translate_lock")
npm_translate_lock(
name = "npm",
npmrc = "//:.npmrc",
pnpm_lock = "//:pnpm-lock.yaml",
verify_node_modules_ignored = "//:.bazelignore",
)
load("@npm//:repositories.bzl", "npm_repositories")
npm_repositories()
What's Changed
- feat: upgrade to rules_js 2.0 by @gregmagolan in #86
Full Changelog: v1.0.1...v2.0.0-rc0
v1.0.1
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_terser",
sha256 = "fd12d3596e991d17d240c35384c96735d9d72cc47c0f4b0017f6fda22167e4eb",
strip_prefix = "rules_terser-1.0.1",
url = "https://github.com/aspect-build/rules_terser/releases/download/v1.0.1/rules_terser-v1.0.1.tar.gz",
)
######################
# rules_terser setup #
######################
# Fetch the Bazel module dependencies
load("@aspect_rules_terser//terser:dependencies.bzl", "rules_terser_dependencies")
rules_terser_dependencies()
# Fetch and register a nodejs interpreter, if you haven't already
load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")
nodejs_register_toolchains(
name = "node",
node_version = DEFAULT_NODE_VERSION,
)
load("@aspect_rules_js//npm:npm_import.bzl", "npm_translate_lock")
npm_translate_lock(
name = "npm",
npmrc = "//:.npmrc",
pnpm_lock = "//:pnpm-lock.yaml",
verify_node_modules_ignored = "//:.bazelignore",
)
load("@npm//:repositories.bzl", "npm_repositories")
npm_repositories()
What's Changed
- chore: update README so it slurps to docs.aspect.build by @alexeagle in #81
- chore: update to Bazel 6.3.2 and Aspect CLI 5.7.2 by @gregmagolan in #82
- chore: BCR testing on Bazel 6 and 7 by @alexeagle in #83
- chore: cancel previous GHA from the same PR by @gregmagolan in #84
- chore: remove Go by @alexeagle in #85
- chore: don't cancel concurrent main builds by @gregmagolan in #87
- fix: add copy_file_to_bin bazel-lib toolchain by @gregmagolan in #91
- chore: bump to stardoc 0.6.2 by @gregmagolan in #90
- chore: bump to Bazel 7.1.1 by @gregmagolan in #88
- chore: misc cleanup by @gregmagolan in #92
- chore: add Aspect bazelrc presets and align ci patterns by @gregmagolan in #93
Full Changelog: v0.14.3...v1.0.1
v1.0.0
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_terser",
sha256 = "8424b4c064d0e490e5b6f215b993712ef641b77e03b68fdc64221edf48d14add",
strip_prefix = "rules_terser-1.0.0",
url = "https://github.com/aspect-build/rules_terser/releases/download/v1.0.0/rules_terser-v1.0.0.tar.gz",
)
######################
# rules_terser setup #
######################
# Fetch the Bazel module dependencies
load("@aspect_rules_terser//terser:dependencies.bzl", "rules_terser_dependencies")
rules_terser_dependencies()
# Fetch and register a nodejs interpreter, if you haven't already
load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")
nodejs_register_toolchains(
name = "node",
node_version = DEFAULT_NODE_VERSION,
)
load("@aspect_rules_js//npm:npm_import.bzl", "npm_translate_lock")
npm_translate_lock(
name = "npm",
npmrc = "//:.npmrc",
pnpm_lock = "//:pnpm-lock.yaml",
verify_node_modules_ignored = "//:.bazelignore",
)
load("@npm//:repositories.bzl", "npm_repositories")
npm_repositories()
What's Changed
- chore: enable_runfiles for BCR windows CI by @gregmagolan in #80
Full Changelog: v0.14.2...v1.0.0
v0.14.3
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_terser",
sha256 = "16bed391f193091aa899818583480a424907c3a5576a8782c89f0a0653ca6229",
strip_prefix = "rules_terser-0.14.3",
url = "https://github.com/aspect-build/rules_terser/releases/download/v0.14.3/rules_terser-v0.14.3.tar.gz",
)
######################
# rules_terser setup #
######################
# Fetch the Bazel module dependencies
load("@aspect_rules_terser//terser:dependencies.bzl", "rules_terser_dependencies")
rules_terser_dependencies()
# Fetch and register a nodejs interpreter, if you haven't already
load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")
nodejs_register_toolchains(
name = "node",
node_version = DEFAULT_NODE_VERSION,
)
load("@aspect_rules_js//npm:npm_import.bzl", "npm_translate_lock")
npm_translate_lock(
name = "npm",
npmrc = "//:.npmrc",
pnpm_lock = "//:pnpm-lock.yaml",
verify_node_modules_ignored = "//:.bazelignore",
)
load("@npm//:repositories.bzl", "npm_repositories")
npm_repositories()
What's Changed
- chore: enable_runfiles for BCR windows CI by @gregmagolan in #80
Full Changelog: v0.14.2...v0.14.3
v0.14.2
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_terser",
sha256 = "e7d976a65716b6400e12c4284d4f63eac2e7ea214e681ed62665c6d68e30aa21",
strip_prefix = "rules_terser-0.14.2",
url = "https://github.com/aspect-build/rules_terser/releases/download/v0.14.2/rules_terser-v0.14.2.tar.gz",
)
######################
# rules_terser setup #
######################
# Fetch the Bazel module dependencies
load("@aspect_rules_terser//terser:dependencies.bzl", "rules_terser_dependencies")
rules_terser_dependencies()
# Fetch and register a nodejs interpreter, if you haven't already
load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")
nodejs_register_toolchains(
name = "node",
node_version = DEFAULT_NODE_VERSION,
)
load("@aspect_rules_js//npm:npm_import.bzl", "npm_translate_lock")
npm_translate_lock(
name = "npm",
npmrc = "//:.npmrc",
pnpm_lock = "//:pnpm-lock.yaml",
verify_node_modules_ignored = "//:.bazelignore",
)
load("@npm//:repositories.bzl", "npm_repositories")
npm_repositories()
What's Changed
- ci: enable buildifier check on ci by @jbedard in #78
- chore: bump rules_js dep to 1.29.2 to pickup Windows fix by @gregmagolan in #79
Full Changelog: v0.14.1...v0.14.2
v0.14.1
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_terser",
sha256 = "f30ec7ceff6a01deaf68e501233eba01a339a8d305376706a31de4201d7a260b",
strip_prefix = "rules_terser-0.14.1",
url = "https://github.com/aspect-build/rules_terser/releases/download/v0.14.1/rules_terser-v0.14.1.tar.gz",
)
######################
# rules_terser setup #
######################
# Fetch the Bazel module dependencies
load("@aspect_rules_terser//terser:dependencies.bzl", "rules_terser_dependencies")
rules_terser_dependencies()
# Fetch and register a nodejs interpreter, if you haven't already
load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")
nodejs_register_toolchains(
name = "node",
node_version = DEFAULT_NODE_VERSION,
)
load("@aspect_rules_js//npm:npm_import.bzl", "npm_translate_lock")
npm_translate_lock(
name = "npm",
npmrc = "//:.npmrc",
pnpm_lock = "//:pnpm-lock.yaml",
verify_node_modules_ignored = "//:.bazelignore",
)
load("@npm//:repositories.bzl", "npm_repositories")
npm_repositories()
What's Changed
- chore: update transitive deps by @gregmagolan in #73
- chore: update dependencies by @gregmagolan in #74
- chore: bzlmod by @alexeagle in #76
Full Changelog: v0.14.0...v0.14.1
v0.14.0
The terser_minified
rule is renamed to just terser
. This has been planned for a while to do before 1.0 and included in this release to go along with other breaking changes. terser_repositories
repository rule is removed and a new node_modules
attribute is now required for terser
. This changes are BREAKING for all users.
The //path/to:node_modules
tree target must be passed to the terser
rule via the node_modules
attribute. For example,
terser(
name = "minify",
node_modules = "//:node_modules",
...
)
You'll need terser
linked in the node_modules tree provided.
This change has the added benefits of not requiring users to keep the terser version used in their package.json
in sync with their WORKSPACE and not requiring any changes to rules_terser
to support new releases of terser.
This change is in the spirit of the changes in rules_webpack v0.11.0 and rules_jasmine v0.4.0 and will also be rolled out to rules_jest, rules_rollup in the near future so the patterns on the downstream rules_js rulesets we maintain are aligned both for maintainers and for users.
WORKSPACE snippet
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_terser",
sha256 = "1a8e6bce01b2316a114e1c415e3d1db560fc472a9ff110168ac859f468d0b0d2",
strip_prefix = "rules_terser-0.14.0",
url = "https://github.com/aspect-build/rules_terser/releases/download/v0.14.0/rules_terser-v0.14.0.tar.gz",
)
######################
# rules_terser setup #
######################
# Fetch the Bazel module dependencies
load("@aspect_rules_terser//terser:dependencies.bzl", "rules_terser_dependencies")
rules_terser_dependencies()
# Fetch and register a nodejs interpreter, if you haven't already
load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")
nodejs_register_toolchains(
name = "node",
node_version = DEFAULT_NODE_VERSION,
)
load("@aspect_rules_js//npm:npm_import.bzl", "npm_translate_lock")
npm_translate_lock(
name = "npm",
npmrc = "//:.npmrc",
pnpm_lock = "//:pnpm-lock.yaml",
verify_node_modules_ignored = "//:.bazelignore",
)
load("@npm//:repositories.bzl", "npm_repositories")
npm_repositories()
What's Changed
- chore: Add the macOS runner to the matrix strategy by @realtimetodie in #64
- release: publish release artifact by @alexeagle in #67
- chore: update to rules_js 1.19.0 by @gregmagolan in #68
- chore: update to aspect_bazel_lib 1.27.2 by @gregmagolan in #69
- chore: update to Aspect CLI 5.2.0-rc0 by @gregmagolan in #70
- chore: update to Aspect CLI 5.2.1 by @gregmagolan in #71
- refactor: remove vendored terser versions, user must provider their own terser from their node_modules by @gregmagolan in #72
New Contributors
- @realtimetodie made their first contribution in #64
Full Changelog: v0.13.0...v0.14.0
v0.13.0
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_terser",
sha256 = "918e7ac036eca1402cae4d4ddba75ecdcdd886ac35bc0624d9f1ebc7527e369b",
strip_prefix = "rules_terser-0.13.0",
url = "https://github.com/aspect-build/rules_terser/archive/refs/tags/v0.13.0.tar.gz",
)
######################
# rules_terser setup #
######################
# Fetch the Bazel module dependencies
load("@aspect_rules_terser//terser:dependencies.bzl", "rules_terser_dependencies")
rules_terser_dependencies()
# Fetch and register a nodejs interpreter, if you haven't already
load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")
nodejs_register_toolchains(
name = "node",
node_version = DEFAULT_NODE_VERSION,
)
# Fetch and register the terser tool
load("@aspect_rules_terser//terser:repositories.bzl", "terser_repositories")
terser_repositories(name = "terser")
load("@terser//:npm_repositories.bzl", terser_npm_repositories = "npm_repositories")
terser_npm_repositories()
What's Changed
- feat: vendor package.json files per version for rules_js v1.17.0 support by @gregmagolan in #65
- chore: update to rules_js 1.17.0 and aspect_bazel_lib 1.24.2 by @gregmagolan in #66
Full Changelog: v0.12.5...v0.13.0
v0.12.5
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_terser",
sha256 = "32ca5da65c35221103dc80bcca9a717368e5ae58b2108834805575dd8922f052",
strip_prefix = "rules_terser-0.12.5",
url = "https://github.com/aspect-build/rules_terser/archive/refs/tags/v0.12.5.tar.gz",
)
######################
# rules_terser setup #
######################
# Fetch the Bazel module dependencies
load("@aspect_rules_terser//terser:dependencies.bzl", "rules_terser_dependencies")
rules_terser_dependencies()
# Fetch and register a nodejs interpreter, if you haven't already
load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")
nodejs_register_toolchains(
name = "node",
node_version = DEFAULT_NODE_VERSION,
)
# Fetch and register the terser tool
load("@aspect_rules_terser//terser:repositories.bzl", "terser_repositories")
terser_repositories(name = "terser")
load("@terser//:npm_repositories.bzl", terser_npm_repositories = "npm_repositories")
terser_npm_repositories()
What's Changed
- chore: update to Aspect CLI 5.1.2 by @gregmagolan in #62
- chore: update to rules_js 1.15.1 and aspect_bazel_lib 1.23.3 by @gregmagolan in #63
Full Changelog: v0.12.4...v0.12.5