unified

Explore/Releases

  1. vfile/vfile-location@5.0.4·

    Fix

    • cdda37e Fix columns below 1 in toOffset

    Performance

    • 7c5c137 Fix quadratic time in toPoint

    Full Changelog: https://github.com/vfile/vfile-location/compare/5.0.3...5.0.4

  2. syntax-tree/hast-util-from-html@2.1.0·

  3. syntax-tree/hast-util-raw@9.2.0·

  4. syntax-tree/hast-util-raw@9.1.1·

    Fix

    • 04aa4eb Fix whitespace in head, tables, etc

    Full Changelog: https://github.com/syntax-tree/hast-util-raw/compare/9.1.0...9.1.1

  5. syntax-tree/mdast-util-mdx-jsx@3.2.1·

    Fix

    • b52d992 Fix indent in attribute expressions

    Full Changelog: https://github.com/syntax-tree/mdast-util-mdx-jsx/compare/3.2.0...3.2.1

  6. mdx-js/eslint-mdx@eslint-plugin-mdx@3.9.1·

    Patch Changes

    • #629 8241610 Thanks @paoValle! - fix: mute the code block rules under their @stylistic names too

      eol-last and padded-blocks were deprecated in ESLint v8.53.0 in favour of @stylistic/eslint-plugin, which carries them with its own prefix. The code blocks config switches both off, and now also switches off @stylistic/eol-last and @stylistic/padded-blocks, so the examples stay muted for users who run the plugin.

      The deprecated entries stay: a rule set to off that the installed ESLint no longer has is bypassed rather than resolved, so they are inert on the version that removes them and still mute the rule on the versions that have it.

      Closes #601.

    • Updated dependencies []:

      • eslint-mdx@3.9.1
  7. mdx-js/eslint-mdx@eslint-mdx@3.9.1·

    No changes in this release.

  8. mdx-js/eslint-mdx@eslint-plugin-mdx@3.9.0·

    Patch Changes

    • #634 7921c79 Thanks @JounQin! - fix: only apply remark fixes to the reported message range

      A remark fix used to rewrite the whole document, so unrelated formatting changes could conflict with prettier/prettier and produce circular fixes. Apply only the differences that overlap the reported message, as localized fixes.

      Closes #491.

    • Updated dependencies [4241ceb, 5e0b172, d41d8ee, 1c675f4, 2c41867, 43af536, b476a1c, b3eb3bf, fd72b28]:

      • eslint-mdx@3.9.0
  9. mdx-js/eslint-mdx@eslint-mdx@3.9.0·

    Minor Changes

    • #622 2c41867 Thanks @JounQin! - feat: add ESTree nodes for Markdown content

      Add MDCode, MDHeading, MDParagraph, MDText, MDList, MDListItem, MDBlockquote, MDEmphasis, MDStrong, MDInlineCode, MDLink, MDImage, MDBreak, MDThematicBreak, MDDefinition, MDDelete, MDFootnoteDefinition, MDFootnoteReference, MDImageReference, MDInlineMath, MDLinkReference, MDMath, MDTable, MDTableCell, MDTableRow, MDToml and MDYaml nodes with visitor keys. Restore whitespace JSXText tokens inside JSX elements so the AST body and tokens stay aligned.

      MDXCode and MDXHeading have been replaced by MDCode and MDHeading, including their emitted type strings.

      Closes #503.

      @types/estree@^1.0.10 is declared as an optional peer dependency.

    • #621 43af536 Thanks @JounQin! - feat: add MDXFlowExpression and MDXTextExpression nodes

      MDX content expressions are no longer emitted as top-level ExpressionStatement nodes, so no-unused-expressions no longer reports them. The new nodes expose their expression and are traversed via the extended visitor keys.

      Closes #581.

    • #637 fd72b28 Thanks @JounQin! - feat: use micromark token types directly

      Generate markdown and MDX structural tokens from the same micromark parse used for the mdast tree, map MDX JSX/expression events to ESLint token types, and merge them with acorn's JavaScript tokens. Markdown token types now use the original micromark labels; JSX text keeps using JSXText for compatibility.

    Patch Changes

    • #643 4241ceb Thanks @JounQin! - chore: include context in JSX parsing assertion messages

    • #632 5e0b172 Thanks @JounQin! - fix: emit empty MDX expressions

      Top-level and nested comment-only or empty expressions ({/* ... */}, {}) were skipped because their ESTree body is empty, leaving their brace tokens or parent children without a corresponding node. Emit an MDXFlowExpression or MDXTextExpression containing a JSXEmptyExpression instead.

    • #630 d41d8ee Thanks @JounQin! - fix: wrap MDX expressions in JSXExpressionContainer

      Flow expressions inside JSX children were emitted as raw expressions and used the parent element range. They are now wrapped in JSXExpressionContainer nodes with their own range; both flow and text expression containers now use the expression's own range.

      Closes #628.

    • #636 1c675f4 Thanks @JounQin! - fix: preserve markdown children of JSX elements

      Markdown nodes such as links and emphasis were dropped when they appeared inside JSX elements, making them look empty to rules like react/self-closing-comp.

    • #631 b476a1c Thanks @hippi345! - chore: migrate to devlop

      Replace node:assert with devlop so development-only assertions are stripped in production builds.

      Closes #568.

    • #639 b3eb3bf Thanks @JounQin! - fix: treat props as defined in MDX content, but not in mdxjsEsm

  10. syntax-tree/xastscript@4.0.1·

    Types

    • 593ea3e Add declaration maps
    • 07e63ac Fix types to accept attributes or child at once

    Full Changelog: https://github.com/syntax-tree/xastscript/compare/4.0.0...4.0.1

  11. syntax-tree/hastscript@9.0.3·

    Types

    • 6d7cdac Fix types of jsxDEV to accept development arguments

    Full Changelog: https://github.com/syntax-tree/hastscript/compare/9.0.2...9.0.3

  12. syntax-tree/hast-util-from-parse5@8.0.4·

    Fix

    • 68b7379 Fix crash on template in SVG, MathML

    Full Changelog: https://github.com/syntax-tree/hast-util-from-parse5/compare/8.0.3...8.0.4

  13. syntax-tree/hastscript@9.0.2·

    Fix

    • 1f7110f Fix to not add content to template in SVG

    Types

    • 926dc39 Fix types to accept properties or child at once

    Full Changelog: https://github.com/syntax-tree/hastscript/compare/9.0.1...9.0.2

  14. syntax-tree/hast-util-to-html@9.0.6·

    Fix

    • b2b5a3e Fix HTML in SVG for desc, foreignObject, title
    • 233ac97 Fix p closing tag omission in custom elements

    Full Changelog: https://github.com/syntax-tree/hast-util-to-html/compare/9.0.5...9.0.6

  15. mdx-js/eslint-mdx@eslint-plugin-mdx@3.8.3·

    Patch Changes

    • Updated dependencies [08ae03b]:
      • eslint-mdx@3.8.3
  16. mdx-js/eslint-mdx@eslint-mdx@3.8.3·

    Patch Changes

    • #625 08ae03b Thanks @JounQin! - fix: avoid the tslib runtime dependency

      Build with rewriteRelativeImportExtensions: false and use .js extensions in source imports, so the compiled worker no longer imports __rewriteRelativeImportExtension from tslib.

  17. inokawa/remark-docx@0.3.30·

  18. syntax-tree/hast-util-to-text@4.0.3·

    Fix

    • 444e34b Fix typo where form did not match
    • 21ad138 Fix to ignore white space between table parts
    • e77d913 Fix handling of line feed between rows

    Types

    Performance

    • f41d76a Refactor to improve performance by inlining checks
    • 246e991 Refactor to improve performance for sibling iteration
    • 12615f2 Refactor to improve performance for many things

    Full Changelog: https://github.com/syntax-tree/hast-util-to-text/compare/4.0.2...4.0.3

  19. syntax-tree/hast-util-find-and-replace@5.0.3·

  20. syntax-tree/unist-util-visit@5.2.0·

    Add

    • c1ed449 Add support for exit visitors

    Performance

    • f57c39f Fix performance around indexOf

    Full Changelog: https://github.com/syntax-tree/unist-util-visit/compare/5.1.0...5.2.0

  21. syntax-tree/unist-util-visit-parents@6.1.0·

    Add

    • ca2b802 Add support for exit visitors
    • 38d3cfb Add index of node in parent

    Full Changelog: https://github.com/syntax-tree/unist-util-visit-parents/compare/6.0.2...6.1.0

  22. mdx-js/eslint-mdx@eslint-plugin-mdx@3.8.2·

    Patch Changes

    • Updated dependencies [f07115b]:
      • eslint-mdx@3.8.2
  23. mdx-js/eslint-mdx@eslint-mdx@3.8.2·

    Patch Changes

    • #618 f07115b Thanks @renovate! - fix: surface worker failures instead of hanging forever

      Upgrade synckit to ^0.12.3 so a worker failure is reported to the caller instead of leaving ESLint blocked in Atomics.wait(), which made lint runs over large projects appear to hang with no diagnostics.

      Closes #605.

  24. syntax-tree/hast-util-find-and-replace@5.0.2·

    Fixes

    • a791125 Fix merging adjacent text nodes

    Types

    Full Changelog: https://github.com/syntax-tree/hast-util-find-and-replace/compare/5.0.1...5.0.2

  25. micromark/micromark@4.0.3·

    • 3f0d484 fix attention flanking next to others
    • c0f7daf add list of start tokens, for performance
    • 8421970 90c8d3e add micromark-util-edit-map, for performance
  26. micromark/micromark@micromark-build@2.0.4·

  27. micromark/micromark@micromark-core-commonmark@2.0.4·

    • 3f0d484 fix attention flanking next to others
    • c0f7daf add list of start tokens
    • b31f51c refactor non-lazy cont check
  28. micromark/micromark@micromark-factory-space@2.1.0·

  29. micromark/micromark@micromark-util-edit-map@1.0.0·

    💯

  30. micromark/micromark@micromark-util-types@2.0.3·

  31. remcohaszing/remark-mdx-frontmatter@6.0.0·

    What's Changed

    • 530b5ce Rename RemarkMdxFrontmatterOptions to remarkMdxFrontmatter.Options
    • 2c8b09c Use npm staged publishing
    • 5deaec4 Remove support for Node.js < 22
    • 60e3727 Replace the toml dependency with smol-tomlby @egrimstad in #20
    • 6c0ed63 Use OIDC for publishing

    New Contributors

    Full Changelog: https://github.com/remcohaszing/remark-mdx-frontmatter/compare/v5.2.0...v6.0.0