@savvy-web/pnpm-plugin-silk 0.13.0 → 0.13.1
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/index.cjs +10 -10
- package/package.json +1 -1
- package/pnpmfile.cjs +8 -198
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.1",
|
|
40
40
|
"@effect/opentelemetry": "^0.63.0",
|
|
41
41
|
"@effect/platform": "^0.96.1",
|
|
42
42
|
"@effect/platform-browser": "^0.76.0",
|
|
@@ -51,14 +51,14 @@ const silkCatalogs = {
|
|
|
51
51
|
"@effect/sql-sqlite-bun": "^0.52.0",
|
|
52
52
|
"@effect/sql-sqlite-node": "^0.52.0",
|
|
53
53
|
"@effect/typeclass": "^0.40.0",
|
|
54
|
-
"@effect/workflow": "^0.18.
|
|
55
|
-
"@types/node": "^25.
|
|
54
|
+
"@effect/workflow": "^0.18.1",
|
|
55
|
+
"@types/node": "^25.7.0",
|
|
56
56
|
"@types/react": "^19.2.14",
|
|
57
57
|
"@types/react-dom": "^19.2.3",
|
|
58
|
-
"@typescript/native-preview": "^7.0.0-dev.
|
|
58
|
+
"@typescript/native-preview": "^7.0.0-dev.20260513.1",
|
|
59
59
|
effect: "^3.21.2",
|
|
60
|
-
react: "^19.2.
|
|
61
|
-
"react-dom": "^19.2.
|
|
60
|
+
react: "^19.2.6",
|
|
61
|
+
"react-dom": "^19.2.6",
|
|
62
62
|
tsx: "^4.21.0",
|
|
63
63
|
typescript: "^6.0.3"
|
|
64
64
|
},
|
|
@@ -71,7 +71,7 @@ const silkCatalogs = {
|
|
|
71
71
|
"@effect/cli": ">=0.75.1",
|
|
72
72
|
"@effect/cluster": ">=0.58.0",
|
|
73
73
|
"@effect/experimental": ">=0.60.0",
|
|
74
|
-
"@effect/language-service": ">=0.
|
|
74
|
+
"@effect/language-service": ">=0.86.1",
|
|
75
75
|
"@effect/opentelemetry": ">=0.63.0",
|
|
76
76
|
"@effect/platform": ">=0.96.0",
|
|
77
77
|
"@effect/platform-browser": ">=0.76.0",
|
|
@@ -90,7 +90,7 @@ const silkCatalogs = {
|
|
|
90
90
|
"@types/node": "^25.6.0",
|
|
91
91
|
"@types/react": "^19.2.0",
|
|
92
92
|
"@types/react-dom": "^19.2.0",
|
|
93
|
-
"@typescript/native-preview": "^7.0.0-dev.
|
|
93
|
+
"@typescript/native-preview": "^7.0.0-dev.20260513.1",
|
|
94
94
|
effect: ">=3.21.0",
|
|
95
95
|
react: "^19.2.0",
|
|
96
96
|
"react-dom": "^19.2.0",
|
package/package.json
CHANGED
package/pnpmfile.cjs
CHANGED
|
@@ -4127,33 +4127,6 @@ const fiberRefModify = /*#__PURE__*/ Function_dual(2, (self, f)=>withFiberRuntim
|
|
|
4127
4127
|
return succeed(b);
|
|
4128
4128
|
}));
|
|
4129
4129
|
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
4130
|
const fiberRefLocally = /*#__PURE__*/ Function_dual(3, (use, self, value)=>acquireUseRelease(core_zipLeft(fiberRefGet(self), fiberRefSet(self, value)), ()=>use, (oldValue)=>fiberRefSet(self, oldValue)));
|
|
4158
4131
|
const fiberRefLocallyWith = /*#__PURE__*/ Function_dual(3, (use, self, f)=>fiberRefGetWith(self, (a)=>fiberRefLocally(use, self, f(a))));
|
|
4159
4132
|
const fiberRefUnsafeMake = (initial, options)=>fiberRefUnsafeMakePatch(initial, {
|
|
@@ -5710,27 +5683,6 @@ class MicroFiberImpl {
|
|
|
5710
5683
|
const fiberMiddleware = /*#__PURE__*/ GlobalValue_globalValue("effect/Micro/fiberMiddleware", ()=>({
|
|
5711
5684
|
interruptChildren: void 0
|
|
5712
5685
|
}));
|
|
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
5686
|
const identifier = /*#__PURE__*/ Symbol.for("effect/Micro/identifier");
|
|
5735
5687
|
const Micro_args = /*#__PURE__*/ Symbol.for("effect/Micro/args");
|
|
5736
5688
|
const Micro_evaluate = /*#__PURE__*/ Symbol.for("effect/Micro/evaluate");
|
|
@@ -5836,8 +5788,6 @@ const Micro_failCause = /*#__PURE__*/ makeExit({
|
|
|
5836
5788
|
return cont ? cont[failureCont](this[Micro_args], fiber) : fiber.yieldWith(this);
|
|
5837
5789
|
}
|
|
5838
5790
|
});
|
|
5839
|
-
const Micro_sync = /*#__PURE__*/ null;
|
|
5840
|
-
const Micro_suspend = /*#__PURE__*/ null;
|
|
5841
5791
|
const yieldNowWith = /*#__PURE__*/ makePrimitive({
|
|
5842
5792
|
op: "Yield",
|
|
5843
5793
|
eval (fiber) {
|
|
@@ -5859,13 +5809,6 @@ const withMicroFiber = /*#__PURE__*/ makePrimitive({
|
|
|
5859
5809
|
return this[Micro_args](fiber);
|
|
5860
5810
|
}
|
|
5861
5811
|
});
|
|
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
5812
|
const Micro_flatMap = /*#__PURE__*/ Function_dual(2, (self, f)=>{
|
|
5870
5813
|
const onSuccess = Object.create(OnSuccessProto);
|
|
5871
5814
|
onSuccess[Micro_args] = self;
|
|
@@ -5885,10 +5828,6 @@ const Micro_exitFailCause = Micro_failCause;
|
|
|
5885
5828
|
const Micro_exitInterrupt = /*#__PURE__*/ Micro_exitFailCause(/*#__PURE__*/ causeInterrupt());
|
|
5886
5829
|
const Micro_exitDie = (defect)=>Micro_exitFailCause(causeDie(defect));
|
|
5887
5830
|
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
5831
|
const setImmediate = "setImmediate" in globalThis ? globalThis.setImmediate : (f)=>setTimeout(f, 0);
|
|
5893
5832
|
class MicroSchedulerDefault {
|
|
5894
5833
|
tasks = [];
|
|
@@ -5929,8 +5868,6 @@ class MaxOpsBeforeYield extends /*#__PURE__*/ Context_Reference()("effect/Micro/
|
|
|
5929
5868
|
defaultValue: ()=>2048
|
|
5930
5869
|
}) {
|
|
5931
5870
|
}
|
|
5932
|
-
class CurrentConcurrency extends /*#__PURE__*/ null {
|
|
5933
|
-
}
|
|
5934
5871
|
class CurrentScheduler extends /*#__PURE__*/ Context_Reference()("effect/Micro/currentScheduler", {
|
|
5935
5872
|
defaultValue: ()=>new MicroSchedulerDefault()
|
|
5936
5873
|
}) {
|
|
@@ -5949,61 +5886,6 @@ const OnSuccessAndFailureProto = /*#__PURE__*/ makePrimitiveProto({
|
|
|
5949
5886
|
return this[Micro_args];
|
|
5950
5887
|
}
|
|
5951
5888
|
});
|
|
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
5889
|
const Micro_onExit = /*#__PURE__*/ Function_dual(2, (self, f)=>Micro_uninterruptibleMask((restore)=>Micro_matchCauseEffect(restore(self), {
|
|
6008
5890
|
onFailure: (cause)=>Micro_flatMap(f(Micro_exitFailCause(cause)), ()=>Micro_failCause(cause)),
|
|
6009
5891
|
onSuccess: (a)=>Micro_flatMap(f(Micro_exitSucceed(a)), ()=>Micro_succeed(a))
|
|
@@ -6028,78 +5910,6 @@ const Micro_uninterruptibleMask = (f)=>withMicroFiber((fiber)=>{
|
|
|
6028
5910
|
fiber._stack.push(setInterruptible(true));
|
|
6029
5911
|
return f(Micro_interruptible);
|
|
6030
5912
|
});
|
|
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
5913
|
const runFork = (effect, options)=>{
|
|
6104
5914
|
const fiber = new MicroFiberImpl(CurrentScheduler.context(options?.scheduler ?? new MicroSchedulerDefault()));
|
|
6105
5915
|
fiber.evaluate(effect);
|
|
@@ -10288,7 +10098,7 @@ const silkCatalogs = {
|
|
|
10288
10098
|
"@effect/cli": "^0.75.1",
|
|
10289
10099
|
"@effect/cluster": "^0.58.2",
|
|
10290
10100
|
"@effect/experimental": "^0.60.0",
|
|
10291
|
-
"@effect/language-service": "^0.
|
|
10101
|
+
"@effect/language-service": "^0.86.1",
|
|
10292
10102
|
"@effect/opentelemetry": "^0.63.0",
|
|
10293
10103
|
"@effect/platform": "^0.96.1",
|
|
10294
10104
|
"@effect/platform-browser": "^0.76.0",
|
|
@@ -10303,14 +10113,14 @@ const silkCatalogs = {
|
|
|
10303
10113
|
"@effect/sql-sqlite-bun": "^0.52.0",
|
|
10304
10114
|
"@effect/sql-sqlite-node": "^0.52.0",
|
|
10305
10115
|
"@effect/typeclass": "^0.40.0",
|
|
10306
|
-
"@effect/workflow": "^0.18.
|
|
10307
|
-
"@types/node": "^25.
|
|
10116
|
+
"@effect/workflow": "^0.18.1",
|
|
10117
|
+
"@types/node": "^25.7.0",
|
|
10308
10118
|
"@types/react": "^19.2.14",
|
|
10309
10119
|
"@types/react-dom": "^19.2.3",
|
|
10310
|
-
"@typescript/native-preview": "^7.0.0-dev.
|
|
10120
|
+
"@typescript/native-preview": "^7.0.0-dev.20260513.1",
|
|
10311
10121
|
effect: "^3.21.2",
|
|
10312
|
-
react: "^19.2.
|
|
10313
|
-
"react-dom": "^19.2.
|
|
10122
|
+
react: "^19.2.6",
|
|
10123
|
+
"react-dom": "^19.2.6",
|
|
10314
10124
|
tsx: "^4.21.0",
|
|
10315
10125
|
typescript: "^6.0.3"
|
|
10316
10126
|
},
|
|
@@ -10323,7 +10133,7 @@ const silkCatalogs = {
|
|
|
10323
10133
|
"@effect/cli": ">=0.75.1",
|
|
10324
10134
|
"@effect/cluster": ">=0.58.0",
|
|
10325
10135
|
"@effect/experimental": ">=0.60.0",
|
|
10326
|
-
"@effect/language-service": ">=0.
|
|
10136
|
+
"@effect/language-service": ">=0.86.1",
|
|
10327
10137
|
"@effect/opentelemetry": ">=0.63.0",
|
|
10328
10138
|
"@effect/platform": ">=0.96.0",
|
|
10329
10139
|
"@effect/platform-browser": ">=0.76.0",
|
|
@@ -10342,7 +10152,7 @@ const silkCatalogs = {
|
|
|
10342
10152
|
"@types/node": "^25.6.0",
|
|
10343
10153
|
"@types/react": "^19.2.0",
|
|
10344
10154
|
"@types/react-dom": "^19.2.0",
|
|
10345
|
-
"@typescript/native-preview": "^7.0.0-dev.
|
|
10155
|
+
"@typescript/native-preview": "^7.0.0-dev.20260513.1",
|
|
10346
10156
|
effect: ">=3.21.0",
|
|
10347
10157
|
react: "^19.2.0",
|
|
10348
10158
|
"react-dom": "^19.2.0",
|