Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Upgrade textlint from 12.6.1 to 14.4.0 #71

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ekmixon
Copy link
Owner

@ekmixon ekmixon commented Dec 25, 2024

snyk-top-banner

Snyk has created this PR to upgrade textlint from 12.6.1 to 14.4.0.

ℹ️ 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.


⚠️ Warning: This PR contains major version upgrade(s), and may be a breaking change.

  • The recommended version is 30 versions ahead of your current version.

  • The recommended version was released 24 days ago.

Release notes
Package name: textlint
  • 14.4.0 - 2024-12-01

    What's Changed

    Features

    • feat(@ textlint/legacy-textlint-core): add fixFile API by @ azu in #1441

    Dependency Updates

    Full Changelog: v14.3.0...v14.4.0

  • 14.3.0 - 2024-10-24

    What's Changed

    Features

    • feat(resolver): use @ textlint/resolver instead of try-resolve by @ azu in #1432

    Dependency Updates

    • fix(deps): update babel monorepo to ^7.25.7 (patch) by @ renovate in #1428
    • fix(deps): update babel monorepo to ^7.25.7 (minor) by @ renovate in #1429
    • fix(deps): update babel monorepo to ^7.25.8 (patch) by @ renovate in #1430

    Other Changes

    • chore(deps): update softprops/action-gh-release action to v2 by @ renovate in #1366

    Full Changelog: v14.2.1...v14.3.0

  • 14.2.1 - 2024-10-05

    What's Changed

    Documentation

    • docs(textlint): improve docs for linter.lintText by @ davmillar in #1424
    • docs(image): make the border of get-started-steps images transparent by @ lumirlumir in #1425

    Refactoring

    • refactor(formatter): import formatter as static by @ azu in #1426

    Dependency Updates

    • fix(deps): update dependency @ babel/preset-env to ^7.25.4 by @ renovate in #1419
    • fix(deps): update dependency @ babel/cli to ^7.25.6 by @ renovate in #1421

    Other Changes

    • chore(deps): update peter-evans/create-pull-request action to v7 by @ renovate in #1420

    New Contributors

    Full Changelog: v14.2.0...v14.2.1

  • 14.2.0 - 2024-08-18

    What's Changed

    Features

    • feat(textlint-scripts): update to pkg-to-readme@3 and textlint-scripts init --yes by @ azu in #1417

    This release will reduce audit warning.

    Full Changelog: v14.1.0...v14.2.0

  • 14.1.0 - 2024-08-18

    What's Changed

    Features

    • feat(textlint): Add linter.scanFilePath API by @ azu in #1414

    Change Details

    • Update to glob@v10
    • Rewrite find-util - it is used in scanFilePath
      • Preserve old behavior by using old-find-util
      • We change this in next major updates
      • Ref #1412
    • Add linter.scanFilePath(filePath) API
    • Add tests

    linter.scanFilePath API Usage

    If you want to know the file path is lintable or not, please use scanFilePath API.

    import { createLinter, loadTextlintrc } from "textlint";
    const textlintrcDescriptor = await loadTextlintrc();
    const linter = createLinter({
        descriptor: textlintrcDescriptor
    });
    const result = await linter.scanFilePath("README.md");
    // result.status is "ok" or "ignored" or "error"
    if (result.status === "ok") {
        const lintResult = await linter.lintText("README content", "README.md");
        console.log(lintResult);
    }

    linter.scanFilePath is for combinating with lintText API because lintText API does not ignore any file.

    Dependency Updates

    • fix(deps): update dependency @ babel/preset-env to ^7.25.3 by @ renovate in #1404
    • chore(deps): update dependency eol-converter-cli to ^1.1.0 by @ renovate in #1405

    Other Changes

    New Contributors

    Full Changelog: v14.0.5...v14.1.0

  • 14.0.5 - 2024-08-07

    What's Changed

    Documentation

    Refactoring

    • refactor(markdown-to-ast): migrate to neotraverse by @ Jayllyz in #1401

    Dependency Updates

    • chore(deps): update dependency @ types/lodash to ^4.17.0 by @ renovate in #1371
    • fix(deps): update babel monorepo to ^7.24.1 (patch) by @ renovate in #1373
    • fix(deps): update babel monorepo to ^7.24.1 (minor) by @ renovate in #1374
    • fix(deps): update babel monorepo to ^7.24.3 (patch) by @ renovate in #1375
    • chore(deps): update dependency mocha to ^10.4.0 by @ renovate in #1376
    • fix(deps): update babel monorepo to ^7.24.4 (patch) by @ renovate in #1380
    • chore(deps): update dependency textlint-rule-preset-ja-spacing to ^2.4.1 by @ renovate in #1381
    • fix(deps): update babel monorepo to ^7.24.5 (patch) by @ renovate in #1385
    • fix(deps): update babel monorepo to ^7.24.6 (patch) by @ renovate in #1386
    • fix(deps): update dependency @ babel/register to ^7.24.6 by @ renovate in #1387
    • fix(deps): update babel monorepo to ^7.24.7 (patch) by @ renovate in #1390
    • chore(deps): update dependency mocha to ^10.5.0 by @ renovate in #1391
    • chore(deps): update dependency mocha to ^10.6.0 by @ renovate in #1392
    • fix(deps): update babel monorepo to ^7.24.8 (patch) by @ renovate in #1393
    • fix(deps): update dependency @ babel/core to ^7.24.9 by @ renovate in #1394
    • chore(deps): update dependency mocha to ^10.7.0 by @ renovate in #1395
    • chore(deps): update dependency chai to ^4.5.0 by @ renovate in #1396
    • fix(deps): update dependency @ babel/preset-env to ^7.25.0 by @ renovate in #1397
    • fix(deps): update dependency @ babel/preset-env to ^7.25.2 by @ renovate in #1398
    • fix(deps): update dependency @ babel/core to ^7.25.2 by @ renovate in #1399

    Other Changes

    • chore(deps): update dependency node to v18.20.0 by @ renovate in #1359
    • chore(deps): update dependency node to v18.20.1 by @ renovate in #1377
    • chore(deps): update peaceiris/actions-gh-pages action to v4 by @ renovate in #1378

    New Contributors

    Full Changelog: v14.0.4...v14.0.5

  • 14.0.4 - 2024-03-12

    What's Changed

    Bug Fixes

    Dependency Updates

    New Contributors

    Full Changelog: v14.0.3...v14.0.4

  • 14.0.3 - 2024-02-17

    What's Changed

    Bug Fixes

    • fix(formatter): fix missing is-file dependencies by @ azu in #1362

    Dependency Updates

    Full Changelog: v14.0.2...v14.0.3

  • 14.0.2 - 2024-02-11

    What's Changed

    Bug Fixes

    • add TxtCommentNode to StaticPhrasingContent by @ pddg in #1357

    New Contributors

    Full Changelog: v14.0.1...v14.0.2

  • 14.0.1 - 2024-02-04

    What's Changed

    Bug Fixes

    • fix(legacy-textlint-core): add resetRules() by @ azu in #1353

    Full Changelog: v14.0.0...v14.0.1

  • 14.0.0 - 2024-02-03
  • 13.4.2-next.0 - 2024-02-02
  • 13.4.1 - 2023-11-25
  • 13.4.0 - 2023-11-08
  • 13.3.3 - 2023-06-30
  • 13.3.2 - 2023-03-25
  • 13.3.1 - 2023-02-26
  • 13.3.0 - 2023-02-12
  • 13.2.0 - 2023-02-07
  • 13.1.4 - 2023-02-05
  • 13.1.3 - 2023-02-02
  • 13.1.2 - 2023-02-02
  • 13.1.1 - 2023-02-01
  • 13.1.0 - 2023-01-31
  • 13.0.5 - 2023-01-29
  • 13.0.4 - 2023-01-28
  • 13.0.3 - 2023-01-28
  • 13.0.2 - 2023-01-28
  • 13.0.1 - 2023-01-28
  • 13.0.0 - 2023-01-27
  • 12.6.1 - 2023-01-25
