aoye 0.0.54 → 0.0.55
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/aoye.cjs.js +8 -0
- package/dist/aoye.cjs.js.map +1 -1
- package/dist/aoye.esm.js +8 -1
- package/dist/aoye.esm.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.umd.js +8 -0
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -130,6 +130,7 @@ declare class Signal<T = any> {
|
|
|
130
130
|
set(v: T): void;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
+
declare function flushMicroEffectManual(): void;
|
|
133
134
|
declare const batchStart: () => number;
|
|
134
135
|
declare const batchEnd: () => void;
|
|
135
136
|
/** effect、computed 回调执行的唯一 id
|
|
@@ -243,5 +244,5 @@ declare function effectUt(callback: (...args: ValueDiff[]) => void, depOrOpt?: a
|
|
|
243
244
|
declare function effect(callback: (...args: ValueDiff[]) => void, depOrOpt?: any[] | CustomEffectOpt, opt?: CustomEffectOpt): Effect;
|
|
244
245
|
declare function scope(...args: any[]): any;
|
|
245
246
|
|
|
246
|
-
export { $, Computed, Effect, EffectStrType2Enum, IsStore, Keys, NoopEffect, ScheduleStatus, ScheduleType, Scope, Signal, Store, StoreIgnoreKeys, batchDeep, batchEnd, batchStart, clean, deepSignal, effect, effectUt, execId, execIdInc, getPulling, ide, macro, micro, noopEffect, now, runWithPulling, scope, setExecId, setPulling, shareSignal, toRaw };
|
|
247
|
+
export { $, Computed, Effect, EffectStrType2Enum, IsStore, Keys, NoopEffect, ScheduleStatus, ScheduleType, Scope, Signal, Store, StoreIgnoreKeys, batchDeep, batchEnd, batchStart, clean, deepSignal, effect, effectUt, execId, execIdInc, flushMicroEffectManual, getPulling, ide, macro, micro, noopEffect, now, runWithPulling, scope, setExecId, setPulling, shareSignal, toRaw };
|
|
247
248
|
export type { CreateScope, CreateTaskProps, CustomEffectOpt, DeepOmitPath, DeepPath, DeepValue, Dispose, Key, Link, MatchValue, Mix, OnClean, OutLink, PRecord, ScheduleTypeStr, SideEffect, SignalNode, SignalType, Task, TaskControlReturn, ValueDiff };
|
package/dist/index.umd.js
CHANGED
|
@@ -301,6 +301,13 @@
|
|
|
301
301
|
});
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
|
+
function flushMicroEffectManual() {
|
|
305
|
+
if (schedulerStatus !== ScheduleStatus.Running && multiScheduler.hasTask) {
|
|
306
|
+
schedulerStatus = ScheduleStatus.Running;
|
|
307
|
+
multiScheduler.flushAllTask();
|
|
308
|
+
schedulerStatus = ScheduleStatus.Idle;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
304
311
|
let _batchDeep = 0;
|
|
305
312
|
const batchStart = () => _batchDeep++;
|
|
306
313
|
const batchEnd = () => {
|
|
@@ -1597,6 +1604,7 @@
|
|
|
1597
1604
|
exports.effectUt = effectUt;
|
|
1598
1605
|
exports.execId = execId;
|
|
1599
1606
|
exports.execIdInc = execIdInc;
|
|
1607
|
+
exports.flushMicroEffectManual = flushMicroEffectManual;
|
|
1600
1608
|
exports.getPulling = getPulling;
|
|
1601
1609
|
exports.ide = ide;
|
|
1602
1610
|
exports.macro = macro;
|