diff --git a/CHANGELOG.md b/CHANGELOG.md index 028d350c..ca576a82 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,9 +11,18 @@ --> ## 0.x.x (unreleased) + +## 0.26.0 ### Features - Supports Unicode 17.0 emoji +### Improvements +- Expose `isMfmBlock` utility. + +### Changes +- Package now ships both ESM and CJS builds. +- Package now exposes main entry point only. Other independent files are no longer importable. + ## 0.25.0 ### Features - Supports Unicode 15.1 and 16.0 emoji diff --git a/etc/mfm-js.api.md b/etc/mfm-js.api.md index 10e8e185..1d95a6ed 100644 --- a/etc/mfm-js.api.md +++ b/etc/mfm-js.api.md @@ -34,6 +34,9 @@ export function inspect(node: MfmNode, action: (node: MfmNode) => void): void; // @public (undocumented) export function inspect(nodes: MfmNode[], action: (node: MfmNode) => void): void; +// @public (undocumented) +export function isMfmBlock(node: MfmNode): node is MfmBlock; + // @public (undocumented) export const ITALIC: (children: MfmInline[]) => NodeType<"italic">; diff --git a/package-lock.json b/package-lock.json index 87e2bf1b..0b0a447a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "mfm-js", - "version": "0.25.0", + "version": "0.26.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "mfm-js", - "version": "0.25.0", + "version": "0.26.0", "license": "MIT", "dependencies": { "@misskey-dev/emoji-data": "17.0.0" diff --git a/package.json b/package.json index 70fd6c9f..96127176 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mfm-js", - "version": "0.25.0", + "version": "0.26.0", "description": "An MFM parser implementation with TypeScript", "type": "module", "main": "./built/index.mjs", diff --git a/src/index.ts b/src/index.ts index 1e2e9542..a869eabc 100644 --- a/src/index.ts +++ b/src/index.ts @@ -64,4 +64,7 @@ export { FN, PLAIN, TEXT, + + // util + isMfmBlock, } from './node';