Skip to content

Commit

Permalink
fix(deps): update all non-major dependencies (#13059)
Browse files Browse the repository at this point in the history
Co-authored-by: bluwy <[email protected]>
  • Loading branch information
renovate[bot] and bluwy authored Jun 8, 2023
1 parent 54ab3c8 commit 123ef4c
Show file tree
Hide file tree
Showing 40 changed files with 1,245 additions and 1,298 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:

- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@cf4fe8759a45edd76ed6215da3529d2dbd2a3c68 # v36.0.9
uses: tj-actions/changed-files@07e0177b72d3640efced741cae32f9861eee1367 # v36.0.18
with:
files: |
docs/**
Expand Down
40 changes: 20 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,56 +41,56 @@
"ci-docs": "run-s build docs-build"
},
"devDependencies": {
"@babel/types": "^7.21.4",
"@microsoft/api-extractor": "^7.34.4",
"@rollup/plugin-typescript": "^11.1.0",
"@types/babel__core": "^7.20.0",
"@babel/types": "^7.22.4",
"@microsoft/api-extractor": "^7.35.2",
"@rollup/plugin-typescript": "^11.1.1",
"@types/babel__core": "^7.20.1",
"@types/babel__preset-env": "^7.9.2",
"@types/babel__standalone": "^7.1.4",
"@types/convert-source-map": "^2.0.0",
"@types/cross-spawn": "^6.0.2",
"@types/debug": "^4.1.7",
"@types/debug": "^4.1.8",
"@types/estree": "^1.0.1",
"@types/etag": "^1.8.1",
"@types/fs-extra": "^11.0.1",
"@types/json-stable-stringify": "^1.0.34",
"@types/less": "^3.0.3",
"@types/micromatch": "^4.0.2",
"@types/node": "^18.15.12",
"@types/node": "^18.16.16",
"@types/picomatch": "^2.3.0",
"@types/resolve": "^1.20.2",
"@types/sass": "~1.43.1",
"@types/stylus": "^0.48.38",
"@types/ws": "^8.5.4",
"@typescript-eslint/eslint-plugin": "^5.59.0",
"@typescript-eslint/parser": "^5.59.0",
"@typescript-eslint/eslint-plugin": "^5.59.9",
"@typescript-eslint/parser": "^5.59.9",
"@vitejs/release-scripts": "^1.2.0",
"conventional-changelog-cli": "^2.2.2",
"eslint": "^8.38.0",
"eslint-define-config": "^1.18.0",
"eslint": "^8.42.0",
"eslint-define-config": "^1.20.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-n": "^15.7.0",
"eslint-plugin-regexp": "^1.14.0",
"eslint-plugin-regexp": "^1.15.0",
"execa": "^7.1.1",
"fast-glob": "^3.2.12",
"fs-extra": "^11.1.1",
"lint-staged": "^13.2.1",
"lint-staged": "^13.2.2",
"npm-run-all": "^4.1.5",
"picocolors": "^1.0.0",
"playwright-chromium": "^1.32.3",
"prettier": "2.8.7",
"playwright-chromium": "^1.34.3",
"prettier": "2.8.8",
"resolve": "^1.22.2",
"rimraf": "^5.0.0",
"rimraf": "^5.0.1",
"rollup": "^3.21.0",
"simple-git-hooks": "^2.8.1",
"tslib": "^2.5.0",
"tsx": "^3.12.6",
"tslib": "^2.5.3",
"tsx": "^3.12.7",
"typescript": "^5.0.2",
"unbuild": "^1.2.1",
"vite": "workspace:*",
"vitepress": "1.0.0-beta.1",
"vitest": "^0.30.1",
"vue": "^3.2.47"
"vitest": "^0.32.0",
"vue": "^3.3.4"
},
"simple-git-hooks": {
"pre-commit": "pnpm exec lint-staged --concurrent false"
Expand All @@ -109,7 +109,7 @@
"eslint --cache --fix"
]
},
"packageManager": "pnpm@8.3.1",
"packageManager": "pnpm@8.6.1",
"pnpm": {
"overrides": {
"vite": "workspace:*"
Expand Down
2 changes: 1 addition & 1 deletion packages/create-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@types/minimist": "^1.2.2",
"@types/prompts": "^2.4.4",
"cross-spawn": "^7.0.3",
"kolorist": "^1.7.0",
"kolorist": "^1.8.0",
"minimist": "^1.2.8",
"prompts": "^2.4.2"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/create-vite/template-lit-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"preview": "vite preview"
},
"dependencies": {
"lit": "^2.7.2"
"lit": "^2.7.5"
},
"devDependencies": {
"typescript": "^5.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/create-vite/template-lit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"preview": "vite preview"
},
"dependencies": {
"lit": "^2.7.2"
"lit": "^2.7.5"
},
"devDependencies": {
"vite": "^4.3.9"
Expand Down
2 changes: 1 addition & 1 deletion packages/create-vite/template-preact-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"preview": "vite preview"
},
"dependencies": {
"preact": "^10.13.2"
"preact": "^10.15.1"
},
"devDependencies": {
"@preact/preset-vite": "^2.5.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/create-vite/template-preact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"preview": "vite preview"
},
"dependencies": {
"preact": "^10.13.2"
"preact": "^10.15.1"
},
"devDependencies": {
"@preact/preset-vite": "^2.5.0",
Expand Down
12 changes: 6 additions & 6 deletions packages/create-vite/template-react-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/react": "^18.0.37",
"@types/react-dom": "^18.0.11",
"@typescript-eslint/eslint-plugin": "^5.59.0",
"@typescript-eslint/parser": "^5.59.0",
"@types/react": "^18.2.9",
"@types/react-dom": "^18.2.4",
"@typescript-eslint/eslint-plugin": "^5.59.9",
"@typescript-eslint/parser": "^5.59.9",
"@vitejs/plugin-react": "^4.0.0",
"eslint": "^8.38.0",
"eslint": "^8.42.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.3.4",
"eslint-plugin-react-refresh": "^0.4.1",
"typescript": "^5.0.2",
"vite": "^4.3.9"
}
Expand Down
8 changes: 4 additions & 4 deletions packages/create-vite/template-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/react": "^18.0.37",
"@types/react-dom": "^18.0.11",
"@types/react": "^18.2.9",
"@types/react-dom": "^18.2.4",
"@vitejs/plugin-react": "^4.0.0",
"eslint": "^8.38.0",
"eslint": "^8.42.0",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.3.4",
"eslint-plugin-react-refresh": "^0.4.1",
"vite": "^4.3.9"
}
}
8 changes: 4 additions & 4 deletions packages/create-vite/template-svelte-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
"check": "svelte-check --tsconfig ./tsconfig.json"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^2.0.4",
"@sveltejs/vite-plugin-svelte": "^2.4.1",
"@tsconfig/svelte": "^4.0.1",
"svelte": "^3.58.0",
"svelte-check": "^3.3.1",
"tslib": "^2.5.0",
"svelte": "^3.59.1",
"svelte-check": "^3.4.3",
"tslib": "^2.5.3",
"typescript": "^5.0.2",
"vite": "^4.3.9"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/create-vite/template-svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"preview": "vite preview"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^2.0.4",
"svelte": "^3.58.0",
"@sveltejs/vite-plugin-svelte": "^2.4.1",
"svelte": "^3.59.1",
"vite": "^4.3.9"
}
}
6 changes: 3 additions & 3 deletions packages/create-vite/template-vue-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
"preview": "vite preview"
},
"dependencies": {
"vue": "^3.2.47"
"vue": "^3.3.4"
},
"devDependencies": {
"@vitejs/plugin-vue": "^4.1.0",
"@vitejs/plugin-vue": "^4.2.3",
"typescript": "^5.0.2",
"vite": "^4.3.9",
"vue-tsc": "^1.4.2"
"vue-tsc": "^1.6.5"
}
}
4 changes: 2 additions & 2 deletions packages/create-vite/template-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"preview": "vite preview"
},
"dependencies": {
"vue": "^3.2.47"
"vue": "^3.3.4"
},
"devDependencies": {
"@vitejs/plugin-vue": "^4.1.0",
"@vitejs/plugin-vue": "^4.2.3",
"vite": "^4.3.9"
}
}
8 changes: 4 additions & 4 deletions packages/plugin-legacy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@
},
"homepage": "https://github.com/vitejs/vite/tree/main/packages/plugin-legacy#readme",
"dependencies": {
"@babel/core": "^7.21.4",
"@babel/preset-env": "^7.21.4",
"browserslist": "^4.21.5",
"core-js": "^3.30.1",
"@babel/core": "^7.22.1",
"@babel/preset-env": "^7.22.4",
"browserslist": "^4.21.7",
"core-js": "^3.30.2",
"magic-string": "^0.30.0",
"regenerator-runtime": "^0.13.11",
"systemjs": "^6.14.1"
Expand Down
20 changes: 10 additions & 10 deletions packages/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,23 +67,23 @@
"//": "READ CONTRIBUTING.md to understand what to put under deps vs. devDeps!",
"dependencies": {
"esbuild": "^0.17.5",
"postcss": "^8.4.23",
"postcss": "^8.4.24",
"rollup": "^3.21.0"
},
"optionalDependencies": {
"fsevents": "~2.3.2"
},
"devDependencies": {
"@ampproject/remapping": "^2.2.1",
"@babel/parser": "^7.21.4",
"@babel/types": "^7.21.4",
"@babel/parser": "^7.22.4",
"@babel/types": "^7.22.4",
"@jridgewell/trace-mapping": "^0.3.18",
"@rollup/plugin-alias": "^4.0.4",
"@rollup/plugin-commonjs": "^25.0.0",
"@rollup/plugin-dynamic-import-vars": "^2.0.3",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "15.0.2",
"@rollup/plugin-typescript": "^11.1.0",
"@rollup/plugin-node-resolve": "15.1.0",
"@rollup/plugin-typescript": "^11.1.1",
"@rollup/pluginutils": "^5.0.2",
"@types/pnpapi": "^0.0.2",
"@types/escape-html": "^1.0.2",
Expand All @@ -98,7 +98,7 @@
"cross-spawn": "^7.0.3",
"debug": "^4.3.4",
"dep-types": "link:./src/types",
"dotenv": "^16.0.3",
"dotenv": "^16.1.4",
"dotenv-expand": "^9.0.0",
"es-module-lexer": "^1.2.1",
"escape-html": "^1.0.3",
Expand All @@ -110,7 +110,7 @@
"launch-editor-middleware": "^2.6.0",
"magic-string": "^0.30.0",
"micromatch": "^4.0.5",
"mlly": "^1.2.0",
"mlly": "^1.3.0",
"mrmime": "^1.0.1",
"okie": "^1.0.1",
"open": "^8.4.2",
Expand All @@ -125,12 +125,12 @@
"rollup-plugin-license": "^3.0.1",
"sirv": "^2.0.3",
"source-map-support": "^0.5.21",
"strip-ansi": "^7.0.1",
"strip-ansi": "^7.1.0",
"strip-literal": "^1.0.1",
"tsconfck": "^2.1.1",
"tslib": "^2.5.0",
"tslib": "^2.5.3",
"types": "link:./types",
"ufo": "^1.1.1",
"ufo": "^1.1.2",
"ws": "^8.13.0"
},
"peerDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions playground/alias/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
},
"dependencies": {
"aliased-module": "file:./dir/module",
"vue": "^3.2.47",
"@vue/shared": "^3.2.47"
"vue": "^3.3.4",
"@vue/shared": "^3.3.4"
},
"devDependencies": {
"@vitejs/test-resolve-linked": "workspace:*"
Expand Down
31 changes: 12 additions & 19 deletions playground/assets/__tests__/assets.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,27 +145,20 @@ describe('css url() references', () => {

test('image-set with base64', async () => {
const imageSet = await getBg('.css-image-set-base64')
expect(imageSet).toMatch(
`-webkit-image-set(url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA0AgMAAACrwbOMAAADI2lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpS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CDdUTsweM0765M7np/OQwvF/A5aYOedDcKmo23zP5qsalovTfny9wL4xQyP18+KXedu5GAmx0G9pizrsrAJCOQsuovUPTIKIU/HzG/SPKczks97dnPODswXY5gBQDXxK72g3a0fURT5yoTY7nw5w6ksVcAzZq/C7mbcv+TO2rLZXYlJMzjtNjXBedN7IlBXuibtq3ph8W5vw1dkLNPrwSjKwWY89oXQf9xNgqaXruaWLulXK8cy5kvOvP3GwC4mWc/50wImj+xaLrmpFRugvPcUvPltQJMUr0cXcHzjpLrF82bAHBN1O+dFTjrHTmrdjMD5vER6B/LZLQmZ3y00sytBuC65LtvLeOMt+SM+q0AmMekNNbK17G3LHsnV4Ox1QLM4wNRy3gJe2LZ88FqMbWagL8CPe2sptpXQ0/L3lsOMGcW3Cv+O+hyF+svy9pjsveWA9z0tn8Afd7F2s9lbW01GVptwJxTHZfE3/Uj17SsOU7ddLRuYsDN8decDOyorFn1sVaAvyT7k8iZNt+dke++vJ0A8+CfMw+3mT8s39HtBviSgDs+b+64zF26HQHz+C/o+Xmfn5c5ul0BXyT7w/U5oTdlbs1GQGs/vgb9cd7fazr+L8AAD0zRYMSYHQAAAAAASUVORK5CYII=") 2x)`,
)
expect(imageSet).toContain('image-set(url("data:image/png;base64,')
})

test('image-set with multiple descriptor', async () => {
const imageSet = await getBg('.css-image-set-gradient')
expect(imageSet).toContain('image-set(url("data:image/png;base64,')
})

// TODO: not supported in chrome
// https://drafts.csswg.org/css-images-4/#image-set-notation
//
// test('image-set with multiple descriptor', async () => {
// const imageSet = await getBg('.css-image-set-gradient')
// expect(imageSet).toMatch(
// `-webkit-image-set(url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA0AgMAAACrwbOMAAADI2lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpu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EUBdDD/QSWmE7YYAogWNeAaMfaEuiD5HfAk9yIAwqYwIGRRvt8zkNdvckrzzcfjqDccdPIYnH1AJ4ywLs7m53Fhkcw0+DLDxZn0PCHQrrg2xWOCpS7m6bFAj/ZDLFY/AJbDDZ/WUzR4B84BRoURBeAo4Si0CBMFvBEGMBmExYbi0loACcBjQKhC3AUQVGaRjBhMxAsFlwQDLYFBA04EaAVEHSBoxAoPmkITBYDAovNhsAAEwINTggAINCFoyCg0CBgYoCAjQsIACCgcYKABhCgHAUClAYCTAMIsF2AAAACtBMIQAEB+jcggE9AAC+A/zyyZDSXstCbAAAAAElFTkSuQmCC") 1x, linear-gradient(#e66465, #9198e5) 2x)`
// )
// })
//
// test('image-set with multiple descriptor', async () => {
// const imageSet = await getBg('.css-image-set-multiple-descriptor')
// imageSet.split(', ').forEach((s) => {
// expect(s).toMatch(assetMatch)
// })
// })
test('image-set with multiple descriptor', async () => {
const imageSet = await getBg('.css-image-set-multiple-descriptor')
imageSet.split(', ').forEach((s) => {
expect(s).toMatch(assetMatch)
})
})

test('relative in @import', async () => {
expect(await getBg('.css-url-relative-at-imported')).toMatch(assetMatch)
Expand Down
5 changes: 3 additions & 2 deletions playground/assets/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ <h2>CSS url references</h2>
CSS background image-set() (with multiple descriptor)
</span>
</div>
<div
<!-- image-set in style tags is not supported in Vite yet -->
<!-- <div
style="
background-image: -webkit-image-set(
'./nested/asset.png' type('image/png') 1x,
Expand All @@ -83,7 +84,7 @@ <h2>CSS url references</h2>
<span style="background: #fff">
CSS background image-set() (with multiple descriptor)
</span>
</div>
</div> -->
<div class="css-url-relative-at-imported">
<span style="background: #fff"
>CSS background (relative from @imported file in different dir)</span
Expand Down
4 changes: 2 additions & 2 deletions playground/backend-integration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"preview": "vite preview"
},
"devDependencies": {
"sass": "^1.62.0",
"tailwindcss": "^3.3.1",
"sass": "^1.63.2",
"tailwindcss": "^3.3.2",
"fast-glob": "^3.2.12"
}
}
Loading

0 comments on commit 123ef4c

Please sign in to comment.