10.0.0
Breaking
- dc46bc5 Use ESM and update
vfile
-
Change:
// from cjs import var unified = require('unified') // to esm import import {unified} from 'unified'
-
Breaking: this updates
vfile
, which importantly renamestovfile.contents
vfile.value
. Seevfile@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 athen
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
- Removed the type parameter
- 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