Fix: Properties with the name __proto__ are added to objects and arrays.
(#199) This also fixes a prototype pollution vulnerability reported by
Jonathan Gregson! (#295).
v2.2.1
Fix: Removed dependence on minimist to patch CVE-2021-44906. (#266)
v2.2.0
New: Accurate and documented TypeScript declarations are now included. There is no need to install @types/json5. (#236, #244)
New: package.json and package.json5 include a module property so
bundlers like webpack, rollup and parcel can take advantage of the ES Module
build. (#208)
Fix: stringify outputs \0 as \\x00 when followed by a digit. (#210)
New: The index.mjs and index.min.mjs browser builds in the dist directory support ES6 modules. (#187)
v2.0.1
Fix: The browser builds in the dist directory support ES5. (#182)
v2.0.0
Major: JSON5 officially supports Node.js v6 and later. Support for Node.js
v4 has been dropped. Since Node.js v6 supports ES5 features, the code has been
rewritten in native ES5, and the dependence on Babel has been eliminated.
New: Support for Unicode 10 has been added.
New: The test framework has been migrated from Mocha to Tap.
New: The browser build at dist/index.js is no longer minified by default. A
minified version is available at dist/index.min.js. (#181)
Fix: The warning has been made clearer when line and paragraph separators are
used in strings.
Fix: package.json5 has been restored, and it is automatically generated and
Fix: Properties with the name __proto__ are added to objects and arrays.
(#199) This also fixes a prototype pollution vulnerability reported by
Jonathan Gregson! (#295).
New: package.json and package.json5 include a module property so
bundlers like webpack, rollup and parcel can take advantage of the ES Module
build. (#208)
Fix: stringify outputs \0 as \\x00 when followed by a digit. (#210)
monorepo: upgrade to lerna@6 and use NX (#964) (e372795)
textlint: add new APIs and new CLI for ESM (#965) (3be8e39)
Overview
Support Rules/Filter/Pluugins that are written in ECMAScript Modules
Add new CLI
Add new APIs: createLinter/loadTextlintrc/loadLinterFormatter/loadFixerFormatter
It will replace TextLintCore/TextFixEngine/TextLintEngine
📝 ESM Rules/Filter/Pluugins only works in createLinter API.
This is because TextLintCore/TextFixEngine/TextLintEngine were assumed to be synchronous processes.
createLinter API does loading as async.
Breaking Changes
No changes in existing CLI.
Difference between Old-CLI and New-CLI
New CLI support ESM
New CLI must require --stdin-filename with --stdin
--stdin-filename may be optional in Old-CLI
Correct exit status
Exit Status on new CLI
0: No Error
Not found lint error
--fix: found errors but fix all errors, so exit with 0
--output-file: Found lint error but --output-file is specified
--dryRun: Found lint error but --dryRun is specified
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/lostandfound/textlint-rule-ja-hiragana-fukushi/network/alerts).
Bumps json5 to 2.2.2 and updates ancestor dependency textlint-scripts. These dependencies need to be updated together.
Updates
json5
from 0.5.1 to 2.2.2Release notes
Sourced from json5's releases.
... (truncated)
Changelog
Sourced from json5's changelog.
... (truncated)
Commits
14f8cb1
2.2.210cc7ca
docs: update CHANGELOG for v2.2.27774c10
fix: add proto to objects and arraysedde30a
Readme: slight tweak to intro97286f8
Improve example in readmed720b4f
Improve readme (e.g. explain JSON5 better!) (#291)910ce25
docs: fix spelling of Aseem2aab4dd
test: require tap as t in cli tests6d42686
test: remove mocha syntax from tests4798b9d
docs: update installation and usage for modulesUpdates
textlint-scripts
from 1.4.2 to 12.3.1Release notes
Sourced from textlint-scripts's releases.
... (truncated)
Changelog
Sourced from textlint-scripts's changelog.
... (truncated)
Commits
c4ac8c4
v12.3.1a6b9bf5
fix(textlint): fix ESM loading issue on Windows (#972)30a1386
fix(deps): update babel monorepo to ^7.20.718e42bd
chore(deps): update patch updates5c7e3f8
chore: add resourcecd49cd2
v12.3.03be8e39
feat(textlint): add new APIs and new CLI for ESM (#965)e372795
feat(monorepo): upgrade to lerna@6 and use NX (#964)9c59637
chore(deps): update node.js to v16.19.0 (#955)d93c43e
chore(deps): update dependency@types/node
to ^18.11.17 (#962)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/lostandfound/textlint-rule-ja-hiragana-fukushi/network/alerts).