Releases: bazelbuild/rules_closure
Release rules_closure 0.15.0
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
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
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_depsis 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
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
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
This release upgrades JsCompiler and includes more compatibility changes.
Closure Rules 0.9.0
This release upgrades many dependencies and includes compatibility changes.
Closure Rules 0.8.0
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_dagger2.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
This release upgrades dependencies, improves performance, and adds a few features.
Upgrades
@com_google_javascript_closure_compiler2008-01-01 → 2008-04-02@com_google_javascript_closure_library2017-12-03 → 2018-04-05@com_google_template_soy2018-01-03 → 2018-03-14@com_google_protobuf3.5.0 → 3.5.1@com_google_guava21.0 → 24.1-jre@com_google_auto_value1.4-rc2 → 1.6@com_google_auto_factory1.0-beta3 → 1.0-beta5@com_google_errorprone_error_prone_annotations2.0.19 → 2.1.3@com_squareup_javawriter2.5.1 →@com_squareup_javapoet1.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.jsno longer needs to be an implicit dependency thanks totransitionalforwarddeclarations.js. -
A
lenientattribute is now available forclosure_js_librarywhich makes the compiler more easy-going.
Changes
goog.labs,goog.ui, and third party APIs may no longer be exported from
//closure/libraryand//closure/library:testingby default.- Several breaking changes to the private
//closure/private:defs.bzlSkylark 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
Changes
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=falsein~/.bazelrcmakes protobuf build 2x fast