@savvy-web/pnpm-plugin-silk 0.13.0 → 0.13.2
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/README.md +1 -2
- package/index.cjs +17 -12
- package/package.json +1 -1
- package/pnpmfile.cjs +23 -209
package/README.md
CHANGED
|
@@ -20,8 +20,7 @@ of truth.
|
|
|
20
20
|
`publicHoistPattern` settings across repositories
|
|
21
21
|
- **Peer dependency rules** - Syncs `peerDependencyRules` (allowedVersions,
|
|
22
22
|
ignoreMissing, allowAny) to suppress common peer warnings
|
|
23
|
-
- **Effect ecosystem management** -
|
|
24
|
-
seven functional groups with compatible version resolution
|
|
23
|
+
- **Effect ecosystem management** - 26 coordinated `@effect/*` packages across eight functional groups with compatible version resolution
|
|
25
24
|
- **Non-destructive merging** - Local definitions always take precedence with
|
|
26
25
|
clear warnings for divergences
|
|
27
26
|
|
package/index.cjs
CHANGED
|
@@ -23,8 +23,8 @@ var __webpack_require__ = {};
|
|
|
23
23
|
var __webpack_exports__ = {};
|
|
24
24
|
__webpack_require__.r(__webpack_exports__);
|
|
25
25
|
__webpack_require__.d(__webpack_exports__, {
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
silkCatalogs: ()=>silkCatalogs,
|
|
27
|
+
silkPeerDependencyRules: ()=>silkPeerDependencyRules
|
|
28
28
|
});
|
|
29
29
|
const silkCatalogs = {
|
|
30
30
|
silk: {
|
|
@@ -36,7 +36,7 @@ const silkCatalogs = {
|
|
|
36
36
|
"@effect/cli": "^0.75.1",
|
|
37
37
|
"@effect/cluster": "^0.58.2",
|
|
38
38
|
"@effect/experimental": "^0.60.0",
|
|
39
|
-
"@effect/language-service": "^0.
|
|
39
|
+
"@effect/language-service": "^0.86.2",
|
|
40
40
|
"@effect/opentelemetry": "^0.63.0",
|
|
41
41
|
"@effect/platform": "^0.96.1",
|
|
42
42
|
"@effect/platform-browser": "^0.76.0",
|
|
@@ -50,16 +50,18 @@ const silkCatalogs = {
|
|
|
50
50
|
"@effect/sql-pg": "^0.52.1",
|
|
51
51
|
"@effect/sql-sqlite-bun": "^0.52.0",
|
|
52
52
|
"@effect/sql-sqlite-node": "^0.52.0",
|
|
53
|
+
"@effect/tsgo": "^0.7.5",
|
|
53
54
|
"@effect/typeclass": "^0.40.0",
|
|
54
|
-
"@effect/
|
|
55
|
-
"@
|
|
56
|
-
"@types/
|
|
55
|
+
"@effect/vitest": "^0.29.0",
|
|
56
|
+
"@effect/workflow": "^0.18.1",
|
|
57
|
+
"@types/node": "^25.9.1",
|
|
58
|
+
"@types/react": "^19.2.15",
|
|
57
59
|
"@types/react-dom": "^19.2.3",
|
|
58
|
-
"@typescript/native-preview": "^7.0.0-dev.
|
|
60
|
+
"@typescript/native-preview": "^7.0.0-dev.20260519.1",
|
|
59
61
|
effect: "^3.21.2",
|
|
60
|
-
react: "^19.2.
|
|
61
|
-
"react-dom": "^19.2.
|
|
62
|
-
tsx: "^4.
|
|
62
|
+
react: "^19.2.6",
|
|
63
|
+
"react-dom": "^19.2.6",
|
|
64
|
+
tsx: "^4.22.3",
|
|
63
65
|
typescript: "^6.0.3"
|
|
64
66
|
},
|
|
65
67
|
silkPeers: {
|
|
@@ -71,7 +73,7 @@ const silkCatalogs = {
|
|
|
71
73
|
"@effect/cli": ">=0.75.1",
|
|
72
74
|
"@effect/cluster": ">=0.58.0",
|
|
73
75
|
"@effect/experimental": ">=0.60.0",
|
|
74
|
-
"@effect/language-service": ">=0.
|
|
76
|
+
"@effect/language-service": ">=0.86.2",
|
|
75
77
|
"@effect/opentelemetry": ">=0.63.0",
|
|
76
78
|
"@effect/platform": ">=0.96.0",
|
|
77
79
|
"@effect/platform-browser": ">=0.76.0",
|
|
@@ -85,12 +87,14 @@ const silkCatalogs = {
|
|
|
85
87
|
"@effect/sql-pg": ">=0.52.1",
|
|
86
88
|
"@effect/sql-sqlite-bun": ">=0.52.0",
|
|
87
89
|
"@effect/sql-sqlite-node": ">=0.52.0",
|
|
90
|
+
"@effect/tsgo": ">=0.7.5",
|
|
88
91
|
"@effect/typeclass": ">=0.40.0",
|
|
92
|
+
"@effect/vitest": ">=0.29.0",
|
|
89
93
|
"@effect/workflow": ">=0.18.0",
|
|
90
94
|
"@types/node": "^25.6.0",
|
|
91
95
|
"@types/react": "^19.2.0",
|
|
92
96
|
"@types/react-dom": "^19.2.0",
|
|
93
|
-
"@typescript/native-preview": "^7.0.0-dev.
|
|
97
|
+
"@typescript/native-preview": "^7.0.0-dev.20260513.1",
|
|
94
98
|
effect: ">=3.21.0",
|
|
95
99
|
react: "^19.2.0",
|
|
96
100
|
"react-dom": "^19.2.0",
|
|
@@ -143,6 +147,7 @@ const silkCatalogs = {
|
|
|
143
147
|
};
|
|
144
148
|
const silkPeerDependencyRules = {
|
|
145
149
|
allowedVersions: {
|
|
150
|
+
"@effect/vitest>vitest": "^4.1.0",
|
|
146
151
|
"@typescript-eslint/project-service>typescript": "^6.0.0",
|
|
147
152
|
"@typescript-eslint/tsconfig-utils>typescript": "^6.0.0",
|
|
148
153
|
"@typescript-eslint/typescript-estree>typescript": "^6.0.0",
|
package/package.json
CHANGED
package/pnpmfile.cjs
CHANGED
|
@@ -3476,7 +3476,6 @@ const runtimeFlagsPatch_andThen = /*#__PURE__*/ Function_dual(2, (self, that)=>s
|
|
|
3476
3476
|
const invert = (n)=>~n >>> 0 & BIT_MASK;
|
|
3477
3477
|
const runtimeFlags_None = 0;
|
|
3478
3478
|
const Interruption = 1;
|
|
3479
|
-
const OpSupervision = 2;
|
|
3480
3479
|
const RuntimeMetrics = 4;
|
|
3481
3480
|
const WindDown = 16;
|
|
3482
3481
|
const CooperativeYielding = 32;
|
|
@@ -3882,7 +3881,7 @@ const forEachSequentialDiscard = /*#__PURE__*/ Function_dual(2, (self, f)=>core_
|
|
|
3882
3881
|
const interruptWith = (fiberId)=>failCause(interrupt(fiberId));
|
|
3883
3882
|
const core_interruptible = (self)=>{
|
|
3884
3883
|
const effect = new EffectPrimitive(OP_UPDATE_RUNTIME_FLAGS);
|
|
3885
|
-
effect.effect_instruction_i0 = RuntimeFlagsPatch_enable(
|
|
3884
|
+
effect.effect_instruction_i0 = RuntimeFlagsPatch_enable(1);
|
|
3886
3885
|
effect.effect_instruction_i1 = ()=>self;
|
|
3887
3886
|
return effect;
|
|
3888
3887
|
};
|
|
@@ -3968,13 +3967,13 @@ const attemptOrElse = /*#__PURE__*/ Function_dual(3, (self, that, onSuccess)=>ma
|
|
|
3968
3967
|
}));
|
|
3969
3968
|
const uninterruptible = (self)=>{
|
|
3970
3969
|
const effect = new EffectPrimitive(OP_UPDATE_RUNTIME_FLAGS);
|
|
3971
|
-
effect.effect_instruction_i0 = RuntimeFlagsPatch_disable(
|
|
3970
|
+
effect.effect_instruction_i0 = RuntimeFlagsPatch_disable(1);
|
|
3972
3971
|
effect.effect_instruction_i1 = ()=>self;
|
|
3973
3972
|
return effect;
|
|
3974
3973
|
};
|
|
3975
3974
|
const uninterruptibleMask = (f)=>custom(f, function() {
|
|
3976
3975
|
const effect = new EffectPrimitive(OP_UPDATE_RUNTIME_FLAGS);
|
|
3977
|
-
effect.effect_instruction_i0 = RuntimeFlagsPatch_disable(
|
|
3976
|
+
effect.effect_instruction_i0 = RuntimeFlagsPatch_disable(1);
|
|
3978
3977
|
effect.effect_instruction_i1 = (oldFlags)=>runtimeFlags_interruption(oldFlags) ? internalCall(()=>this.effect_instruction_i0(core_interruptible)) : internalCall(()=>this.effect_instruction_i0(uninterruptible));
|
|
3979
3978
|
return effect;
|
|
3980
3979
|
});
|
|
@@ -4127,33 +4126,6 @@ const fiberRefModify = /*#__PURE__*/ Function_dual(2, (self, f)=>withFiberRuntim
|
|
|
4127
4126
|
return succeed(b);
|
|
4128
4127
|
}));
|
|
4129
4128
|
const RequestResolverSymbolKey = "effect/RequestResolver";
|
|
4130
|
-
const RequestResolverTypeId = /*#__PURE__*/ Symbol.for(RequestResolverSymbolKey);
|
|
4131
|
-
const requestResolverVariance = {
|
|
4132
|
-
_A: (_)=>_,
|
|
4133
|
-
_R: (_)=>_
|
|
4134
|
-
};
|
|
4135
|
-
class RequestResolverImpl {
|
|
4136
|
-
runAll;
|
|
4137
|
-
target;
|
|
4138
|
-
[RequestResolverTypeId] = requestResolverVariance;
|
|
4139
|
-
constructor(runAll, target){
|
|
4140
|
-
this.runAll = runAll;
|
|
4141
|
-
this.target = target;
|
|
4142
|
-
}
|
|
4143
|
-
[Hash_symbol]() {
|
|
4144
|
-
return Hash_cached(this, this.target ? Hash_hash(this.target) : Hash_random(this));
|
|
4145
|
-
}
|
|
4146
|
-
[Equal_symbol](that) {
|
|
4147
|
-
return this.target ? isRequestResolver(that) && equals(this.target, that.target) : this === that;
|
|
4148
|
-
}
|
|
4149
|
-
identified(...ids) {
|
|
4150
|
-
return new RequestResolverImpl(this.runAll, Chunk_fromIterable(ids));
|
|
4151
|
-
}
|
|
4152
|
-
pipe() {
|
|
4153
|
-
return Pipeable_pipeArguments(this, arguments);
|
|
4154
|
-
}
|
|
4155
|
-
}
|
|
4156
|
-
const isRequestResolver = (u)=>Predicate_hasProperty(u, RequestResolverTypeId);
|
|
4157
4129
|
const fiberRefLocally = /*#__PURE__*/ Function_dual(3, (use, self, value)=>acquireUseRelease(core_zipLeft(fiberRefGet(self), fiberRefSet(self, value)), ()=>use, (oldValue)=>fiberRefSet(self, oldValue)));
|
|
4158
4130
|
const fiberRefLocallyWith = /*#__PURE__*/ Function_dual(3, (use, self, f)=>fiberRefGetWith(self, (a)=>fiberRefLocally(use, self, f(a))));
|
|
4159
4131
|
const fiberRefUnsafeMake = (initial, options)=>fiberRefUnsafeMakePatch(initial, {
|
|
@@ -5710,27 +5682,6 @@ class MicroFiberImpl {
|
|
|
5710
5682
|
const fiberMiddleware = /*#__PURE__*/ GlobalValue_globalValue("effect/Micro/fiberMiddleware", ()=>({
|
|
5711
5683
|
interruptChildren: void 0
|
|
5712
5684
|
}));
|
|
5713
|
-
const fiberInterruptAll = (fibers)=>Micro_suspend(()=>{
|
|
5714
|
-
for (const fiber of fibers)fiber.unsafeInterrupt();
|
|
5715
|
-
const iter = fibers[Symbol.iterator]();
|
|
5716
|
-
const wait = Micro_suspend(()=>{
|
|
5717
|
-
let result = iter.next();
|
|
5718
|
-
while(!result.done){
|
|
5719
|
-
if (result.value.unsafePoll()) {
|
|
5720
|
-
result = iter.next();
|
|
5721
|
-
continue;
|
|
5722
|
-
}
|
|
5723
|
-
const fiber = result.value;
|
|
5724
|
-
return Micro_async((resume)=>{
|
|
5725
|
-
fiber.addObserver((_)=>{
|
|
5726
|
-
resume(wait);
|
|
5727
|
-
});
|
|
5728
|
-
});
|
|
5729
|
-
}
|
|
5730
|
-
return Micro_exitVoid;
|
|
5731
|
-
});
|
|
5732
|
-
return wait;
|
|
5733
|
-
});
|
|
5734
5685
|
const identifier = /*#__PURE__*/ Symbol.for("effect/Micro/identifier");
|
|
5735
5686
|
const Micro_args = /*#__PURE__*/ Symbol.for("effect/Micro/args");
|
|
5736
5687
|
const Micro_evaluate = /*#__PURE__*/ Symbol.for("effect/Micro/evaluate");
|
|
@@ -5836,8 +5787,6 @@ const Micro_failCause = /*#__PURE__*/ makeExit({
|
|
|
5836
5787
|
return cont ? cont[failureCont](this[Micro_args], fiber) : fiber.yieldWith(this);
|
|
5837
5788
|
}
|
|
5838
5789
|
});
|
|
5839
|
-
const Micro_sync = /*#__PURE__*/ null;
|
|
5840
|
-
const Micro_suspend = /*#__PURE__*/ null;
|
|
5841
5790
|
const yieldNowWith = /*#__PURE__*/ makePrimitive({
|
|
5842
5791
|
op: "Yield",
|
|
5843
5792
|
eval (fiber) {
|
|
@@ -5859,13 +5808,6 @@ const withMicroFiber = /*#__PURE__*/ makePrimitive({
|
|
|
5859
5808
|
return this[Micro_args](fiber);
|
|
5860
5809
|
}
|
|
5861
5810
|
});
|
|
5862
|
-
const asyncOptions = /*#__PURE__*/ null;
|
|
5863
|
-
const Micro_async = (register)=>asyncOptions(register, register.length >= 2);
|
|
5864
|
-
const Micro_as = /*#__PURE__*/ null;
|
|
5865
|
-
const Micro_exit = (self)=>Micro_matchCause(self, {
|
|
5866
|
-
onFailure: Micro_exitFailCause,
|
|
5867
|
-
onSuccess: Micro_exitSucceed
|
|
5868
|
-
});
|
|
5869
5811
|
const Micro_flatMap = /*#__PURE__*/ Function_dual(2, (self, f)=>{
|
|
5870
5812
|
const onSuccess = Object.create(OnSuccessProto);
|
|
5871
5813
|
onSuccess[Micro_args] = self;
|
|
@@ -5885,10 +5827,6 @@ const Micro_exitFailCause = Micro_failCause;
|
|
|
5885
5827
|
const Micro_exitInterrupt = /*#__PURE__*/ Micro_exitFailCause(/*#__PURE__*/ causeInterrupt());
|
|
5886
5828
|
const Micro_exitDie = (defect)=>Micro_exitFailCause(causeDie(defect));
|
|
5887
5829
|
const Micro_exitVoid = /*#__PURE__*/ Micro_exitSucceed(void 0);
|
|
5888
|
-
const exitVoidAll = (exits)=>{
|
|
5889
|
-
for (const exit of exits)if ("Failure" === exit._tag) return exit;
|
|
5890
|
-
return Micro_exitVoid;
|
|
5891
|
-
};
|
|
5892
5830
|
const setImmediate = "setImmediate" in globalThis ? globalThis.setImmediate : (f)=>setTimeout(f, 0);
|
|
5893
5831
|
class MicroSchedulerDefault {
|
|
5894
5832
|
tasks = [];
|
|
@@ -5929,8 +5867,6 @@ class MaxOpsBeforeYield extends /*#__PURE__*/ Context_Reference()("effect/Micro/
|
|
|
5929
5867
|
defaultValue: ()=>2048
|
|
5930
5868
|
}) {
|
|
5931
5869
|
}
|
|
5932
|
-
class CurrentConcurrency extends /*#__PURE__*/ null {
|
|
5933
|
-
}
|
|
5934
5870
|
class CurrentScheduler extends /*#__PURE__*/ Context_Reference()("effect/Micro/currentScheduler", {
|
|
5935
5871
|
defaultValue: ()=>new MicroSchedulerDefault()
|
|
5936
5872
|
}) {
|
|
@@ -5949,61 +5885,6 @@ const OnSuccessAndFailureProto = /*#__PURE__*/ makePrimitiveProto({
|
|
|
5949
5885
|
return this[Micro_args];
|
|
5950
5886
|
}
|
|
5951
5887
|
});
|
|
5952
|
-
const Micro_matchCause = /*#__PURE__*/ null;
|
|
5953
|
-
const MicroScopeTypeId = /*#__PURE__*/ Symbol.for("effect/Micro/MicroScope");
|
|
5954
|
-
class MicroScopeImpl {
|
|
5955
|
-
[MicroScopeTypeId];
|
|
5956
|
-
state = {
|
|
5957
|
-
_tag: "Open",
|
|
5958
|
-
finalizers: /*#__PURE__*/ new Set()
|
|
5959
|
-
};
|
|
5960
|
-
constructor(){
|
|
5961
|
-
this[MicroScopeTypeId] = MicroScopeTypeId;
|
|
5962
|
-
}
|
|
5963
|
-
unsafeAddFinalizer(finalizer) {
|
|
5964
|
-
if ("Open" === this.state._tag) this.state.finalizers.add(finalizer);
|
|
5965
|
-
}
|
|
5966
|
-
addFinalizer(finalizer) {
|
|
5967
|
-
return Micro_suspend(()=>{
|
|
5968
|
-
if ("Open" === this.state._tag) {
|
|
5969
|
-
this.state.finalizers.add(finalizer);
|
|
5970
|
-
return Micro_void_;
|
|
5971
|
-
}
|
|
5972
|
-
return finalizer(this.state.exit);
|
|
5973
|
-
});
|
|
5974
|
-
}
|
|
5975
|
-
unsafeRemoveFinalizer(finalizer) {
|
|
5976
|
-
if ("Open" === this.state._tag) this.state.finalizers.delete(finalizer);
|
|
5977
|
-
}
|
|
5978
|
-
close(microExit) {
|
|
5979
|
-
return Micro_suspend(()=>{
|
|
5980
|
-
if ("Open" === this.state._tag) {
|
|
5981
|
-
const finalizers = Array.from(this.state.finalizers).reverse();
|
|
5982
|
-
this.state = {
|
|
5983
|
-
_tag: "Closed",
|
|
5984
|
-
exit: microExit
|
|
5985
|
-
};
|
|
5986
|
-
return Micro_flatMap(Micro_forEach(finalizers, (finalizer)=>Micro_exit(finalizer(microExit))), exitVoidAll);
|
|
5987
|
-
}
|
|
5988
|
-
return Micro_void_;
|
|
5989
|
-
});
|
|
5990
|
-
}
|
|
5991
|
-
get fork() {
|
|
5992
|
-
return Micro_sync(()=>{
|
|
5993
|
-
const newScope = new MicroScopeImpl();
|
|
5994
|
-
if ("Closed" === this.state._tag) {
|
|
5995
|
-
newScope.state = this.state;
|
|
5996
|
-
return newScope;
|
|
5997
|
-
}
|
|
5998
|
-
function fin(exit) {
|
|
5999
|
-
return newScope.close(exit);
|
|
6000
|
-
}
|
|
6001
|
-
this.state.finalizers.add(fin);
|
|
6002
|
-
newScope.unsafeAddFinalizer((_)=>Micro_sync(()=>this.unsafeRemoveFinalizer(fin)));
|
|
6003
|
-
return newScope;
|
|
6004
|
-
});
|
|
6005
|
-
}
|
|
6006
|
-
}
|
|
6007
5888
|
const Micro_onExit = /*#__PURE__*/ Function_dual(2, (self, f)=>Micro_uninterruptibleMask((restore)=>Micro_matchCauseEffect(restore(self), {
|
|
6008
5889
|
onFailure: (cause)=>Micro_flatMap(f(Micro_exitFailCause(cause)), ()=>Micro_failCause(cause)),
|
|
6009
5890
|
onSuccess: (a)=>Micro_flatMap(f(Micro_exitSucceed(a)), ()=>Micro_succeed(a))
|
|
@@ -6028,78 +5909,6 @@ const Micro_uninterruptibleMask = (f)=>withMicroFiber((fiber)=>{
|
|
|
6028
5909
|
fiber._stack.push(setInterruptible(true));
|
|
6029
5910
|
return f(Micro_interruptible);
|
|
6030
5911
|
});
|
|
6031
|
-
const Micro_whileLoop = /*#__PURE__*/ null;
|
|
6032
|
-
const Micro_forEach = (iterable, f, options)=>withMicroFiber((parent)=>{
|
|
6033
|
-
const concurrencyOption = options?.concurrency === "inherit" ? parent.getRef(CurrentConcurrency) : options?.concurrency ?? 1;
|
|
6034
|
-
const concurrency = "unbounded" === concurrencyOption ? 1 / 0 : Math.max(1, concurrencyOption);
|
|
6035
|
-
const items = Arr.fromIterable(iterable);
|
|
6036
|
-
let length = items.length;
|
|
6037
|
-
if (0 === length) return options?.discard ? Micro_void_ : Micro_succeed([]);
|
|
6038
|
-
const out = options?.discard ? void 0 : new Array(length);
|
|
6039
|
-
let index = 0;
|
|
6040
|
-
if (1 === concurrency) return Micro_as(Micro_whileLoop({
|
|
6041
|
-
while: ()=>index < items.length,
|
|
6042
|
-
body: ()=>f(items[index], index),
|
|
6043
|
-
step: out ? (b)=>out[index++] = b : (_)=>index++
|
|
6044
|
-
}), out);
|
|
6045
|
-
return Micro_async((resume)=>{
|
|
6046
|
-
const fibers = new Set();
|
|
6047
|
-
let result;
|
|
6048
|
-
let inProgress = 0;
|
|
6049
|
-
let doneCount = 0;
|
|
6050
|
-
let pumping = false;
|
|
6051
|
-
let interrupted = false;
|
|
6052
|
-
function pump() {
|
|
6053
|
-
pumping = true;
|
|
6054
|
-
while(inProgress < concurrency && index < length){
|
|
6055
|
-
const currentIndex = index;
|
|
6056
|
-
const item = items[currentIndex];
|
|
6057
|
-
index++;
|
|
6058
|
-
inProgress++;
|
|
6059
|
-
try {
|
|
6060
|
-
const child = unsafeFork(parent, f(item, currentIndex), true, true);
|
|
6061
|
-
fibers.add(child);
|
|
6062
|
-
child.addObserver((exit)=>{
|
|
6063
|
-
fibers.delete(child);
|
|
6064
|
-
if (interrupted) return;
|
|
6065
|
-
if ("Failure" === exit._tag) {
|
|
6066
|
-
if (void 0 === result) {
|
|
6067
|
-
result = exit;
|
|
6068
|
-
length = index;
|
|
6069
|
-
fibers.forEach((fiber)=>fiber.unsafeInterrupt());
|
|
6070
|
-
}
|
|
6071
|
-
} else if (void 0 !== out) out[currentIndex] = exit.value;
|
|
6072
|
-
doneCount++;
|
|
6073
|
-
inProgress--;
|
|
6074
|
-
if (doneCount === length) resume(result ?? Micro_succeed(out));
|
|
6075
|
-
else if (!pumping && inProgress < concurrency) pump();
|
|
6076
|
-
});
|
|
6077
|
-
} catch (err) {
|
|
6078
|
-
result = Micro_exitDie(err);
|
|
6079
|
-
length = index;
|
|
6080
|
-
fibers.forEach((fiber)=>fiber.unsafeInterrupt());
|
|
6081
|
-
}
|
|
6082
|
-
}
|
|
6083
|
-
pumping = false;
|
|
6084
|
-
}
|
|
6085
|
-
pump();
|
|
6086
|
-
return Micro_suspend(()=>{
|
|
6087
|
-
interrupted = true;
|
|
6088
|
-
index = length;
|
|
6089
|
-
return fiberInterruptAll(fibers);
|
|
6090
|
-
});
|
|
6091
|
-
});
|
|
6092
|
-
});
|
|
6093
|
-
const unsafeFork = (parent, effect, immediate = false, daemon = false)=>{
|
|
6094
|
-
const child = new MicroFiberImpl(parent.context, parent.interruptible);
|
|
6095
|
-
if (!daemon) {
|
|
6096
|
-
parent.children().add(child);
|
|
6097
|
-
child.addObserver(()=>parent.children().delete(child));
|
|
6098
|
-
}
|
|
6099
|
-
if (immediate) child.evaluate(effect);
|
|
6100
|
-
else parent.getRef(CurrentScheduler).scheduleTask(()=>child.evaluate(effect), 0);
|
|
6101
|
-
return child;
|
|
6102
|
-
};
|
|
6103
5912
|
const runFork = (effect, options)=>{
|
|
6104
5913
|
const fiber = new MicroFiberImpl(CurrentScheduler.context(options?.scheduler ?? new MicroSchedulerDefault()));
|
|
6105
5914
|
fiber.evaluate(effect);
|
|
@@ -7883,7 +7692,7 @@ class FiberRuntime extends Effectable_Class {
|
|
|
7883
7692
|
const updatedFiberRefs = joinAs(parentFiberRefs, parentFiberId, childFiberRefs);
|
|
7884
7693
|
parentFiber.setFiberRefs(updatedFiberRefs);
|
|
7885
7694
|
const updatedRuntimeFlags = parentFiber.getFiberRef(currentRuntimeFlags);
|
|
7886
|
-
const patch = Function_pipe(runtimeFlags_diff(parentRuntimeFlags, updatedRuntimeFlags), RuntimeFlagsPatch_exclude(
|
|
7695
|
+
const patch = Function_pipe(runtimeFlags_diff(parentRuntimeFlags, updatedRuntimeFlags), RuntimeFlagsPatch_exclude(1), RuntimeFlagsPatch_exclude(16));
|
|
7887
7696
|
return updateRuntimeFlags(patch);
|
|
7888
7697
|
});
|
|
7889
7698
|
}
|
|
@@ -8117,7 +7926,7 @@ class FiberRuntime extends Effectable_Class {
|
|
|
8117
7926
|
} else effect = exitVoid;
|
|
8118
7927
|
else if ("Async" === op._op) effect = null;
|
|
8119
7928
|
} else {
|
|
8120
|
-
this.currentRuntimeFlags = Function_pipe(this.currentRuntimeFlags, runtimeFlags_enable(
|
|
7929
|
+
this.currentRuntimeFlags = Function_pipe(this.currentRuntimeFlags, runtimeFlags_enable(16));
|
|
8121
7930
|
const interruption = this.interruptAllChildren();
|
|
8122
7931
|
if (null !== interruption) effect = core_flatMap(interruption, ()=>exit);
|
|
8123
7932
|
else {
|
|
@@ -8366,7 +8175,7 @@ class FiberRuntime extends Effectable_Class {
|
|
|
8366
8175
|
let cur = effect0;
|
|
8367
8176
|
this.currentOpCount = 0;
|
|
8368
8177
|
while(true){
|
|
8369
|
-
if ((this.currentRuntimeFlags
|
|
8178
|
+
if ((2 & this.currentRuntimeFlags) !== 0) this.currentSupervisor.onEffect(this, cur);
|
|
8370
8179
|
if (this._queue.length > 0) cur = this.drainQueueWhileRunning(this.currentRuntimeFlags, cur);
|
|
8371
8180
|
if (!this._isYielding) {
|
|
8372
8181
|
this.currentOpCount += 1;
|
|
@@ -8429,7 +8238,7 @@ const currentLoggers = /*#__PURE__*/ GlobalValue_globalValue(/*#__PURE__*/ Symbo
|
|
|
8429
8238
|
const fiberRuntime_acquireRelease = /*#__PURE__*/ Function_dual((args)=>isEffect(args[0]), (acquire, release)=>uninterruptible(core_tap(acquire, (a)=>fiberRuntime_addFinalizer((exit)=>release(a, exit)))));
|
|
8430
8239
|
const fiberRuntime_addFinalizer = (finalizer)=>withFiberRuntime((runtime)=>{
|
|
8431
8240
|
const acquireRefs = runtime.getFiberRefs();
|
|
8432
|
-
const acquireFlags = runtimeFlags_disable(runtime.currentRuntimeFlags,
|
|
8241
|
+
const acquireFlags = runtimeFlags_disable(runtime.currentRuntimeFlags, 1);
|
|
8433
8242
|
return core_flatMap(fiberRuntime_scope, (scope)=>scopeAddFinalizerExit(scope, (exit)=>withFiberRuntime((runtimeFinalizer)=>{
|
|
8434
8243
|
const preRefs = runtimeFinalizer.getFiberRefs();
|
|
8435
8244
|
const preFlags = runtimeFinalizer.currentRuntimeFlags;
|
|
@@ -9273,7 +9082,7 @@ class RuntimeImpl {
|
|
|
9273
9082
|
}
|
|
9274
9083
|
}
|
|
9275
9084
|
const runtime_make = (options)=>new RuntimeImpl(options.context, options.runtimeFlags, options.fiberRefs);
|
|
9276
|
-
const defaultRuntimeFlags = /*#__PURE__*/ runtimeFlags_make(
|
|
9085
|
+
const defaultRuntimeFlags = /*#__PURE__*/ runtimeFlags_make(1, 32, 4);
|
|
9277
9086
|
const defaultRuntime = /*#__PURE__*/ runtime_make({
|
|
9278
9087
|
context: /*#__PURE__*/ Context_empty(),
|
|
9279
9088
|
runtimeFlags: defaultRuntimeFlags,
|
|
@@ -10288,7 +10097,7 @@ const silkCatalogs = {
|
|
|
10288
10097
|
"@effect/cli": "^0.75.1",
|
|
10289
10098
|
"@effect/cluster": "^0.58.2",
|
|
10290
10099
|
"@effect/experimental": "^0.60.0",
|
|
10291
|
-
"@effect/language-service": "^0.
|
|
10100
|
+
"@effect/language-service": "^0.86.2",
|
|
10292
10101
|
"@effect/opentelemetry": "^0.63.0",
|
|
10293
10102
|
"@effect/platform": "^0.96.1",
|
|
10294
10103
|
"@effect/platform-browser": "^0.76.0",
|
|
@@ -10302,16 +10111,18 @@ const silkCatalogs = {
|
|
|
10302
10111
|
"@effect/sql-pg": "^0.52.1",
|
|
10303
10112
|
"@effect/sql-sqlite-bun": "^0.52.0",
|
|
10304
10113
|
"@effect/sql-sqlite-node": "^0.52.0",
|
|
10114
|
+
"@effect/tsgo": "^0.7.5",
|
|
10305
10115
|
"@effect/typeclass": "^0.40.0",
|
|
10306
|
-
"@effect/
|
|
10307
|
-
"@
|
|
10308
|
-
"@types/
|
|
10116
|
+
"@effect/vitest": "^0.29.0",
|
|
10117
|
+
"@effect/workflow": "^0.18.1",
|
|
10118
|
+
"@types/node": "^25.9.1",
|
|
10119
|
+
"@types/react": "^19.2.15",
|
|
10309
10120
|
"@types/react-dom": "^19.2.3",
|
|
10310
|
-
"@typescript/native-preview": "^7.0.0-dev.
|
|
10121
|
+
"@typescript/native-preview": "^7.0.0-dev.20260519.1",
|
|
10311
10122
|
effect: "^3.21.2",
|
|
10312
|
-
react: "^19.2.
|
|
10313
|
-
"react-dom": "^19.2.
|
|
10314
|
-
tsx: "^4.
|
|
10123
|
+
react: "^19.2.6",
|
|
10124
|
+
"react-dom": "^19.2.6",
|
|
10125
|
+
tsx: "^4.22.3",
|
|
10315
10126
|
typescript: "^6.0.3"
|
|
10316
10127
|
},
|
|
10317
10128
|
silkPeers: {
|
|
@@ -10323,7 +10134,7 @@ const silkCatalogs = {
|
|
|
10323
10134
|
"@effect/cli": ">=0.75.1",
|
|
10324
10135
|
"@effect/cluster": ">=0.58.0",
|
|
10325
10136
|
"@effect/experimental": ">=0.60.0",
|
|
10326
|
-
"@effect/language-service": ">=0.
|
|
10137
|
+
"@effect/language-service": ">=0.86.2",
|
|
10327
10138
|
"@effect/opentelemetry": ">=0.63.0",
|
|
10328
10139
|
"@effect/platform": ">=0.96.0",
|
|
10329
10140
|
"@effect/platform-browser": ">=0.76.0",
|
|
@@ -10337,12 +10148,14 @@ const silkCatalogs = {
|
|
|
10337
10148
|
"@effect/sql-pg": ">=0.52.1",
|
|
10338
10149
|
"@effect/sql-sqlite-bun": ">=0.52.0",
|
|
10339
10150
|
"@effect/sql-sqlite-node": ">=0.52.0",
|
|
10151
|
+
"@effect/tsgo": ">=0.7.5",
|
|
10340
10152
|
"@effect/typeclass": ">=0.40.0",
|
|
10153
|
+
"@effect/vitest": ">=0.29.0",
|
|
10341
10154
|
"@effect/workflow": ">=0.18.0",
|
|
10342
10155
|
"@types/node": "^25.6.0",
|
|
10343
10156
|
"@types/react": "^19.2.0",
|
|
10344
10157
|
"@types/react-dom": "^19.2.0",
|
|
10345
|
-
"@typescript/native-preview": "^7.0.0-dev.
|
|
10158
|
+
"@typescript/native-preview": "^7.0.0-dev.20260513.1",
|
|
10346
10159
|
effect: ">=3.21.0",
|
|
10347
10160
|
react: "^19.2.0",
|
|
10348
10161
|
"react-dom": "^19.2.0",
|
|
@@ -10395,6 +10208,7 @@ const silkCatalogs = {
|
|
|
10395
10208
|
};
|
|
10396
10209
|
const silkPeerDependencyRules = {
|
|
10397
10210
|
allowedVersions: {
|
|
10211
|
+
"@effect/vitest>vitest": "^4.1.0",
|
|
10398
10212
|
"@typescript-eslint/project-service>typescript": "^6.0.0",
|
|
10399
10213
|
"@typescript-eslint/tsconfig-utils>typescript": "^6.0.0",
|
|
10400
10214
|
"@typescript-eslint/typescript-estree>typescript": "^6.0.0",
|