Skip to content

Releases: bazelbuild/bazel-skylib

0.5.0

13 Jun 20:25
Compare
Choose a tag to compare

Added the types module, which provides type-checking functions (e.g., to check if a value is a string, integer, list, and so forth).

0.4.0

09 May 19:32
Compare
Choose a tag to compare
  • Added the partial module, which emulates Python's functools.partial. The functionality in this module can be used to capture a function and, optionally, a subset of its arguments in a value that can be passed to other functions or stored and then called at a later time.

  • Added a new sets module (which can be loaded from lib.bzl as new_sets or from new_sets.bzl as sets). This new module implements hashed sets via an underlying dictionary and has better performance than the original sets module, which will be removed in a future release.

0.3.1

13 Mar 22:09
Compare
Choose a tag to compare

paths.relativize now supports paths with leading .. segments when the second path is nested under the first.

For example, paths.relativize("../foo", "../foo/bar") returns "bar" instead of failing.

0.3.0

01 Mar 15:43
Compare
Choose a tag to compare
  • Added versions.bzl, for version checking and comparison.
  • Fixed paths.is_absolute on Windows.
  • Added support for no_match_error in selects.with_or().

0.2.0

31 Oct 22:09
Compare
Choose a tag to compare

Added skylark_library, which can be used to aggregate .bzl files and their dependencies for unit tests, Skydoc generation, and other purposes.

0.1.1

31 Oct 15:11
Compare
Choose a tag to compare

Fixes another instance of testonly being misspelled.