Open
Conversation
36b96ff to
809a7a5
Compare
809a7a5 to
8110511
Compare
8110511 to
339d32a
Compare
339d32a to
e579ec7
Compare
e579ec7 to
325882a
Compare
325882a to
459bd47
Compare
459bd47 to
a31f9db
Compare
a31f9db to
9d836a6
Compare
9d836a6 to
ce6ce71
Compare
ce6ce71 to
02d73ad
Compare
02d73ad to
e558684
Compare
76bf1ca to
422d156
Compare
422d156 to
67b5b06
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
12.0.2→12.6.1Release Notes
textlint/textlint (textlint)
v12.6.1Compare Source
What's Changed
Refactoring
Dependency Updates
Full Changelog: textlint/textlint@v12.6.0...12.6.1
v12.6.0Compare Source
What's Changed
Features
Bug Fixes
Refactoring
Dependency Updates
Full Changelog: textlint/textlint@v12.5.1...12.6.0
v12.5.2Compare Source
What's Changed
Features
Bug Fixes
Refactoring
Dependency Updates
Full Changelog: textlint/textlint@v12.5.1...12.5.2
v12.5.1Compare Source
Bug Fixes
Full Changelog: textlint/textlint@v12.5.0...v12.5.1
v12.5.0Compare Source
Features
--format=fixed-resultoption to fixer format (755dba5), closes #967 by @Sean0628 in #978Example:
$ cat README.md | npx textlint --stdin --stdin-filename README.md --fix --format fixed-result --output-file NEW.mdFor more details, see https://textlint.github.io/docs/cli.html#pipe-to-textlint
New Contributors
Full Changelog: textlint/textlint@v12.4.0...v12.5.0
v12.4.0Compare Source
Features
What's Changed
Full Changelog: textlint/textlint@v12.3.1...v12.4.0
v12.3.1Compare Source
Bug Fixes
v12.3.0Compare Source
Features
Overview
createLinter/loadTextlintrc/loadLinterFormatter/loadFixerFormatterTextLintCore/TextFixEngine/TextLintEngine📝 ESM Rules/Filter/Pluugins only works in
createLinterAPI.This is because
TextLintCore/TextFixEngine/TextLintEnginewere assumed to be synchronous processes.createLinterAPI does loading as async.Breaking Changes
No changes in existing CLI.
Difference between Old-CLI and New-CLI
--stdin-filenamewith--stdin--stdin-filenamemay be optional in Old-CLIExit Status on new CLI
0: No Error1: Lint Error2: Fatal ErrorNew APIs
Ww introduce new API like
createLinterfor supporting Async APIs.v13 continue to support current
TextLintEngineandTextFixEnginefor backward compatible.New
createLinterandloadTextlintrcsupport ESM rules/plugins.In other hands,
TextLintEngineandTextFixEnginecan not support ESM rules/plugins.https://github.com/textlint/textlint/blob/60cea514f7eaefbff4411087d16a51daf68f12a4/packages/textlint/src/index.ts
◉ Linting is Async
◉ Fixing is Async
◉ Linting/Fixing is Async
createLinter: create linter instancelintFiles(files): lint files and return linter messageslintText(text, filePath)lint text with virtual filePath and return linter messagesfixFiles(fileslint text and return fixer messagesfixText(text, filePath)lint text with virtual filePath and return fixer messagesfixFilesandfixTextdoes not modify filesloadTextlintrc: load.textlintrcconfig file and return a descriptor objectloadLinerFormatterandloadFixerFormatter: load formatterLint files and output to console.
For more details, see https://textlint.github.io/docs/use-as-modules.html
How to use New CLI
New CLI is opt-in for avoiding Breaking Changes.
It will be default in next major version.
You can try new textlint CLI via
textlint-esmcommand.Or, when
TEXTLINT_USE_NEW_CLI=1is set, textlint use new CLI$ TEXTLINT_USE_NEW_CLI=1 textlint "**/*.md"🔥 Welcome to feedback on Discussion: https://redirect.github.com/textlint/textlint/discussions/968
fix #868
fix #744 - new CLI fix this
fix #103 - new CLI fix this
fix #797 - extends
descriptorinstead ofConfigfix #293 -
TextlintCorewill be removed in the futurev12.2.4Compare Source
Bug Fixes
This release allow to lint dot file when setting dot file name for
extensions.This version can lint
.lint-todofile.v12.2.3Compare Source
Bug Fixes
v12.2.2Compare Source
Bug Fixes
mdast-util-gfm-autolink-literalto explicit deps (#904) (d2888a5)This will fix pnpm issue #903
Dependencies Updates
v12.2.1Compare Source
What's Changed
Full Changelog: textlint/textlint@v12.1.0...v12.2.1
v12.2.0Compare Source
Features
Implement Improve error location RFC #835
It will make the error location more details.
This change is for rule developer.
locandrangeproperty toTextlintMessage(result)paddingprorperty toRuleError(message, details).locatorobject to rule's contextlcoator.at(index),locator.range([startIndex, endIndex]), andlocator.loc({ start: { line, column }, end: { line, column }}).validandinvalidsupportrangepropertyindex,lineandcolumnproperty onTextlintMessageandreportfunctionfilterMessagesto use newrangeproperty onTextlintMessagereadonly [number, number]as range in all packagesfilterMessagesbug https://redirect.github.com/textlint/textlint/pull/836/commits/c8a670f9b4fd7ce628a940dc4c8faabd5e62d396paddingandlocatorobjectpeerDependenciesnotetextlint v12.2.0 will introduce
paddingandlocator.If your will use it, please addpeerDependenciestopackage.jsonon your rule package.For textlint rule creator
Before:
After:
If you want to get more correct location, please use
locator.rangeorlocator.locFor more details, see https://textlint.github.io/docs/rule.html#ruleerror
Changelogs
Bug Fixes
Features
paddingproperty andlocator(#836) (f94d5f8)v12.1.1Compare Source
Bug Fixes
It will resolve the following audit alert.
Thanks to @massongit
Commits
v12.1.0Compare Source
Features
See also: https://textlint.github.io/docs/plugin.html#preprocesstext-filepath-txtparentnode---text-string-ast-txtparentnode-
Bug Fixes
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.