Open
Conversation
c49a110 to
6530ff8
Compare
6530ff8 to
6421e02
Compare
Contributor
Author
ℹ️ Artifact update noticeFile name: go.modIn order to perform the update(s) described in the table above, Renovate ran the
Details:
|
Codecov Report✅ All modified and coverable lines are covered by tests. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v1.12.3→v1.13.1v0.37.0→v0.38.1Release Notes
open-policy-agent/opa (github.com/open-policy-agent/opa)
v1.13.1Compare Source
v1.13.1
This bug fix release addresses an issue found in the new
array.flattenbuilt-in functionarray.flattenhandling of single item arrays (#8273) (#8272) authored by @anderseknertv1.13.0Compare Source
This release contains a mix of new features, performance improvements, and bugfixes. Notably:
immediateupload trigger mode in the Decision Loggerarray.flattenbuilt-in functionImmediate Upload Trigger Mode in Decision Logger (#8110)
An
immediatetrigger mode has been added to the Decision Logger; enabled by setting thedecision_logs.reporting.triggerconfiguration option toimmediate.When enabled, log events are pushed to the log service as soon as the configured upload chunk size criteria is met; or, at latest, when the configured upload delay is reached.
Authored by @sspaink
Runtime, SDK, Tooling
fmtwithout changes (#8222) authored by @Loic-Rnil*Profilershould not reportEnabled()(#8256) authored by @anderseknertCompiler, Topdown and Rego
Body.String()doesn't panic on empty body (#8244) authored by @srenatusarray.flattenbuilt-in function (#8226) authored by @anderseknertnumbers.range_stepbuilt-in could erroneously returnundefinedvalue (#8194) authored by @thevilledevstrings.render_templatebuilt-in (#7931) authored by @colinjlacy reported by @anderseknertregex.replacebuilt-in (#8179) authored by @srenatusfrom having been reverted in v1.12.1
json.match_schema(#6615) authored by @sspaink reported by @mscudlikPerformance
Ref.String()(#8202) authored by @anderseknertIsVarCompatibleString(#8164) authored by @anderseknertSet.IntersectandSet.Diff(#8167) authored by @thevilledevSet.Union(#8172) authored by @thevilledevExpr.MarshalJSON(#8204) authored by @thevilledevRule.MarshalJSON(#8205) authored by @thevilledevTerm.MarshalJSON(#8200) authored by @thevilledevWith.MarshalJSON(#8206) authored by @thevilledevString()implementations using appenders (#8192) authored by @anderseknertarray.reverse(#8177) authored by @thevilledevjson.removeandjson.filter(#8193) authored by @thevilledevobjectbuilt-ins (#8175) authored by @thevilledevunionbuilt-in (#8173) authored by @thevilledevgetObjectKeysParam(#8176) authored by @thevilledevDocs, Website, Ecosystem
Miscellaneous
pr_check.regowithopa fmt(#8201) authored by @thevilledevgo getagainstmainto spot redacted (#8146) authored by @charlieegan3go.yaml.in/yaml/v3yaml library (#8182) authored by @mruegbecause of redaction warning
open-policy-agent/regal (github.com/open-policy-agent/regal)
v0.38.1Compare Source
This patch release fixes several bugs including some found in the recent v0.38.0 release, as well some other improvements.
Bug Fixes
prefer-equals-comparisonfixer failing to parse policies with multiple "=" in expressions (#1824, fixes #1818 reported by @gusega)prefer-equals-comparisonrule with comprehension term vars (#1828, fixes #1826 reported by @SeanLedford)Improvements
prefer-equals-comparisonfixer now available in the language server (#1810)prefer-value-in-headrule to count interpolated strings as scalars (#1817)any_set_item, used for selecting items from sets (#1815)Changelog
f1c5f74: bundle: Improve performance of any_set_item (#1815) (@charlieegan3)9300420: Implemented Code action for prefer-equals-comparison fixer (#1810) (@SeanLedford)28121f0: build(deps): bump github/codeql-action in the dependencies group (#1823) (@dependabot[bot])54cdcb6: Addprefer-value-in-headoption to count interpolated string as scalar (#1817) (@anderseknert)e68184d: Fix false positivie in prefer-equals-comparison (#1828) (@anderseknert)593e221: fix: Prefer-Equals-Comparison Edge Case With Multiple "=" (#1824) (@SeanLedford)3dc28bb: bundle: Surface configured rule notices (#1827) (@charlieegan3)aac9618: Updated lint reporter to track fixable violation count separate from fixable violation Set (#1825) (@SeanLedford)fd6dd4d: Updated example for prefer-equals-comparison edge case to not include false positive (#1829) (@SeanLedford)v0.38.0Compare Source
Happy New Year from the Regal maintainers!
Feature: String Interpolation Support
v0.38.0 of your favorite Rego linter, debugger and language server brings full support for OPA's new string interpolation feature. This means not only that Regal lints code found inside interpolated strings, but that you'll have access to all your favorite language server features within them too — like code completions, tooltips on hover, or document highlighting. You can even use the debugger to step through interpolated expressions! If you haven't yet tried it out, grab OPA v1.12.2, Regal v0.38.0 and enjoy an absolutely awesome addition to the Rego language!
In addition to this, we have a number of fun new features and performance improvements.
New Rule:
disallow-rego-v1Category:
customThis optional new rule flags the use of import rego.v1 in Rego policies (#1778). Since OPA v1.0 (December 2024), this import is a no-op and no longer needed. The rule helps users maintain clean code by preventing this outdated import from appearing in new policies. Teams standardizing on OPA 1.0+ can enable this rule to enforce modern Rego standards.
Authored by @SeanLedford.
New Fixers
@SeanLedford has also done some great work to help expand Regal's auto-fixing capabilities by having
regal fixers added for three more rules.See (#1790) and (#1794) for more details.
Performance
The fixer saw a 12% performance improvement by reusing the linter, reducing allocations from 2.3M to 2.0M operations (#1783). Additional optimizations include:
To track ongoing performance work, a new post-merge benchmark-recording workflow was added (#1793).
LSP: New Ignore Code Action
The language server now supports a code action to quickly add regal ignore configuration for specific rules directly from the editor (#1777).
Changelog
ac35695: Various performance improvements (#1758) (@anderseknert)48cd03d: docs: Add custom head for regal index page (#1761) (@charlieegan3)728ae28: build(deps): bump golangci/golangci-lint-action (#1762) (@dependabot[bot])92cf6ca: explorer: allow hiding stages without an effect (+misc) (#1760) (@srenatus)c000994: docs: Correct sidebar labels (#1763) (@charlieegan3)bf0b621: build(deps): bump github.com/containerd/containerd/v2 in /e2e/testbuild (#1753) (@dependabot[bot])18e7a89: build(deps): bump github.com/containerd/containerd/v2 (#1754) (@dependabot[bot])ccab7bd: Rename: encoding/util -> encoding/write (#1764) (@anderseknert)54f7625: build: run windows in matrix with other jobs (#1770) (@charlieegan3)5c9e6f0: update: Update version checking logic (#1772) (@charlieegan3)5034776: build: Add badge update to readme script (#1773) (@charlieegan3)95e8220: Added OPA installation as a Regal prerequisite, and fixed golangci-lint link. (#1774) (@SeanLedford)149f71d: build(deps): bump js-yaml from 4.1.0 to 4.1.1 in /build (#1775) (@dependabot[bot])b8f8b7f: Enable more golangci-lint linters (@anderseknert)e092627: build: Update mac runner (@charlieegan3)877884c: lsp: Add code action and command to ignore rule (#1777) (@charlieegan3)ece9ca2: build(deps): bump the dependencies group with 5 updates (@dependabot[bot])bd37bbd: build(deps): bump golang.org/x/crypto in /build/lsp (@dependabot[bot])17cc429: build(deps): bump golang.org/x/crypto in /e2e/testbuild (@dependabot[bot])415b05f: build(deps): bump golang.org/x/crypto from 0.43.0 to 0.45.0 (@dependabot[bot])e1bb975: Improve fixer performance (@anderseknert)1b083ff: Added Rule: Disallow import rego.v1 (#1778) (@SeanLedford)9e43c50: Optimize and improve code for built-in functions (@anderseknert)64ce2aa: build(deps): bump glob and markdownlint-cli in /build (#1779) (@dependabot[bot])48fddeb: build(deps): bump github/codeql-action in the dependencies group (#1787) (@dependabot[bot])bc41f63: pkg/linter: use errgroup, set limits + context on it (@srenatus)f22c2aa: Add fixer for prefer-equals-comparison rule (#1790) (@SeanLedford)cf88eb9: Fixers for redundant-existence-check and constant-condition rules (#1794) (@SeanLedford)36401a2: build(deps): bump the dependencies group across 1 directory with 7 updates (#1796) (@dependabot[bot])ecb23d3: version: Add OPA version to version output (#1798) (@charlieegan3)94ce038: build(deps): bump golang.org/x/crypto from 0.43.0 to 0.45.0 in /build/ws (#1791) (@dependabot[bot])9ce1ddd: workflows: add post-merge benchmark-recording workflow (@srenatus)e111443: workflows/benchmark: fix golang setup (@srenatus)4bb2d5a: docs: Update messy rule docs (@charlieegan3)dec83ea: docs: Updates from opa website link scanner (@charlieegan3)8f544a6: fix typo in fix.go help message (#1807) (@gusega)941b02e: build(deps): bump the dependencies group with 3 updates (#1804) (@dependabot[bot])9f09e6e: build(deps): bump the dependencies group with 4 updates (#1808) (@dependabot[bot])476ef89: OPA v1.12.2 and full string interpolation support (#1811) (@anderseknert)a9843ab: Movechained-rule-bodytocustomcategory (#1812) (@anderseknert)Configuration
📅 Schedule: Branch creation - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC), 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.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.