Skip to content

Latest commit

 

History

History
140 lines (88 loc) · 3.63 KB

CHANGELOG.md

File metadata and controls

140 lines (88 loc) · 3.63 KB

Changelog

All notable changes to this project will be documented in this file.

The format is loosely based on Keep a Changelog, and this project adheres to Semantic Versioning.

1.5.1 - 2023-08-21

Added

  • v flag
  • control token for control character escape \cJ
  • Code examples for negated hex, unicode, control and octal tokens in documentation

Changed

  • Updated charRange to resolve escape sequences without using new Function
  • Marked octal as deprecated

1.5.0 - 2023-08-20

Added

  • Exports for helper types used to compose token types
  • Export for the RegExpToken interface
  • Custom tokens API via defineToken
  • Support for merging nested character groups
  • charRange and notCharRange tokens

Changed

  • group no longer wraps expressions with extra layers of non-capture groups if the expression is already grouped
  • Fixed incorrect escapes of backslashes and dashes in character groups
  • Moved documentation from README to Gitbook for better organization

1.4.0 - 2023-08-19

Added

  • Errors when terminal methods (toString, toRegExp) are called on incomplete tokens

Changed

  • Updated README with code image
  • Changed capture groups to throw when group is empty

1.3.4 - 2023-08-18

Added

  • Documentation for overloads of toRegExp()

1.3.3 - 2023-08-18

Changed

  • Updated README

1.3.2 - 2023-08-18

Changed

  • Escape backslashes at the end of a character class option string

1.3.1 - 2023-08-18

Added

  • Documentation for all tokens
  • A TypeDoc presenting documentations

Changed

  • Updated documentation in README
  • Fixed not token potentially negating a numbered back-reference

1.3.0 - 2023-08-17

Added

  • More strict error checking for alternation and quantifiers
  • Multi-paremeter support for match

Changed

  • Fixed the RegExp syntax of the atMost quantifier
  • Updated some error messages to include more info
  • Updated documentation in README

1.2.1 - 2023-08-16

Changed

  • Fixed typos in README
  • Changed build pipeline to use Node 18

1.2.0 - 2023-08-16

Added

  • Conditional imports for ESM and CJS

Changed

  • Updated build dependencies
  • Simplified TS types to fix type recursion error
  • Updated documentation in README

1.1.0 - 2022-07-23

Added

  • Hexadecimal and octal character escape sequences (hex, octal)
  • Special tokens \f and [\b] (formFeed, backspace)
  • Support for flags in the toRegExp function

1.0.0 - 2022-07-22

Added

  • Readable versions of RegExp tokens, quantifiers and group constructs
  • Tests for the added features
  • Basic readme
  • Rollup build config for ES Modules and UMD formats
  • Rollup build config for a .d.ts file