Skip to content

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github May 9, 2022

Bumps regexp_parser from 2.1.1 to 2.4.0.

Changelog

Sourced from regexp_parser's changelog.

[2.4.0] - 2022-05-09 - Janosch Müller

Fixed

  • fixed interpretation of + and ? after interval quantifiers ({n,n})
    • they used to be treated as reluctant or possessive mode indicators
    • however, Ruby does not support these modes for interval quantifiers
    • they are now treated as chained quantifiers instead, as Ruby does it
    • c.f. #3
  • fixed Expression::Base#nesting_level for some tree rewrite cases
    • e.g. the alternatives in /a|[b]/ had an inconsistent nesting_level
  • fixed Scanner accepting invalid posix classes, e.g. [[:foo:]]
    • they raise a SyntaxError when used in a Regexp, so could only be passed as String
    • they now raise a Regexp::Scanner::ValidationError in the Scanner

Added

  • added Expression::Base#== for (deep) comparison of expressions

  • added Expression::Base#parts

    • returns the text elements and subexpressions of an expression
    • e.g. parse(/(a)/)[0].parts # => ["(", #<Literal @text="a"...>, ")"]
  • added Expression::Base#te (a.k.a. token end index)

    • Expression::Subexpression always had #te, only terminal nodes lacked it so far
  • made some Expression::Base methods available on Quantifier instances, too

    • #type, #type?, #is?, #one_of?, #options, #terminal?
    • #base_length, #full_length, #starts_at, #te, #ts, #offset
    • #conditional_level, #level, #nesting_level , #set_level
    • this allows a more unified handling with Expression::Base instances
  • allowed Quantifier#initialize to take a token and options Hash like other nodes

  • added a deprecation warning for initializing Quantifiers with 4+ arguments:

    Calling Expression::Base#quantify or Quantifier.new with 4+ arguments is deprecated.

    It will no longer be supported in regexp_parser v3.0.0.

    Please pass a Regexp::Token instead, e.g. replace type, text, min, max, mode with ::Regexp::Token.new(:quantifier, type, text). min, max, and mode will be derived automatically.

    This is consistent with how Expression::Base instances are created.

[2.3.1] - 2022-04-24 - Janosch Müller

Fixed

  • removed five inexistent unicode properties from Syntax#features
    • these were never supported by Ruby or the Regexp::Scanner
    • thanks to Markus Schirp for the report

... (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 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 [regexp_parser](https://github.com/ammar/regexp_parser) from 2.1.1 to 2.4.0.
- [Release notes](https://github.com/ammar/regexp_parser/releases)
- [Changelog](https://github.com/ammar/regexp_parser/blob/master/CHANGELOG.md)
- [Commits](ammar/regexp_parser@v2.1.1...v2.4.0)

---
updated-dependencies:
- dependency-name: regexp_parser
  dependency-type: indirect
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label May 9, 2022
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github May 27, 2022

Superseded by #199.

@dependabot dependabot bot closed this May 27, 2022
@dependabot dependabot bot deleted the dependabot/bundler/regexp_parser-2.4.0 branch May 27, 2022 22:32
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants