Skip to content

Commit bb63f56

Browse files
Updated changelog
1 parent 1d55317 commit bb63f56

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,41 @@
11
# Changelog
22

3+
## 0.7.0 (2021-02-25)
4+
5+
### Breaking changes
6+
7+
- `FiniteAutomaton.test` now requires a `ReadonlyArray` instead of an `Iterable`.
8+
- `Words.wordSetToWords` now returns an `Iterable` instead of an `IterableIterator`.
9+
- Removed `toPatternString` function.
10+
- Removed `NFA.FromRegexOptions.disableLookarounds`. Use `NFA.FromRegexOptions.assertions` instead.
11+
- AST format: Quantifier nodes now have a lazy property to enable non-greedy quantifiers.
12+
- `JS.Parser` no longer implements `JS.Literal`. Use the `JS.Parser.literal` property instead.
13+
- `JS.Parser` now resolves backreferences differently. It now supports resolving capturing groups with finite small languages. How small the language is required to be can be controlled via the new `JS.ParseOptions.maxBackreferenceWords` option (defaults to 100 words). `JS.ParseOptions.backreferences` also works differently now. See the `JS.ParseOptions` documentation for more details.
14+
- Some renaming:
15+
- `JS.ParseOptions.lookarounds` -> `JS.ParseOptions.assertions`
16+
- `ToRegexOptions.maximumNodes` -> `ToRegexOptions.maxNodes`
17+
- `ToRegexOptions.maximumOptimizationPasses` -> `ToRegexOptions.maxOptimizationPasses`
18+
19+
### Fixed
20+
21+
- `Words.fromStringToUTF16` now works properly.
22+
- `JS.toLiteral` will now properly detect predefined character sets in character classes. This didn't work properly before.
23+
24+
### Added
25+
26+
- Documentation. A lot of code documentation and a TypeDoc-generated website have been added.
27+
- New `Char`, `Word`, and `ReadonlyWord` types replace the old plain number and iterable types.
28+
- AST transformers. They can efficiently modify a given AST and are used to e.g. apply assertions.
29+
- `JS.ParseOptions` now has a `maxNodes` option to limit the size of the parsed AST.
30+
- `JS.Parser` now has a `maxCharacter` property.
31+
32+
### Changed
33+
34+
- `NFA.test` now implements [Thompson's algorithm](https://swtch.com/~rsc/regexp/regexp1.html) which guarantees efficient execution.
35+
- The `toRegex` methods of the DFA and NFA classes now use AST transformers under the hood to produce smaller ASTs.
36+
- The default value of `ToRegexOptions.maxOptimizationPasses` is now implementation-defined.
37+
38+
339
## 0.6.0 (2020-12-22)
440

541
### Breaking changes

0 commit comments

Comments
 (0)