Skip to content

chore(deps): update dependency regal to v0.39.0 (9.4)#4478

Merged
elastic-renovate-prod[bot] merged 1 commit into
9.4from
renovate/9.4-regal-0.x
Apr 16, 2026
Merged

chore(deps): update dependency regal to v0.39.0 (9.4)#4478
elastic-renovate-prod[bot] merged 1 commit into
9.4from
renovate/9.4-regal-0.x

Conversation

@elastic-renovate-prod
Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Update Change
regal minor 0.38.1 -> 0.39.0

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

StyraInc/regal (regal)

v0.39.0

We're happy to announce Regal v0.39.0, featuring 3 new linter rules, many language server improvements, and much faster linting!

New Rule: use-array-flatten

Category: idiomatic

The use-array-flatten rule recommends using array.flatten instead of nested array.concatenation (#​1873).

Avoid

package policy

flat1 := array.concat(arr1, array.concat(arr2, arr3))

flat2 := array.concat(arr1, array.concat(arr2, array.concat(arr3, arr4)))

Prefer

package policy

flat1 := array.flatten([arr1, arr2, arr3])

flat2 := array.flatten([arr1, arr2, arr3, arr4])

New Rule: use-object-union-n

Category: idiomatic

The use-object-union-n rule recommends using object.union_n over nested calls to object.union (#​1873).

Avoid

package policy

obj := object.union(obj1, object.union(obj2, obj3))

Prefer

package policy

obj := object.union_n([obj1, obj2, obj3])

New Rule: equals-over-count

Category: performance

The new optional equals-over-count rule suggests using direct equality comparisons rather than count when checking collection membership or emptiness (#​1878). This is a micro-optimization and not a general recommendation. Must be manually enabled.

Performance

This release brings an approximate 25% reduction in linting time through aggregate remodeling and Rego prepare stage optimizations (#​1838). Additional performance work includes Rego refactoring (#​1857, #​1884), AST transform improvements (#​1892), and various micro-optimizations (#​1866, #​1879).

Language Server Improvements

The language server now includes a semantic token framework for improved syntax highlighting (#​1845, #​1865, #​1870),
code actions for the constant-condition and redundant-existence-check fixers (#​1830).
and an opaTestProvider feature for test discovery (#​1888, #​1889, #​1898),

Completion performance is improved with a completionItem/resolve handler (#​1831),
and server capabilities are now properly exposed and consistent with the clients (#​1867, #​1880).

Note: Semantic token support is feature flagged and will be available in the next release.

Compiler Explorer

Regal now supports the VSCode-based OPA Explorer extension, providing a rich GUI to compare compiler stages directly in VS Code (#​1862) - thanks @​srenatus! A new "Format stages" option has also been added to the compiler explorer (#​1854) - thanks @​johanfylling!

Experimental: rq Engine Support

Initial support for the rq engine has been added (#​1872) - thanks @​charlesdaniels!

Various Improvements

  • Improved redundant-existence-check rule (#​1897, fixes #​1805)
  • Disabled zero-arity-function rule as opa-fmt now covers that (#​1885)

Bug Fixes

  • Fix nil dereference on compiler errors in explorer (#​1837)
  • Fix broken links to fixer page (#​1852)
  • Fix false positive in use-some-for-output-vars (#​1886)
  • Fix broken input.json completion provider (#​1891)

Dependency Updates

Regal has been upgraded to use OPA v1.14.0 and Go 1.26.

Documentation

  • Added mise as an alternative installation method (#​1849) - thanks @​jylenhof!
  • Updated installation documentation (#​1861)
  • Updated note about eval and debug roots (#​1894)
  • Show release badge when using pre-release versions (#​1899)

New Contributors


Configuration

📅 Schedule: Branch creation - "* 1 * * 1-5" (UTC), 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 has been generated by Renovate Bot.

@elastic-renovate-prod elastic-renovate-prod Bot requested a review from a team as a code owner April 16, 2026 15:25
@elastic-renovate-prod elastic-renovate-prod Bot added backport-skip dependencies Pull requests that update a dependency file renovate renovate-auto-approve Team:Security-Cloud Services Security Data Experience - Cloud Services team. labels Apr 16, 2026
@elastic-renovate-prod elastic-renovate-prod Bot enabled auto-merge (squash) April 16, 2026 15:25
@mergify mergify Bot added the queued label Apr 16, 2026
@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented Apr 16, 2026

Merge Queue Status

This pull request spent 39 minutes 17 seconds in the queue, with no time running CI.

Waiting for:

  • check-success=Lint
  • check-success=Manifest Tests
  • check-success=Package Cloudbeat (docker)
  • check-success=Package Cloudbeat (tar.gz)
  • check-success=Test Rego Policies
  • check-success=Unit Test
  • any of:
    • check-neutral = Unit Test
    • check-skipped = Unit Test
    • check-success = Unit Test
  • any of:
    • check-neutral = Lint
    • check-skipped = Lint
    • check-success = Lint
  • any of:
    • check-neutral = Package Cloudbeat (docker)
    • check-skipped = Package Cloudbeat (docker)
    • check-success = Package Cloudbeat (docker)
  • any of:
    • check-neutral = Package Cloudbeat (tar.gz)
    • check-skipped = Package Cloudbeat (tar.gz)
    • check-success = Package Cloudbeat (tar.gz)
All conditions

Reason

Pull request #4478 has been merged manually at a5a96c0

Hint

You were too fast!

@elastic-renovate-prod elastic-renovate-prod Bot merged commit a5a96c0 into 9.4 Apr 16, 2026
11 of 12 checks passed
@elastic-renovate-prod elastic-renovate-prod Bot deleted the renovate/9.4-regal-0.x branch April 16, 2026 20:23
mergify Bot added a commit that referenced this pull request Apr 16, 2026
mergify Bot added a commit that referenced this pull request Apr 16, 2026
mergify Bot added a commit that referenced this pull request Apr 16, 2026
mergify Bot added a commit that referenced this pull request Apr 16, 2026
mergify Bot added a commit that referenced this pull request Apr 16, 2026
mergify Bot added a commit that referenced this pull request Apr 16, 2026
mergify Bot added a commit that referenced this pull request Apr 16, 2026
mergify Bot added a commit that referenced this pull request Apr 16, 2026
mergify Bot added a commit that referenced this pull request Apr 16, 2026
mergify Bot added a commit that referenced this pull request Apr 16, 2026
mergify Bot added a commit that referenced this pull request Apr 16, 2026
mergify Bot added a commit that referenced this pull request Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-skip dependencies Pull requests that update a dependency file dequeued renovate renovate-auto-approve Team:Security-Cloud Services Security Data Experience - Cloud Services team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants