8000 deprecate proto config · bencode/vue@bdc7c94 · GitHub
[go: up one dir, main page]

Skip to content

Commit bdc7c94

Browse files
committed
deprecate proto config
1 parent b8b87f7 commit bdc7c94

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

src/config.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,3 +155,16 @@ Object.defineProperty(module.exports, 'unsafeDelimiters', {
155155
textParser.compileRegex()
156156
}
157157
})
158+
159+
var proto = true
160+
Object.defineProperty(module.exports, 'proto', {
161+
get: function () {
162+
return proto
163+
},
164+
set: function (val) {
165+
if (process.env.NODE_ENV !== 'production') {
166+
require('./util').deprecation.PROTO()
167+
}
168+
proto = val
169+
}
170+
})

src/deprecations.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,12 @@ if (process.env.NODE_ENV !== 'production') {
265265
'The "orderBy" filter\'s reverse argument is expected to be a number in 1.0.0. ' +
266266
'A number smaller than 0 indicates the output should be in descending order.'
267267
)
268+
},
269+
270+
PROTO: function () {
271+
warn(
272+
'The "proto" global config will be deprecated in 1.0.0.'
273+
)
268274
}
269275

270276
}

0 commit comments

Comments
 (0)
0