Skip to content

v2.0.0

Choose a tag to compare

@miadabdi miadabdi released this 08 Sep 05:44
· 10 commits to main since this release
19b88c1

Changed

  • The library is now written in TypeScript (strict mode) and ships its
    own type declarations — EditorJSOutput, EditorJSBlock, ParserConfig,
    CustomParsers, CustomEmbeds, ParserFunction are exported types.
  • Build moved from rollup+babel to tsup; artifacts
    now live in dist/ (index.js ESM, index.cjs CommonJS, index.global.js
    browser IIFE global edjsParser, index.d.ts types).
  • Package is ESM-first ("type": "module") with a modern exports map.

Fixed

  • src/utitlities.js filename typo — now src/utilities.ts (internal file).

Breaking

  • Deep imports such as require("editorjs-parser/build/Parser.node") no
    longer exist — import the package root (require("editorjs-parser") /
    import edjsParser from "editorjs-parser"), which works unchanged.
  • Runtime behavior of the parser is unchanged — all pre-2.0 output
    assertions pass byte-for-byte.