@vue/runtime-core 3.4.4 → 3.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/runtime-core.cjs.js
CHANGED
|
@@ -1944,10 +1944,11 @@ function doWatch(source, cb, {
|
|
|
1944
1944
|
scheduler = () => queueJob(job);
|
|
1945
1945
|
}
|
|
1946
1946
|
const effect = new reactivity.ReactiveEffect(getter, shared.NOOP, scheduler);
|
|
1947
|
+
const scope = reactivity.getCurrentScope();
|
|
1947
1948
|
const unwatch = () => {
|
|
1948
1949
|
effect.stop();
|
|
1949
|
-
if (
|
|
1950
|
-
shared.remove(
|
|
1950
|
+
if (scope) {
|
|
1951
|
+
shared.remove(scope.effects, effect);
|
|
1951
1952
|
}
|
|
1952
1953
|
};
|
|
1953
1954
|
{
|
|
@@ -7991,7 +7992,7 @@ function isMemoSame(cached, memo) {
|
|
|
7991
7992
|
return true;
|
|
7992
7993
|
}
|
|
7993
7994
|
|
|
7994
|
-
const version = "3.4.
|
|
7995
|
+
const version = "3.4.5";
|
|
7995
7996
|
const warn = warn$1 ;
|
|
7996
7997
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
7997
7998
|
const devtools = devtools$1 ;
|
|
@@ -1370,10 +1370,11 @@ function doWatch(source, cb, {
|
|
|
1370
1370
|
scheduler = () => queueJob(job);
|
|
1371
1371
|
}
|
|
1372
1372
|
const effect = new reactivity.ReactiveEffect(getter, shared.NOOP, scheduler);
|
|
1373
|
+
const scope = reactivity.getCurrentScope();
|
|
1373
1374
|
const unwatch = () => {
|
|
1374
1375
|
effect.stop();
|
|
1375
|
-
if (
|
|
1376
|
-
shared.remove(
|
|
1376
|
+
if (scope) {
|
|
1377
|
+
shared.remove(scope.effects, effect);
|
|
1377
1378
|
}
|
|
1378
1379
|
};
|
|
1379
1380
|
if (cb) {
|
|
@@ -6254,7 +6255,7 @@ function isMemoSame(cached, memo) {
|
|
|
6254
6255
|
return true;
|
|
6255
6256
|
}
|
|
6256
6257
|
|
|
6257
|
-
const version = "3.4.
|
|
6258
|
+
const version = "3.4.5";
|
|
6258
6259
|
const warn$1 = shared.NOOP;
|
|
6259
6260
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
6260
6261
|
const devtools = void 0;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { pauseTracking, resetTracking, isRef, toRaw, isShallow as isShallow$1, isReactive, ReactiveEffect, ref, shallowReadonly, track, customRef, reactive, shallowReactive, trigger, isProxy, proxyRefs, markRaw, EffectScope, computed as computed$1, isReadonly } from '@vue/reactivity';
|
|
1
|
+
import { pauseTracking, resetTracking, isRef, toRaw, isShallow as isShallow$1, isReactive, ReactiveEffect, getCurrentScope, ref, shallowReadonly, track, customRef, reactive, shallowReactive, trigger, isProxy, proxyRefs, markRaw, EffectScope, computed as computed$1, isReadonly } from '@vue/reactivity';
|
|
2
2
|
export { EffectScope, ReactiveEffect, TrackOpTypes, TriggerOpTypes, customRef, effect, effectScope, getCurrentScope, isProxy, isReactive, isReadonly, isRef, isShallow, markRaw, onScopeDispose, proxyRefs, reactive, readonly, ref, shallowReactive, shallowReadonly, shallowRef, stop, toRaw, toRef, toRefs, toValue, triggerRef, unref } from '@vue/reactivity';
|
|
3
|
-
import { isString, isFunction, isPromise, isArray, NOOP, getGlobalThis, extend, EMPTY_OBJ, toHandlerKey, looseToNumber, hyphenate, camelize, isObject, isOn, hasOwn, isModelListener, capitalize, toNumber, hasChanged, isSet, isMap, isPlainObject,
|
|
3
|
+
import { isString, isFunction, isPromise, isArray, NOOP, getGlobalThis, extend, EMPTY_OBJ, toHandlerKey, looseToNumber, hyphenate, camelize, isObject, isOn, hasOwn, isModelListener, capitalize, toNumber, hasChanged, remove, isSet, isMap, isPlainObject, isBuiltInDirective, invokeArrayFns, isRegExp, isGloballyAllowed, NO, def, isReservedProp, EMPTY_ARR, toRawType, makeMap, normalizeClass, stringifyStyle, normalizeStyle, isKnownSvgAttr, isBooleanAttr, isKnownHtmlAttr, includeBooleanAttr } from '@vue/shared';
|
|
4
4
|
export { camelize, capitalize, normalizeClass, normalizeProps, normalizeStyle, toDisplayString, toHandlerKey } from '@vue/shared';
|
|
5
5
|
|
|
6
6
|
const stack = [];
|
|
@@ -1946,10 +1946,11 @@ function doWatch(source, cb, {
|
|
|
1946
1946
|
scheduler = () => queueJob(job);
|
|
1947
1947
|
}
|
|
1948
1948
|
const effect = new ReactiveEffect(getter, NOOP, scheduler);
|
|
1949
|
+
const scope = getCurrentScope();
|
|
1949
1950
|
const unwatch = () => {
|
|
1950
1951
|
effect.stop();
|
|
1951
|
-
if (
|
|
1952
|
-
remove(
|
|
1952
|
+
if (scope) {
|
|
1953
|
+
remove(scope.effects, effect);
|
|
1953
1954
|
}
|
|
1954
1955
|
};
|
|
1955
1956
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
@@ -8063,7 +8064,7 @@ function isMemoSame(cached, memo) {
|
|
|
8063
8064
|
return true;
|
|
8064
8065
|
}
|
|
8065
8066
|
|
|
8066
|
-
const version = "3.4.
|
|
8067
|
+
const version = "3.4.5";
|
|
8067
8068
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
8068
8069
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
8069
8070
|
const devtools = !!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__ ? devtools$1 : void 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/runtime-core",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.5",
|
|
4
4
|
"description": "@vue/runtime-core",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/runtime-core.esm-bundler.js",
|
|
@@ -9,6 +9,19 @@
|
|
|
9
9
|
"index.js",
|
|
10
10
|
"dist"
|
|
11
11
|
],
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./dist/runtime-core.d.ts",
|
|
15
|
+
"node": {
|
|
16
|
+
"production": "./dist/runtime-core.cjs.prod.js",
|
|
17
|
+
"development": "./dist/runtime-core.cjs.js",
|
|
18
|
+
"default": "./index.js"
|
|
19
|
+
},
|
|
20
|
+
"import": "./dist/runtime-core.esm-bundler.js",
|
|
21
|
+
"require": "./index.js"
|
|
22
|
+
},
|
|
23
|
+
"./*": "./*"
|
|
24
|
+
},
|
|
12
25
|
"buildOptions": {
|
|
13
26
|
"name": "VueRuntimeCore",
|
|
14
27
|
"formats": [
|
|
@@ -32,7 +45,7 @@
|
|
|
32
45
|
},
|
|
33
46
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/runtime-core#readme",
|
|
34
47
|
"dependencies": {
|
|
35
|
-
"@vue/shared": "3.4.
|
|
36
|
-
"@vue/reactivity": "3.4.
|
|
48
|
+
"@vue/shared": "3.4.5",
|
|
49
|
+
"@vue/reactivity": "3.4.5"
|
|
37
50
|
}
|
|
38
51
|
}
|