Skip to content

Releases: bazelbuild/rules_closure

Release rules_closure 0.15.0

12 Jun 18:19
f3046cd

Choose a tag to compare

What's Changed

  • Replace goog/asserts with simple exception and remove com_google_java… by @mollyibot in #625
  • Clean up the extra assert in person factory by @mollyibot in #626
  • fork testsuite, jsunit and testrunner from com_google_javascript_closure_library by @mollyibot in #627
  • Remove soy dependency from WebFiles by @gkdn in #629
  • Fork testcase,assertions and related files to remove dependencies of com_google_javascript_closure_library by @mollyibot in #628
  • Remove soy support by @gkdn in #630
  • Make sure we preserve the test name when single browser selected by @gkdn in #632
  • Remove goog.string dependency. by @gkdn in #633
  • Remove remaining references and logic related to soy by @gkdn in #634
  • Pin the bazel version to make CI green by @mollyibot in #637
  • Fix the rule table in README.md by @gkdn in #638
  • Update protobuf tests to use forked Closure test suite by @mollyibot in #636
  • Remove protobuf support. by @gkdn in #639
  • Remove unused clang dependency by @gkdn in #640
  • Remove dependency to archived closure-library. by @gkdn in #641
  • Add goog.reflect and goog.math.long by @gkdn in #642
  • Various simple cleanups to remove warnings. by @gkdn in #643
  • Remove all references to goog.bind by @gkdn in #644
  • Remove refs to goog.isObject, isArrayLike etc. that will be removed. by @gkdn in #645
  • Set java_test.test_class for java_tests with multiple sources by @gkdn in #648
  • Clean up bugpattern AutoValueSubclassLeaked by @gkdn in #647
  • Remove ref to goog.inherit which will be removed. by @gkdn in #646
  • Remove unused reference. by @gkdn in #649
  • Update copy of base.js with the one from Closure Compiler by @gkdn in #650
  • Remove unused goog.provide statements by @gkdn in #651
  • Sync base.js to get goog.declareModuleId by @gkdn in #652
  • Update copy of reflect.js with the one from Closure Compiler by @gkdn in #653
  • Migrate rules_closure to bzlmod by @mollyibot in #635
  • Remove leftover dead code. by @gkdn in #655
  • Update base.js by @gkdn in #654
  • Update the rules_webtesting version and bump the rules_scala version to get rid of yanked rules_cc version by @mollyibot in #656
  • Remove git overide for bazel-common in MODULE.bazel by @mollyibot in #657
  • Update closure-compiler to v20250402 by @kevinoconnor7 in #658
  • Update the protobuf version and remove abseil version override by @mollyibot in #661
  • Update version by @mollyibot in #662
  • Register rules_closure in bcr by @mollyibot in #660
  • Rename bzl module to rules_closure by @mollyibot in #663

Full Changelog: 0.14.0...0.15.0

Closure Rules 0.14.0

22 Nov 01:33
b8d260a

Choose a tag to compare

This is the final release with the current function set and incorporates latest available releases of Closure Compiler and Closure Library. Future releases will reduce supported features due to scoping changes for the project.

As noted in previous release, also some backward incompatible changes incorporated in this release with respect to Starlark providers for future Bazel compatibility. However this should only affect more advanced integrations with the rule set.

What's Changed

  • Fixed incremental type checking for goog modules
  • Upgraded closure_library to v20230802
  • Upgraded JsCompiler to v20240317
  • Upgraded rules_webtesting, rules_java and GSON to newer versions
  • Replaced legacy "struct" style providers with modern ones (breaking change)
  • Other Minor Bazel compatibility fixes.

Full Changelog: 0.13.0...0.14.0

Closure Rules 0.13.0

24 Feb 05:38
72d3084

Choose a tag to compare

This release upgrades many dependencies and includes compatibility changes.

Other noteworthy changes:

  • Experimental support for using webdriver and real browsers for closure_js_test (f055e21)
  • Previously deprecated closure_js_deps is removed.

Note that this will be the latest version to support legacy structs which is being replaced with proper providers in the next release.

Closure Rules 0.12.0

23 Jun 18:25
04a1b4d

Choose a tag to compare

This release upgrades many dependencies and includes compatibility changes. It also improves Bazel TreeArtifact support.

