Skip to content

Releases: unifiedjs/unified

11.0.4

26 Oct 11:23
b69689b
Compare
Choose a tag to compare

Types

Full Changelog: 11.0.3...11.0.4

11.0.3

05 Sep 15:23
67949bb
Compare
Choose a tag to compare

Fix

  • 8dee2ab Fix support for functions in data

Full Changelog: 11.0.2...11.0.3

11.0.2

20 Aug 17:02
66bc279
Compare
Choose a tag to compare
  • cea788b Fix type of settings if nothing is registered yet

Full Changelog: 11.0.1...11.0.2

11.0.1

17 Aug 11:54
9ba8e23
Compare
Choose a tag to compare
  • d1a915d Fix incorrect type of settings in presets

Full Changelog: 11.0.0...11.0.1

11.0.0

15 Aug 08:55
98ab675
Compare
Choose a tag to compare

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 #202
  • 6f068a0 Fix to deep clone preset settings
  • 56ee288 Fix non-first parameter merging when reconfiguring plugins

Misc

Full Changelog: 10.1.2...11.0.0

10.1.2

08 Mar 09:29
b935869
Compare
Choose a tag to compare

Full Changelog: 10.1.1...10.1.2

10.1.1

18 Nov 17:23
e7a9d19
Compare
Choose a tag to compare

Full Changelog: 10.1.0...10.1.1

10.1.0

30 Jul 10:06
28475ca
Compare
Choose a tag to compare
  • 134ecad Add plugin input/output type parameters

10.0.1

21 Jul 07:53
cf8653b
Compare
Choose a tag to compare
  • 591b0c0 Fix types to support void async transformers

10.0.0

15 Jul 07:54
4919517
Compare
Choose a tag to compare

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