Skip to content

chore: fix dependencies audit #2690

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

Closed
wants to merge 2 commits into from
Closed
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
21 changes: 10 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,28 +45,27 @@
]
},
"devDependencies": {
"@commitlint/cli": "^8.2.0",
"@commitlint/config-conventional": "^8.2.0",
"@types/escape-html": "^0.0.20",
"@types/fs-extra": "^5.0.4",
"@types/globby": "^9.1.0",
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"@types/escape-html": "^1.0.0",
"@types/fs-extra": "^9.0.2",
"@types/hash-sum": "^1.0.0",
"@types/lru-cache": "^5.1.0",
"@types/node": "^12.7.5",
"@types/semver": "^6.0.0",
"@typescript-eslint/eslint-plugin": "^2.9.0",
"@typescript-eslint/parser": "^2.9.0",
"@typescript-eslint/eslint-plugin": "^4.6.0",
"@typescript-eslint/parser": "^4.6.0",
"all-contributors-cli": "^6.9.1",
"conventional-changelog-cli": "^2.0.23",
"eslint": "^6.7.1",
"eslint": "^7.12.1",
"eslint-plugin-jest": "^23.0.5",
"eslint-plugin-vue-libs": "^4.0.0",
"husky": "^3.0.5",
"husky": "^4.3.0",
"inquirer": "^7.0.0",
"lerna": "3.16.4",
"lerna": "3.22.1",
"lint-staged": "^9.3.0",
"minimist": "^1.2.0",
"sort-package-json": "^1.24.0",
"typescript": "^3.6.3"
"typescript": "^3.8.0"
}
}
22 changes: 14 additions & 8 deletions packages/@vuepress/core/lib/node/webpack/createBaseConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,17 +249,23 @@ module.exports = function createBaseConfig (context, isServer) {
rule.use('css-loader')
.loader('css-loader')
.options({
modules,
localIdentName: `[local]_[hash:base64:8]`,
modules: {
auto: modules,
exportOnlyLocals: isServer,
localIdentName: `[local]_[hash:base64:8]`
},
importLoaders: 1,
sourceMap: !isProd,
exportOnlyLocals: isServer
sourceMap: !isProd
})

rule.use('postcss-loader').loader('postcss-loader').options(Object.assign({
plugins: [require('autoprefixer')],
sourceMap: !isProd
}, siteConfig.postcss))
rule.use('postcss-loader')
.loader('postcss-loader')
.options({
postcssOptions: Object.assign({
plugins: [require('autoprefixer')],
sourceMap: !isProd
}, siteConfig.postcss)
})

if (loader) {
rule.use(loader).loader(loader).options(options)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ module.exports = function createServerConfig (ctx) {
if (fs.existsSync(publicDir)) {
config
.plugin('copy')
.use(CopyPlugin, [[
{ from: publicDir, to: outDir }
]])
.use(CopyPlugin, [{
patterns: [{ from: publicDir, to: outDir }]
}])
}

if (!env.isDebug) {
Expand Down
43 changes: 22 additions & 21 deletions packages/@vuepress/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
},
"license": "MIT",
"author": "Evan You",
"maintainers": [
{
"name": "ULIVZ",
"email": "[email protected]"
}
],
"main": "lib/index.js",
"browserslist": [
">1%"
Expand All @@ -30,25 +36,26 @@
"@vuepress/plugin-last-updated": "1.7.1",
"@vuepress/plugin-register-components": "1.7.1",
"@vuepress/shared-utils": "1.7.1",
"autoprefixer": "^9.5.1",
"autoprefixer": "^10.0.1",
"babel-loader": "^8.0.4",
"cache-loader": "^3.0.0",
"chokidar": "^2.0.3",
"cache-loader": "^4.1.0",
"chokidar": "^3.4.3",
"connect-history-api-fallback": "^1.5.0",
"copy-webpack-plugin": "^5.0.2",
"copy-webpack-plugin": "^6.2.1",
"core-js": "^3.6.4",
"cross-spawn": "^6.0.5",
"css-loader": "^2.1.1",
"file-loader": "^3.0.1",
"cross-spawn": "^7.0.3",
"css-loader": "^5.0.0",
"file-loader": "^6.2.0",
"js-yaml": "^3.13.1",
"lru-cache": "^5.1.1",
"mini-css-extract-plugin": "0.6.0",
"lru-cache": "^6.0.0",
"mini-css-extract-plugin": "1.2.1",
"optimize-css-assets-webpack-plugin": "^5.0.1",
"portfinder": "^1.0.13",
"postcss-loader": "^3.0.0",
"postcss-safe-parser": "^4.0.1",
"postcss": "^8.1.4",
"postcss-loader": "^4.0.4",
"postcss-safe-parser": "^5.0.2",
"toml": "^3.0.0",
"url-loader": "^1.0.1",
"url-loader": "^4.1.1",
"vue": "^2.6.10",
"vue-loader": "^15.7.1",
"vue-router": "^3.4.5",
Expand All @@ -60,18 +67,12 @@
"webpack-chain": "^6.0.0",
"webpack-dev-server": "^3.5.1",
"webpack-merge": "^4.1.2",
"webpackbar": "3.2.0"
"webpackbar": "4.0.0"
},
"engines": {
"node": ">=8.6"
"node": ">=10.13.0"
},
"publishConfig": {
"access": "public"
},
"maintainers": [
{
"name": "ULIVZ",
"email": "[email protected]"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@

exports[`link should render external links correctly 1`] = `
<p><a href="https://vuejs.org/" target="_blank" rel="noopener noreferrer">vue
<OutboundLink /></a></p>
<OutboundLink />
</a></p>
`;

exports[`link should render external links correctly 2`] = `
<p><a href="http://vuejs.org/" target="_blank" rel="noopener noreferrer">vue
<OutboundLink /></a></p>
<OutboundLink />
</a></p>
`;

exports[`link should render external links correctly 3`] = `
<p><a href="https://google.com" target="_blank" rel="noopener noreferrer">some <strong>link</strong> with <code>code</code>
<OutboundLink /></a></p>
<OutboundLink />
</a></p>
`;
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,19 @@

exports[`DropdownLink renders dropdown link. 1`] = `
<div class="dropdown-wrapper"><button type="button" aria-label="Learn More Select" class="dropdown-title"><span class="title">Learn More</span> <span class="arrow down"></span></button> <button type="button" aria-label="Learn More Select" class="mobile-dropdown-title"><span class="title">Learn More</span> <span class="arrow right"></span></button>
<ul class="nav-dropdown" style="display: none;" name="dropdown">
<li class="dropdown-item">
<!----> <a class="nav-link">
Guide
</a></li>
<li class="dropdown-item">
<!----> <a class="nav-link">
Config Reference
</a></li>
</ul>
<transition-stub name="dropdown">
<ul class="nav-dropdown" style="display: none;">
<li class="dropdown-item">
<!----> <a class="nav-link">
Guide
</a>
</li>
<li class="dropdown-item">
<!----> <a class="nav-link">
Config Reference
</a>
</li>
</ul>
</transition-stub>
</div>
`;
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
exports[`NavLink renders nav link with external link 1`] = `
<a href="http://vuejs.org/" target="_blank" rel="noopener noreferrer" class="nav-link external">
Vue
<p class="component outbound-link">outbound-link</p></a>
<p class="component outbound-link">outbound-link</p>
</a>
`;

exports[`NavLink renders nav link with internal link 1`] = `
Expand Down
Loading