@vue/reactivity
Advanced tools
Comparing version 3.4.18 to 3.4.19
/** | ||
* @vue/reactivity v3.4.18 | ||
* @vue/reactivity v3.4.19 | ||
* (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
@@ -989,2 +989,3 @@ * @license MIT | ||
const COMPUTED_SIDE_EFFECT_WARN = `Computed is still dirty after getter evaluation, likely because a computed is mutating its own dependency in its getter. State mutations in computed getters should be avoided. Check the docs for more details: https://vuejs.org/guide/essentials/computed.html#getters-should-be-side-effect-free`; | ||
class ComputedRefImpl { | ||
@@ -1014,2 +1015,3 @@ constructor(getter, _setter, isReadonly, isSSR) { | ||
if (self.effect._dirtyLevel >= 2) { | ||
warn(COMPUTED_SIDE_EFFECT_WARN); | ||
triggerRefValue(self, 2); | ||
@@ -1038,3 +1040,3 @@ } | ||
setter = () => { | ||
console.warn("Write operation failed: computed value is readonly"); | ||
warn("Write operation failed: computed value is readonly"); | ||
} ; | ||
@@ -1041,0 +1043,0 @@ } else { |
/** | ||
* @vue/reactivity v3.4.18 | ||
* @vue/reactivity v3.4.19 | ||
* (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
@@ -4,0 +4,0 @@ * @license MIT |
/** | ||
* @vue/reactivity v3.4.18 | ||
* @vue/reactivity v3.4.19 | ||
* (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
@@ -1024,2 +1024,3 @@ * @license MIT | ||
const COMPUTED_SIDE_EFFECT_WARN = `Computed is still dirty after getter evaluation, likely because a computed is mutating its own dependency in its getter. State mutations in computed getters should be avoided. Check the docs for more details: https://vuejs.org/guide/essentials/computed.html#getters-should-be-side-effect-free`; | ||
class ComputedRefImpl { | ||
@@ -1049,2 +1050,3 @@ constructor(getter, _setter, isReadonly, isSSR) { | ||
if (self.effect._dirtyLevel >= 2) { | ||
warn(COMPUTED_SIDE_EFFECT_WARN); | ||
triggerRefValue(self, 2); | ||
@@ -1073,3 +1075,3 @@ } | ||
setter = () => { | ||
console.warn("Write operation failed: computed value is readonly"); | ||
warn("Write operation failed: computed value is readonly"); | ||
} ; | ||
@@ -1076,0 +1078,0 @@ } else { |
/** | ||
* @vue/reactivity v3.4.18 | ||
* @vue/reactivity v3.4.19 | ||
* (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
@@ -4,0 +4,0 @@ * @license MIT |
/** | ||
* @vue/reactivity v3.4.18 | ||
* @vue/reactivity v3.4.19 | ||
* (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
@@ -985,2 +985,3 @@ * @license MIT | ||
const COMPUTED_SIDE_EFFECT_WARN = `Computed is still dirty after getter evaluation, likely because a computed is mutating its own dependency in its getter. State mutations in computed getters should be avoided. Check the docs for more details: https://vuejs.org/guide/essentials/computed.html#getters-should-be-side-effect-free`; | ||
class ComputedRefImpl { | ||
@@ -1010,2 +1011,3 @@ constructor(getter, _setter, isReadonly, isSSR) { | ||
if (self.effect._dirtyLevel >= 2) { | ||
!!(process.env.NODE_ENV !== "production") && warn(COMPUTED_SIDE_EFFECT_WARN); | ||
triggerRefValue(self, 2); | ||
@@ -1034,3 +1036,3 @@ } | ||
setter = !!(process.env.NODE_ENV !== "production") ? () => { | ||
console.warn("Write operation failed: computed value is readonly"); | ||
warn("Write operation failed: computed value is readonly"); | ||
} : NOOP; | ||
@@ -1037,0 +1039,0 @@ } else { |
/** | ||
* @vue/reactivity v3.4.18 | ||
* @vue/reactivity v3.4.19 | ||
* (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
@@ -1027,2 +1027,3 @@ * @license MIT | ||
const COMPUTED_SIDE_EFFECT_WARN = `Computed is still dirty after getter evaluation, likely because a computed is mutating its own dependency in its getter. State mutations in computed getters should be avoided. Check the docs for more details: https://vuejs.org/guide/essentials/computed.html#getters-should-be-side-effect-free`; | ||
class ComputedRefImpl { | ||
@@ -1052,2 +1053,3 @@ constructor(getter, _setter, isReadonly, isSSR) { | ||
if (self.effect._dirtyLevel >= 2) { | ||
warn(COMPUTED_SIDE_EFFECT_WARN); | ||
triggerRefValue(self, 2); | ||
@@ -1076,3 +1078,3 @@ } | ||
setter = () => { | ||
console.warn("Write operation failed: computed value is readonly"); | ||
warn("Write operation failed: computed value is readonly"); | ||
} ; | ||
@@ -1079,0 +1081,0 @@ } else { |
/** | ||
* @vue/reactivity v3.4.18 | ||
* @vue/reactivity v3.4.19 | ||
* (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
@@ -4,0 +4,0 @@ * @license MIT |
{ | ||
"name": "@vue/reactivity", | ||
"version": "3.4.18", | ||
"version": "3.4.19", | ||
"description": "@vue/reactivity", | ||
@@ -53,4 +53,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"@vue/shared": "3.4.18" | ||
"@vue/shared": "3.4.19" | ||
} | ||
} |
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
227728
7009
23
+ Added@vue/shared@3.4.19(transitive)
- Removed@vue/shared@3.4.18(transitive)
Updated@vue/shared@3.4.19