Skip to content

Commit 2192bb7

Browse files
Release 0.26.0 (#177)
* enhance: expose known used APIs * Release 0.26.0
1 parent a458f89 commit 2192bb7

5 files changed

Lines changed: 18 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,18 @@
1111
1212
-->
1313
## 0.x.x (unreleased)
14+
15+
## 0.26.0
1416
### Features
1517
- Supports Unicode 17.0 emoji
1618

19+
### Improvements
20+
- Expose `isMfmBlock` utility.
21+
22+
### Changes
23+
- Package now ships both ESM and CJS builds.
24+
- Package now exposes main entry point only. Other independent files are no longer importable.
25+
1726
## 0.25.0
1827
### Features
1928
- Supports Unicode 15.1 and 16.0 emoji

etc/mfm-js.api.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ export function inspect(node: MfmNode, action: (node: MfmNode) => void): void;
3434
// @public (undocumented)
3535
export function inspect(nodes: MfmNode[], action: (node: MfmNode) => void): void;
3636

37+
// @public (undocumented)
38+
export function isMfmBlock(node: MfmNode): node is MfmBlock;
39+
3740
// @public (undocumented)
3841
export const ITALIC: (children: MfmInline[]) => NodeType<"italic">;
3942

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mfm-js",
3-
"version": "0.25.0",
3+
"version": "0.26.0",
44
"description": "An MFM parser implementation with TypeScript",
55
"type": "module",
66
"main": "./built/index.mjs",

src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,7 @@ export {
6464
FN,
6565
PLAIN,
6666
TEXT,
67+
68+
// util
69+
isMfmBlock,
6770
} from './node';

0 commit comments

Comments
 (0)