melg8 / cit

Control your c++ code using this ci template and development environment powered by nix and docker.
Other
15 stars 3 forks source link

[Snyk] Upgrade textlint from 12.1.1 to 12.2.1 #24

Open snyk-bot opened 2 years ago

snyk-bot commented 2 years ago

Snyk has created this PR to upgrade textlint from 12.1.1 to 12.2.1.

:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


Release notes
Package name: textlint
  • 12.2.1 - 2022-06-25

    12.2.1 (2022-06-25)

    What's Changed

    • fix(textlint/kernel): improve RuleError error handlong by @ azu in #877

    Full Changelog: v12.1.0...v12.2.1

  • 12.2.0 - 2022-06-25

    12.2.0 (2022-06-25)

    Features

    Implement Improve error location RFC #835
    It will make the error location more details.

    This change is for rule developer.

    • Add loc and range property to TextlintMessage(result)
    • Add padding prorperty to RuleError(message, details).
    • Add locator object to rule's context
      • lcoator.at(index), locator.range([startIndex, endIndex]), and locator.loc({ start: { line, column }, end: { line, column }}).
    • textlint-tester's valid and invalid support range property
    • Deprecate index, line and column property on TextlintMessage and report function
      • Preserve current behavior for backward compatible
    • Update filterMessages to use new range property on TextlintMessage
    • Use readonly [number, number] as range in all packages
    • Fix filterMessages bug c8a670f
    • Refactor tests
    • Update rule.md documentation
      • Add padding and locator object
      • Add peerDependencies note

    textlint v12.2.0 will introduce padding and locator.
    If your will use it, please add peerDependencies to package.json on your rule package.

      "peerDependencies": {
        "textlint": ">= 12.2.0"
      }

    For textlint rule creator

    Before:

    const { Syntax, report, RuleError } = context;
    // .....
    report(node, new RuleError(message, {
      index: 1
    }));

    After:

    const { Syntax, report, RuleError, locator } = context;
    // .....
    report(node, new RuleError(message, {
      padding: locator.at(1)
    }));

    If you want to get more correct location, please use locator.range or locator.loc

    const { Syntax, report, RuleError, locator } = context;
    // .....
    report(node, new RuleError(message, {
      padding: locator.range([1, 5]) // The error related to 1 - 5 index.
    }));

    For more details, see https://textlint.github.io/docs/rule.html#ruleerror

    Changelogs

    Bug Fixes

    • deps: update babel monorepo (89b2395)
    • deps: update babel monorepo (6a3e841)
    • deps: update babel monorepo (a91e594)
    • 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 babel monorepo to ^7.17.10 (1539f0a)
    • deps: Update chalk (#842) (56ba52c)
    • deps: update dependency @ babel/core to ^7.17.12 (add5313)
    • deps: update dependency @ babel/core to ^7.17.9 (db74d3a)
    • deps: update dependency @ babel/core to ^7.18.2 (73c2047)
    • 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)

    Features

    • textlint: add padding property and locator (#836) (f94d5f8)
  • 12.1.1 - 2022-02-23

    12.1.1 (2022-02-23)

    Bug Fixes

    It will resolve the following audit alert.

    ansi-regex 2.1.1 ~ 5.0.0 is vulnerable to Inefficient Regular Expression Complexity: 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)
from textlint GitHub release notes
Commit messages
Package name: textlint
  • ef3bff6 v12.2.1
  • 8c1fc23 fix(textlint/kernel): improve RuleError error handlong (#877)
  • 87d52d8 v12.2.0 (#875)
  • f94d5f8 feat(textlint): add `padding` property and `locator` (#836)
  • bb4c902 chore(deps): update patch updates
  • 1388dba chore(deps): update dependency ts-node to v10.8.1
  • 73c2047 fix(deps): update dependency @ babel/core to ^7.18.2
  • 89b2395 fix(deps): update babel monorepo
  • b536e9a chore(deps): update dependency ts-node to v10.8.0
  • add5313 fix(deps): update dependency @ babel/core to ^7.17.12
  • 0de719e chore(deps): update minor updates to ^2.8.1
  • 95c7636 chore(deps): update patch updates
  • 1539f0a fix(deps): update babel monorepo to ^7.17.10
  • a303f33 docs: fix style
  • c27c1eb Update plugin.md
  • e5f1d9f chore(deps): update patch updates (#860)
  • 5f23c58 Create codeql-analysis.yml (#857)
  • db74d3a fix(deps): update dependency @ babel/core to ^7.17.9
  • b225454 chore(deps): update patch updates
  • 6a3e841 fix(deps): update babel monorepo
  • b9383f8 chore(deps): update dependency ts-node to v10.7.0
  • 664136a chore(deps): update dependency @ textlint/types to ^12.1.1
  • 26d28ce chore(deps): update actions/checkout action to v3 (#850)
  • a91e594 fix(deps): update babel monorepo
Compare

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs