Skip to content

Commit 6907f1f

Browse files
Add release notes for #581 (#585)
1 parent 0a71864 commit 6907f1f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

release-notes.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# Release Notes
22

3-
## 8.0.0
3+
## 8.0.0 (pending release)
44

55
- [#580](https://github.com/kpdecker/jsdiff/pull/580) Multiple tweaks to `diffSentences`:
66
* tokenization no longer takes quadratic time on pathological inputs (reported as a ReDOS vulnerability by Snyk); is now linear instead
77
* the final sentence in the string is now handled the same by the tokenizer regardless of whether it has a trailing punctuation mark or not. (Previously, "foo. bar." tokenized to `["foo.", " ", "bar."]` but "foo. bar" tokenized to `["foo.", " bar"]` - i.e. whether the space between sentences was treated as a separate token depended upon whether the final sentence had trailing punctuation or not. This was arbitrary and surprising; it is no longer the case.)
88
* in a string that starts with a sentence end, like "! hello.", the "!" is now treated as a separate sentence
99
* the README now correctly documents the tokenization behaviour (it was wrong before)
10+
- [#581](https://github.com/kpdecker/jsdiff/pull/581) - fix some regex operations used for tokenization in `diffWords` taking O(n^2) time in pathological cases
1011

1112
## 7.0.0
1213

0 commit comments

Comments
 (0)