Skip to content

Commit

Permalink
feat: bump to markdown-it 14
Browse files Browse the repository at this point in the history
BREAKING CHANGE: bump to markdown-it 14
  • Loading branch information
meteorlxy committed Dec 8, 2023
1 parent a801786 commit 522950f
Show file tree
Hide file tree
Showing 13 changed files with 1,487 additions and 1,096 deletions.
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,23 @@
},
"prettier": "@meteorlxy/prettier-config",
"devDependencies": {
"@commitlint/cli": "^18.4.2",
"@commitlint/config-conventional": "^18.4.2",
"@lerna-lite/cli": "^2.7.0",
"@lerna-lite/publish": "^2.7.0",
"@commitlint/cli": "^18.4.3",
"@commitlint/config-conventional": "^18.4.3",
"@lerna-lite/cli": "^3.1.0",
"@lerna-lite/publish": "^3.1.0",
"@meteorlxy/eslint-config-prettier": "^2.27.3",
"@meteorlxy/eslint-config-prettier-typescript": "^2.28.1",
"@meteorlxy/prettier-config": "^2.11.0",
"@meteorlxy/tsconfig": "^2.29.0",
"@vitest/coverage-istanbul": "1.0.0-beta.4",
"eslint": "^8.53.0",
"@vitest/coverage-istanbul": "1.0.2",
"eslint": "^8.55.0",
"husky": "^8.0.3",
"lint-staged": "^15.1.0",
"lint-staged": "^15.2.0",
"prettier": "^3.1.0",
"sort-package-json": "^2.6.0",
"typescript": "^5.2.2",
"typescript": "^5.3.3",
"unbuild": "^2.0.0",
"vitest": "1.0.0-beta.4"
"vitest": "1.0.2"
},
"packageManager": "pnpm@8.10.5"
"packageManager": "pnpm@8.11.0"
}
6 changes: 3 additions & 3 deletions packages/plugin-component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@
"test": "vitest"
},
"dependencies": {
"@types/markdown-it": "^13.0.6",
"markdown-it": "^13.0.2"
"@types/markdown-it": "^13.0.7",
"markdown-it": "^14.0.0"
},
"devDependencies": {
"@vue/shared": "^3.3.8"
"@vue/shared": "^3.3.11"
},
"publishConfig": {
"access": "public"
Expand Down
5 changes: 5 additions & 0 deletions packages/plugin-component/src/shim.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// TODO: markdown-it v14 is not typed correctly for now
declare module 'markdown-it/lib/common/html_blocks.mjs' {
const blockNames: string[];
export default blockNames;
}
2 changes: 1 addition & 1 deletion packages/plugin-component/src/tags.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import blockNames from 'markdown-it/lib/common/html_blocks.js';
import blockNames from 'markdown-it/lib/common/html_blocks.mjs';

/**
* List of block tags
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-frontmatter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
},
"dependencies": {
"@mdit-vue/types": "workspace:*",
"@types/markdown-it": "^13.0.6",
"@types/markdown-it": "^13.0.7",
"gray-matter": "^4.0.3",
"markdown-it": "^13.0.2"
"markdown-it": "^14.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-headers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
"dependencies": {
"@mdit-vue/shared": "workspace:*",
"@mdit-vue/types": "workspace:*",
"@types/markdown-it": "^13.0.6",
"markdown-it": "^13.0.2"
"@types/markdown-it": "^13.0.7",
"markdown-it": "^14.0.0"
},
"devDependencies": {
"markdown-it-anchor": "^8.6.7"
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-sfc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
},
"dependencies": {
"@mdit-vue/types": "workspace:*",
"@types/markdown-it": "^13.0.6",
"markdown-it": "^13.0.2"
"@types/markdown-it": "^13.0.7",
"markdown-it": "^14.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
6 changes: 3 additions & 3 deletions packages/plugin-title/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@
"dependencies": {
"@mdit-vue/shared": "workspace:*",
"@mdit-vue/types": "workspace:*",
"@types/markdown-it": "^13.0.6",
"markdown-it": "^13.0.2"
"@types/markdown-it": "^13.0.7",
"markdown-it": "^14.0.0"
},
"devDependencies": {
"@types/markdown-it-emoji": "^2.0.4",
"markdown-it-emoji": "^2.0.2"
"markdown-it-emoji": "^3.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
10 changes: 10 additions & 0 deletions packages/plugin-title/tests/shim.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// TODO: markdown-it-emoji v3 is not typed correctly for now
declare module 'markdown-it-emoji' {
import type { PluginSimple } from 'markdown-it';

const bare: PluginSimple;
const light: PluginSimple;
const full: PluginSimple;

export { bare, light, full };
}
2 changes: 1 addition & 1 deletion packages/plugin-title/tests/title-plugin.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { MarkdownItEnv } from '@mdit-vue/types';
import MarkdownIt from 'markdown-it';
import emojiPlugin from 'markdown-it-emoji';
import { full as emojiPlugin } from 'markdown-it-emoji';
import { describe, expect, it } from 'vitest';
import { titlePlugin } from '../src/index.js';

Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-toc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
"dependencies": {
"@mdit-vue/shared": "workspace:*",
"@mdit-vue/types": "workspace:*",
"@types/markdown-it": "^13.0.6",
"markdown-it": "^13.0.2"
"@types/markdown-it": "^13.0.7",
"markdown-it": "^14.0.0"
},
"devDependencies": {
"markdown-it-anchor": "^8.6.7"
Expand Down
4 changes: 2 additions & 2 deletions packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
},
"dependencies": {
"@mdit-vue/types": "workspace:*",
"@types/markdown-it": "^13.0.6",
"markdown-it": "^13.0.2"
"@types/markdown-it": "^13.0.7",
"markdown-it": "^14.0.0"
},
"publishConfig": {
"access": "public"
Expand Down

0 comments on commit 522950f

Please sign in to comment.