+9
-9
lines changedFilter options
+9
-9
lines changed Original file line number Diff line number Diff line change
@@ -51,7 +51,7 @@ export const enum DeprecationTypes {
51
51
CUSTOM_DIR = 'CUSTOM_DIR',
52
52
53
53
ATTR_FALSE_VALUE = 'ATTR_FALSE_VALUE',
54
-
ATTR_ENUMERATED_COERSION = 'ATTR_ENUMERATED_COERSION',
54
+
ATTR_ENUMERATED_COERCION = 'ATTR_ENUMERATED_COERCION',
55
55
56
56
TRANSITION_CLASSES = 'TRANSITION_CLASSES',
57
57
TRANSITION_GROUP_ROOT = 'TRANSITION_GROUP_ROOT',
@@ -323,7 +323,7 @@ export const deprecationData: Record<DeprecationTypes, DeprecationData> = {
323
323
link: `https://v3.vuejs.org/guide/migration/attribute-coercion.html`
324
324
},
325
325
326
-
[DeprecationTypes.ATTR_ENUMERATED_COERSION]: {
326
+
[DeprecationTypes.ATTR_ENUMERATED_COERCION]: {
327
327
message: (name: string, value: any, coerced: string) =>
328
328
`Enumerated attribute "${name}" with v-bind value \`${value}\` will ` +
329
329
`${
@@ -333,7 +333,7 @@ export const deprecationData: Record<DeprecationTypes, DeprecationData> = {
333
333
`If the usage is intended, ` +
334
334
`you can disable the compat behavior and suppress this warning with:` +
335
335
`\n\n configureCompat({ ${
336
-
DeprecationTypes.ATTR_ENUMERATED_COERSION
336
+
DeprecationTypes.ATTR_ENUMERATED_COERCION
337
337
}: false })\n`,
338
338
link: `https://v3.vuejs.org/guide/migration/attribute-coercion.html`
339
339
},
Original file line number Diff line number Diff line change
@@ -57,7 +57,7 @@ export function compatCoerceAttr(
57
57
if (
58
58
v2CocercedValue &&
59
59
compatUtils.softAssertCompatEnabled(
60
-
DeprecationTypes.ATTR_ENUMERATED_COERSION,
60
+
DeprecationTypes.ATTR_ENUMERATED_COERCION,
61
61
instance,
62
62
key,
63
63
value,
Original file line number Diff line number Diff line change
@@ -340,7 +340,7 @@ Features that start with `COMPILER_` are compiler-specific: if you are using the
340
340
| V_ON_KEYCODE_MODIFIER | ● | `v-on` no longer supports keyCode modifiers | [link](https://v3.vuejs.org/guide/migration/keycode-modifiers.html) |
341
341
| CUSTOM_DIR | ● | Custom directive hook names changed | [link](https://v3.vuejs.org/guide/migration/custom-directives.html) |
342
342
| ATTR_FALSE_VALUE | ● | No longer removes attribute if binding value is boolean `false` | [link](https://v3.vuejs.org/guide/migration/attribute-coercion.html) |
343
-
| ATTR_ENUMERATED_COERSION | ● | No longer special case enumerated attributes | [link](https://v3.vuejs.org/guide/migration/attribute-coercion.html) |
343
+
| ATTR_ENUMERATED_COERCION | ● | No longer special case enumerated attributes | [link](https://v3.vuejs.org/guide/migration/attribute-coercion.html) |
344
344
| TRANSITION_GROUP_ROOT | ● | `<transition-group>` no longer renders a root element by default | [link](https://v3.vuejs.org/guide/migration/transition-group.html) |
345
345
| COMPONENT_ASYNC | ● | Async component API changed (now requires `defineAsyncComponent`) | [link](https://v3.vuejs.org/guide/migration/async-components.html) |
346
346
| COMPONENT_FUNCTIONAL | ● | Functional component API changed (now must be plain functions) | [link](https://v3.vuejs.org/guide/migration/functional-components.html) |
Original file line number Diff line number Diff line change
@@ -205,23 +205,23 @@ test('ATTR_FALSE_VALUE', () => {
205
205
).toHaveBeenWarned()
206
206
})
207
207
208
-
test('ATTR_ENUMERATED_COERSION', () => {
208
+
test('ATTR_ENUMERATED_COERCION', () => {
209
209
const vm = new Vue({
210
210
template: `<div :draggable="null" :spellcheck="0" contenteditable="foo" />`
211
211
}).$mount()
212
212
expect(vm.$el.getAttribute('draggable')).toBe('false')
213
213
expect(vm.$el.getAttribute('spellcheck')).toBe('true')
214
214
expect(vm.$el.getAttribute('contenteditable')).toBe('true')
215
215
expect(
216
-
(deprecationData[DeprecationTypes.ATTR_ENUMERATED_COERSION]
216
+
(deprecationData[DeprecationTypes.ATTR_ENUMERATED_COERCION]
217
217
.message as Function)('draggable', null, 'false')
218
218
).toHaveBeenWarned()
219
219
expect(
220
-
(deprecationData[DeprecationTypes.ATTR_ENUMERATED_COERSION]
220
+
(deprecationData[DeprecationTypes.ATTR_ENUMERATED_COERCION]
221
221
.message as Function)('spellcheck', 0, 'true')
222
222
).toHaveBeenWarned()
223
223
expect(
224
-
(deprecationData[DeprecationTypes.ATTR_ENUMERATED_COERSION]
224
+
(deprecationData[DeprecationTypes.ATTR_ENUMERATED_COERCION]
225
225
.message as Function)('contenteditable', 'foo', 'true')
226
226
).toHaveBeenWarned()
227
227
})
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4