Releases: bufbuild/protovalidate
v0.10.7
MODULE.bazel Usage
bazel_dep(name = "protovalidate", version = "0.10.7")WORKSPACE Usage
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "com_github_bufbuild_protovalidate",
sha256 = "3f6d6945598031e12f3a4019b7c8e65467cd75cf96d6c9dfd85a3829f205b454",
strip_prefix = "protovalidate-0.10.7",
urls = [
"https://github.com/bufbuild/protovalidate/releases/download/v0.10.7/protovalidate-v0.10.7.tar.gz",
],
)What's Changed
This release removes our non-standard hack around reserved CEL identifiers and introduces a new CEL extension for getting a field of a protobuf message by field name string. Also, the updated documentation with formalized definitions for protovalidate CEL functions is restored now that implementations are catching up.
- Restore updated documentation in validate.proto by @timostamm in #328
- Use getField CEL function by @jchadwick-buf in #352
Full Changelog: v0.10.6...v0.10.7
v0.10.6
MODULE.bazel Usage
bazel_dep(name = "protovalidate", version = "0.10.6")WORKSPACE Usage
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "com_github_bufbuild_protovalidate",
sha256 = "644862cbfef07b70a62fc2caffb9321e16a601e079b282f1307dc3019636f8ef",
strip_prefix = "protovalidate-0.10.6",
urls = [
"https://github.com/bufbuild/protovalidate/releases/download/v0.10.6/protovalidate-v0.10.6.tar.gz",
],
)What's Changed
This is anminor bugfix that unfortunately got missed last release.
Full Changelog: v0.10.5...v0.10.6
v0.10.5
MODULE.bazel Usage
bazel_dep(name = "protovalidate", version = "0.10.5")WORKSPACE Usage
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "com_github_bufbuild_protovalidate",
sha256 = "9d8d7955b6fe0451aee4b98ddca80ac52064dda4b52413ef0b2317bf76ec2c3f",
strip_prefix = "protovalidate-0.10.5",
urls = [
"https://github.com/bufbuild/protovalidate/releases/download/v0.10.5/protovalidate-v0.10.5.tar.gz",
],
)What's Changed
We now adhere to the CEL string format extension specification. Also, this release adds a myriad of new test cases that cover more edge cases.
- Prepare GitHub docs for shift to buf.build/docs by @jrinehart-buf in #317
- Bump golang.org/x/sync from 0.12.0 to 0.13.0 in /tools by @dependabot in #344
- Update tests to adhere to CEL formatting standard by @jchadwick-buf in #345
- Add more tests for isUri and isHostname by @timostamm in #346
- Add more tests for isHostAndPort by @timostamm in #347
- Add tests for isEmail with surrounding newlines by @timostamm in #348
- Add additional tests for map keys by @smaye81 in #349
- Add additional test cases for double colon in IPv6 by @timostamm in #350
Full Changelog: v0.10.4...v0.10.5
v0.10.4
MODULE.bazel Usage
bazel_dep(name = "protovalidate", version = "0.10.4")WORKSPACE Usage
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "com_github_bufbuild_protovalidate",
sha256 = "0177a6cc9c9f049f4dabc9079f24d9591ef371f358e9b28f82a3cfb65dda33ad",
strip_prefix = "protovalidate-0.10.4",
urls = [
"https://github.com/bufbuild/protovalidate/releases/download/v0.10.4/protovalidate-v0.10.4.tar.gz",
],
)What's Changed
- Update go protobuf 1.36.6 by @rodaine in #337
- Add additional test cases for IPv6 by @jchadwick-buf in #341
- Fix erroneous IGNORE_ALWAYS in conformance test case by @timostamm in #340
- Add tests for required with IGNORE_ALWAYS by @timostamm in #343
Full Changelog: v0.10.3...v0.10.4
v0.10.3
Breaking changes
This version of protovalidate includes breaking changes to the conformance test harness. These changes will not affect you, unless you are authoring a protovalidate implementation and use the test harness.
We've added more test cases, made several small improvements to the test output, and made --strict the default behavior.
MODULE.bazel Usage
bazel_dep(name = "protovalidate", version = "0.10.3")WORKSPACE Usage
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "com_github_bufbuild_protovalidate",
sha256 = "12c6a8018ea57a941ede58a9273f266e180b1f0800d963527de26bb26c876004",
strip_prefix = "protovalidate-0.10.3",
urls = [
"https://github.com/bufbuild/protovalidate/releases/download/v0.10.3/protovalidate-v0.10.3.tar.gz",
],
)What's Changed
- Add tests for custom field constraints by @timostamm in #329
- Do not output expected failures in conformance runner by @timostamm in #331
- Delete the --json flag of the conformance runner by @timostamm in #332
- Add field path details to the conformance runner output by @timostamm in #333
- Delete the --strict flag of the conformance runner by @timostamm in #334
- Print unexpected success cases in the conformance runner by @timostamm in #335
Full Changelog: v0.10.2...v0.10.3
v0.10.2
Breaking changes
This version of protovalidate includes breaking changes to the conformance test harness. These changes will not affect you, unless you are authoring a protovalidate implementation and use the test harness.
Test cases for isEmail, isHostname, isHostAndPort, isIpPrefix, isIp, isUri, and isUriRef have been added to the harness. isEmail follows the HTML standard now instead of RFC 5322. See #320 for details.
MODULE.bazel Usage
bazel_dep(name = "protovalidate", version = "0.10.2")WORKSPACE Usage
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "com_github_bufbuild_protovalidate",
sha256 = "2b0ebbccb4b27268845a2c31f9b17dd8752b36d877ba91a8b6d0ee672795e0d7",
strip_prefix = "protovalidate-0.10.2",
urls = [
"https://github.com/bufbuild/protovalidate/releases/download/v0.10.2/protovalidate-v0.10.2.tar.gz",
],
)What's Changed
- Add missing space to README by @stefanvanburen in #316
- Move CEL extension documentation to buf.build/docs by @jrinehart-buf in #318
- Update protovalidate CEL functions by @timostamm in #320
- Add tests for IGNORE_ALWAYS by @timostamm in #322
- Fix examples in validate.proto by @timostamm in #323
- Update copyright years by @timostamm in #321
- Return error when processing conformance results by @timostamm in #326
- Temporarily revert updates to the documentation in validate.proto by @timostamm in #327
Full Changelog: v0.10.1...v0.10.2
v0.10.1
What's Changed
- Improve BCR release process by @jchadwick-buf in #301
- Add new test cases for URI encoding by @smaye81 in #302
- Bump github.com/spf13/pflag from 1.0.5 to 1.0.6 in /tools by @dependabot in #304
- Clarify rule string.uri_ref by @timostamm in #305
- Switch to datatracker.ietf.org for RFC links by @timostamm in #306
- Bump golang.org/x/sync from 0.10.0 to 0.11.0 in /tools by @dependabot in #308
- Add additional test cases for URNs by @smaye81 in #307
- Bump google.golang.org/protobuf from 1.36.4 to 1.36.5 in /tools by @dependabot in #309
- Test against specific Go version by @nicksnyder in #311
- Document why CI doesn't push directly to the BSR by @nicksnyder in #310
- Link to migration guide by @nicksnyder in #313
- Optimize Bazel CI performance by @jchadwick-buf in #312
- Migrate buf.gen.yaml to v2 by @pkwarren in #314
- Mark FieldConstraints deleted values as reserved by @pkwarren in #315
New Contributors
Full Changelog: v0.10.0...v0.10.1
v0.10.0
Breaking Changes
This version of protovalidate removes various deprecated fields and enumeration values:
skippedonFieldConstraints: Setignore = IGNORE_ALWAYSinstead.ignore_emptyonFieldConstraints: Setignore = IGNORE_IF_UNPOPULATEDinstead.field_pathonViolation: Use the structuredfieldvalue instead.IGNORE_EMPTYonIgnore: Use theIGNORE_IF_UNPOPULATEDenumeration value instead.IGNORE_DEFAULTonIgnore: Use theIGNORE_IF_DEFAULT_VALUEenumeration value instead.
These options had been deprecated for a while, and their replacements are already available, so you can migrate preemptively before updating to this release.
MODULE.bazel Usage
bazel_dep(name = "protovalidate", version = "0.10.0")WORKSPACE Usage
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "com_github_bufbuild_protovalidate",
sha256 = "7c20845bda99287680c7993e56df8ce414484a83003a10bd0eba18c6db527027",
strip_prefix = "protovalidate-0.10.0",
urls = [
"https://github.com/bufbuild/protovalidate/releases/download/v0.10.0/protovalidate-v0.10.0.tar.gz",
],
)What's Changed
- Fix docs: expected-failures should be expected_failures by @nicksnyder in #281
- Bump golang.org/x/sync from 0.9.0 to 0.10.0 in /tools by @dependabot in #282
- Pin bazel to last pre-8.x release by @jchadwick-buf in #287
- Fix dead link in buf.build/bufbuild/protovalidate-testing README.md by @timostamm in #286
- Add all conformance runner flags to the documentation by @timostamm in #285
- Bump google.golang.org/protobuf from 1.35.2 to 1.36.1 in /tools by @dependabot in #288
- Add support for bzlmod + Bazel 8 by @jchadwick-buf in #289
- Bump google.golang.org/protobuf from 1.36.1 to 1.36.2 in /tools by @dependabot in #293
- Bump google.golang.org/protobuf from 1.36.2 to 1.36.3 in /tools by @dependabot in #295
- Move to the migration guide at Buf docs by @jrinehart-buf in #294
- Bump google.golang.org/protobuf from 1.36.3 to 1.36.4 in /tools by @dependabot in #296
- Remove deprecated options by @jchadwick-buf in #297
- Add BCR manifest and bzlmod E2E test by @jchadwick-buf in #298
New Contributors
- @jrinehart-buf made their first contribution in #294
Full Changelog: v0.9.0...v0.10.0
v0.9.0
What's Changed
- Bump google.golang.org/protobuf from 1.34.2 to 1.35.1 in /tools by @dependabot in #260
- Update dependencies by @rodaine in #273
- Fix doc examples for string.example by @sudorandom in #271
- Clarify that protovalidate does not require any code generation by @timostamm in #278
- Clarify "custom validation functions" by @rodaine in #279
- Bump github.com/stretchr/testify from 1.9.0 to 1.10.0 in /tools by @dependabot in #276
- Add structured field and rule paths to Violation by @jchadwick-buf in #265
New Contributors
- @timostamm made their first contribution in #278
Full Changelog: v0.8.2...v0.9.0