Skip to content

Commit

Permalink
chore: update vite to version 5 inside the monorepo (#29617)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
4 people authored Jun 12, 2024
1 parent dfec1e7 commit ee3ff88
Show file tree
Hide file tree
Showing 27 changed files with 1,616 additions and 1,572 deletions.
3 changes: 0 additions & 3 deletions .yarnclean
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ test
tests
powered-test

# asset directories
docs
doc
# yaml package has a `doc` folder that we need
!yaml/**/doc/*
website
Expand Down
4 changes: 2 additions & 2 deletions cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@
"yauzl": "^2.10.0"
},
"devDependencies": {
"@babel/cli": "7.13.0",
"@babel/preset-env": "7.13.5",
"@babel/cli": "7.24.5",
"@babel/preset-env": "7.24.5",
"@cypress/angular": "0.0.0-development",
"@cypress/grep": "0.0.0-development",
"@cypress/mount-utils": "0.0.0-development",
Expand Down
4 changes: 2 additions & 2 deletions npm/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"devDependencies": {
"@cypress/mount-utils": "0.0.0-development",
"@types/semver": "7.5.0",
"@vitejs/plugin-react": "4.0.0",
"@vitejs/plugin-react": "4.3.0",
"axios": "0.21.2",
"cypress": "0.0.0-development",
"prop-types": "15.7.2",
Expand All @@ -28,7 +28,7 @@
"react-router-dom": "6.0.0-alpha.1",
"semver": "^7.5.3",
"typescript": "~5.4.5",
"vite": "4.5.2",
"vite": "5.2.11",
"vite-plugin-require-transform": "1.0.12"
},
"peerDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions npm/vite-plugin-cypress-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
},
"devDependencies": {
"@types/picomatch": "2.3.0",
"@vitejs/plugin-react": "1.3.1",
"@vitejs/plugin-react": "4.3.0",
"react": "16.8.6",
"react-dom": "16.8.6",
"react-query": "3.39.3",
"react-router": "6.10.0",
"react-router-dom": "6.10.0",
"vite": "4.5.2"
"vite": "5.2.11"
},
"files": [
"dist",
Expand Down
4 changes: 3 additions & 1 deletion npm/vite-plugin-cypress-esm/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
"esModuleInterop": true,
/** Allows us to strip internal types sourced from webpack */
"stripInternal": true
"stripInternal": true,
/* skips checking declaration types. we skip this because we have multiple versions of vite installed as dev dependencies */
"skipLibCheck": true,
},
"include": ["src"],
"exclude": ["node_modules", "*.js"]
Expand Down
6 changes: 3 additions & 3 deletions npm/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"devDependencies": {
"@cypress/mount-utils": "0.0.0-development",
"@vitejs/plugin-vue": "4.2.0",
"@vitejs/plugin-vue": "5.0.4",
"@vue/compiler-sfc": "3.2.47",
"@vue/test-utils": "2.3.2",
"axios": "0.21.2",
Expand All @@ -25,9 +25,9 @@
"globby": "^11.0.1",
"tailwindcss": "1.1.4",
"typescript": "~5.4.5",
"vite": "4.5.2",
"vite": "5.2.11",
"vue": "3.2.47",
"vue-i18n": "9.0.0-rc.6",
"vue-i18n": "9.13.1",
"vue-router": "^4.0.0",
"vue-tsc": "^2.0.19",
"vuex": "^4.0.0"
Expand Down
12 changes: 6 additions & 6 deletions npm/webpack-batteries-included-preprocessor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
"test": "mocha test/**/*.spec.* --timeout 4000"
},
"dependencies": {
"@babel/core": "^7.22.9",
"@babel/plugin-transform-class-properties": "^7.22.5",
"@babel/plugin-transform-object-rest-spread": "^7.22.5",
"@babel/plugin-transform-runtime": "^7.22.9",
"@babel/preset-env": "^7.22.9",
"@babel/core": "^7.24.5",
"@babel/plugin-transform-class-properties": "^7.24.1",
"@babel/plugin-transform-object-rest-spread": "^7.24.5",
"@babel/plugin-transform-runtime": "^7.24.3",
"@babel/preset-env": "^7.24.5",
"@babel/preset-react": "^7.22.5",
"@babel/runtime": "^7.22.6",
"@babel/runtime": "^7.24.5",
"assert": "^2.0.0",
"babel-loader": "^9.1.3",
"babel-plugin-add-module-exports": "^1.0.2",
Expand Down
6 changes: 3 additions & 3 deletions npm/webpack-preprocessor/__snapshots__/compilation.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ Webpack Compilation Error
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: <path>/_test-output/syntax_error_spec.js: Unexpected token (1:18)
[0m[31m[1m>[22m[39m[90m 1 |[39m describe([32m'fail'[39m[33m,[39m [33m-[39m[33m>[39m)[0m
[0m [90m |[39m [31m[1m^[22m[39m[0m
[0m [90m 2 |[39m[0m
[0m[31m[1m>[22m[39m[90m 1 |[39m describe([32m'fail'[39m[33m,[39m [33m-[39m[33m>[39m)
[90m |[39m [31m[1m^[22m[39m
[90m 2 |[39m[0m
`

exports['webpack preprocessor - e2e has less verbose "Module not found" error 1'] = `
Expand Down
6 changes: 3 additions & 3 deletions npm/webpack-preprocessor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"lodash": "^4.17.20"
},
"devDependencies": {
"@babel/core": "^7.22.9",
"@babel/preset-env": "^7.22.9",
"@babel/core": "^7.24.5",
"@babel/preset-env": "^7.24.5",
"@types/mocha": "9.0.0",
"@types/webpack": "^4.41.12",
"babel-loader": "^9.1.3",
Expand Down Expand Up @@ -84,4 +84,4 @@
}
}
}
}
}
1 change: 0 additions & 1 deletion packages/app/cypress/e2e/top-nav.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ describe('App Top Nav Workflows', () => {
it('shows the current browser in the top nav browser list button', () => {
cy.findByTestId('top-nav-active-browser-icon')
.should('have.attr', 'src')
.and('contain', 'chrome')

cy.findByTestId('top-nav-active-browser').should('contain', 'Chrome 1')
})
Expand Down
22 changes: 11 additions & 11 deletions packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@graphql-typed-document-node/core": "^3.1.0",
"@headlessui/vue": "1.4.0",
"@iconify-json/mdi": "1.1.63",
"@intlify/unplugin-vue-i18n": "0.10.0",
"@intlify/unplugin-vue-i18n": "4.0.0",
"@packages/frontend-shared": "0.0.0-development",
"@packages/telemetry": "0.0.0-development",
"@percy/cypress": "^3.1.2",
Expand All @@ -37,9 +37,9 @@
"@types/faker": "5.5.8",
"@urql/core": "2.4.4",
"@urql/vue": "0.6.2",
"@vitejs/plugin-legacy": "4.0.3",
"@vitejs/plugin-vue": "4.2.0",
"@vitejs/plugin-vue-jsx": "3.0.1",
"@vitejs/plugin-legacy": "5.4.0",
"@vitejs/plugin-vue": "5.0.4",
"@vitejs/plugin-vue-jsx": "3.1.0",
"@vueuse/core": "7.2.2",
"ansi-to-html": "0.6.14",
"bluebird": "3.5.3",
Expand All @@ -64,14 +64,14 @@
"pinia": "2.0.0-rc.14",
"rollup-plugin-copy": "3.4.0",
"rollup-plugin-polyfill-node": "^0.7.0",
"unplugin-icons": "0.13.2",
"unplugin-vue-components": "^0.24.1",
"vite": "4.5.2",
"vite-plugin-pages": "0.29.0",
"vite-plugin-vue-layouts": "0.8.0",
"vite-svg-loader": "4.0.0",
"unplugin-icons": "0.19.0",
"unplugin-vue-components": "^0.27.0",
"vite": "5.2.11",
"vite-plugin-pages": "0.32.1",
"vite-plugin-vue-layouts": "0.11.0",
"vite-svg-loader": "5.1.0",
"vue": "3.2.47",
"vue-i18n": "9.2.0-beta.7",
"vue-i18n": "9.13.1",
"vue-router": "4",
"vue-tsc": "^2.0.19",
"wonka": "^4.0.15"
Expand Down
6 changes: 3 additions & 3 deletions packages/app/vite.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ export default makeConfig({
'p-defer',
'bluebird',
'events',
'@popperjs/core',
'@opentelemetry/*',
]
'@popperjs/core',
'@opentelemetry/*',
],
},
}, {
plugins: [
Expand Down
12 changes: 6 additions & 6 deletions packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
"test:clean": "find ./test/__fixtures__ -depth -name 'output.*' -type f -exec rm {} \\;"
},
"dependencies": {
"@babel/core": "^7.22.9",
"@babel/parser": "^7.22.7",
"@babel/plugin-syntax-typescript": "^7.22.5",
"@babel/plugin-transform-typescript": "^7.22.9",
"@babel/traverse": "^7.22.8",
"@babel/types": "^7.22.5",
"@babel/core": "^7.24.5",
"@babel/parser": "^7.24.5",
"@babel/plugin-syntax-typescript": "^7.24.1",
"@babel/plugin-transform-typescript": "^7.24.5",
"@babel/traverse": "^7.24.5",
"@babel/types": "^7.24.5",
"check-more-types": "2.24.0",
"common-tags": "1.8.0",
"debug": "^4.3.4",
Expand Down
8 changes: 4 additions & 4 deletions packages/data-context/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
"tslint": "tslint --config ../ts/tslint.json --project ."
},
"dependencies": {
"@babel/code-frame": "7.8.3",
"@babel/generator": "7.17.9",
"@babel/parser": "7.13.0",
"@babel/code-frame": "7.24.2",
"@babel/generator": "7.24.5",
"@babel/parser": "7.24.5",
"@graphql-tools/batch-execute": "^8.4.6",
"@packages/telemetry": "0.0.0-development",
"@urql/core": "2.4.4",
Expand Down Expand Up @@ -57,7 +57,7 @@
"wonka": "^4.0.15"
},
"devDependencies": {
"@babel/types": "7.17.0",
"@babel/types": "7.24.5",
"@packages/config": "0.0.0-development",
"@packages/errors": "0.0.0-development",
"@packages/example": "0.0.0-development",
Expand Down
4 changes: 2 additions & 2 deletions packages/driver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"dependencies": {},
"devDependencies": {
"@babel/code-frame": "7.8.3",
"@babel/code-frame": "7.24.2",
"@cypress/sinon-chai": "2.9.1",
"@cypress/unique-selector": "0.0.5",
"@cypress/webpack-dev-server": "0.0.0-development",
Expand Down Expand Up @@ -82,7 +82,7 @@
"unfetch": "4.1.0",
"url-parse": "1.5.10",
"vanilla-text-mask": "5.1.1",
"vite": "4.5.2",
"vite": "5.2.11",
"webpack": "^5.88.2",
"zone.js": "0.9.0"
},
Expand Down
15 changes: 7 additions & 8 deletions packages/frontend-shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
"@urql/exchange-execute": "1.1.0",
"@urql/exchange-graphcache": "4.3.6",
"@urql/vue": "0.6.2",
"@vitejs/plugin-vue": "4.2.0",
"@vitejs/plugin-vue-jsx": "3.0.1",
"@vitejs/plugin-vue": "5.0.4",
"@vitejs/plugin-vue-jsx": "3.1.0",
"@vue/compiler-core": "3.2.47",
"@vue/compiler-dom": "3.2.47",
"@vue/compiler-sfc": "3.2.47",
Expand Down Expand Up @@ -69,14 +69,13 @@
"postcss": "^8.4.22",
"shiki": "^0.9.12",
"tailwindcss": "^3.3.1",
"unplugin-icons": "0.13.2",
"unplugin-vue-components": "^0.24.1",
"vite": "4.5.2",
"vite-plugin-components": "0.11.3",
"vite-svg-loader": "4.0.0",
"unplugin-icons": "0.19.0",
"unplugin-vue-components": "^0.27.0",
"vite": "5.2.11",
"vite-svg-loader": "5.1.0",
"vue": "3.2.47",
"vue-eslint-parser": "7.11.0",
"vue-i18n": "9.2.0-beta.7",
"vue-i18n": "9.13.1",
"vue-router": "4",
"vue-toastification": "2.0.0-rc.1",
"vue-tsc": "^2.0.19",
Expand Down
6 changes: 5 additions & 1 deletion packages/frontend-shared/src/locales/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ export const VueI18n = createI18n()
export function createI18n (opts = {}) {
return _createI18n<MessageSchema, 'en-US'>({
locale: 'en-US',
messages: compiledMessages,
/**
* precompiled messages from unplugin-vue-i18n do not include explicit keys derived from
* the filenames of the raw message sources, so it must be coerced.
*/
messages: compiledMessages as { 'en-US': MessageSchema },
...opts,
})
}
Expand Down
14 changes: 7 additions & 7 deletions packages/launchpad/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@cypress-design/vue-button": "^0.11.6",
"@graphql-typed-document-node/core": "^3.1.0",
"@headlessui/vue": "1.4.0",
"@intlify/unplugin-vue-i18n": "0.10.0",
"@intlify/unplugin-vue-i18n": "4.0.0",
"@packages/frontend-shared": "0.0.0-development",
"@packages/scaffold-config": "0.0.0-development",
"@percy/cypress": "^3.1.2",
Expand All @@ -36,8 +36,8 @@
"@urql/core": "2.4.4",
"@urql/devtools": "2.0.3",
"@urql/vue": "0.6.2",
"@vitejs/plugin-vue": "4.2.0",
"@vitejs/plugin-vue-jsx": "3.0.1",
"@vitejs/plugin-vue": "5.0.4",
"@vitejs/plugin-vue-jsx": "3.1.0",
"@vue/compiler-core": "3.2.47",
"@vue/compiler-dom": "3.2.47",
"@vue/compiler-sfc": "3.2.47",
Expand All @@ -59,13 +59,13 @@
"markdown-it": "13.0.1",
"rollup-plugin-polyfill-node": "^0.7.0",
"type-fest": "^2.3.4",
"unplugin-vue-components": "0.24.1",
"vite": "4.5.2",
"unplugin-vue-components": "0.27.0",
"vite": "5.2.11",
"vite-plugin-optimize-persist": "0.1.2",
"vite-plugin-package-config": "0.1.1",
"vite-svg-loader": "4.0.0",
"vite-svg-loader": "5.1.0",
"vue": "3.2.47",
"vue-i18n": "9.2.0-beta.7",
"vue-i18n": "9.13.1",
"vue-tsc": "^2.0.19",
"vue3-file-selector": "^1.0.1",
"wonka": "^4.0.15"
Expand Down
4 changes: 2 additions & 2 deletions packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@
"widest-line": "3.1.0"
},
"devDependencies": {
"@babel/core": "7.23.2",
"@babel/preset-env": "7.22.9",
"@babel/core": "7.24.7",
"@babel/preset-env": "7.24.5",
"@cypress/debugging-proxy": "2.0.1",
"@cypress/sinon-chai": "2.9.1",
"@cypress/webpack-dev-server": "0.0.0-development",
Expand Down
20 changes: 10 additions & 10 deletions packages/web-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
"name": "@packages/web-config",
"version": "0.0.0-development",
"devDependencies": {
"@babel/core": "7.23.2",
"@babel/core": "7.24.7",
"@babel/helper-define-map": "7.18.6",
"@babel/plugin-proposal-decorators": "7.22.7",
"@babel/plugin-transform-class-properties": "7.22.5",
"@babel/plugin-transform-object-rest-spread": "7.22.5",
"@babel/plugin-transform-private-methods": "7.22.5",
"@babel/plugin-transform-private-property-in-object": "7.22.5",
"@babel/preset-env": "7.22.9",
"@babel/preset-react": "7.22.5",
"@babel/preset-typescript": "7.22.5",
"@babel/register": "7.22.5",
"@babel/plugin-proposal-decorators": "7.24.1",
"@babel/plugin-transform-class-properties": "7.24.1",
"@babel/plugin-transform-object-rest-spread": "7.24.5",
"@babel/plugin-transform-private-methods": "7.24.1",
"@babel/plugin-transform-private-property-in-object": "7.24.5",
"@babel/preset-env": "7.24.5",
"@babel/preset-react": "7.24.1",
"@babel/preset-typescript": "7.24.1",
"@babel/register": "7.23.7",
"@svgr/webpack": "8.0.1",
"@types/webpack": "^5.28.1",
"@types/webpack-dev-server": "^4.0.0",
Expand Down
Loading

5 comments on commit ee3ff88

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on ee3ff88 Jun 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux x64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/13.12.0/linux-x64/develop-ee3ff8820ac7563181f2e7c3772116f4266c6e3a/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on ee3ff88 Jun 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux arm64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/13.12.0/linux-arm64/develop-ee3ff8820ac7563181f2e7c3772116f4266c6e3a/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on ee3ff88 Jun 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin arm64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/13.12.0/darwin-arm64/develop-ee3ff8820ac7563181f2e7c3772116f4266c6e3a/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on ee3ff88 Jun 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin x64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/13.12.0/darwin-x64/develop-ee3ff8820ac7563181f2e7c3772116f4266c6e3a/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on ee3ff88 Jun 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the win32 x64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/13.12.0/win32-x64/develop-ee3ff8820ac7563181f2e7c3772116f4266c6e3a/cypress.tgz

Please sign in to comment.