Skip to content

Releases: unifiedjs/unified

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

10.0.0-beta.1

06 Jul 08:32
5167c49
Compare
Choose a tag to compare
10.0.0-beta.1 Pre-release
Pre-release

Breaking

  • dc46bc5 Use ESM and update vfile
    • 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

  • 45eb72e Update types for ESM
  • 2c7ba99 8eda349 Add explicit dependency on @types/unist
  • 0e8f611 Remove typescript@3 legacy support
  • b22bf8e Add support for buffer, other return values
  • 4bfd6c8 Add support for boolean plugin options

Project

(this should be what will go in v10)

9.2.2

01 Jul 16:39
0938bde
Compare
Choose a tag to compare
  • bc50a01 Fix to set vfile.value if a vfile@5 is given

9.2.1

25 Feb 08:33
0f3b928
Compare
Choose a tag to compare
  • fe51be2 Fix mutating options
  • 8f135d0 Refactor to improve bundle size
  • ad12369 Remove outdated description of compile results

9.2.0

21 Aug 18:11
f27fb1e
Compare
Choose a tag to compare
  • 7fc4271 Add variadic tuple types for plugin tuple

9.1.0

23 Jul 09:40
6351742
Compare
Choose a tag to compare
  • 56fdba4 Add FrozenProcessor interface to types

9.0.0

30 Mar 06:20
bfae23c
Compare
Choose a tag to compare
  • c3ba172 Set file.result when processing to non-text
    (breaking, if you’re using .process or .processSync with a compiler that returns an object, then those results were available at file.contents and are now at file.result)

8.4.2

09 Nov 20:19
d5d2f8c
Compare
Choose a tag to compare
  • 2a7138c Add funding field to package.json

8.4.1

03 Oct 06:46
af821ce
Compare
Choose a tag to compare

8.4.0

14 Sep 09:22
e4a909d
Compare
Choose a tag to compare
  • 9ccc470 Update website
  • dbabe8b Update sponsors
  • f4f8ffd Add type tests for parser, compiler plugins
  • 12e0adc Refactor to use more of vfile’s typings