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

deps: update module github.com/google/cel-go to v0.21.0 #1684

Merged
merged 1 commit into from
Aug 4, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 4, 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: Disabled by config. Please merge this manually once you are satisfied.

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 added the dependency label Aug 4, 2024
Copy link

codecov bot commented Aug 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.25%. Comparing base (c35d08f) to head (70565e8).

Additional details and impacted files
@@           Coverage Diff            @@
##           release    #1684   +/-   ##
========================================
  Coverage    89.25%   89.25%           
========================================
  Files          270      270           
  Lines         8876     8876           
========================================
  Hits          7922     7922           
  Misses         705      705           
  Partials       249      249           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dadrus dadrus merged commit 0601589 into release Aug 4, 2024
23 checks passed
@dadrus dadrus deleted the renovate/git.luolix.top-google-cel-go-0.x branch August 4, 2024 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant