Unified Versions Save

☔️ interface for parsing, inspecting, transforming, and serializing content through syntax trees

11.0.4

6 months ago

Types

Full Changelog: https://github.com/unifiedjs/unified/compare/11.0.3...11.0.4

11.0.3

7 months ago

Fix

  • 8dee2ab Fix support for functions in data

Full Changelog: https://github.com/unifiedjs/unified/compare/11.0.2...11.0.3

11.0.2

8 months ago
  • cea788b Fix type of settings if nothing is registered yet

Full Changelog: https://github.com/unifiedjs/unified/compare/11.0.1...11.0.2

11.0.1

8 months ago
  • d1a915d Fix incorrect type of settings in presets

Full Changelog: https://github.com/unifiedjs/unified/compare/11.0.0...11.0.1

11.0.0

8 months ago

Change

  • baf80b2 Change to require Node.js 16 migrate: update too
  • dd9834a Update @types/unist migrate: update too
  • 620ccf9 Update vfile migrate: update too

Change (unlikey to affect you)

  • a44db46 Add Data, Settings types to augment shared data migrate: if you deal with data, type it, see commit for info
  • fb49556 Change to replace Buffer with Uint8Array migrate: you’re probably fine unless you use weird encodings, see commit for details if so
  • f3e71a8 Remove Attacher type migrate: use Plugin instead
  • cc53bb6 Remove FrozenProcessor type migrate: use Processor instead
  • 1aa3494 Change to yield undefined, not null migrate: expect undefined
  • 932c140 Change to use exports migrate: don’t use private APIs
  • 8e57478 Remove support for classes as compilers, parsers migrate: if you love classes, see commit message
  • 4676814 Remove support for compilers returning nullish migrate: nobody did that
  • 807ffb9 Add improved types migrate: it’s probably just better if anything changed at all
  • b35afe0 Add useful error on empty presets by @wooorm in https://github.com/unifiedjs/unified/pull/202
  • 6f068a0 Fix to deep clone preset settings
  • 56ee288 Fix non-first parameter merging when reconfiguring plugins

Misc

Full Changelog: https://github.com/unifiedjs/unified/compare/10.1.2...11.0.0

10.1.1

2 years ago

Full Changelog: https://github.com/unifiedjs/unified/compare/10.1.0...10.1.1

10.1.0

2 years ago
  • 134ecad Add plugin input/output type parameters

10.0.1

2 years ago
  • 591b0c0 Fix types to support void async transformers

10.0.0

2 years ago

Breaking

  • dc46bc5 Use ESM and update vfile
    • Change:

      // from cjs import
      var unified = require('unified')
      
      // to esm import
      import {unified} from 'unified'
      

      Learn more about ESM in this guide

    • Breaking: this updates vfile, which importantly renames vfile.contents to vfile.value. See vfile@5

    • Inconsequential: this updates trough, which removes support for Promise-like objects returned from plugins, in favor of only support actual promises. To update, instead of returning an object with a then function, return and actual promise

Types

  • b3e2464 Rewrite types
    • Removed the type parameter P for processor settings
    • Use any[] instead of [Record<string, unknown>?] for the default plugin type parameters
  • 45eb72e Update types for ESM
  • 2c7ba99 8eda349 Add explicit dependency on @types/unist
  • 0e8f611 Remove typescript@3 legacy support
  • 350ed9d Fix next in types of transformer signature
  • b22bf8e Add support for buffer, other return values
  • 4bfd6c8 b8fe5ec 6ef3933 Add support for boolean plugin options

Project

  • 88374fc Add esast to list of syntax trees
  • a6ff3c1 Fix links
  • ee6ee47 Update examples in readme.md
  • 32abf7c 60de570 115898a Refactor code style