@vue/composition-api
Advanced tools
Comparing version 0.6.0 to 0.6.1
@@ -0,1 +1,7 @@ | ||
# 0.6.1 | ||
## Fix | ||
- `__DEV__` is not defined, #355, @yoyo930021 | ||
# 0.6.0 | ||
@@ -2,0 +8,0 @@ |
@@ -53,3 +53,3 @@ import Vue from 'vue'; | ||
function logError(err, vm, info) { | ||
if (((__DEV__))) { | ||
if (("development" !== 'production')) { | ||
warn("Error in " + info + ": \"" + err.toString() + "\"", vm); | ||
@@ -68,3 +68,3 @@ } | ||
function getCurrentVue() { | ||
if (((__DEV__))) { | ||
if (("development" !== 'production')) { | ||
assert(currentVue, "must call Vue.use(plugin) before using any function."); | ||
@@ -147,3 +147,3 @@ } | ||
var vm = getCurrentVM(); | ||
if (((__DEV__)) && !vm) { | ||
if (("development" !== 'production') && !vm) { | ||
warn(hook + " is called when there is no active component instance to be " + | ||
@@ -251,3 +251,3 @@ "associated with. " + | ||
return obj; | ||
if (((__DEV__)) && !isReactive(obj)) { | ||
if (("development" !== 'production') && !isReactive(obj)) { | ||
warn("toRefs() expects a reactive object but received a plain one."); | ||
@@ -393,3 +393,3 @@ } | ||
var e_1, _a; | ||
if (((__DEV__)) && !obj) { | ||
if (("development" !== 'production') && !obj) { | ||
warn('"shallowReactive()" is called without provide an "object".'); | ||
@@ -487,3 +487,3 @@ // @ts-ignore | ||
function reactive(obj) { | ||
if (((__DEV__)) && !obj) { | ||
if (("development" !== 'production') && !obj) { | ||
warn('"reactive()" is called without provide an "object".'); | ||
@@ -544,3 +544,3 @@ // @ts-ignore | ||
var _a = Vue.util, warn = _a.warn, defineReactive = _a.defineReactive; | ||
if (((__DEV__)) && (isUndef(target) || isPrimitive(target))) { | ||
if (("development" !== 'production') && (isUndef(target) || isPrimitive(target))) { | ||
warn("Cannot set reactive property on undefined, null, or primitive value: " + target); | ||
@@ -559,3 +559,3 @@ } | ||
if (target._isVue || (ob && ob.vmCount)) { | ||
((__DEV__)) && | ||
("development" !== 'production') && | ||
warn('Avoid adding reactive properties to a Vue instance or its root $data ' + | ||
@@ -609,3 +609,3 @@ 'at runtime - declare it upfront in the data option.'); | ||
if (currentVue && currentVue === Vue) { | ||
if (((__DEV__))) { | ||
if (("development" !== 'production')) { | ||
assert(false, 'already installed. Vue.use(plugin) should be called only once'); | ||
@@ -645,3 +645,3 @@ } | ||
}); | ||
if (((__DEV__))) { | ||
if (("development" !== 'production')) { | ||
// expose binding to Vue Devtool as a data property | ||
@@ -659,3 +659,3 @@ // delay this until state has been resolved to prevent repeated works | ||
} | ||
else if (((__DEV__))) { | ||
else if (("development" !== 'production')) { | ||
if (props && hasOwn(props, propName)) { | ||
@@ -767,3 +767,3 @@ warn("The setup binding property \"" + propName + "\" is already declared as a prop.", vm); | ||
if (typeof setup !== 'function') { | ||
if (((__DEV__))) { | ||
if (("development" !== 'production')) { | ||
warn('The "setup" option should be a function that returns a object in component definitions.', vm); | ||
@@ -827,3 +827,3 @@ } | ||
} | ||
if (((__DEV__))) { | ||
if (("development" !== 'production')) { | ||
assert(false, "\"setup\" must return a \"Object\" or a \"Function\", got \"" + Object.prototype.toString | ||
@@ -907,3 +907,3 @@ .call(binding) | ||
function createComponent(options) { | ||
if (((__DEV__))) { | ||
if (("development" !== 'production')) { | ||
Vue.util.warn('`createComponent` has been renamed to `defineComponent`.'); | ||
@@ -1174,3 +1174,3 @@ } | ||
// effect watch | ||
if (((__DEV__))) { | ||
if (("development" !== 'production')) { | ||
warn("`watch(fn, options?)` signature has been moved to a separate API. " + | ||
@@ -1211,3 +1211,3 @@ "Use `watchEffect(fn, options?)` instead. `watch` now only " + | ||
set: function (v) { | ||
if (((__DEV__)) && !set) { | ||
if (("development" !== 'production') && !set) { | ||
warn('Computed property was assigned to but it has no setter.', vm); | ||
@@ -1214,0 +1214,0 @@ return; |
{ | ||
"name": "@vue/composition-api", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"description": "Provide logic composition capabilities for Vue.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
193369