CARVIEW |
Navigation Menu
-
Notifications
You must be signed in to change notification settings - Fork 9
Releases: bufbuild/protovalidate-cc
v1.0.0-rc.6
31de8a2
Compare
This release is compatible with the v0.14.0 release of Protovalidate.
Breaking changes
We want validation rules to be easy to understand for authors and consumers. To simplify Protovalidate, we are renaming an option and remove two others. This is a breaking change, and you will have to update your Protobuf files if they use the relevant options:
IGNORE_IF_UNPOPULATED
is renamed toIGNORE_IF_ZERO_VALUE
.
See bufbuild/protovalidate#397 for details.(buf.validate.message).disabled
is removed.
You can replace it by addingIGNORE_ALWAYS
to every field of the message. See bufbuild/protovalidate#394 for details.IGNORE_IF_DEFAULT_VALUE
is removed.
In most cases, you can replace it withIGNORE_IF_ZERO_VALUE
. See bufbuild/protovalidate#396 for details.
MODULE.bazel
Usage
bazel_dep(name = "protovalidate-cc", version = "1.0.0-rc.6")
WORKSPACE
Usage
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "protovalidate-cc",
sha256 = "3595dfb8840a93f45b18a7368486734ec6dc30479e3f2245d1a1d82b9c8d2a64",
strip_prefix = "protovalidate-cc-1.0.0-rc.6",
urls = [
"https://github.com/bufbuild/protovalidate-cc/releases/download/v1.0.0-rc.6/protovalidate-cc-1.0.0-rc.6.tar.gz",
],
)
What's Changed
- Fix Bazel WORKSPACE instructions in readme and release message by @wheals in #111
- Update README to be consistent with core Protovalidate repo by @jrinehart-buf in #112
- Bump bazel-contrib/publish-to-bcr from 0.2.1 to 0.2.2 by @dependabot[bot] in #113
- Use tagged BCR release workflow by @jchadwick-buf in #117
- Update count for new protobuf version by @FoxMoss in #115
- Update protovalidate by @srikrsna-buf in #116
New Contributors
Full Changelog: v1.0.0-rc.5...v1.0.0-rc.6
Assets 6
v0.9.0
31de8a2
Compare
This release is compatible with the v0.14.0 release of Protovalidate.
Breaking changes
We want validation rules to be easy to understand for authors and consumers. To simplify Protovalidate, we are renaming an option and remove two others. This is a breaking change, and you will have to update your Protobuf files if they use the relevant options:
IGNORE_IF_UNPOPULATED
is renamed toIGNORE_IF_ZERO_VALUE
.
See bufbuild/protovalidate#397 for details.(buf.validate.message).disabled
is removed.
You can replace it by addingIGNORE_ALWAYS
to every field of the message. See bufbuild/protovalidate#394 for details.IGNORE_IF_DEFAULT_VALUE
is removed.
In most cases, you can replace it withIGNORE_IF_ZERO_VALUE
. See bufbuild/protovalidate#396 for details.
MODULE.bazel
Usage
bazel_dep(name = "protovalidate-cc", version = "0.9.0")
WORKSPACE
Usage
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "protovalidate-cc",
sha256 = "5fd32b016e63f02e9df0cb2f4b0afb6cda242c76b01b64ea8e6afec3e54f99b3",
strip_prefix = "protovalidate-cc-0.9.0",
urls = [
"https://github.com/bufbuild/protovalidate-cc/releases/download/v0.9.0/protovalidate-cc-0.9.0.tar.gz",
],
)
What's Changed
- Fix Bazel WORKSPACE instructions in readme and release message by @wheals in #111
- Update README to be consistent with core Protovalidate repo by @jrinehart-buf in #112
- Bump bazel-contrib/publish-to-bcr from 0.2.1 to 0.2.2 by @dependabot[bot] in #113
- Use tagged BCR release workflow by @jchadwick-buf in #117
- Update count for new protobuf version by @FoxMoss in #115
- Update protovalidate by @srikrsna-buf in #116
New Contributors
Full Changelog: v0.8.0...v0.9.0
Assets 6
v1.0.0-rc.5
26c31c3
Compare
MODULE.bazel
Usage
bazel_dep(name = "protovalidate-cc", version = "1.0.0-rc.5")
WORKSPACE
Usage
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "protovalidate-cc",
sha256 = "46a4c4c1b1f995722810186cd8e39b6a316074cba8910d6db2062667a33c9f25",
strip_prefix = "protovalidate-cc-1.0.0-rc.5",
urls = [
"https://github.com/bufbuild/protovalidate-cc/releases/download/v1.0.0-rc.5/protovalidate-cc-v1.0.0-rc.5.tar.gz",
],
)
What's Changed
- Update to Protovalidate 0.13.0 by @smaye81 in #108
- Validate
MessageOneofRule
and add implicitIGNORE_IF_UNPOPULATED
by @srikrsna-buf in #109
Full Changelog: v1.0.0-rc.4...v1.0.0-rc.5
Assets 4
v0.8.0
26c31c3
Compare
MODULE.bazel
Usage
bazel_dep(name = "protovalidate-cc", version = "0.8.0")
WORKSPACE
Usage
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "protovalidate-cc",
sha256 = "38b17624f2e8ba10dc899ad6921c02f77a7823fcb60dd1938770026da05a8a90",
strip_prefix = "protovalidate-cc-0.8.0",
urls = [
"https://github.com/bufbuild/protovalidate-cc/releases/download/v0.8.0/protovalidate-cc-v0.8.0.tar.gz",
],
)
What's Changed
- Update to Protovalidate 0.13.0 by @smaye81 in #108
- Validate
MessageOneofRule
and add implicitIGNORE_IF_UNPOPULATED
by @srikrsna-buf in #109
Full Changelog: v0.7.0...v0.8.0
Assets 6
v1.0.0-rc.4
f47663d
Compare
MODULE.bazel
Usage
bazel_dep(name = "protovalidate-cc", version = "1.0.0-rc.4")
WORKSPACE
Usage
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "protovalidate-cc",
sha256 = "f76d47f7828499819bfb04996960419a3f5392b9a3c0c9f56bf298bf2302416e",
strip_prefix = "protovalidate-cc-1.0.0-rc.4",
urls = [
"https://github.com/bufbuild/protovalidate-cc/releases/download/v1.0.0-rc.4/protovalidate-cc-v1.0.0-rc.4.tar.gz",
],
)
What's Changed
- Attempt to make SLSA work again by @jchadwick-buf in #107
Full Changelog: v1.0.0-rc.3...v1.0.0-rc.4
Assets 6
v0.7.0
f47663d
Compare
MODULE.bazel
Usage
bazel_dep(name = "protovalidate-cc", version = "0.7.0")
WORKSPACE
Usage
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "protovalidate-cc",
sha256 = "b3847a33ca22b754b29df7b45777d80d6e4f4fb7ec469ff82d993324b9764ec0",
strip_prefix = "protovalidate-cc-0.7.0",
urls = [
"https://github.com/bufbuild/protovalidate-cc/releases/download/v0.7.0/protovalidate-cc-v0.7.0.tar.gz",
],
)
What's Changed
- Add TypeScript / JavaScript to the supported languages in README.md by @jrinehart-buf in #92
- Add bzlmod instructions by @atriviality in #94
- Update to Protovalidate 0.12.0 by @smaye81 in #95
- Update to pv release candidate by @smaye81 in #96
- Pull cel-cpp from the BCR by @jchadwick-buf in #97
New Contributors
- @atriviality made their first contribution in #94
Full Changelog: v0.6.0...v0.7.0
Assets 6
v1.0.0-rc.3
ed2400a
Compare
MODULE.bazel
Usage
bazel_dep(name = "protovalidate-cc", version = "1.0.0-rc.3")
WORKSPACE
Usage
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "protovalidate-cc",
sha256 = "5291741cec1f9bef68db0571aa9696bcea11d199c870531a09dc010385b6b463",
strip_prefix = "protovalidate-cc-1.0.0-rc.3",
urls = [
"https://github.com/bufbuild/protovalidate-cc/releases/download/v1.0.0-rc.3/protovalidate-cc-v1.0.0-rc.3.tar.gz",
],
)
What's Changed
- One more fix for BCR publish workflow by @jchadwick-buf in #102
- Fix manual dispatch for Publish to BCR workflow by @jchadwick-buf in #103
- Remove the workaround for creating a release draft by @jchadwick-buf in #104
- Fix e2e test by including source info by @jchadwick-buf in #105
- Implement MessageOneofRule by @timostamm in #106
This release is compatible with protovalidate v1.0.0-rc.2.
Full Changelog: v1.0.0-rc.2...v1.0.0-rc.3
Assets 6
v1.0.0-rc.2
76e17ca
Compare
MODULE.bazel
Usage
bazel_dep(name = "protovalidate-cc", version = "1.0.0-rc.2")
WORKSPACE
Usage
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "protovalidate-cc",
sha256 = "5a08899aafb3e50204e0aee6b1fb4ba90cf5a6f42be616f922aaacafaec04c5e",
strip_prefix = "protovalidate-cc-1.0.0-rc.2",
urls = [
"https://github.com/bufbuild/protovalidate-cc/releases/download/v1.0.0-rc.2/protovalidate-cc-v1.0.0-rc.2.tar.gz",
],
)
What's Changed
- Pull cel-cpp from the BCR by @jchadwick-buf in #97
- Add support for BCR publishing by @jchadwick-buf in #99
- Minor BCR publishing fixes for v1.0.0-rc.2 by @jchadwick-buf in #100
- Two more BCR fixes for v1.0.0-rc.2 by @jchadwick-buf in #101
Full Changelog: v1.0.0-rc.1...v1.0.0-rc.2
Assets 3
v1.0.0-rc.1
efabbb1
Compare
This release is compatible with the v1.0.0-rc.1 release of Protovalidate.
What's Changed
- Update to pv release candidate by @smaye81 in #96
- Add bzlmod instructions by @atriviality in #94
New Contributors
- @atriviality made their first contribution in #94
Full Changelog: v0.6.0...v1.0.0-rc.1
Assets 2
v0.6.0
ad2d011
Compare
Breaking Changes
As of protovalidate v0.11.0, the term "constraint" has been removed in favor of using the term "rule" to universally refer to rule values, rule definitions, and so forth. This has resulted in some identifiers in protovalidate-cc changing as well. The public type buf::validate::ConstraintViolation
is now buf::validate::RuleViolation
.
Some of the validation behavior has changed. In most cases, these changes are backwards-compatible, i.e. values that previously passed validation should continue to pass validation. However, the rules for e-mail validation have changed. protovalidate-cc now uses the e-mail address grammar specified by the WHATWG HTML specification across all implementations. Previously, the e-mail validation varied between implementations, although we had previously adopted part of the HTML e-mail address grammar previously (in that case, loosening the restrictions a bit) - now we are fully adhering to that grammar. This may result in some values that were formerly considered valid to be considered invalid, but in practice, it is expected to be very unlikely to encounter such values.
What's Changed
A wide range of improvements are present in this release. We are now using cel-cpp v0.11.0 and we have reduced the set of custom patches we carry; now the only patches we carry for cel-cpp are to add support for Windows and CMake. We no longer depend on BSD sockets on UNIX or winsock32 on Windows, as we replaced code that uses the system networking stack to validate addresses, instead using built-in parsers that closely follow the relevant RFC grammar, allowing protovalidate implementations to be more consistent, especially across platforms. The developer experience is improved as well: when using CMake on protovalidate-cc directly (as opposed to embedding it within another project,) we will automatically set up compile_commands.json
in the current directory by default, enabling clangd and other clang tools to function while you work on protovalidate-cc. We also now have support for bzlmod, but since cel-cpp is not in the BCR, we can not put protovalidate-cc in the BCR and you will need to manually set up an archive override for cel-cpp.
- Update copyright years by @jchadwick-buf in #77
- Prepare GitHub docs for shift to buf.build/docs by @jrinehart-buf in #71
- CMake: Cleanup and improvements by @jchadwick-buf in #74
- CMake: Set up compile_commands.json automatically by @jchadwick-buf in #78
- Implement unified IPv4 and IPv6 parsers by @jchadwick-buf in #79, #85
- Implement unified e-mail address validation by @jchadwick-buf in #81
- Implement unified URI validation by @jchadwick-buf in #82
- Fix hostname, port, and enum validation by @jchadwick-buf in #83
- Fix URI host parsing and let isHostAndPort reject leading zeros in port number by @timostamm in #87
- Update cel-cpp to v0.11.0 by @jchadwick-buf in #86
- Initial bzlmod support by @jchadwick-buf in #88
- New conformance fixes by @jchadwick-buf in #89
- Upgrade to protovalidate v0.10.3, v0.10.4, v0.11.0 by @smaye81 in #73, @jchadwick-buf in #84, @jchadwick-buf in #90
- Rename constraint -> rule globally by @jchadwick-buf in #91
New Contributors
- @smaye81 made their first contribution in #73
- @jrinehart-buf made their first contribution in #71
- @timostamm made their first contribution in #87
Full Changelog: v0.5.0...v0.6.0