Note that this releases deprecates closure_js_deps which generates already deprecated 'deps.js' files. It will be removed in the next release.

Closure Rules 0.11.0

31 Aug 18:57
c5a2d60

Choose a tag to compare

This release upgrades many dependencies and includes compatibility changes.

Note that this releases removes the deprecated closure_repositories macro. It was deprecated in favor of rules_closure_dependencies() and rules_closure_toolchains() to be more consistent with other rules.

Closure Rules 0.10.0

07 Oct 19:36

Choose a tag to compare

This release upgrades JsCompiler and includes more compatibility changes.

Closure Rules 0.9.0

05 Sep 15:01

Choose a tag to compare

This release upgrades many dependencies and includes compatibility changes.

Closure Rules 0.8.0

03 Aug 11:16

Choose a tag to compare

This release upgrades a dagger dependency and adds some changes to prepare for Bazel incompatible change.
Update to this release for Bazel 0.16.0+.

Upgrades

  • @com_google_dagger 2.9 → 2.14.1

Workspace

http_archive(
    name = "io_bazel_rules_closure",
    sha256 = "b29a8bc2cb10513c864cb1084d6f38613ef14a143797cea0af0f91cd385f5e8c",
    strip_prefix = "rules_closure-0.8.0",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/rules_closure/archive/0.8.0.tar.gz",
        "https://github.com/bazelbuild/rules_closure/archive/0.8.0.tar.gz",
    ],
)
load("@io_bazel_rules_closure//closure:defs.bzl", "closure_repositories")
closure_repositories()

Closure Rules 0.7.0

09 May 19:03
dea93c4

Choose a tag to compare

This release upgrades dependencies, improves performance, and adds a few features.

Upgrades

  • @com_google_javascript_closure_compiler 2008-01-01 → 2008-04-02
  • @com_google_javascript_closure_library 2017-12-03 → 2018-04-05
  • @com_google_template_soy 2018-01-03 → 2018-03-14
  • @com_google_protobuf 3.5.0 → 3.5.1
  • @com_google_guava 21.0 → 24.1-jre
  • @com_google_auto_value 1.4-rc2 → 1.6
  • @com_google_auto_factory 1.0-beta3 → 1.0-beta5
  • @com_google_errorprone_error_prone_annotations 2.0.19 → 2.1.3
  • @com_squareup_javawriter 2.5.1 → @com_squareup_javapoet 1.7.0

Features

  • There's now a fine-grained build graph for the Closure Library. Read dea93c4 for details on how this can reduce footprints and build latencies. See also //closure/library for the full catalog of build rules.

  • deps.js no longer needs to be an implicit dependency thanks to transitionalforwarddeclarations.js.

  • A lenient attribute is now available for closure_js_library which makes the compiler more easy-going.

Changes

  • goog.labs, goog.ui, and third party APIs may no longer be exported from
    //closure/library and //closure/library:testing by default.
  • Several breaking changes to the private //closure/private:defs.bzl Skylark API.

Workspace

http_archive(
    name = "io_bazel_rules_closure",
    sha256 = "a80acb69c63d5f6437b099c111480a4493bad4592015af2127a2f49fb7512d8d",
    strip_prefix = "rules_closure-0.7.0",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/rules_closure/archive/0.7.0.tar.gz",
        "https://github.com/bazelbuild/rules_closure/archive/0.7.0.tar.gz",
    ],
)
load("@io_bazel_rules_closure//closure:defs.bzl", "closure_repositories")
closure_repositories()

Closure Rules 0.6.1

27 Apr 14:25

Choose a tag to compare

Changes

  • Modernize JS protobuf rule (#263)
  • Remove com_google_protobuf_java (#249)

Workspace

http_archive(
    name = "io_bazel_rules_closure",
    sha256 = "d317365f46902cfc6cfb0aa032aa7f6e4063da8b8794a7c8398588af4df60deb",
    strip_prefix = "rules_closure-0.6.1",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/rules_closure/archive/0.6.1.tar.gz",
        "https://github.com/bazelbuild/rules_closure/archive/0.6.1.tar.gz",
    ],
)
load("@io_bazel_rules_closure//closure:defs.bzl", "closure_repositories")
closure_repositories()

Tips

  • build --distinct_host_configuration=false in ~/.bazelrc makes protobuf build 2x fast