@vue/compat 3.5.25 → 3.5.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +38 -40
- package/dist/vue.cjs.js +404 -352
- package/dist/vue.cjs.prod.js +345 -306
- package/dist/vue.esm-browser.js +398 -346
- package/dist/vue.esm-browser.prod.js +5 -5
- package/dist/vue.esm-bundler.js +398 -346
- package/dist/vue.global.js +371 -319
- package/dist/vue.global.prod.js +5 -5
- package/dist/vue.runtime.esm-browser.js +285 -252
- package/dist/vue.runtime.esm-browser.prod.js +3 -3
- package/dist/vue.runtime.esm-bundler.js +285 -252
- package/dist/vue.runtime.global.js +258 -225
- package/dist/vue.runtime.global.prod.js +3 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -41,7 +41,6 @@ The following workflow walks through the steps of migrating an actual Vue 2 app
|
|
|
41
41
|
### Installation
|
|
42
42
|
|
|
43
43
|
1. Upgrade tooling if applicable.
|
|
44
|
-
|
|
45
44
|
- If using custom webpack setup: Upgrade `vue-loader` to `^16.0.0`.
|
|
46
45
|
- If using `vue-cli`: upgrade to the latest `@vue/cli-service` with `vue upgrade`
|
|
47
46
|
- (Alternative) migrate to [Vite](https://vitejs.dev/) + [vite-plugin-vue2](https://github.com/underfin/vite-plugin-vue2). [[Example commit](https://github.com/vuejs/vue-hackernews-2.0/commit/565b948919eb58f22a32afca7e321b490cb3b074)]
|
|
@@ -160,7 +159,6 @@ The following workflow walks through the steps of migrating an actual Vue 2 app
|
|
|
160
159
|
5. After fixing the errors, the app should be able to run if it is not subject to the [limitations](#known-limitations) mentioned above.
|
|
161
160
|
|
|
162
161
|
You will likely see a LOT of warnings from both the command line and the browser console. Here are some general tips:
|
|
163
|
-
|
|
164
162
|
- You can filter for specific warnings in the browser console. It's a good idea to use the filter and focus on fixing one item at a time. You can also use negated filters like `-GLOBAL_MOUNT`.
|
|
165
163
|
|
|
166
164
|
- You can suppress specific deprecations via [compat configuration](#compat-configuration).
|
|
@@ -287,41 +285,41 @@ Features that start with `COMPILER_` are compiler-specific: if you are using the
|
|
|
287
285
|
|
|
288
286
|
| ID | Type | Description | Docs |
|
|
289
287
|
| ---------------------------- | ---- | --------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
|
|
290
|
-
| GLOBAL_MOUNT | ✔
|
|
291
|
-
| GLOBAL_EXTEND | ✔
|
|
292
|
-
| GLOBAL_PROTOTYPE | ✔
|
|
293
|
-
| GLOBAL_SET | ✔
|
|
294
|
-
| GLOBAL_DELETE | ✔
|
|
295
|
-
| GLOBAL_OBSERVABLE | ✔
|
|
296
|
-
| CONFIG_KEY_CODES | ✔
|
|
297
|
-
| CONFIG_WHITESPACE | ✔
|
|
298
|
-
| INSTANCE_SET | ✔
|
|
299
|
-
| INSTANCE_DELETE | ✔
|
|
300
|
-
| INSTANCE_EVENT_EMITTER | ✔
|
|
301
|
-
| INSTANCE_EVENT_HOOKS | ✔
|
|
302
|
-
| INSTANCE_CHILDREN | ✔
|
|
303
|
-
| INSTANCE_LISTENERS | ✔
|
|
304
|
-
| INSTANCE_SCOPED_SLOTS | ✔
|
|
305
|
-
| INSTANCE_ATTRS_CLASS_STYLE | ✔
|
|
306
|
-
| OPTIONS_DATA_FN | ✔
|
|
307
|
-
| OPTIONS_DATA_MERGE | ✔
|
|
308
|
-
| OPTIONS_BEFORE_DESTROY | ✔
|
|
309
|
-
| OPTIONS_DESTROYED | ✔
|
|
310
|
-
| WATCH_ARRAY | ✔
|
|
311
|
-
| V_ON_KEYCODE_MODIFIER | ✔
|
|
312
|
-
| CUSTOM_DIR | ✔
|
|
313
|
-
| ATTR_FALSE_VALUE | ✔
|
|
314
|
-
| ATTR_ENUMERATED_COERCION | ✔
|
|
315
|
-
| TRANSITION_GROUP_ROOT | ✔
|
|
316
|
-
| COMPONENT_ASYNC | ✔
|
|
317
|
-
| COMPONENT_FUNCTIONAL | ✔
|
|
318
|
-
| COMPONENT_V_MODEL | ✔
|
|
319
|
-
| RENDER_FUNCTION | ✔
|
|
320
|
-
| FILTERS | ✔
|
|
321
|
-
| COMPILER_IS_ON_ELEMENT | ✔
|
|
322
|
-
| COMPILER_V_BIND_SYNC | ✔
|
|
323
|
-
| COMPILER_V_BIND_OBJECT_ORDER | ✔
|
|
324
|
-
| COMPILER_V_ON_NATIVE | ✔
|
|
325
|
-
| COMPILER_V_FOR_REF | ✔
|
|
326
|
-
| COMPILER_NATIVE_TEMPLATE | ✔
|
|
327
|
-
| COMPILER_FILTERS | ✔
|
|
288
|
+
| GLOBAL_MOUNT | ✔ | new Vue() -> createApp | [link](https://v3-migration.vuejs.org/breaking-changes/global-api.html#mounting-app-instance) |
|
|
289
|
+
| GLOBAL_EXTEND | ✔ | Vue.extend removed (use `defineComponent` or `extends` option) | [link](https://v3-migration.vuejs.org/breaking-changes/global-api.html#vue-extend-replaced-by-definecomponent) |
|
|
290
|
+
| GLOBAL_PROTOTYPE | ✔ | `Vue.prototype` -> `app.config.globalProperties` | [link](https://v3-migration.vuejs.org/breaking-changes/global-api.html#vue-prototype-replaced-by-config-globalproperties) |
|
|
291
|
+
| GLOBAL_SET | ✔ | `Vue.set` removed (no longer needed) | |
|
|
292
|
+
| GLOBAL_DELETE | ✔ | `Vue.delete` removed (no longer needed) | |
|
|
293
|
+
| GLOBAL_OBSERVABLE | ✔ | `Vue.observable` removed (use `reactive`) | [link](https://vuejs.org/api/reactivity-core.html#reactive) |
|
|
294
|
+
| CONFIG_KEY_CODES | ✔ | config.keyCodes removed | [link](https://v3-migration.vuejs.org/breaking-changes/keycode-modifiers.html) |
|
|
295
|
+
| CONFIG_WHITESPACE | ✔ | In Vue 3 whitespace defaults to `"condense"` | |
|
|
296
|
+
| INSTANCE_SET | ✔ | `vm.$set` removed (no longer needed) | |
|
|
297
|
+
| INSTANCE_DELETE | ✔ | `vm.$delete` removed (no longer needed) | |
|
|
298
|
+
| INSTANCE_EVENT_EMITTER | ✔ | `vm.$on`, `vm.$off`, `vm.$once` removed | [link](https://v3-migration.vuejs.org/breaking-changes/events-api.html) |
|
|
299
|
+
| INSTANCE_EVENT_HOOKS | ✔ | Instance no longer emits `hook:x` events | [link](https://v3-migration.vuejs.org/breaking-changes/vnode-lifecycle-events.html) |
|
|
300
|
+
| INSTANCE_CHILDREN | ✔ | `vm.$children` removed | [link](https://v3-migration.vuejs.org/breaking-changes/children.html) |
|
|
301
|
+
| INSTANCE_LISTENERS | ✔ | `vm.$listeners` removed | [link](https://v3-migration.vuejs.org/breaking-changes/listeners-removed.html) |
|
|
302
|
+
| INSTANCE_SCOPED_SLOTS | ✔ | `vm.$scopedSlots` removed; `vm.$slots` now exposes functions | [link](https://v3-migration.vuejs.org/breaking-changes/slots-unification.html) |
|
|
303
|
+
| INSTANCE_ATTRS_CLASS_STYLE | ✔ | `$attrs` now includes `class` and `style` | [link](https://v3-migration.vuejs.org/breaking-changes/attrs-includes-class-style.html) |
|
|
304
|
+
| OPTIONS_DATA_FN | ✔ | `data` must be a function in all cases | [link](https://v3-migration.vuejs.org/breaking-changes/data-option.html) |
|
|
305
|
+
| OPTIONS_DATA_MERGE | ✔ | `data` from mixin or extension is now shallow merged | [link](https://v3-migration.vuejs.org/breaking-changes/data-option.html) |
|
|
306
|
+
| OPTIONS_BEFORE_DESTROY | ✔ | `beforeDestroy` -> `beforeUnmount` | |
|
|
307
|
+
| OPTIONS_DESTROYED | ✔ | `destroyed` -> `unmounted` | |
|
|
308
|
+
| WATCH_ARRAY | ✔ | watching an array no longer triggers on mutation unless deep | [link](https://v3-migration.vuejs.org/breaking-changes/watch.html) |
|
|
309
|
+
| V_ON_KEYCODE_MODIFIER | ✔ | `v-on` no longer supports keyCode modifiers | [link](https://v3-migration.vuejs.org/breaking-changes/keycode-modifiers.html) |
|
|
310
|
+
| CUSTOM_DIR | ✔ | Custom directive hook names changed | [link](https://v3-migration.vuejs.org/breaking-changes/custom-directives.html) |
|
|
311
|
+
| ATTR_FALSE_VALUE | ✔ | No longer removes attribute if binding value is boolean `false` | [link](https://v3-migration.vuejs.org/breaking-changes/attribute-coercion.html) |
|
|
312
|
+
| ATTR_ENUMERATED_COERCION | ✔ | No longer special case enumerated attributes | [link](https://v3-migration.vuejs.org/breaking-changes/attribute-coercion.html) |
|
|
313
|
+
| TRANSITION_GROUP_ROOT | ✔ | `<transition-group>` no longer renders a root element by default | [link](https://v3-migration.vuejs.org/breaking-changes/transition-group.html) |
|
|
314
|
+
| COMPONENT_ASYNC | ✔ | Async component API changed (now requires `defineAsyncComponent`) | [link](https://v3-migration.vuejs.org/breaking-changes/async-components.html) |
|
|
315
|
+
| COMPONENT_FUNCTIONAL | ✔ | Functional component API changed (now must be plain functions) | [link](https://v3-migration.vuejs.org/breaking-changes/functional-components.html) |
|
|
316
|
+
| COMPONENT_V_MODEL | ✔ | Component v-model reworked | [link](https://v3-migration.vuejs.org/breaking-changes/v-model.html) |
|
|
317
|
+
| RENDER_FUNCTION | ✔ | Render function API changed | [link](https://v3-migration.vuejs.org/breaking-changes/render-function-api.html) |
|
|
318
|
+
| FILTERS | ✔ | Filters removed (this option affects only runtime filter APIs) | [link](https://v3-migration.vuejs.org/breaking-changes/filters.html) |
|
|
319
|
+
| COMPILER_IS_ON_ELEMENT | ✔ | `is` usage is now restricted to `<component>` only | [link](https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html) |
|
|
320
|
+
| COMPILER_V_BIND_SYNC | ✔ | `v-bind.sync` replaced by `v-model` with arguments | [link](https://v3-migration.vuejs.org/breaking-changes/v-model.html) |
|
|
321
|
+
| COMPILER_V_BIND_OBJECT_ORDER | ✔ | `v-bind="object"` is now order sensitive | [link](https://v3-migration.vuejs.org/breaking-changes/v-bind.html) |
|
|
322
|
+
| COMPILER_V_ON_NATIVE | ✔ | `v-on.native` modifier removed | [link](https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html) |
|
|
323
|
+
| COMPILER_V_FOR_REF | ✔ | `ref` in `v-for` (compiler support) | |
|
|
324
|
+
| COMPILER_NATIVE_TEMPLATE | ✔ | `<template>` with no special directives now renders as native element | |
|
|
325
|
+
| COMPILER_FILTERS | ✔ | filters (compiler support) | |
|