Skip to content

v1.4.5

Choose a tag to compare

@JackUait JackUait released this 24 Jul 23:31
· 1014 commits to main since this release

Features

  • Migrate — The legacy-format interpreter is now extensible from the host: rules entries are matched before the built-in grammar (so they can override it) while reusing container recursion, orphan re-parenting and 1:N splits; expanders may consume following siblings via { blocks, consumed }; and passing generateId makes migration pure, so a document migrates to an equal result twice. Adds migrate(data, options) composing the data-rule and grammar passes in the correct order, matchLegacyRule() for per-block matching, and a report carrying lossyFields/errors instead of console-only warnings. Editor.js list v2 meta fields (start, checked) are now read.

Bug Fixes

  • Migrateconfig.migrations now runs before format analysis, so dataModel: 'auto' inspects post-migration blocks instead of collapsing the document back to its legacy shape on save.
  • TypestypesVersions now maps the migrate subpath, fixing TS2307 for consumers on moduleResolution: "node".

Maintenance

  • Docs and MIGRATION.md updated for the new extensibility surface; added law tests for exports/typesVersions parity, grammar extensibility, migration ordering and the public @bloklabs/core/migrate surface.