Skip to content

Latest commit

 

History

History
90 lines (71 loc) · 2.42 KB

CHANGELOG.md

File metadata and controls

90 lines (71 loc) · 2.42 KB

Change Log

[Unreleased]

[0.10.2] - 2024-10-12

  • Added SourceOf type.
  • Deprecated Source type.

[0.10.1] - 2024-10-04

  • Change exports order in package.json.

[0.10.0] - 2024-09-21

  • Added parseA function.
  • Added sepBy parser.
  • Added alias do_ for qo.
  • Added perform.option, perform.many and perform.while in qo.
  • Moved option to rollback state if perform.try fails to PerformOptions.
  • Added defaultValue parameter to perform.try.
  • Using many with a parser that does not consume elements no longer causes an infinite loop.
  • anyEl changed to function.
  • Renamed anyEl, eoi, codePoint and anyChar to camelCase.
  • Deprecated Parser.parse, Parser.and, Parser.andMap and Parser.or.
  • Removed Parser.many, Parser.manyAccum and manyAccum.

[0.9.0] - 2024-01-16

Added

  • Added helper Perform type to specify source type in qo function.

Changed

  • Add source type parameter to Parser.
  • Source type changed to helper that returns the input type of the parser.

[0.8.0] - 2023-06-24

Added

  • Added Parser.prototype.apply
  • Added Parser.prototype.label
  • Added many
  • Added manyAccum
  • Added string
  • Added graphemeString
  • Added CODE_POINT
  • Added ANY_CHAR
  • Added index and errors properties to FailureParseResult.

Changed

  • Change default for Parser.prototype.option to undefined.

Deprecated

  • Parser.prototype.many
  • Parser.prototype.manyAccum

[0.7.0] - 2023-05-13

Added

  • Added lookAhead
  • Added oneOf
  • Added noneOf
  • Added Parser.prototype.skip
  • Added Parser.prototype.then
  • Added Parser.prototype.andMap
  • Added ParseResult
  • Added perform.try in qo

Changed

  • Renamed seq option "droppable" to "allowPartial".
  • Change type of choice.
  • Change match algorithm from SameValue to SameValueZero in el and literal.
  • Added defaultValue parameter in regex.
  • Change parse result type to ParseResult.
  • Parser.prototype.and now returns the results of both parsers as a tuple. Use "then" or "skip" for the previous use.

Removed

  • RegExpGroupArray type
  • Removed isParseaError. Use perform.try instead.

[0.6.0] - 2023-01-26

Added

  • Added option to Parser class.
  • Added return to Parser class.
  • Added between to Parser class.

Changed

  • Merged left and right into and.
  • Changed return value of parse.

Fixed

  • Fixed regexGroup not to ignore the start index.