Skip to content

Releases: bwrrp/prsc.js

4.0.0

23 Jun 08:07
Compare
Choose a tag to compare
  • Fix ESM usage in node. This is only a breaking change because it renames the UMD module file provided for older CJS environments.

Full Changelog: 3.3.0...4.0.0

3.3.0

21 Jun 13:13
Compare
Choose a tag to compare
  • Add dispatch combinator to select between child parsers by looking at a single code point
  • Add sequence and sequenceConsumed combinators to make applying parsers one after the other more readable.

Full Changelog: 3.2.0...3.3.0

3.2.0

20 Jun 14:15
Compare
Choose a tag to compare
  • filter now supports an optional fatal argument to make errors generated when the filter rejects fatal.

Full Changelog: 3.1.1...3.2.0

3.1.1

17 Jun 07:04
Compare
Choose a tag to compare
  • Update dependencies to their latest versions - no functional changes

Full Changelog: 3.1.0...3.1.1

3.1.0

31 Mar 14:19
Compare
Choose a tag to compare
  • Add codepoints parser, which skips code points while the given predicate returns true. This is a more efficient version of combining codepoint with either starConsumed or plusConsumed.

Full Changelog: 3.0.2...3.1.0

3.0.2

31 Mar 14:17
Compare
Choose a tag to compare
  • Fix filter sometimes overwriting inner parser's expected values

Full Changelog: 3.0.1...3.0.2

3.0.1

29 Mar 11:00
Compare
Choose a tag to compare
  • Fix or hiding a fatal error if another parser made it further

Full Changelog: 3.0.0...3.0.1

3.0.0

28 Mar 15:20
Compare
Choose a tag to compare

This release makes a few changes and adds a few arguments and combinators to allow writing faster parsers.

  • Breaking: the range parser no longer returns a value. Combine it with recognize if you needed one.
  • codepoint allows matching a single character filtered by a predicate function.
  • or accepts an optional expected argument to avoid combining the expected values from its child parsers.
  • starConsumed and plusConsumed avoid collecting inner parser values into an array.

Full Changelog: 2.1.0...3.0.0

2.1.0

25 Mar 15:47
Compare
Choose a tag to compare
  • Fix an infinite loop when the parser given to star does not consume input
  • Add additional combinators: consume, except and filterUndefined as well as basic parsers range and skipChars
  • Add experimental streaming parsers: use streaming to turn any Parser into a StreamingParser and use the streaming combinators to create generator functions that yield values as they parses the input.
  • Update devDependencies to their latest versions.

Full Changelog: 2.0.1...2.1.0

2.0.1

07 Feb 15:46
Compare
Choose a tag to compare
  • Fix missing types property in package.json causing types to no longer be detected after renaming the UMD bundle