-
Notifications
You must be signed in to change notification settings - Fork 337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix memory leak in SSR docs #3386
Changes from 11 commits
2fb7ffe
ba378cc
997ed3b
e4e055e
370bbc2
ecb8dea
5b6318d
a8153b9
e020d9d
9f16cde
4e8f491
2fa0a8c
bce8919
1d9cfdc
053b086
78e2034
8f7ea1f
98dcabc
194e444
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,10 +6,10 @@ | |
"release": "tsx release-script/release-script.ts" | ||
}, | ||
"devDependencies": { | ||
"tsx": "^3.5.0", | ||
"tsx": "^3.12.1", | ||
"inquirer": "^9.0.0", | ||
"typescript": "^4.3.2", | ||
"chalk": "^5.0.1" | ||
"typescript": "4.7.4", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe 5? |
||
"chalk": "^5.2.0" | ||
}, | ||
"exports": { | ||
"./execute": "./execute/index.ts" | ||
|
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
export const useMarkdownProvideKey = 'vuestic:markdown' | ||
import { InjectionKey } from "vue" | ||
import { marked } from 'marked'; | ||
|
||
export const useMarkdownProvideKey = 'vuestic:markdown' as unknown as InjectionKey<ReturnType<typeof marked>> | ||
|
||
export const useMarkdownIt = () => { | ||
return inject(useMarkdownProvideKey) | ||
const parse = (markdown: string) => { | ||
return (marked(markdown)).toString() | ||
} | ||
|
||
return { parse } | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,9 +29,9 @@ | |
"dependencies": { | ||
"@nuxt/kit": "^3.0.0", | ||
"chokidar": "*", | ||
"nuxt": "^3.0.0", | ||
"nuxt": "^3.1.1", | ||
"pathe": "^0.3.5", | ||
"vuestic-ui": "^1.4.10" | ||
"vuestic-ui": "1.6.4" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably shouldn't be 1.6.4. |
||
}, | ||
"devDependencies": { | ||
"@nuxt/module-builder": "latest", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,21 +31,21 @@ | |
"vue": "*" | ||
}, | ||
"devDependencies": { | ||
"@vitejs/plugin-vue": "^1.3.0", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can:
|
||
"@vitejs/plugin-vue": "^4.1.0", | ||
"@vue/test-utils": "^2.0.2", | ||
"lodash": "^4.17.21", | ||
"nuxt": "3.0.0", | ||
"nuxt": "^3.1.1", | ||
"rollup-plugin-analyzer": "^4.0.0", | ||
"sass": "^1.54.4", | ||
"serve": "^12.0.0", | ||
"sass": "^1.57.1", | ||
"serve": "^14.2.0", | ||
"ts-loader": "^9.3.0", | ||
"ts-node": "^10.8.1", | ||
"typescript": "^4.3.2", | ||
"typescript": "4.7.4", | ||
"vite": "^4.2.1", | ||
"vitest": "*", | ||
"vue-bundle-renderer": "0.4.1", | ||
"vue-tsc": "^1.2.0", | ||
"webpack": "5", | ||
"webpack": "^5.4.1", | ||
"webpack-cli": "^4.9.2", | ||
"when-dependencies-installed": "^1.0.1" | ||
}, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably ^1.6.4?