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

build(deps): bump github.com/antonmedv/expr from 1.13.0 to 1.15.3 #6342

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 25, 2023

Bumps github.com/antonmedv/expr from 1.13.0 to 1.15.3.

Release notes

Sourced from github.com/antonmedv/expr's releases.

v1.15.3

  • Added type checks to detect 42 in ["a"] as invalid.

v1.15.2

  • Propagate uint32 func argument types in AST (#438)

v1.15.1

  • Fixed type checker for the in operator.
  • Fixed memory budget calculations for ranges.

v1.15.0

Expr is a Go-centric expression language designed to deliver dynamic configurations with unparalleled accuracy, safety, and speed.

In this release:

  • Added support for variables.
    let foo = filter(tweets, .Text contains "foo");
    let name = foo?.Author?.Name ?? "unknown";
    upper(name)
  • Added configuration to enable/disable builtin functions.
  • Added a bunch of optimizations for builtin function combinations:
    • len(filter()) and map(filter())
    • filter()[0] and filter()[-1]
  • Added a bunch of new builtin functions:
    • sort, sortBy
    • groupBy
    • toPairs, fromPairs
    • take, reduce, mean, median.
  • Fixed in-range optimization to be only applied to integers.
  • Fixed float folding optimization.
  • Fixed duration*integer mutliplications.
  • Improved language and developer documentation.

Examples:

tweets | filter(.Size < 280) | map(.Content) | join(" -- ")
filter(posts, {
    let span = now() - .CreatedAt;
    let limit = 7 * duration("24h");
    span >= limit
})

... (truncated)

Commits

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@chrisohaver
Copy link
Member

Looks like a panic originating in the upgraded package. I think we will need to skip this version.

@chrisohaver
Copy link
Member

	panic: cannot override builtin type(): use expr.DisableBuiltin("type") to override

...

	/opt/hostedtoolcache/go/1.21.1/x64/src/runtime/panic.go:920 +0x270
github.com/antonmedv/expr/conf.(*Config).Check(0xc001338a00)
	/home/runner/go/pkg/mod/github.com/antonmedv/[email protected]/conf/config.go:105 +0x65f
github.com/antonmedv/expr.Compile({0xc000525603, 0xd}, {0xc000fd5398, 0x1, 0x1?})
	/home/runner/go/pkg/mod/github.com/antonmedv/[email protected]/expr.go:164 +0x4e5
github.com/antonmedv/expr/conf.(*Config).Check(0xc001338a00)
	/home/runner/go/pkg/mod/github.com/antonmedv/[email protected]/conf/config.go:105 +0x65f
github.com/antonmedv/expr.Compile({0xc000525603, 0xd}, {0xc000fd5398, 0x1, 0x1?})
	/home/runner/go/pkg/mod/github.com/antonmedv/[email protected]/expr.go:164 +0x4e5

@dependabot dependabot bot force-pushed the dependabot/go_modules/github.com/antonmedv/expr-1.15.3 branch 2 times, most recently from f057c12 to 66095e9 Compare October 20, 2023 11:37
@SuperQ
Copy link
Collaborator

SuperQ commented Oct 20, 2023

👓 @antonmedv

@SuperQ
Copy link
Collaborator

SuperQ commented Oct 20, 2023

@dependabot rebase

Bumps [github.com/antonmedv/expr](https://github.com/antonmedv/expr) from 1.13.0 to 1.15.3.
- [Release notes](https://github.com/antonmedv/expr/releases)
- [Commits](expr-lang/expr@v1.13.0...v1.15.3)

---
updated-dependencies:
- dependency-name: github.com/antonmedv/expr
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/go_modules/github.com/antonmedv/expr-1.15.3 branch from 66095e9 to b4c617a Compare October 20, 2023 12:09
@antonmedv
Copy link

antonmedv commented Oct 20, 2023

Yes, now Expr ships with type() builtin. You can disable it with:

expr.DisableBuiltin("type")

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Oct 27, 2023

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot bot deleted the dependabot/go_modules/github.com/antonmedv/expr-1.15.3 branch October 27, 2023 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependency go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants