Skip to content

Releases: bufbuild/protovalidate

v0.10.7

22 Apr 23:57
68baacf

Choose a tag to compare

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

22 Apr 16:07
761233d

Choose a tag to compare

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

22 Apr 15:35
bcf8a4f

Choose a tag to compare

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

02 Apr 14:08
547a1e2

Choose a tag to compare

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

12 Mar 14:33
0e59ac3

Choose a tag to compare

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

06 Mar 17:48
0d8f50a

Choose a tag to compare

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

Full Changelog: v0.10.1...v0.10.2

v0.10.1

19 Feb 16:43
7ce9864

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.10.0...v0.10.1

v0.10.0

30 Jan 23:22
a9e325f

Choose a tag to compare

Breaking Changes

This version of protovalidate removes various deprecated fields and enumeration values:

  • skipped on FieldConstraints: Set ignore = IGNORE_ALWAYS instead.
  • ignore_empty on FieldConstraints: Set ignore = IGNORE_IF_UNPOPULATED instead.
  • field_path on Violation: Use the structured field value instead.
  • IGNORE_EMPTY on Ignore: Use the IGNORE_IF_UNPOPULATED enumeration value instead.
  • IGNORE_DEFAULT on Ignore: Use the IGNORE_IF_DEFAULT_VALUE enumeration 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

Full Changelog: v0.9.0...v0.10.0

v0.9.0

26 Nov 21:09
41573d9

Choose a tag to compare

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

Full Changelog: v0.8.2...v0.9.0

v0.8.2

02 Oct 19:26
adbfb45

Choose a tag to compare

What's Changed

  • Add more predefined rules conformance tests around repeated fields by @jchadwick-buf in #258

Full Changelog: v0.8.1...v0.8.2