Do not warn about unused variables declared on negative lines.
v1.1.0
Added
Explicitly type each child node field in the Ruby API.
Add the main_script option to the parse APIs, which controls whether or not shebangs are considered.
Add the partial_script options to the parse APIs, which controls whether or not jumps that would otherwise be considered invalid are allowed. This is useful for parsing things like ERB sources, where you know it will be evaluated in a different context. Note that this functionality is replacing the previous idiom of passing in a list of scopes to indicate an eval context, because that behavior has changed upstream in ruby/ruby.
Add ArgumentsNode#contains_multiple_splats?.
Add ArgumentsNode#contains_forwarding?.
Accept all valid Ruby versions for the version option on parse APIs.
Accept version shorthands like "3.3" and "3.4" for the version option on parse APIs.
Support a max depth to protect against malicious payloads without hitting the stack limit.
Changed
Fix some token incompatibilities in the parser translation.
Fix up parsing tempfiles on Windows.
Fix up handling UTF-8 characters in file paths on Windows.
Do not warn for a \r at the end of a shebang on Windows.
Properly handle erroring for parsing a directory on Windows.
When a numbered reference is out of range, warn instead of raise.
Do not warn about unused variables declared on negative lines.
[1.1.0] - 2024-10-02
Added
Explicitly type each child node field in the Ruby API.
Add the main_script option to the parse APIs, which controls whether or not shebangs are considered.
Add the partial_script options to the parse APIs, which controls whether or not jumps that would otherwise be considered invalid are allowed. This is useful for parsing things like ERB sources, where you know it will be evaluated in a different context. Note that this functionality is replacing the previous idiom of passing in a list of scopes to indicate an eval context, because that behavior has changed upstream in ruby/ruby.
Add ArgumentsNode#contains_multiple_splats?.
Add ArgumentsNode#contains_forwarding?.
Accept all valid Ruby versions for the version option on parse APIs.
Accept version shorthands like "3.3" and "3.4" for the version option on parse APIs.
Support a max depth to protect against malicious payloads without hitting the stack limit.
Changed
Fix some token incompatibilities in the parser translation.
Fix up parsing tempfiles on Windows.
Fix up handling UTF-8 characters in file paths on Windows.
Do not warn for a \r at the end of a shebang on Windows.
Properly handle erroring for parsing a directory on Windows.
When a numbered reference is out of range, warn instead of raise.
Allow returns in default parameter values.
Reject many more invalid syntax patterns.
Commits
b08e569 Merge pull request #3177 from ruby/version
2745c81 Short-circuit if possible for start line and unused warning
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 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)
Updates the requirements on prism to permit the latest version.
Release notes
Sourced from prism's releases.
Changelog
Sourced from prism's changelog.
Commits
b08e569
Merge pull request #3177 from ruby/version2745c81
Short-circuit if possible for start line and unused warning817a8e3
Bump to v1.2.0ba89182
Merge pull request #3173 from ruby/code-units-cachee6794e6
Merge pull request #3176 from ruby/negative-lines2e3e1a4
Prism::CodeUnitsCache27e91f2
Do not warn for unused variables on negative lines18ce4f8
Merge pull request #3175 from ruby/reject-invalid-splat3a0b1c6
Reject invalid splat as last statement of parentheses3ea7da2
Merge pull request #3174 from Shopify/update-rescue-node-docDependabot 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