Skip to content

Commit a9eead1

Browse files
committed
update deprecation warnings per latest proposal
1 parent 276dc28 commit a9eead1

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

src/deprecations.js

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -76,24 +76,23 @@ if (process.env.NODE_ENV !== 'production') {
7676
V_TRANSITION: function () {
7777
warn(
7878
'v-transition will no longer be a directive in 1.0.0; It will become a ' +
79-
'special attribute without the prefix. Use "transition" instead.' +
80-
newBindingSyntaxLink
79+
'special attribute without the prefix. Use "transition" instead.'
8180
)
8281
},
8382

8483
V_REF: function () {
8584
warn(
8685
'v-ref will no longer take an attribute value in 1.0.0. Use "v-ref:id" syntax ' +
87-
'instead. Also, refs will be registered under vm.$refs instead of vm.$.' +
88-
newBindingSyntaxLink
86+
'instead. Also, refs will be registered under vm.$refs instead of vm.$. ' +
87+
'See https://github.com/yyx990803/vue/issues/1292 for more details.'
8988
)
9089
},
9190

9291
V_EL: function () {
9392
warn(
9493
'v-el will no longer take an attribute value in 1.0.0. Use "v-el:id" syntax ' +
95-
'instead. Also, nodes will be registered under vm.$els instead of vm.$$.' +
96-
newBindingSyntaxLink
94+
'instead. Also, nodes will be registered under vm.$els instead of vm.$$. ' +
95+
'See https://github.com/yyx990803/vue/issues/1292 for more details.'
9796
)
9897
},
9998

@@ -167,15 +166,15 @@ if (process.env.NODE_ENV !== 'production') {
167166

168167
REF_IN_CHILD: function () {
169168
warn(
170-
'v-ref or ref can no longer be used on a component root in its own ' +
169+
'v-ref can no longer be used on a component root in its own ' +
171170
'template in 1.0.0. Use it in the parent template instead.'
172171
)
173172
},
174173

175174
KEY_FILTER: function () {
176175
warn(
177176
'The "key" filter will be deprecated in 1.0.0. Use the new ' +
178-
'on-keyup-key="handler" syntax instead.'
177+
'v-on:keyup.key="handler" syntax instead.'
179178
)
180179
},
181180

@@ -214,7 +213,8 @@ if (process.env.NODE_ENV !== 'production') {
214213
LITERAL: function () {
215214
warn(
216215
'It is no longer necessary to declare literal directives in 1.0.0. Just ' +
217-
'use the new hash-equal syntax (v-dir#="string") to indicate a literal value.'
216+
'add the ".literal" modifier at the end (v-dir.literal="string") to ' +
217+
'pass a literal value.'
218218
)
219219
},
220220

@@ -227,7 +227,8 @@ if (process.env.NODE_ENV !== 'production') {
227227

228228
V_COMPONENT: function () {
229229
warn(
230-
'v-component will be deprecated in 1.0.0. Use "is" attribute instead.'
230+
'v-component will be deprecated in 1.0.0. Use "is" attribute instead. ' +
231+
'See https://github.com/yyx990803/vue/issues/1278 for more details.'
231232
)
232233
}
233234

0 commit comments

Comments
 (0)