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 13.0.4 #12

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

Conversation

snyk-bot
Copy link

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

ℹ️ 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 is a major version upgrade, and may be a breaking change.

  • The recommended version is 5 versions ahead of your current version.
  • The recommended version was released 21 days ago, on 2023-01-28.
Release notes
Package name: textlint
  • 13.0.4 - 2023-01-28

    What's Changed

    Dependency Updates

    • chore(deps): update to rc-config-loader@4 by @ azu in #1031

    It will reduce textlint package size.

    image

    https://bundlephobia.com/package/[email protected]
    https://bundlephobia.com/package/[email protected]

    172.8kb ⬇️

    Full Changelog: v13.0.3...13.0.4

  • 13.0.3 - 2023-01-28

    What's Changed

    Refactoring

    • refactor(kernel): use fast-equals instead of deep-equal by @ azu in #1027

    It will reduce @ textlint/kernel package size.

    15.1kb ⬇️

    Dependency Updates

    Full Changelog: v13.0.2...13.0.3

  • 13.0.2 - 2023-01-28

    What's Changed

    Bug Fixes

    • fix(ast-node-types): export { TxtNodeType } by @ azu in #1024

    Full Changelog: v13.0.1...13.0.2

  • 13.0.1 - 2023-01-28

    What's Changed

    Bug Fixes

    • fix(ast-node-types): export { TxtNodeRange, TxtNodeLocation, TxtNodePosition } by @ azu in #1022

    If you have used TextNodeRange, TxtNodeLineLocation, TxtNodePosition, please change following:

    - import type { TextNodeRange, TxtNodeLineLocation, TxtNodePosition } from "@ textlint/ast-node-types";
    + import type { TxtNodeRange, TxtNodeLocation, TxtNodePosition } from "@ textlint/ast-node-types";

    Refactoring

    • refactor: add textlint-script/example* to workspaces by @ azu in #1019
    • refactor: use npm 9+ instead of yarn v1 by @ azu in #1020

    Full Changelog: v13.0.0...13.0.1

  • 13.0.0 - 2023-01-27

    textlint v13 support ESM rules/plugins 🎉

    We have rewritten CLI and textlint package.
    However, it is not a breaking change for most textlint CLI users.
    Almost CLI behaviors are the same as textlint v12.

    Please share your feedback to us!

    🔥 Breaking Changes

    • Require Node.js 16+
    • textlint --init output .textlintrc.json
      • Previously, textlint --init output .textlintrc
    • Improve @ textlint/ast-node-types types
      • Now, All node types are defined!
      • It changes the existing node type and it is a breaking change
      • If you want to know TxtAST, please read TxtAST Interface
      • See also Release v13.0.1 · textlint/textlint
      • - import type { TextNodeRange, TxtNodeLineLocation, TxtNodePosition } from "@ textlint/ast-node-types";
        + import type { TxtNodeRange, TxtNodeLocation, TxtNodePosition } from "@ textlint/ast-node-types";
    • Use New-CLI instead of Old-CLI
      • textlint has introduced New-CLI and New-APIs in v12.3.0
      • New-CLI uses new APIs: createLinter/loadTextlintrc/loadLinterFormatter/loadFixerFormatter( If you want to know new APIs, please read Use as Node Modules)
      • It means that textlint support rules/plugins that are written by ESM 🎉
      • Remove Old-CLI

    Difference between Old-CLI and New-CLI

    • New CLI support ESM rules/plugins
    • 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

    1: Lint Error

    • found lint error
    • --fix: found errors and could not fix all errors, so exit with 1

    2: Fatal Error

    • Crash textlint process
    • Fail to load config/rule/plugin etc...

    🆕 Features

    Add individual Node type and Add Table/TableRow/TableCell node #1008

    • Define all node types in @ textlint/ast-node-types
    • Add Table/TableRow/TableCell node to @ textlint/ast-node-types

    These types are defined in @ textlint/ast-node-types.

    Type name Node type Description
    ASTNodeTypes.Document TxtDocumentNode(TxtParentNode) Root Node
    ASTNodeTypes.DocumentExit TxtDocumentNode(TxtParentNode)
    ASTNodeTypes.Paragraph TxtParagraphNode(TxtParentNode) Paragraph Node
    ASTNodeTypes.ParagraphExit TxtParagraphNode(TxtParentNode)
    ASTNodeTypes.BlockQuote TxtBlockQuoteNode(TxtParentNode) > Block Quote Node
    ASTNodeTypes.BlockQuoteExit TxtBlockQuoteNode(TxtParentNode)
    ASTNodeTypes.List TxtListNode(TxtParentNode) List Node
    ASTNodeTypes.ListExit TxtListNode(TxtParentNode)
    ASTNodeTypes.ListItem TxtListItemNode(TxtParentNode) List (each) item Node
    ASTNodeTypes.ListItemExit TxtListItemNode(TxtParentNode)
    ASTNodeTypes.Header TxtHeaderNode(TxtParentNode) # Header Node
    ASTNodeTypes.HeaderExit TxtHeaderNode(TxtParentNode)
    ASTNodeTypes.CodeBlock TxtCodeBlockNode(TxtParentNode) Code Block Node
    ASTNodeTypes.CodeBlockExit TxtCodeBlockNode(TxtParentNode)
    ASTNodeTypes.HtmlBlock TxtHtmlBlockNode(TxtParentNode) HTML Block Node
    ASTNodeTypes.HtmlBlockExit TxtHtmlBlockNode(TxtParentNode)
    ASTNodeTypes.Link TxtLinkNode(TxtParentNode) Link Node
    ASTNodeTypes.LinkExit TxtLinkNode(TxtParentNode)
    ASTNodeTypes.Delete TxtDeleteNode(TxtParentNode) Delete Node(~Str~)
    ASTNodeTypes.DeleteExit TxtDeleteNode(TxtParentNode)
    ASTNodeTypes.Emphasis TxtEmphasisNode(TxtParentNode) Emphasis(*Str*)
    ASTNodeTypes.EmphasisExit TxtEmphasisNode(TxtParentNode)
    ASTNodeTypes.Strong TxtStrongNode(TxtParentNode) Strong Node(**Str**)
    ASTNodeTypes.StrongExit TxtStrongNode(TxtParentNode)
    ASTNodeTypes.Break TxtBreakNode Hard Break Node(Str<space><space>)
    ASTNodeTypes.BreakExit TxtBreakNode
    ASTNodeTypes.Image TxtImageNode Image Node
    ASTNodeTypes.ImageExit TxtImageNode
    ASTNodeTypes.HorizontalRule TxtHorizontalRuleNode Horizontal Node(---)
    ASTNodeTypes.HorizontalRuleExit TxtHorizontalRuleNode
    ASTNodeTypes.Comment TxtCommentNode Comment Node
    ASTNodeTypes.CommentExit TxtCommentNode
    ASTNodeTypes.Str TxtStrNode Str Node
    ASTNodeTypes.StrExit TxtStrNode
    ASTNodeTypes.Code TxtCodeNode Inline Code Node
    ASTNodeTypes.CodeExit TxtCodeNode
    ASTNodeTypes.Html TxtHtmlNode Inline HTML Node
    ASTNodeTypes.HtmlExit TxtHtmlNode
    ASTNodeTypes.Table TxtTableNode Table node. textlint 13+
    ASTNodeTypes.TableExit TxtTableNode
    ASTNodeTypes.TableRow TxtTableRowNode Table row node. textlint 13+
    ASTNodeTypes.TableRowExit TxtTableRowNode
    ASTNodeTypes.TableCell TxtTableCellNode Table cell node. textlint 13+
    ASTNodeTypes.TableCellExit TxtTableCellNode

    Some nodes have additional properties.
    For example, TxtHeaderNode has level property.

    export interface TxtHeaderNode extends TxtParentNode {
        type: "Header";
        depth: 1 | 2 | 3 | 4 | 5 | 6;
        children: PhrasingContent[];
    }

    For more details, see @ textlint/ast-node-types.

    CHANGELOGS

    Breaking Changes

    • feat(ast-node-types): Add individual Node type and Add Table/TableRow/TableCell node by @ azu in #1008
    • refactor(textlint): use New CLI by default by @ azu in #1011
    • fix(textlint): textlint --init create .textlintrc.json by @ azu in #1013
    • chore: Change "target" to "ES2018" by @ azu in #1014

    Other Changes

    Full Changelog: v12.6.1...13.0.0

  • 12.6.1 - 2023-01-25

    What's Changed

    Refactoring

    • refactor(kernel): remove node:events by @ azu in #1003

    Dependency Updates

    Full Changelog: v12.6.0...12.6.1

from textlint GitHub release notes
Commit messages
Package name: textlint

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

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.

1 participant