from textlint GitHub release notes

Important

  • Warning: This PR contains a major version upgrade, and may be a breaking change.
  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.

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:

Summary by Sourcery

Build:

  • Upgrade textlint from version 12.6.1 to 14.4.0.

Snyk has created this PR to upgrade textlint from 12.6.1 to 14.4.0.

See this package in npm:
textlint

See this project in Snyk:
https://app.snyk.io/org/ekmixon/project/c598cc85-edfc-4f87-b32d-cc8bcf2f1afa?utm_source=github&utm_medium=referral&page=upgrade-pr
Copy link

sourcery-ai bot commented Dec 25, 2024

Reviewer's Guide by Sourcery

This pull request upgrades textlint from version 12.6.1 to 14.4.0. This is a major version upgrade and may introduce breaking changes. The upgrade includes a new fixFile API, the use of @textlint/resolver, a linter.scanFilePath API, and various dependency updates and bug fixes.

Class diagram showing textlint API changes

classDiagram
    class Linter {
        +lintText(text, filePath)
        +scanFilePath(filePath) NEW
        +fixFile() NEW
    }
    class TextlintCore {
        +resetRules() NEW
    }
    class Resolver {
        +resolve() NEW
    }
    Linter --> TextlintCore
    TextlintCore --> Resolver
    note for Linter "v14.4.0 adds new APIs"
    note for Resolver "Replaces try-resolve"
Loading

State diagram for file processing in textlint v14

stateDiagram-v2
    [*] --> ScanFile: scanFilePath()
    ScanFile --> Ignored: status='ignored'
    ScanFile --> Error: status='error'
    ScanFile --> Lintable: status='ok'
    Lintable --> LintText: lintText()
    LintText --> [*]: Results
    Ignored --> [*]
    Error --> [*]
Loading

File-Level Changes

Change Details Files
Upgrade textlint to 14.4.0
  • Updated the textlint dependency from version 12.6.1 to 14.4.0
package.json

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time. You can also use
    this command to specify where the summary should be inserted.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have skipped reviewing this pull request. Here's why:

  • It seems to have been created by a bot ('[Snyk]' found in title). We assume it knows what it's doing!
  • We don't review packaging changes - Let us know if you'd like us to change this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants