Skip to content

Commit 68cb3a2

Browse files
committed
docs(changeset): Update core package to v1
1 parent 95b670c commit 68cb3a2

File tree

14 files changed

+1176
-1144
lines changed

14 files changed

+1176
-1144
lines changed

.changeset/silver-shrimps-beg.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@m2d/emoji": patch
3+
---
4+
5+
Update core package to v1

examples/nextjs/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
"start": "next start"
1313
},
1414
"dependencies": {
15-
"@m2d/core": "^0.0.4",
15+
"@m2d/core": "^1.0.1",
1616
"@m2d/emoji": "workspace:*",
1717
"@repo/shared": "workspace:*",
18-
"mdast2docx": "0.4.0",
19-
"next": "^15.2.4",
18+
"mdast2docx": "0.4.3",
19+
"next": "^15.3.2",
2020
"nextjs-darkmode-lite": "^1.0.10",
2121
"nextjs-themes": "^4.0.6",
2222
"react": "^19.1.0",
@@ -30,12 +30,12 @@
3030
"webgl-generative-particles": "^0.0.1"
3131
},
3232
"devDependencies": {
33-
"@next/eslint-plugin-next": "^15.2.4",
33+
"@next/eslint-plugin-next": "^15.3.2",
3434
"@repo/eslint-config": "workspace:*",
3535
"@repo/typescript-config": "workspace:*",
36-
"@types/node": "^22.14.0",
37-
"@types/react": "^19.1.0",
38-
"@types/react-dom": "^19.1.1",
36+
"@types/node": "^22.15.19",
37+
"@types/react": "^19.1.4",
38+
"@types/react-dom": "^19.1.5",
3939
"typescript": "^5.8.3"
4040
}
4141
}

examples/nextjs/src/app/api/docx/route.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export const GET = async () => {
2525
const buffer = await toDocx(
2626
mdast,
2727
{},
28+
// @ts-expect-error WIP
2829
{ plugins: [tablePlugin(), listPlugin(), mathPlugin(), emojiPlugin()] },
2930
"arraybuffer",
3031
);

examples/vite/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"lint:fix": "eslint src/ --fix"
1313
},
1414
"dependencies": {
15-
"@m2d/core": "^0.0.4",
15+
"@m2d/core": "^1.0.1",
1616
"@m2d/emoji": "workspace:*",
1717
"@repo/shared": "workspace:*",
1818
"nextjs-darkmode": "^1.0.10",
@@ -25,10 +25,10 @@
2525
"devDependencies": {
2626
"@repo/eslint-config": "workspace:*",
2727
"@repo/typescript-config": "workspace:*",
28-
"@types/react": "^19.1.0",
29-
"@types/react-dom": "^19.1.1",
30-
"@vitejs/plugin-react": "^4.3.4",
28+
"@types/react": "^19.1.4",
29+
"@types/react-dom": "^19.1.5",
30+
"@vitejs/plugin-react": "^4.4.1",
3131
"typescript": "^5.8.3",
32-
"vite": "^6.2.5"
32+
"vite": "^6.3.5"
3333
}
3434
}

