Skip to content

Commit ee3ff88

Browse files
AtofStrykerryanthemanuelcypress-bot[bot]jennifer-shehane
authored
chore: update vite to version 5 inside the monorepo (#29617)
* chore: update babel to latest in packages and update vite to version 5, vite related vue plugins to version 5, and svg plugin to v5 update vitejs react to v5 updated vite plugins updates unplugin-vue-components and unplugin-icons for vite remove vite-plugin-copmponents as it is the same thing as unplugin-vue-components update vue-i18n from beta package to released v9 get unplugin-vue-i18n to latest add @babel/types to no rewrite [run ci] fix typing errors [run ci] * update snapshot [run ci] * coerce type for compiled messages to bridge type compatibility between unplugin-vue-i18n and vue-i18n [run ci] * chore: update babel to latest in packages and update vite to version … (#29634) * fix vite * chore: updating v8 snapshot cache * chore: updating v8 snapshot cache * chore: updating v8 snapshot cache --------- Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com> * update other hard coded @babel/core * chore: updating v8 snapshot cache * chore: updating v8 snapshot cache --------- Co-authored-by: Ryan Manuel <[email protected]> Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com> Co-authored-by: Jennifer Shehane <[email protected]>
1 parent dfec1e7 commit ee3ff88

File tree

27 files changed

+1616
-1572
lines changed

27 files changed

+1616
-1572
lines changed

.yarnclean

-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ test
44
tests
55
powered-test
66

7-
# asset directories
8-
docs
9-
doc
107
# yaml package has a `doc` folder that we need
118
!yaml/**/doc/*
129
website

cli/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@
6464
"yauzl": "^2.10.0"
6565
},
6666
"devDependencies": {
67-
"@babel/cli": "7.13.0",
68-
"@babel/preset-env": "7.13.5",
67+
"@babel/cli": "7.24.5",
68+
"@babel/preset-env": "7.24.5",
6969
"@cypress/angular": "0.0.0-development",
7070
"@cypress/grep": "0.0.0-development",
7171
"@cypress/mount-utils": "0.0.0-development",

npm/react/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"devDependencies": {
1919
"@cypress/mount-utils": "0.0.0-development",
2020
"@types/semver": "7.5.0",
21-
"@vitejs/plugin-react": "4.0.0",
21+
"@vitejs/plugin-react": "4.3.0",
2222
"axios": "0.21.2",
2323
"cypress": "0.0.0-development",
2424
"prop-types": "15.7.2",
@@ -28,7 +28,7 @@
2828
"react-router-dom": "6.0.0-alpha.1",
2929
"semver": "^7.5.3",
3030
"typescript": "~5.4.5",
31-
"vite": "4.5.2",
31+
"vite": "5.2.11",
3232
"vite-plugin-require-transform": "1.0.12"
3333
},
3434
"peerDependencies": {

npm/vite-plugin-cypress-esm/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
},
1919
"devDependencies": {
2020
"@types/picomatch": "2.3.0",
21-
"@vitejs/plugin-react": "1.3.1",
21+
"@vitejs/plugin-react": "4.3.0",
2222
"react": "16.8.6",
2323
"react-dom": "16.8.6",
2424
"react-query": "3.39.3",
2525
"react-router": "6.10.0",
2626
"react-router-dom": "6.10.0",
27-
"vite": "4.5.2"
27+
"vite": "5.2.11"
2828
},
2929
"files": [
3030
"dist",

npm/vite-plugin-cypress-esm/tsconfig.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@
4646
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
4747
"esModuleInterop": true,
4848
/** Allows us to strip internal types sourced from webpack */
49-
"stripInternal": true
49+
"stripInternal": true,
50+
/* skips checking declaration types. we skip this because we have multiple versions of vite installed as dev dependencies */
51+
"skipLibCheck": true,
5052
},
5153
"include": ["src"],
5254
"exclude": ["node_modules", "*.js"]

npm/vue/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
},
1717
"devDependencies": {
1818
"@cypress/mount-utils": "0.0.0-development",
19-
"@vitejs/plugin-vue": "4.2.0",
19+
"@vitejs/plugin-vue": "5.0.4",
2020
"@vue/compiler-sfc": "3.2.47",
2121
"@vue/test-utils": "2.3.2",
2222
"axios": "0.21.2",
@@ -25,9 +25,9 @@
2525
"globby": "^11.0.1",
2626
"tailwindcss": "1.1.4",
2727
"typescript": "~5.4.5",
28-
"vite": "4.5.2",
28+
"vite": "5.2.11",
2929
"vue": "3.2.47",
30-
"vue-i18n": "9.0.0-rc.6",
30+
"vue-i18n": "9.13.1",
3131
"vue-router": "^4.0.0",
3232
"vue-tsc": "^2.0.19",
3333
"vuex": "^4.0.0"

npm/webpack-batteries-included-preprocessor/package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
"test": "mocha test/**/*.spec.* --timeout 4000"
99
},
1010
"dependencies": {
11-
"@babel/core": "^7.22.9",
12-
"@babel/plugin-transform-class-properties": "^7.22.5",
13-
"@babel/plugin-transform-object-rest-spread": "^7.22.5",
14-
"@babel/plugin-transform-runtime": "^7.22.9",
15-
"@babel/preset-env": "^7.22.9",
11+
"@babel/core": "^7.24.5",
12+
"@babel/plugin-transform-class-properties": "^7.24.1",
13+
"@babel/plugin-transform-object-rest-spread": "^7.24.5",
14+
"@babel/plugin-transform-runtime": "^7.24.3",
15+
"@babel/preset-env": "^7.24.5",
1616
"@babel/preset-react": "^7.22.5",
17-
"@babel/runtime": "^7.22.6",
17+
"@babel/runtime": "^7.24.5",
1818
"assert": "^2.0.0",
1919
"babel-loader": "^9.1.3",
2020
"babel-plugin-add-module-exports": "^1.0.2",

npm/webpack-preprocessor/__snapshots__/compilation.spec.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ Webpack Compilation Error
88
Module build failed (from ./node_modules/babel-loader/lib/index.js):
99
SyntaxError: <path>/_test-output/syntax_error_spec.js: Unexpected token (1:18)
1010
11-
[0m[31m[1m>[22m[39m[90m 1 |[39m describe([32m'fail'[39m[33m,[39m [33m-[39m[33m>[39m)[0m
12-
[0m [90m |[39m [31m[1m^[22m[39m[0m
13-
[0m [90m 2 |[39m[0m
11+
[0m[31m[1m>[22m[39m[90m 1 |[39m describe([32m'fail'[39m[33m,[39m [33m-[39m[33m>[39m)
12+
[90m |[39m [31m[1m^[22m[39m
13+
[90m 2 |[39m[0m
1414
`
1515

1616
exports['webpack preprocessor - e2e has less verbose "Module not found" error 1'] = `

npm/webpack-preprocessor/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
"lodash": "^4.17.20"
2626
},
2727
"devDependencies": {
28-
"@babel/core": "^7.22.9",
29-
"@babel/preset-env": "^7.22.9",
28+
"@babel/core": "^7.24.5",
29+
"@babel/preset-env": "^7.24.5",
3030
"@types/mocha": "9.0.0",
3131
"@types/webpack": "^4.41.12",
3232
"babel-loader": "^9.1.3",
@@ -84,4 +84,4 @@
8484
}
8585
}
8686
}
87-
}
87+
}

packages/app/cypress/e2e/top-nav.cy.ts

-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ describe('App Top Nav Workflows', () => {
6565
it('shows the current browser in the top nav browser list button', () => {
6666
cy.findByTestId('top-nav-active-browser-icon')
6767
.should('have.attr', 'src')
68-
.and('contain', 'chrome')
6968

7069
cy.findByTestId('top-nav-active-browser').should('contain', 'Chrome 1')
7170
})

packages/app/package.json

+11-11
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"@graphql-typed-document-node/core": "^3.1.0",
2929
"@headlessui/vue": "1.4.0",
3030
"@iconify-json/mdi": "1.1.63",
31-
"@intlify/unplugin-vue-i18n": "0.10.0",
31+
"@intlify/unplugin-vue-i18n": "4.0.0",
3232
"@packages/frontend-shared": "0.0.0-development",
3333
"@packages/telemetry": "0.0.0-development",
3434
"@percy/cypress": "^3.1.2",
@@ -37,9 +37,9 @@
3737
"@types/faker": "5.5.8",
3838
"@urql/core": "2.4.4",
3939
"@urql/vue": "0.6.2",
40-
"@vitejs/plugin-legacy": "4.0.3",
41-
"@vitejs/plugin-vue": "4.2.0",
42-
"@vitejs/plugin-vue-jsx": "3.0.1",
40+
"@vitejs/plugin-legacy": "5.4.0",
41+
"@vitejs/plugin-vue": "5.0.4",
42+
"@vitejs/plugin-vue-jsx": "3.1.0",
4343
"@vueuse/core": "7.2.2",
4444
"ansi-to-html": "0.6.14",
4545
"bluebird": "3.5.3",
@@ -64,14 +64,14 @@
6464
"pinia": "2.0.0-rc.14",
6565
"rollup-plugin-copy": "3.4.0",
6666
"rollup-plugin-polyfill-node": "^0.7.0",
67-
"unplugin-icons": "0.13.2",
68-
"unplugin-vue-components": "^0.24.1",
69-
"vite": "4.5.2",
70-
"vite-plugin-pages": "0.29.0",
71-
"vite-plugin-vue-layouts": "0.8.0",
72-
"vite-svg-loader": "4.0.0",
67+
"unplugin-icons": "0.19.0",
68+
"unplugin-vue-components": "^0.27.0",
69+
"vite": "5.2.11",
70+
"vite-plugin-pages": "0.32.1",
71+
"vite-plugin-vue-layouts": "0.11.0",
72+
"vite-svg-loader": "5.1.0",
7373
"vue": "3.2.47",
74-
"vue-i18n": "9.2.0-beta.7",
74+
"vue-i18n": "9.13.1",
7575
"vue-router": "4",
7676
"vue-tsc": "^2.0.19",
7777
"wonka": "^4.0.15"

packages/app/vite.config.mjs

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ export default makeConfig({
1717
'p-defer',
1818
'bluebird',
1919
'events',
20-
'@popperjs/core',
21-
'@opentelemetry/*',
22-
]
20+
'@popperjs/core',
21+
'@opentelemetry/*',
22+
],
2323
},
2424
}, {
2525
plugins: [

packages/config/package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
"test:clean": "find ./test/__fixtures__ -depth -name 'output.*' -type f -exec rm {} \\;"
1818
},
1919
"dependencies": {
20-
"@babel/core": "^7.22.9",
21-
"@babel/parser": "^7.22.7",
22-
"@babel/plugin-syntax-typescript": "^7.22.5",
23-
"@babel/plugin-transform-typescript": "^7.22.9",
24-
"@babel/traverse": "^7.22.8",
25-
"@babel/types": "^7.22.5",
20+
"@babel/core": "^7.24.5",
21+
"@babel/parser": "^7.24.5",
22+
"@babel/plugin-syntax-typescript": "^7.24.1",
23+
"@babel/plugin-transform-typescript": "^7.24.5",
24+
"@babel/traverse": "^7.24.5",
25+
"@babel/types": "^7.24.5",
2626
"check-more-types": "2.24.0",
2727
"common-tags": "1.8.0",
2828
"debug": "^4.3.4",

packages/data-context/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
"tslint": "tslint --config ../ts/tslint.json --project ."
1717
},
1818
"dependencies": {
19-
"@babel/code-frame": "7.8.3",
20-
"@babel/generator": "7.17.9",
21-
"@babel/parser": "7.13.0",
19+
"@babel/code-frame": "7.24.2",
20+
"@babel/generator": "7.24.5",
21+
"@babel/parser": "7.24.5",
2222
"@graphql-tools/batch-execute": "^8.4.6",
2323
"@packages/telemetry": "0.0.0-development",
2424
"@urql/core": "2.4.4",
@@ -57,7 +57,7 @@
5757
"wonka": "^4.0.15"
5858
},
5959
"devDependencies": {
60-
"@babel/types": "7.17.0",
60+
"@babel/types": "7.24.5",
6161
"@packages/config": "0.0.0-development",
6262
"@packages/errors": "0.0.0-development",
6363
"@packages/example": "0.0.0-development",

packages/driver/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"dependencies": {},
1515
"devDependencies": {
16-
"@babel/code-frame": "7.8.3",
16+
"@babel/code-frame": "7.24.2",
1717
"@cypress/sinon-chai": "2.9.1",
1818
"@cypress/unique-selector": "0.0.5",
1919
"@cypress/webpack-dev-server": "0.0.0-development",
@@ -82,7 +82,7 @@
8282
"unfetch": "4.1.0",
8383
"url-parse": "1.5.10",
8484
"vanilla-text-mask": "5.1.1",
85-
"vite": "4.5.2",
85+
"vite": "5.2.11",
8686
"webpack": "^5.88.2",
8787
"zone.js": "0.9.0"
8888
},

packages/frontend-shared/package.json

+7-8
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
"@urql/exchange-execute": "1.1.0",
3737
"@urql/exchange-graphcache": "4.3.6",
3838
"@urql/vue": "0.6.2",
39-
"@vitejs/plugin-vue": "4.2.0",
40-
"@vitejs/plugin-vue-jsx": "3.0.1",
39+
"@vitejs/plugin-vue": "5.0.4",
40+
"@vitejs/plugin-vue-jsx": "3.1.0",
4141
"@vue/compiler-core": "3.2.47",
4242
"@vue/compiler-dom": "3.2.47",
4343
"@vue/compiler-sfc": "3.2.47",
@@ -69,14 +69,13 @@
6969
"postcss": "^8.4.22",
7070
"shiki": "^0.9.12",
7171
"tailwindcss": "^3.3.1",
72-
"unplugin-icons": "0.13.2",
73-
"unplugin-vue-components": "^0.24.1",
74-
"vite": "4.5.2",
75-
"vite-plugin-components": "0.11.3",
76-
"vite-svg-loader": "4.0.0",
72+
"unplugin-icons": "0.19.0",
73+
"unplugin-vue-components": "^0.27.0",
74+
"vite": "5.2.11",
75+
"vite-svg-loader": "5.1.0",
7776
"vue": "3.2.47",
7877
"vue-eslint-parser": "7.11.0",
79-
"vue-i18n": "9.2.0-beta.7",
78+
"vue-i18n": "9.13.1",
8079
"vue-router": "4",
8180
"vue-toastification": "2.0.0-rc.1",
8281
"vue-tsc": "^2.0.19",

packages/frontend-shared/src/locales/i18n.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ export const VueI18n = createI18n()
1919
export function createI18n (opts = {}) {
2020
return _createI18n<MessageSchema, 'en-US'>({
2121
locale: 'en-US',
22-
messages: compiledMessages,
22+
/**
23+
* precompiled messages from unplugin-vue-i18n do not include explicit keys derived from
24+
* the filenames of the raw message sources, so it must be coerced.
25+
*/
26+
messages: compiledMessages as { 'en-US': MessageSchema },
2327
...opts,
2428
})
2529
}

packages/launchpad/package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"@cypress-design/vue-button": "^0.11.6",
2424
"@graphql-typed-document-node/core": "^3.1.0",
2525
"@headlessui/vue": "1.4.0",
26-
"@intlify/unplugin-vue-i18n": "0.10.0",
26+
"@intlify/unplugin-vue-i18n": "4.0.0",
2727
"@packages/frontend-shared": "0.0.0-development",
2828
"@packages/scaffold-config": "0.0.0-development",
2929
"@percy/cypress": "^3.1.2",
@@ -36,8 +36,8 @@
3636
"@urql/core": "2.4.4",
3737
"@urql/devtools": "2.0.3",
3838
"@urql/vue": "0.6.2",
39-
"@vitejs/plugin-vue": "4.2.0",
40-
"@vitejs/plugin-vue-jsx": "3.0.1",
39+
"@vitejs/plugin-vue": "5.0.4",
40+
"@vitejs/plugin-vue-jsx": "3.1.0",
4141
"@vue/compiler-core": "3.2.47",
4242
"@vue/compiler-dom": "3.2.47",
4343
"@vue/compiler-sfc": "3.2.47",
@@ -59,13 +59,13 @@
5959
"markdown-it": "13.0.1",
6060
"rollup-plugin-polyfill-node": "^0.7.0",
6161
"type-fest": "^2.3.4",
62-
"unplugin-vue-components": "0.24.1",
63-
"vite": "4.5.2",
62+
"unplugin-vue-components": "0.27.0",
63+
"vite": "5.2.11",
6464
"vite-plugin-optimize-persist": "0.1.2",
6565
"vite-plugin-package-config": "0.1.1",
66-
"vite-svg-loader": "4.0.0",
66+
"vite-svg-loader": "5.1.0",
6767
"vue": "3.2.47",
68-
"vue-i18n": "9.2.0-beta.7",
68+
"vue-i18n": "9.13.1",
6969
"vue-tsc": "^2.0.19",
7070
"vue3-file-selector": "^1.0.1",
7171
"wonka": "^4.0.15"

packages/server/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@
134134
"widest-line": "3.1.0"
135135
},
136136
"devDependencies": {
137-
"@babel/core": "7.23.2",
138-
"@babel/preset-env": "7.22.9",
137+
"@babel/core": "7.24.7",
138+
"@babel/preset-env": "7.24.5",
139139
"@cypress/debugging-proxy": "2.0.1",
140140
"@cypress/sinon-chai": "2.9.1",
141141
"@cypress/webpack-dev-server": "0.0.0-development",

packages/web-config/package.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
"name": "@packages/web-config",
33
"version": "0.0.0-development",
44
"devDependencies": {
5-
"@babel/core": "7.23.2",
5+
"@babel/core": "7.24.7",
66
"@babel/helper-define-map": "7.18.6",
7-
"@babel/plugin-proposal-decorators": "7.22.7",
8-
"@babel/plugin-transform-class-properties": "7.22.5",
9-
"@babel/plugin-transform-object-rest-spread": "7.22.5",
10-
"@babel/plugin-transform-private-methods": "7.22.5",
11-
"@babel/plugin-transform-private-property-in-object": "7.22.5",
12-
"@babel/preset-env": "7.22.9",
13-
"@babel/preset-react": "7.22.5",
14-
"@babel/preset-typescript": "7.22.5",
15-
"@babel/register": "7.22.5",
7+
"@babel/plugin-proposal-decorators": "7.24.1",
8+
"@babel/plugin-transform-class-properties": "7.24.1",
9+
"@babel/plugin-transform-object-rest-spread": "7.24.5",
10+
"@babel/plugin-transform-private-methods": "7.24.1",
11+
"@babel/plugin-transform-private-property-in-object": "7.24.5",
12+
"@babel/preset-env": "7.24.5",
13+
"@babel/preset-react": "7.24.1",
14+
"@babel/preset-typescript": "7.24.1",
15+
"@babel/register": "7.23.7",
1616
"@svgr/webpack": "8.0.1",
1717
"@types/webpack": "^5.28.1",
1818
"@types/webpack-dev-server": "^4.0.0",

0 commit comments

Comments
 (0)