Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update module github.com/google/cel-go to v0.21.0 #299

Merged
merged 1 commit into from
Aug 9, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 9, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/google/cel-go v0.20.1 -> v0.21.0 age adoption passing confidence

Release Notes

google/cel-go (github.com/google/cel-go)

v0.21.0

Compare Source

Features

  • Math extensions update to include bitwise ops and floating point helpers [#​923]
  • Better support custom types with custom type registries [#​931]
  • repl: implement %parse [#​933]
  • Fixed partial variables extended bug and split PartialVarsEnvExtended test into two [#​955]
  • Added partial evaluations example [#​959]
  • Enable conformance tests for extensions [#​930]
  • Update cel-spec and enable optional_type conformance tests [#​919]
  • Improve token representation in AST [#​932]
  • Add function accessor to Env [#​978]
CEL Policy Compiler

Policies which use CEL often evolve to express complex logic using multiple statements
and decision criteria. The CEL Policy Compiler provides an extensible format for parsing,
compiling, and composing expression graphs. Below is a simple example which can easily
be compiled to a single CEL expression.

name: "my-policy"
rule:
  variables:
    - name: greeting
      expression: "'%s, %s!'"
    - name: people
      expression: >
       ['Tristan', 'Calla', 'Antoine', 'Jonathan', 'Sokwhan', 'Rebecca']
  match:
    - condition: "request.user in variables.people"
      output: "variables.greeting.format(['hello', request.user])"
    - output: "variables.greeting.format(['goodbye', 'stranger'])"
  • Simple Policy Compiler [#​924]
  • Introduce protobuf message testing to policies [#​961]
  • Generate policy explanations during compilation [#​977]
  • Variable and nested rule limits [#​989]
  • Improved support for nested rules #​991]

Fixes

  • Delete dangling source info from macro expansion [#​934]
  • Do not re-use ID twice in exists_one macro [#​935]
  • Avoid iterating over the source multiple times during parse [#​936]
  • Fix for working with byte arrays by [#​958]
  • Stabilize macro id generation during optimization [#​962]
  • String formatting panic fix for non-literal format strings [#​987]
  • Add nil checking for wrapperspb's types [#​960]
  • Prevent self-append for Issues [#​988]
  • Use bytes interface value for zero native type struct fields instead of dynamic list [#​981]
Presence Test Semantics

The following two changes identified an issue where presence test was unexpectedly being performed over a scalar type and evaluating to absent rather than erroring. It is strongly advised to set the flag cel.EnableErrorOnBadPresenceTest(true) to avoid a logical correctness issue.

  • Fix presence test to produce an error when it's not a map or a message [#​922]
  • Update the presence testing fix to be opt-out [#​939]
Deprecation Cleanup
  • Remove the deprecated protobuf function and type declarations [#​921]

New Contributors

Full Changelog: google/cel-go@v0.20.1...v0.21.0


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested review from a team as code owners August 9, 2024 17:16
@mikemrm mikemrm merged commit b230e43 into main Aug 9, 2024
21 of 22 checks passed
@mikemrm mikemrm deleted the renovate/github.com-google-cel-go-0.x branch August 9, 2024 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant