Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy authored Jan 24, 2024
2 parents 0d757a5 + 53006c4 commit 7b976cc
Show file tree
Hide file tree
Showing 14 changed files with 813 additions and 787 deletions.
8 changes: 4 additions & 4 deletions e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
"dependencies": {
"@vuepress/bundler-vite": "workspace:*",
"@vuepress/bundler-webpack": "workspace:*",
"sass": "^1.69.5",
"sass-loader": "^13.3.3",
"vue": "^3.4.0",
"sass": "^1.70.0",
"sass-loader": "^14.0.0",
"vue": "^3.4.15",
"vuepress": "workspace:*"
},
"devDependencies": {
"anywhere": "^1.6.0",
"cypress": "^13.6.2",
"cypress": "^13.6.3",
"process": "^0.11.10",
"start-server-and-test": "^2.0.3"
}
Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,30 +25,30 @@
},
"prettier": "prettier-config-vuepress",
"devDependencies": {
"@commitlint/cli": "^18.4.3",
"@commitlint/config-conventional": "^18.4.3",
"@types/node": "^20.10.5",
"@commitlint/cli": "^18.5.0",
"@commitlint/config-conventional": "^18.5.0",
"@types/node": "^20.11.6",
"@types/webpack-env": "^1.18.4",
"@vitest/coverage-istanbul": "^1.1.0",
"bumpp": "^9.2.1",
"@vitest/coverage-istanbul": "^1.2.1",
"bumpp": "^9.3.0",
"conventional-changelog-cli": "^4.1.0",
"eslint": "^8.56.0",
"eslint-config-vuepress": "^4.10.0",
"eslint-config-vuepress-typescript": "^4.10.0",
"eslint-plugin-cypress": "^2.15.1",
"husky": "^8.0.3",
"lint-staged": "^15.2.0",
"prettier": "^3.1.1",
"prettier": "^3.2.4",
"prettier-config-vuepress": "^4.4.0",
"rimraf": "^5.0.5",
"sort-package-json": "^2.6.0",
"tsconfig-vuepress": "^4.5.0",
"tsup": "^8.0.1",
"typescript": "^5.3.3",
"vite": "~5.0.10",
"vitest": "^1.1.0"
"vite": "~5.0.12",
"vitest": "^1.2.1"
},
"packageManager": "pnpm@8.13.1",
"packageManager": "pnpm@8.14.3",
"engines": {
"node": ">=18.16.0"
}
Expand Down
12 changes: 6 additions & 6 deletions packages/bundler-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,18 @@
"clean": "rimraf dist"
},
"dependencies": {
"@vitejs/plugin-vue": "^5.0.0",
"@vitejs/plugin-vue": "^5.0.3",
"@vuepress/client": "workspace:*",
"@vuepress/core": "workspace:*",
"@vuepress/shared": "workspace:*",
"@vuepress/utils": "workspace:*",
"autoprefixer": "^10.4.16",
"autoprefixer": "^10.4.17",
"connect-history-api-fallback": "^2.0.0",
"postcss": "^8.4.32",
"postcss": "^8.4.33",
"postcss-load-config": "^5.0.2",
"rollup": "^4.9.1",
"vite": "~5.0.10",
"vue": "^3.4.0",
"rollup": "^4.9.6",
"vite": "~5.0.12",
"vue": "^3.4.15",
"vue-router": "^4.2.5"
},
"publishConfig": {
Expand Down
20 changes: 10 additions & 10 deletions packages/bundler-webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,20 @@
"@vuepress/core": "workspace:*",
"@vuepress/shared": "workspace:*",
"@vuepress/utils": "workspace:*",
"autoprefixer": "^10.4.16",
"autoprefixer": "^10.4.17",
"chokidar": "^3.5.3",
"copy-webpack-plugin": "^11.0.0",
"css-loader": "^6.8.1",
"esbuild-loader": "~4.0.2",
"copy-webpack-plugin": "^12.0.2",
"css-loader": "^6.9.1",
"esbuild-loader": "~4.0.3",
"express": "^4.18.2",
"html-webpack-plugin": "^5.6.0",
"mini-css-extract-plugin": "^2.7.6",
"postcss": "^8.4.32",
"mini-css-extract-plugin": "^2.7.7",
"postcss": "^8.4.33",
"postcss-csso": "^6.0.1",
"postcss-loader": "^7.3.3",
"style-loader": "^3.3.3",
"vue": "^3.4.0",
"vue-loader": "^17.4.0",
"postcss-loader": "^8.0.0",
"style-loader": "^3.3.4",
"vue": "^3.4.15",
"vue-loader": "^17.4.2",
"vue-router": "^4.2.5",
"webpack": "^5.89.0",
"webpack-chain": "^6.5.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"cac": "^6.7.14",
"chokidar": "^3.5.3",
"envinfo": "^7.11.0",
"esbuild": "~0.19.10"
"esbuild": "~0.19.12"
},
"devDependencies": {
"@types/envinfo": "^7.8.3"
Expand Down
4 changes: 2 additions & 2 deletions packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
"dependencies": {
"@vue/devtools-api": "^6.5.1",
"@vuepress/shared": "workspace:*",
"@vueuse/core": "^10.7.0",
"vue": "^3.4.0",
"@vueuse/core": "^10.7.2",
"vue": "^3.4.15",
"vue-router": "^4.2.5"
},
"publishConfig": {
Expand Down
9 changes: 2 additions & 7 deletions packages/client/src/resolvers.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
import {
dedupeHead,
isArray,
isString,
resolveLocalePath,
} from '@vuepress/shared'
import { dedupeHead, isString, resolveLocalePath } from '@vuepress/shared'
import type { Component } from 'vue'
import { reactive } from 'vue'
import type {
Expand Down Expand Up @@ -67,7 +62,7 @@ export const resolvers = reactive({
? frontmatter.description
: siteLocale.description
const head: PageHead = [
...(isArray(frontmatter.head) ? frontmatter.head : []),
...(Array.isArray(frontmatter.head) ? frontmatter.head : []),
...siteLocale.head,
['title', {}, headTitle],
['meta', { name: 'description', content: description }],
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@vuepress/markdown": "workspace:*",
"@vuepress/shared": "workspace:*",
"@vuepress/utils": "workspace:*",
"vue": "^3.4.0"
"vue": "^3.4.15"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 1 addition & 2 deletions packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@
"clean": "rimraf dist"
},
"dependencies": {
"@mdit-vue/types": "^2.0.0",
"@vue/shared": "^3.4.0"
"@mdit-vue/types": "^2.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 1 addition & 3 deletions packages/shared/src/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// eslint-disable-next-line vue/prefer-import-from-vue
export { isArray, isFunction, isString } from '@vue/shared'

export * from './dedupeHead.js'
export * from './ensureLeadingSlash.js'
export * from './ensureEndingSlash.js'
Expand All @@ -15,3 +12,4 @@ export * from './removeLeadingSlash.js'
export * from './resolveHeadIdentifier.js'
export * from './resolveLocalePath.js'
export * from './resolveRoutePathFromUrl.js'
export * from './typeGuards.js'
11 changes: 11 additions & 0 deletions packages/shared/src/utils/typeGuards.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/**
* Check if a value is a function
*/
// eslint-disable-next-line @typescript-eslint/ban-types
export const isFunction = (val: unknown): val is Function =>
typeof val === 'function'

/**
* Check if a value is a string
*/
export const isString = (val: unknown): val is string => typeof val === 'string'
2 changes: 1 addition & 1 deletion packages/vuepress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"@vuepress/markdown": "workspace:*",
"@vuepress/shared": "workspace:*",
"@vuepress/utils": "workspace:*",
"vue": "^3.4.0"
"vue": "^3.4.15"
},
"peerDependencies": {
"@vuepress/bundler-vite": "workspace:*",
Expand Down
Loading

0 comments on commit 7b976cc

Please sign in to comment.