mqtt2prometheus
mqtt2prometheus copied to clipboard
Bump github.com/expr-lang/expr from 1.16.9 to 1.17.0
Bumps github.com/expr-lang/expr from 1.16.9 to 1.17.0.
Release notes
Sourced from github.com/expr-lang/expr's releases.
v1.17.0
Expr is a Go-centric expression language designed to deliver dynamic configurations with unparalleled accuracy, safety, and speed.
program, err := expr.Compile(`let foo = bar(); baz(foo, foo)`)In this release:
This release added the biggest change to the Expr language: if-else expressions and sequential expressions. #736 e750878
if foo > 42 { assert(foo); calc(foo, foo / 2) } else { calc(0, 0) }A sequence of expression may be separated by
;char. The last semicolon must be omitted. Expr returns the value of the last expression in the sequence.If-else is also expressions. Each
ifmust have anelsepart. Result of if-else can be used as an expression:let foo = if bar > 0 { process(bar) } else { fallback() }; foo + 42Added:
- Added
ast.Findhelper for easy AST searching. 579de74- Added compile node budget and memory limits (#762)
- Added
uniq()builtin (#705)- Added
flatten()builtin (#684)- Added types pkg (#665 #667 #668)
Improvements:
- Allow tailing comma in arguments (#623)
- Improved type checker for named types 6fa83ad
- Now
len()return runes count for string e8bd7f8
... (truncated)
Commits
3be6386Code style: remove repeated helper functions25690fechore: Added SOLO to the companies list (#769)a9cda30Test for issue 7562bc0eedRemove duplicated dereferencesf4bbea5Add support deref in all builtins7d564c0Remove print80f0ea6Correctly add OpDeref if needed2d9f616Add more tailing comma tests8f83203Allow tailing comma in arguments (#623)435b79dMake sure get() returns nil for map[string]string on missing keys- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the Security Alerts page.