Releases: bazelbuild/bazel-skylib
Releases · bazelbuild/bazel-skylib
0.5.0
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
-
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
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
- 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
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
Fixes another instance of testonly
being misspelled.