lib/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,21 @@
3434
"devDependencies": {
3535
"@repo/eslint-config": "workspace:*",
3636
"@repo/typescript-config": "workspace:*",
37-
"@types/node": "^22.14.0",
38-
"@vitest/coverage-v8": "^3.1.1",
39-
"docx": "^9.3.0",
37+
"@types/node": "^22.15.19",
38+
"@vitest/coverage-v8": "^3.1.3",
39+
"docx": "^9.5.0",
4040
"esbuild-plugin-rdi": "^0.0.0",
41-
"jsdom": "^26.0.0",
41+
"jsdom": "^26.1.0",
4242
"remark-gfm": "^4.0.1",
4343
"remark-parse": "^11.0.0",
44-
"tsup": "^8.4.0",
44+
"tsup": "^8.5.0",
4545
"typescript": "^5.8.3",
4646
"unified": "^11.0.5",
4747
"vite-tsconfig-paths": "^5.1.4",
48-
"vitest": "^3.1.1"
48+
"vitest": "^3.1.3"
4949
},
5050
"dependencies": {
51-
"@m2d/core": "^0.0.4"
51+
"@m2d/core": "^1.0.1"
5252
},
5353
"peerDependencies": {
5454
"docx": "^9.3.0"

lib/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const emojiPlugin: (options?: IEmojiPluginOptions) => IPlugin = options =
2727
* @param node - The MDAST node being processed.
2828
* @returns An empty array since no new nodes are being added.
2929
*/
30-
inline: async (_docx, node) => {
30+
inline: (_docx, node) => {
3131
if (node.type === "text") {
3232
node.value = node.value.replace(
3333
/:[a-z0-9_+-]+:/g,

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
"format"
1919
],
2020
"devDependencies": {
21-
"@changesets/cli": "^2.28.1",
21+
"@changesets/cli": "^2.29.4",
2222
"@repo/typescript-config": "workspace:*",
23-
"@types/node": "^22.14.0",
23+
"@types/node": "^22.15.19",
2424
"enquirer": "^2.4.1",
2525
"prettier": "^3.5.3",
26-
"turbo": "^2.5.0"
26+
"turbo": "^2.5.3"
2727
},
2828
"packageManager": "pnpm@9.15.0",
2929
"engines": {

packages/eslint-config/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
"type": "module",
55
"private": true,
66
"devDependencies": {
7-
"@next/eslint-plugin-next": "^15.2.4",
8-
"@typescript-eslint/eslint-plugin": "^8.29.1",
9-
"@typescript-eslint/parser": "^8.29.1",
10-
"eslint": "^9.24.0",
11-
"eslint-config-prettier": "^10.1.1",
7+
"@next/eslint-plugin-next": "^15.3.2",
8+
"@typescript-eslint/eslint-plugin": "^8.32.1",
9+
"@typescript-eslint/parser": "^8.32.1",
10+
"eslint": "^9.27.0",
11+
"eslint-config-prettier": "^10.1.5",
1212
"eslint-plugin-only-warn": "^1.1.0",
1313
"eslint-plugin-react": "^7.37.5",
1414
"eslint-plugin-react-hooks": "^5.2.0",
15-
"eslint-plugin-turbo": "^2.5.0",
16-
"globals": "^16.0.0",
15+
"eslint-plugin-turbo": "^2.5.3",
16+
"globals": "^16.1.0",
1717
"typescript": "^5.8.3",
18-
"typescript-eslint": "^8.29.1"
18+
"typescript-eslint": "^8.32.1"
1919
}
2020
}

packages/shared/package.json

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,29 +23,29 @@
2323
"@repo/scripts": "workspace:*",
2424
"@repo/typescript-config": "workspace:*",
2525
"@testing-library/react": "^16.3.0",
26-
"@types/node": "^22.14.0",
27-
"@types/react": "^19.1.0",
28-
"@types/react-dom": "^19.1.1",
29-
"@vitejs/plugin-react": "^4.3.4",
30-
"@vitest/coverage-v8": "^3.1.1",
26+
"@types/node": "^22.15.19",
27+
"@types/react": "^19.1.4",
28+
"@types/react-dom": "^19.1.5",
29+
"@vitejs/plugin-react": "^4.4.1",
30+
"@vitest/coverage-v8": "^3.1.3",
3131
"esbuild-plugin-rdi": "^0.0.0",
3232
"esbuild-plugin-react18": "^0.2.6",
3333
"esbuild-plugin-react18-css": "^0.0.4",
34-
"jsdom": "^26.0.0",
34+
"jsdom": "^26.1.0",
3535
"react": "^19.1.0",
3636
"react-dom": "^19.1.0",
37-
"tsup": "^8.4.0",
37+
"tsup": "^8.5.0",
3838
"typescript": "^5.8.3",
3939
"vite-tsconfig-paths": "^5.1.4",
40-
"vitest": "^3.1.1"
40+
"vitest": "^3.1.3"
4141
},
4242
"dependencies": {
43-
"@m2d/core": "^0.0.4",
43+
"@m2d/core": "^1.0.1",
4444
"@m2d/emoji": "workspace:*",
4545
"@mayank1513/fork-me": "^2.1.3",
4646
"@repo/scripts": "workspace:*",
4747
"esbuild-raw-plugin": "^0.2.0",
48-
"mdast2docx": "0.4.0",
48+
"mdast2docx": "0.4.3",
4949
"nextjs-darkmode": "^1.0.10",
5050
"nextjs-themes": "^4.0.6",
5151
"r18gs": "^3.0.1",
@@ -55,6 +55,7 @@
5555
"remark-gfm": "^4.0.1",
5656
"remark-math": "^6.0.0",
5757
"remark-parse": "^11.0.0",
58+
"typingfx": "^1.1.1",
5859
"unified": "^11.0.5",
5960
"unist-util-remove-position": "^5.0.0"
6061
}

packages/shared/src/client/demo/demo.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@ import {
2626
/** React live demo */
2727
export function Demo() {
2828
const [loading, setLoading] = useState(false);
29-
const mdastProcessor = unified()
30-
.use(remarkParse)
31-
.use(remarkGfm)
32-
.use(remarkFrontmatter)
33-
.use(remarkMath);
29+
const mdastProcessor = unified().use(remarkParse).use([remarkGfm, remarkFrontmatter, remarkMath]);
3430

3531
const mdast = mdastProcessor.parse(md);
3632

@@ -55,6 +51,7 @@ export function Demo() {
5551
tablePlugin(),
5652
listPlugin(),
5753
mathPlugin(),
54+
// @ts-expect-error -- WIP
5855
emojiPlugin(),
5956
imagePlugin(),
6057
],

0 commit comments

Comments
 (0)