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
v
flagcontrol
token for control character escape\cJ
- Code examples for negated
hex
,unicode
,control
andoctal
tokens in documentation
- Updated
charRange
to resolve escape sequences without usingnew Function
- Marked
octal
as deprecated
1.5.0 - 2023-08-20
- 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
andnotCharRange
tokens
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
- Errors when terminal methods (
toString
,toRegExp
) are called on incomplete tokens
- Updated README with code image
- Changed capture groups to throw when group is empty
1.3.4 - 2023-08-18
- Documentation for overloads of
toRegExp()
1.3.3 - 2023-08-18
- Updated README
1.3.2 - 2023-08-18
- Escape backslashes at the end of a character class option string
1.3.1 - 2023-08-18
- Documentation for all tokens
- A TypeDoc presenting documentations
- Updated documentation in README
- Fixed
not
token potentially negating a numbered back-reference
1.3.0 - 2023-08-17
- More strict error checking for alternation and quantifiers
- Multi-paremeter support for
match
- 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
- Fixed typos in README
- Changed build pipeline to use Node 18
1.2.0 - 2023-08-16
- Conditional imports for ESM and CJS
- Updated build dependencies
- Simplified TS types to fix type recursion error
- Updated documentation in README
1.1.0 - 2022-07-23
- 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
- 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