textlint

The pluggable natural language linter for text and markdown.

MIT License

Downloads
7.4M
Stars
2.8K
Committers
83

Bot releases are visible (Hide)

textlint - v12.1.1

Published by azu over 2 years ago

12.1.1 (2022-02-23)

Bug Fixes

  • deps: Update string-width by @massongit
  • deps: Update ansi-regex by @massongit

It will resolve the following audit alert.

ansi-regex 2.1.1 ~ 5.0.0 is vulnerable to Inefficient Regular Expression Complexity: https://github.com/advisories/GHSA-93q8-gq69-wqmw

Thanks to @massongit

Commits

  • deps: update babel monorepo (c9f1957)
  • deps: update babel monorepo to ^7.16.5 (#834) (dcbc196)
  • deps: update babel monorepo to ^7.16.7 (e8c10aa)
  • deps: Update chalk (#842) (56ba52c)
  • deps: update dependency table to ^6.7.5 (fdfcce6)
  • deps: update dependency table to ^6.8.0 (5e1aa18)
  • deps: Update packages that depend on ansi-regex (#841) (17c03cd)
  • deps: Update string-width (#844) (675bc93)
  • textlint: remove log-symbols (#845) (000d07a)
textlint - v12.1.0

Published by azu almost 3 years ago

12.1.0 (2021-12-02)

Features

  • kernel: allow textlint plugin to return Promise on pre/postProcess (#832) (ae89004)

See also: https://textlint.github.io/docs/plugin.html#preprocesstext-filepath-txtparentnode---text-string-ast-txtparentnode-

  • loadFromDir: load js and ts by default (3a12798)

Bug Fixes

  • deps: update babel monorepo to ^7.14.8 (ea3e897)
  • deps: update babel monorepo to ^7.15.0 (8801bc3)
  • deps: update babel monorepo to ^7.15.4 (1e2ae37)
  • deps: update babel monorepo to ^7.15.8 (d85a9b4)
  • deps: update babel monorepo to ^7.16.0 (ab38637)
  • deps: update dependency @babel/cli to ^7.15.4 (2d20865)
  • deps: update dependency @babel/cli to ^7.15.7 (604de3a)
  • deps: update dependency @babel/core to ^7.15.5 (94376ab)
  • deps: update dependency @babel/preset-env to ^7.14.9 (e362719)
  • deps: update dependency @babel/preset-env to ^7.15.6 (352270a)
  • deps: update dependency @babel/preset-env to ^7.16.4 (d065661)
  • deps: update dependency @babel/register to ^7.15.3 (8709aad)
  • deps: update dependency glob to ^7.2.0 (b4af236)
  • deps: update dependency strip-ansi to ^6.0.1 (129af22)
  • deps: update dependency table to ^6.7.3 (ba82895)
  • deps: update dependency unified to ^9.2.2 (1ca5596)
  • TextLintModuleMapper: broaden types for rules mappers (1f33ae3)
textlint - v12.0.2

Published by azu over 3 years ago

12.0.2 (2021-07-09)

The npm dependency [email protected] depends on [email protected] which is vulnerable #801

12.0.2 fixes this dependendies

Bug Fixes

  • deps: update npm dependency table from 3.8.3 to 6.7.1 #801
  • deps: update babel monorepo to ^7.14.5 (360fa5a)
  • deps: update babel monorepo to ^7.14.5 (f51ef8d)
  • deps: update dependency @babel/core to ^7.14.6 (f457b2b)
  • deps: update dependency @babel/preset-env to ^7.14.4 (5e16dbf)
  • deps: update dependency @babel/preset-env to ^7.14.7 (c0054fd)
  • deps: update dependency debug to ^4.3.2 (8cb5498)
textlint - v12.0.1

Published by azu over 3 years ago

12.0.1 (2021-05-24)

This release is addtional fixes for v12.0.0.

textlint-scirpts

Accidentally, 12.0.0 does not include textlint-scirpts's dependencies.
12.0.1 fix to updatetextlint-scripts dependencies.

Bug Fixes

  • textlint-scripts: Update textlint-tester in textlint-scripts #790
  • textlint-scripts: fix example code (90a564f)
textlint - v12.0.0

Published by azu over 3 years ago

Blog: https://textlint.github.io/blog/2021/05/24/textlint-12.html

Summary

For textlint user

textlint improves markdown parsing, so it may found newer errors.

You can upgrade textlint via following commands:

npm install textlint@12
# or
yarn install textlint@12

textlint 12.0.0 requires Node.js 12+.
If you are using Node.js 10.x, please upgrade your Node.js env.

For textlint rule creator

textlint-tester and textlint-scripts are updated.

npm install textlint-scripts@12 --save-dev
# or
yarn install textlint-scripts@12 --dev

textlint-tester@12 use export default instead of modules.exports = .
So, you need to use import TextLintTester from "textlint-tester" instead of const TextLintTester = require("textlint-tester").

- const TextLintTester = require("textlint-tester");
+ import TextLintTester from "textlint-tester";

Breaking Changes

  • All @textlint/* internal modules use same version
    • All modules are released as 12.0.0.
  • Drop Node.js 10.x support #600
    • update engines filels to "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
  • Modules require ES2015 supported environments #777 #774
    • Now, all module target is ES2015
    • It means that textlint does not support IE
    • ๐Ÿ“ Node.js 12+ support ES2018+
  • Built-in markdown parser is updated

Package Versions

Breaking Changes Package Previous version Current version
โœ” textlint 11.9.1 12.0.0
โœ” textlint-tester 5.3.5 12.0.0
โœ” textlint-scripts 3.0.0 12.0.0
ใ€€ @textlint/ast-node-types 4.4.3 12.0.0
ใ€€ @textlint/ast-traverse 2.3.5 12.0.0
ใ€€ @textlint/ast-tester 2.3.5 12.0.0
ใ€€ @textlint/feature-flag 3.3.5 12.0.0
ใ€€ @textlint/fixer-formatter 3.3.5 12.0.0
@textlint/kernel 3.4.5 12.0.0
ใ€€ @textlint/linter-formatter 3.3.5 12.0.0
ใ€€ @textlint/module-interop 1.2.5 12.0.0
โœ” @textlint/textlint-plugin-markdown 5.3.5 12.0.0
ใ€€ @textlint/textlint-plugin-text 4.3.5 12.0.0
โœ” @textlint/types 1.5.5 12.0.0
@textlint/utils 1.2.5 12.0.0

Now, This monorepo includes textlint-scripts package. #779
Move https://github.com/textlint/textlint-scripts to https://github.com/textlint/textlint/tree/master/packages/textlint-scripts

@textlint/markdown-to-ast

It is a markdown parser in textlint.
We have updated to [email protected] #717 and it has many changes related to Markdown AST

You can see the changes at feat(markdown-to-ast): update to remark-parse@9 #767

It also updates trim package that is CVE-2020-7753.

Features

Add FootnoteReference node

The NATO phonetic alphabet[^wiki].

[^wiki]: Read more about it on wikipedia: <http://en.wikipedia.org/wiki/NATO_phonetic_alphabet>.

Previously, It is called LinkReference, textlint@12 treat it as FootnoteReference.
Some rules may report new errors on FootnoteReference.

Known bugs

textlint-tester

  • use export default instead of export = #775 #689

The textlint-tester user should use import instead of require.

- const TextLintTester = require("textlint-tester");
+ import TextLintTester from "textlint-tester";

Or, pick default property.

- const TextLintTester = require("textlint-tester");
+ const TextLintTester = require("textlint-tester").default;

textlint-scripts

  • Update to mocha@8

@textlint/types

  • Fix getSource argument type #770

@textlint/ast-tester

  • Improve error message #783

Discussion: https://github.com/textlint/textlint/discussions/789

textlint -

Published by azu over 3 years ago

textlint user

npm install textlint@beta

textlint rule creator

npm install textlint-scripts@beta

See details in #738

textlint -

Published by azu over 3 years ago

12.0.0 beta release

See details in #738.

Please try it and report bugs

npm install textlint@beta
textlint - [email protected]

Published by azu over 3 years ago

2.2.13 (2021-05-08)

Note: Version bump only for package textlint-example-fix

textlint - @textlint/[email protected]

Published by azu over 3 years ago

1.5.5 (2021-05-08)

Note: Version bump only for package @textlint/types

textlint - [email protected]

Published by azu over 3 years ago

2.2.13 (2021-05-08)

Note: Version bump only for package textlint-example-cli

textlint - [email protected]

Published by azu over 3 years ago

2.2.13 (2021-05-08)

Note: Version bump only for package textlint-example-plugin-extensions-option

textlint - @textlint/[email protected]

Published by azu over 3 years ago

3.4.5 (2021-05-08)

Note: Version bump only for package @textlint/source-code-fixer

textlint - [email protected]

Published by azu over 3 years ago

2.2.13 (2021-05-08)

Note: Version bump only for package integration-test

textlint - @textlint/[email protected]

Published by azu over 3 years ago

1.2.5 (2021-05-08)

Note: Version bump only for package @textlint/module-interop

textlint - @textlint/[email protected]

Published by azu over 3 years ago

6.3.5 (2021-05-08)

Note: Version bump only for package @textlint/markdown-to-ast

textlint - [email protected]

Published by azu over 3 years ago

2.2.13 (2021-05-08)

Note: Version bump only for package textlint-example-use-as-module

textlint - @textlint/[email protected]

Published by azu over 3 years ago

3.3.5 (2021-05-08)

Note: Version bump only for package @textlint/feature-flag

textlint - @textlint/[email protected]

Published by azu over 3 years ago

2.3.5 (2021-05-08)

Note: Version bump only for package @textlint/ast-tester

textlint - @textlint/[email protected]

Published by azu over 3 years ago

4.3.5 (2021-05-08)

Note: Version bump only for package @textlint/textlint-plugin-text

textlint - [email protected]

Published by azu over 3 years ago

2.2.13 (2021-05-08)

Note: Version bump only for package textlint-perf-test