@effect/platform-bun 0.29.2 → 0.29.4
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.
|
@@ -10,6 +10,7 @@ var Cause = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("effect/C
|
|
|
10
10
|
var Effect = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("effect/Effect"));
|
|
11
11
|
var Layer = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("effect/Layer"));
|
|
12
12
|
var Queue = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("effect/Queue"));
|
|
13
|
+
var Schedule = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("effect/Schedule"));
|
|
13
14
|
function _getRequireWildcardCache(e) {
|
|
14
15
|
if ("function" != typeof WeakMap) return null;
|
|
15
16
|
var r = new WeakMap(),
|
|
@@ -62,7 +63,7 @@ const platformRunnerImpl = /*#__PURE__*/Runner.PlatformRunner.of({
|
|
|
62
63
|
port.removeEventListener("message", onMessage);
|
|
63
64
|
port.removeEventListener("error", onError);
|
|
64
65
|
});
|
|
65
|
-
}), Effect.tapErrorCause(cause => Cause.isInterruptedOnly(cause) ? Effect.unit : Effect.logDebug(cause)), Effect.
|
|
66
|
+
}), Effect.tapErrorCause(cause => Cause.isInterruptedOnly(cause) ? Effect.unit : Effect.logDebug(cause)), Effect.retry(Schedule.forever), Effect.annotateLogs({
|
|
66
67
|
package: "@effect/platform-bun",
|
|
67
68
|
module: "WorkerRunner"
|
|
68
69
|
}), Effect.forkScoped);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workerRunner.js","names":["_WorkerError","require","Runner","_interopRequireWildcard","Cause","Effect","Layer","Queue","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","platformRunnerImpl","PlatformRunner","of","PlatformRunnerTypeId","start","shutdown","gen","_","self","die","port","queue","unbounded","async","resume","onMessage","event","message","data","unsafeOffer","runFork","onError","error","fail","WorkerError","stack","addEventListener","sync","removeEventListener","tapErrorCause","cause","isInterruptedOnly","unit","logDebug","
|
|
1
|
+
{"version":3,"file":"workerRunner.js","names":["_WorkerError","require","Runner","_interopRequireWildcard","Cause","Effect","Layer","Queue","Schedule","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","platformRunnerImpl","PlatformRunner","of","PlatformRunnerTypeId","start","shutdown","gen","_","self","die","port","queue","unbounded","async","resume","onMessage","event","message","data","unsafeOffer","runFork","onError","error","fail","WorkerError","stack","addEventListener","sync","removeEventListener","tapErrorCause","cause","isInterruptedOnly","unit","logDebug","retry","forever","annotateLogs","package","module","forkScoped","send","transfer","postMessage","layerPlatform","exports","succeed","layer","process","options","provide","layerSerialized","schema","handlers"],"sources":["../../../src/internal/workerRunner.ts"],"sourcesContent":[null],"mappings":";;;;;;AAAA,IAAAA,YAAA,gBAAAC,OAAA;AACA,IAAAC,MAAA,gBAAAC,uBAAA,eAAAF,OAAA;AAEA,IAAAG,KAAA,gBAAAD,uBAAA,eAAAF,OAAA;AACA,IAAAI,MAAA,gBAAAF,uBAAA,eAAAF,OAAA;AACA,IAAAK,KAAA,gBAAAH,uBAAA,eAAAF,OAAA;AACA,IAAAM,KAAA,gBAAAJ,uBAAA,eAAAF,OAAA;AACA,IAAAO,QAAA,gBAAAL,uBAAA,eAAAF,OAAA;AAA2C,SAAAQ,yBAAAC,CAAA;EAAA,yBAAAC,OAAA;EAAA,IAAAC,CAAA,OAAAD,OAAA;IAAAE,CAAA,OAAAF,OAAA;EAAA,QAAAF,wBAAA,YAAAA,CAAAC,CAAA;IAAA,OAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA;EAAA,GAAAF,CAAA;AAAA;AAAA,SAAAP,wBAAAO,CAAA,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AAC,EACtGvD,MAAM,CAAC2D,KAAK,CAACxD,QAAQ,CAACyD,OAAO,CAAC,EAC9B5D,MAAM,CAAC6D,YAAY,CAAC;QAClBC,OAAO,EAAE,sBAAsB;QAC/BC,MAAM,EAAE;OACT,CAAC,EACF/D,MAAM,CAACgE,UAAU,CAClB;MACD,MAAMC,IAAI,GAAGA,CAACvB,OAAU,EAAEwB,QAAiC,KACzDlE,MAAM,CAACoD,IAAI,CAAC,MACVjB,IAAI,CAACgC,WAAW,CAAC,CAAC,CAAC,EAAEzB,OAAO,CAAC,EAAE;QAC7BwB,QAAQ,EAAEA;OACX,CAAC,CACH;MACH;MACA/B,IAAI,CAACgC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;MACrB,OAAO;QAAE/B,KAAK;QAAE6B;MAAI,CAAE;IACxB,CAAC,CAAC;EACJ;CACD,CAAC;AAEF;AACO,MAAMG,aAAa,GAAAC,OAAA,CAAAD,aAAA,gBAAGnE,KAAK,CAACqE,OAAO,CAACzE,MAAM,CAAC6B,cAAc,EAAED,kBAAkB,CAAC;AAErF;AACO,MAAM8C,KAAK,GAAGA,CACnBC,OAA+C,EAC/CC,OAAwC,KACDxE,KAAK,CAACyE,OAAO,CAAC7E,MAAM,CAAC0E,KAAK,CAACC,OAAO,EAAEC,OAAO,CAAC,EAAEL,aAAa,CAAC;AAErG;AAAAC,OAAA,CAAAE,KAAA,GAAAA,KAAA;AACO,MAAMI,eAAe,GAAGA,CAK7BC,MAA2B,EAC3BC,QAAkB,KAKf5E,KAAK,CAACyE,OAAO,CAAC7E,MAAM,CAAC8E,eAAe,CAACC,MAAM,EAAEC,QAAQ,CAAC,EAAET,aAAa,CAAC;AAAAC,OAAA,CAAAM,eAAA,GAAAA,eAAA"}
|
|
@@ -4,6 +4,7 @@ import * as Cause from "effect/Cause";
|
|
|
4
4
|
import * as Effect from "effect/Effect";
|
|
5
5
|
import * as Layer from "effect/Layer";
|
|
6
6
|
import * as Queue from "effect/Queue";
|
|
7
|
+
import * as Schedule from "effect/Schedule";
|
|
7
8
|
const platformRunnerImpl = /*#__PURE__*/Runner.PlatformRunner.of({
|
|
8
9
|
[Runner.PlatformRunnerTypeId]: Runner.PlatformRunnerTypeId,
|
|
9
10
|
start(shutdown) {
|
|
@@ -31,7 +32,7 @@ const platformRunnerImpl = /*#__PURE__*/Runner.PlatformRunner.of({
|
|
|
31
32
|
port.removeEventListener("message", onMessage);
|
|
32
33
|
port.removeEventListener("error", onError);
|
|
33
34
|
});
|
|
34
|
-
}), Effect.tapErrorCause(cause => Cause.isInterruptedOnly(cause) ? Effect.unit : Effect.logDebug(cause)), Effect.
|
|
35
|
+
}), Effect.tapErrorCause(cause => Cause.isInterruptedOnly(cause) ? Effect.unit : Effect.logDebug(cause)), Effect.retry(Schedule.forever), Effect.annotateLogs({
|
|
35
36
|
package: "@effect/platform-bun",
|
|
36
37
|
module: "WorkerRunner"
|
|
37
38
|
}), Effect.forkScoped);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workerRunner.js","names":["WorkerError","Runner","Cause","Effect","Layer","Queue","platformRunnerImpl","PlatformRunner","of","PlatformRunnerTypeId","start","shutdown","gen","_","self","die","port","queue","unbounded","async","resume","onMessage","event","message","data","unsafeOffer","runFork","onError","error","fail","stack","addEventListener","sync","removeEventListener","tapErrorCause","cause","isInterruptedOnly","unit","logDebug","
|
|
1
|
+
{"version":3,"file":"workerRunner.js","names":["WorkerError","Runner","Cause","Effect","Layer","Queue","Schedule","platformRunnerImpl","PlatformRunner","of","PlatformRunnerTypeId","start","shutdown","gen","_","self","die","port","queue","unbounded","async","resume","onMessage","event","message","data","unsafeOffer","runFork","onError","error","fail","stack","addEventListener","sync","removeEventListener","tapErrorCause","cause","isInterruptedOnly","unit","logDebug","retry","forever","annotateLogs","package","module","forkScoped","send","transfer","postMessage","layerPlatform","succeed","layer","process","options","provide","layerSerialized","schema","handlers"],"sources":["../../../src/internal/workerRunner.ts"],"sourcesContent":[null],"mappings":"AA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AAO,CAACrD,MAAM,CAACkD,KAAK,CAACC,OAAO,EAAEC,OAAO,CAAC,EAAEJ,aAAa,CAAC;AAErG;AACA,OAAO,MAAMM,eAAe,GAAGA,CAK7BC,MAA2B,EAC3BC,QAAkB,KAKfrD,KAAK,CAACkD,OAAO,CAACrD,MAAM,CAACsD,eAAe,CAACC,MAAM,EAAEC,QAAQ,CAAC,EAAER,aAAa,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect/platform-bun",
|
|
3
|
-
"version": "0.29.
|
|
3
|
+
"version": "0.29.4",
|
|
4
4
|
"description": "Unified interfaces for common platform-specific services",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
},
|
|
10
10
|
"sideEffects": [],
|
|
11
11
|
"peerDependencies": {
|
|
12
|
-
"@effect/platform": "^0.42.
|
|
13
|
-
"@effect/platform-node": "^0.41.
|
|
14
|
-
"effect": "^2.0
|
|
12
|
+
"@effect/platform": "^0.42.3",
|
|
13
|
+
"@effect/platform-node": "^0.41.4",
|
|
14
|
+
"effect": "^2.1.0"
|
|
15
15
|
},
|
|
16
16
|
"main": "./dist/cjs/index.js",
|
|
17
17
|
"module": "./dist/esm/index.js",
|
|
@@ -5,6 +5,7 @@ import * as Cause from "effect/Cause"
|
|
|
5
5
|
import * as Effect from "effect/Effect"
|
|
6
6
|
import * as Layer from "effect/Layer"
|
|
7
7
|
import * as Queue from "effect/Queue"
|
|
8
|
+
import * as Schedule from "effect/Schedule"
|
|
8
9
|
import type * as Stream from "effect/Stream"
|
|
9
10
|
|
|
10
11
|
declare const self: Worker
|
|
@@ -39,7 +40,7 @@ const platformRunnerImpl = Runner.PlatformRunner.of({
|
|
|
39
40
|
})
|
|
40
41
|
}),
|
|
41
42
|
Effect.tapErrorCause((cause) => Cause.isInterruptedOnly(cause) ? Effect.unit : Effect.logDebug(cause)),
|
|
42
|
-
Effect.
|
|
43
|
+
Effect.retry(Schedule.forever),
|
|
43
44
|
Effect.annotateLogs({
|
|
44
45
|
package: "@effect/platform-bun",
|
|
45
46
|
module: "WorkerRunner"
|