Skip to content

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 13, 2025

Bumps petitparser from 6.0.2 to 6.1.0.

Changelog

Sourced from petitparser's changelog.

6.1.0

  • Improve documentation and fix broken links.
  • Prevent infinite recursion in repeating parsers.
  • Improve performance of case-insensitive string matching and the permutation parser.
  • Make the loopback variable in the expression builder public (thanks to joranmulderij).
  • Fix various bugs in equality testing of character predicates (thanks to North101).

6.0.0

  • Dart 3.0 requirement.
  • Use Dart Records for typed sequences:
    • Add convenience converter: (char('a'), char('b')).toSequenceParser()
    • And extension methods to emulate the old Sequence classes, deprecate old accessors.
  • Make Result a sealed class to be able to pattern match Success and Failure.
    • Removed the unused generic type of Failure, which is of type Result<Never> now.
    • Deprecated isSuccess and isFailure, instead use the more efficient is Success and is Failure operators.
  • Reintroduce hasSideEffect in MapParser and consider callbacks to be side-effect free by default.
  • The above changes give typical parser speed improvements between 10% and 30%.

5.4.0

  • Dart 2.19 requirement, enabled strict casts and type inference.
  • Introduce repeating character parser starString, plusString, timesString and repeatString for extra fast reading of strings.
  • Renamed AnyParser to AnyCharacterParser, and CharacterParser to SingleCharacterParser for consistency.
  • Add support for optional expression groups in the ExpressionBuilder.
  • Optimize, cleanup, and improve code and documentation.
  • Add optimize to in-place optimize parser graphs.

5.3.0

  • Maintenance release deprecating some old code in anticipation of the upcoming major release.
  • Deprecate the old way of defining primitive parsers and move the functionality directly to ExpressionBuilder.
  • Deprecate GrammarDefinition.build(Function, List<Object?>), use buildFrom(Parser) for a strongly typed parser instead.
  • Replace various uses of exception throwing with assertions, which yields code the compiler can optimize better.

5.2.0

  • Add @useResult to parser constructors to avoid bugs when using the old parser instance.
  • Add a linter rule to detect unoptimized flatten parsers.

5.1.0

  • Dart 2.18 requirement.
  • Add seq2, seq3, ... combinator functions returning strongly typed sequences of Sequence2<R1, R2>, Sequence3<R1, R2, R3>, ...
  • Add Parser.starSeparated, Parser.plusSeparated, Parser.timesSeparated, and Parser.repeatSeparated returning SeparatedList with the strongly typed elements and separators. Deprecate the dynamically typed Parser.separatedBy.
  • Add Parser.matchesAll that creates a lazy iterable over the (overlapping or non-overlapping) successful parse results. Deprecate matches and matchesSkipping.
  • Add a native platform independent newline parser.
  • Add a section on debugging to the tutorial.
  • Remove the deprecated ref0, ref1, ... instance methods, these methods are globally defined since 4.2.0.

... (truncated)

Commits
  • 3d3c215 replaceAll is now also supported in dart2js
  • 5a58d68 Update the README.md
  • 8836d2d Remove unnecessary typing of FlattenParser.
  • 3dff598 Prepare for 6.1.0
  • 4a9c459 Fix formatting
  • ccfe99c Update year in LICENSE
  • 5368847 Correct comparison for Lookup and Ranges char predicates.
  • 7eca830 Use built-in case-insensitive string matching.
  • b03f29f Improve performance of permutation parser.
  • 372607b Consistently use the latest in GitHub actions
  • Additional commits viewable in compare view

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 [petitparser](https://github.com/petitparser/dart-petitparser) from 6.0.2 to 6.1.0.
- [Changelog](https://github.com/petitparser/dart-petitparser/blob/main/CHANGELOG.md)
- [Commits](petitparser/dart-petitparser@v6.0.2...v6.1.0)

---
updated-dependencies:
- dependency-name: petitparser
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dart Pull requests that update Dart code dependencies Pull requests that update a dependency file labels Jan 13, 2025
Copy link
Contributor Author

dependabot bot commented on behalf of github Jun 16, 2025

Superseded by #65.

@dependabot dependabot bot closed this Jun 16, 2025
@dependabot dependabot bot deleted the dependabot/pub/petitparser-6.1.0 branch June 16, 2025 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dart Pull requests that update Dart code dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants