Skip to content

Releases: aspect-build/rules_terser

v2.0.0

15 Aug 20:15
5df456b
Compare
Choose a tag to compare

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

Full Changelog: v1.0.1...v2.0.0

v2.0.0-rc0

22 May 01:15
f36f89d
Compare
Choose a tag to compare
v2.0.0-rc0 Pre-release
Pre-release

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

Full Changelog: v1.0.1...v2.0.0-rc0

v1.0.1

22 May 01:14
a640b20
Compare
Choose a tag to compare

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

Full Changelog: v0.14.3...v1.0.1

v1.0.0

14 Jul 21:58
48d6012
Compare
Choose a tag to compare

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

Full Changelog: v0.14.2...v1.0.0

v0.14.3

04 Jul 04:48
48d6012
Compare
Choose a tag to compare
v0.14.3 Pre-release
Pre-release

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

Full Changelog: v0.14.2...v0.14.3

v0.14.2

04 Jul 04:15
a0acb8d
Compare
Choose a tag to compare
v0.14.2 Pre-release
Pre-release

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

02 Apr 18:13
82b6f18
Compare
Choose a tag to compare
v0.14.1 Pre-release
Pre-release

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

Full Changelog: v0.14.0...v0.14.1

v0.14.0

21 Mar 19:50
1192dba
Compare
Choose a tag to compare
v0.14.0 Pre-release
Pre-release

⚠️ BREAKING CHANGES ⚠️

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

New Contributors

Full Changelog: v0.13.0...v0.14.0

v0.13.0

02 Feb 06:10
aa18f31
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_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

19 Jan 13:55
f6f91e6
Compare
Choose a tag to compare
v0.12.5 Pre-release
Pre-release

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

Full Changelog: v0.12.4...v0.12.5