Skip to content

Bump github.com/styrainc/regal from 0.25.0 to 0.27.0 - #142

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/github.com/styrainc/regal-0.27.0
Closed

Bump github.com/styrainc/regal from 0.25.0 to 0.27.0#142
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/github.com/styrainc/regal-0.27.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 23, 2024

Copy link
Copy Markdown

Bumps github.com/styrainc/regal from 0.25.0 to 0.27.0.

Release notes

Sourced from github.com/styrainc/regal's releases.

v0.27.0

Debug Adapter Protocol Support

Back in #926 (v0.26.0), support was added for the Debug Adapter Protocol (DAP), based on the new OPA SDK added in #6876 (documentation). This release improves on this making it ready for consumption in clients. Namely, the addition of a new Debug Code Lens in #1103 and a bug fix for ast.ref_to_string which brings the Regal implementation inline with OPA’s (#1106).

Please see our documentation here to get started.

Neovim DAP Support

Thanks to community member @​rinx, DAP support is also available in the Neovim editor. This is based on nvim-dap, and @​rinx’s own project nvim-dap-rego. This is an awesome contribution which represents an important improvement for Neovim users of Regal. Thank you Rintaro Okamura for all your work here, it is appreciated.

New Rule: comprehension-term-assignment

This rule flags cases where an intermediate assignment is used within a comprehension body when the value can be directly used as the comprehension term. It enforces the removal of redundant assignments, encouraging more concise and readable code.

# avoid
names := [name |
    some user in input.users
    name := user.name
]
prefer
names := [user.name | some user in input.users]

Compiler Stage Source Explorer

A new Source Action has been added to allow users of compatible clients to explore the compiler stages of the Rego code they’re working on.

By integrating opa-explorer with Regal, it’s now possible to launch a web server to view the explorer output. Users will see a "Source Action" in the context menu of Rego files, which opens the explorer for that file. This feature is currently limited to VS Code due to available commands. Currently, only a single file is loaded into the explorer for compilation.

Source Action shown in VS Code

Browser showing the given file's compiler explorer

Test Flake Fixes

This release contains a number of fixes for flakey tests that have been disrupting the contributor experience. If you experience flakes and re-run checks on a PR, please leave a comment to let us know so we can look into it. #1112, #1102, #1101

... (truncated)

Commits

Dependabot compatibility score

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 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)

Bumps [github.com/styrainc/regal](https://github.com/styrainc/regal) from 0.25.0 to 0.27.0.
- [Release notes](https://github.com/styrainc/regal/releases)
- [Changelog](https://github.com/StyraInc/regal/blob/main/.goreleaser.yaml)
- [Commits](open-policy-agent/regal@v0.25.0...v0.27.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Sep 23, 2024
@dependabot @github

dependabot Bot commented on behalf of github Oct 14, 2024

Copy link
Copy Markdown
Author

Superseded by #152.

@dependabot dependabot Bot closed this Oct 14, 2024
@dependabot
dependabot Bot deleted the dependabot/go_modules/github.com/styrainc/regal-0.27.0 branch October 14, 2024 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants