Skip to content

13.0.0

Compare
Choose a tag to compare
@wooorm wooorm released this 17 Jul 11:08
· 13 commits to main since this release
6e72085

Change

  • 67ef76c Update @types/hast, @types/mdast, utilities
    migrate: update too
  • b815f5e Change to require Node.js 16
    migrate: update too
  • 33442cc Change to use exports
    migrate: don’t use private APIs
  • 56c88e4 Fix to match GH for HTML generated for backreferences
    migrate: use the function form of footnoteBackLabel for i18n, see defaultFootnoteBackLabel for inspiration
  • ffe7e47 Change to always return a node
    migrate: expect an empty root instead of nothing
  • ffbb8a8 Change to expect, yield undefined
    migrate: expect undefined everywhere, not null
  • c13fe7f Change to remove support for Footnote nodes
    migrate: use GFM, which does not have “inline” notes
  • 6fc783a Change to remove support for ancient lang on code with spaces
    migrate: you’re fine, this hasn’t been a thing for years
  • 72b8a68 Change to use maps for definitions on state
    migrate: if you make your own handles, expect maps
  • b328aa9 Change to remove function form of State, use plain object
    migrate: if you make your own handles, create nodes yourself, use state.applyData if needed
  • 40e1d29 Change to remove all, one helpers
    migrate: if you make your own handles, use state.all, state.one
  • 1894044 Change to remove H type
    migrate: use State
  • e804231 Change to remove complex-types.d.ts
    migrate: use main module
  • 4df5d41 Change to deep clone passed through nodes
    migrate: should be fine

Types

  • 52905eb Add smarter types for passThrough
    migrate: type your mdast/hast nodes by extending the content interfaces
  • 6f555a0 Add supported data fields to Data of mdast
    migrate: pass correct values in node.data

Fix

  • 3e300ea Fix to keep content around for hName on text

Full Changelog: 12.3.0...13.0.0