Skip to content

Releases: textlint-rule/textlint-rule-sentence-length

v5.2.0

14 Aug 11:15
@azu azu
c52666d
Compare
Choose a tag to compare

What's Changed

Features

New Contributors

Full Changelog: v5.0.0...v5.2.0

v5.0.0

26 Nov 01:17
@azu azu
417f1f7
Compare
Choose a tag to compare

What's Changed

Breaking Changes

Warning

Require Node.js 18+

  • refactor(deps): update to setence-splitter@5 by @azu in #42

Documentation

  • test: add test for quoted text and skipPatterns by @azu in #41

Full Changelog: v4.0.2...v5.0.0

v4.0.2

12 Feb 03:15
@azu azu
0d52e14
Compare
Choose a tag to compare

Bug Fixes

v4.0.1

12 Feb 03:12
@azu azu
bdb7661
Compare
Choose a tag to compare

Bug Fixes

  • add deprecation warning for exclusionPatterns (1b75a7a)

v4.0.0

12 Feb 02:17
@azu azu
3d9d7cd
Compare
Choose a tag to compare

What's Changed

  • refactor: update to sentence-splitter@4 by @azu in #40
  • BREAKING CHANGE: Require Node.js 16+
  • Deprecate exclusionPatterns option, Use skipPatterns option instead of it

Full Changelog: v3.0.1...v4.0.0

v3.0.1

10 Feb 08:25
@azu azu
9d0bfef
Compare
Choose a tag to compare

Bug Fixes

Some English captical rule cause mismatcch.
#38

v3.0.0

09 May 03:57
@azu azu
Compare
Choose a tag to compare

Features

  • add skipPatterns and skipUrlStringLink options (#17) (6ece8cd)

v3.0.0 allow following URL string link by default.

Very long <https://example.com?longlonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglong> URL.

You can configure it by skipUrlStringLink options.

BREAKING CHANGES

  • skip to count of url string link by default
  • Deprecated exclusionPatterns and use skipPatterns instead of it
  • Add skipUrlStringLink and Enable it by default

Migration from v2

If you want to get the same behavior to v2, update the package and put the following settings.

{
    "rules": {
        "sentence-length": {
            "max": 100,
-            "exclusionPatterns": [
+            "skipPatterns": [
                "/\\(.*\\)$\\./"
            ],
+            "skipUrlStringLink": false
        }
    }
}

2.2.0

27 Dec 15:56
@azu azu
Compare
Choose a tag to compare

Features

  • options: support exclusionPatterns options (8a7ab5a)

2.1.2

16 Sep 14:01
@azu azu
Compare
Choose a tag to compare

Bug Fixes

  • rule: fix counting of Html node correctly (a220d23)

Previously, count Html node's value. In other word, count all html string.

<b>123</b>
// => 9

In this release, parse Html string and count only its value.

<b>123</b>
// => 3

2.1.1

10 Jul 14:23
@azu azu
Compare
Choose a tag to compare
2.1.1