Skip to content

Commit 3a7cbd8

Browse files
committed
Remove compat build
Bug: T351812
1 parent 7ccb748 commit 3a7cbd8

File tree

9 files changed

+3
-73
lines changed

9 files changed

+3
-73
lines changed

jest.config.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ module.exports = {
2222
// "import Counter from '@/Counter.vue'"
2323
// (no need for a full path)
2424
"moduleNameMapper": {
25-
"^vue$": "@vue/compat",
26-
'^@vue/composition-api$': '@vue/compat',
2725
'^@wmde/wikit-vue-components$':
2826
'@wmde/wikit-vue-components/dist/wikit-vue-components-vue3compat.common.js',
2927
'^wikit-dist(.*)$': "<rootDir>/node_modules/@wmde/wikit-vue-components/dist$1",
@@ -33,18 +31,5 @@ module.exports = {
3331
// Further info: https://test-utils.vuejs.org/migration/#-vue-vue3-jest-jest-28
3432
"testEnvironmentOptions": {
3533
"customExportConditions": ["node", "node-addons"],
36-
},
37-
// For Vue migration build
38-
// Add compat config to test as well
39-
"globals": {
40-
"vue-jest": {
41-
"compilerOptions": {
42-
compatConfig: {
43-
MODE: 3,
44-
COMPILER_V_ON_NATIVE: true,
45-
COMPILER_V_BIND_SYNC: true
46-
}
47-
}
48-
}
4934
}
5035
}

package-lock.json

Lines changed: 0 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
"dependencies": {
6060
"@inertiajs/inertia": "^0.11.0",
6161
"@inertiajs/inertia-vue3": "^0.6.0",
62-
"@vue/compat": "^3.3.8",
6362
"@wmde/wikit-tokens": "^2.1.0-alpha.15",
6463
"@wmde/wikit-vue-components": "^2.1.0-alpha.16",
6564
"date-fns": "^3.3.1",

resources/js/Components/ItemIdSearchTextarea.vue

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@ import { useStore } from '../store';
3030
import { CdxTextArea, CdxField, CdxProgressBar } from "@wikimedia/codex";
3131
import ValidationError from '../types/ValidationError';
3232
33-
// Run it with compat mode
34-
// https://v3-migration.vuejs.org/breaking-changes/v-model.html
35-
CdxTextArea.compatConfig = {
36-
...CdxTextArea.compatConfig,
37-
COMPONENT_V_MODEL: false,
38-
};
3933
4034
const validationError: Ref<ValidationError> = ref(null);
4135

resources/js/Components/LoadingOverlay.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import { ref } from 'vue';
1414
import { CdxProgressBar } from "@wikimedia/codex";
1515
1616
const props = withDefaults(defineProps<{
17-
delay: number
18-
visible: boolean
17+
delay?: number
18+
visible?: boolean
1919
}>(), {
2020
delay: 250,
2121
visible: false

resources/js/Pages/Results.vue

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -199,12 +199,6 @@ import type { Ref } from 'vue';
199199
import { computed, onMounted, ref } from 'vue';
200200
import axios from 'axios';
201201
202-
// Run it with compat mode
203-
// https://v3-migration.vuejs.org/breaking-changes/v-model.html
204-
CdxCheckbox.compatConfig = {
205-
...CdxCheckbox.compatConfig,
206-
COMPONENT_V_MODEL: false,
207-
};
208202
interface MismatchDecision {
209203
id: number,
210204
item_id: string,

resources/js/shims-vue.d.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,6 @@ declare module "*.vue" {
99
export default component;
1010
}
1111

12-
declare module 'vue' {
13-
import { CompatVue } from '@vue/runtime-dom'
14-
const Vue: CompatVue
15-
export default Vue
16-
export * from '@vue/runtime-dom'
17-
const { configureCompat } = Vue
18-
export { configureCompat }
19-
}
20-
2112
declare module 'vue-banana-i18n';
2213

2314
declare module '@wikimedia/language-data';

tests/Vue/Components/MismatchRow.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ describe('MismatchesRow.vue', () => {
275275

276276
await wrapper.find('.full-description-button').trigger('click');
277277

278-
const dialog = wrapper.find('.full-description-dialog .cdx-dialog');
278+
const dialog = wrapper.find('.full-description-dialog.cdx-dialog');
279279

280280
expect(dialog.isVisible()).toBe(true);
281281
});

webpack.mix.js

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,10 @@ mix.ts('resources/js/app.ts', 'public/js')
1515
.webpackConfig({
1616
resolve: {
1717
alias: {
18-
vue: '@vue/compat',
19-
'@vue/composition-api': '@vue/compat',
2018
'@wmde/wikit-vue-components':
2119
'@wmde/wikit-vue-components/dist/wikit-vue-components-vue3compat.common.js',
2220
'wikit-dist': path.resolve(__dirname, './node_modules/@wmde/wikit-vue-components/dist'),
2321
}
24-
},
25-
module: {
26-
rules: [
27-
{
28-
test: /\.vue$/,
29-
loader: 'vue-loader',
30-
options: {
31-
compilerOptions: {
32-
compatConfig: {
33-
MODE: 3,
34-
COMPILER_V_ON_NATIVE: true,
35-
COMPILER_V_BIND_SYNC: true
36-
}
37-
}
38-
}
39-
}
40-
]
4122
}
4223
})
4324
.vue({ version: 3})

0 commit comments

Comments
 (0)