Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions etc/mfm-js.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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">;

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,7 @@ export {
FN,
PLAIN,
TEXT,

// util
isMfmBlock,
} from './node';
Loading