@effect/platform-bun 0.15.2 → 0.15.3

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.
@@ -72,10 +72,10 @@ const platformRunnerImpl = /*#__PURE__*/Runner__namespace.PlatformRunner.of({
72
72
  });
73
73
 
74
74
  /** @internal */
75
- const layer = /*#__PURE__*/Layer__namespace.succeed(Runner__namespace.PlatformRunner, platformRunnerImpl);
75
+ const layer$1 = /*#__PURE__*/Layer__namespace.succeed(Runner__namespace.PlatformRunner, platformRunnerImpl);
76
76
 
77
77
  /** @internal */
78
- const make$1 = (process, options) => Effect__namespace.provide(Runner__namespace.make(process, options), layer);
78
+ const make$1 = (process, options) => Effect__namespace.provide(Runner__namespace.make(process, options), layer$1);
79
79
 
80
80
  /**
81
81
  * @since 1.0.0
@@ -89,6 +89,13 @@ const make$1 = (process, options) => Effect__namespace.provide(Runner__namespace
89
89
  */
90
90
  const make = make$1;
91
91
 
92
+ /**
93
+ * @since 1.0.0
94
+ * @category layers
95
+ */
96
+ const layer = layer$1;
97
+
98
+ exports.layer = layer;
92
99
  exports.make = make;
93
100
  Object.keys(Runner).forEach(function (k) {
94
101
  if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
@@ -72,10 +72,10 @@ const platformRunnerImpl = /*#__PURE__*/Runner__namespace.PlatformRunner.of({
72
72
  });
73
73
 
74
74
  /** @internal */
75
- const layer = /*#__PURE__*/Layer__namespace.succeed(Runner__namespace.PlatformRunner, platformRunnerImpl);
75
+ const layer$1 = /*#__PURE__*/Layer__namespace.succeed(Runner__namespace.PlatformRunner, platformRunnerImpl);
76
76
 
77
77
  /** @internal */
78
- const make$1 = (process, options) => Effect__namespace.provide(Runner__namespace.make(process, options), layer);
78
+ const make$1 = (process, options) => Effect__namespace.provide(Runner__namespace.make(process, options), layer$1);
79
79
 
80
80
  /**
81
81
  * @since 1.0.0
@@ -89,6 +89,13 @@ const make$1 = (process, options) => Effect__namespace.provide(Runner__namespace
89
89
  */
90
90
  const make = make$1;
91
91
 
92
+ /**
93
+ * @since 1.0.0
94
+ * @category layers
95
+ */
96
+ const layer = layer$1;
97
+
98
+ exports.layer = layer;
92
99
  exports.make = make;
93
100
  Object.keys(Runner).forEach(function (k) {
94
101
  if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
@@ -46,10 +46,10 @@ const platformRunnerImpl = /*#__PURE__*/Runner.PlatformRunner.of({
46
46
  });
47
47
 
48
48
  /** @internal */
49
- const layer = /*#__PURE__*/Layer.succeed(Runner.PlatformRunner, platformRunnerImpl);
49
+ const layer$1 = /*#__PURE__*/Layer.succeed(Runner.PlatformRunner, platformRunnerImpl);
50
50
 
51
51
  /** @internal */
52
- const make$1 = (process, options) => Effect.provide(Runner.make(process, options), layer);
52
+ const make$1 = (process, options) => Effect.provide(Runner.make(process, options), layer$1);
53
53
 
54
54
  /**
55
55
  * @since 1.0.0
@@ -63,4 +63,10 @@ const make$1 = (process, options) => Effect.provide(Runner.make(process, options
63
63
  */
64
64
  const make = make$1;
65
65
 
66
- export { make };
66
+ /**
67
+ * @since 1.0.0
68
+ * @category layers
69
+ */
70
+ const layer = layer$1;
71
+
72
+ export { layer, make };
@@ -6,6 +6,7 @@
6
6
  import type { WorkerError } from "@effect/platform/WorkerError";
7
7
  import type * as Runner from "@effect/platform/WorkerRunner";
8
8
  import type { Effect } from "effect";
9
+ import type * as Layer from "effect/Layer";
9
10
  import type * as Scope from "effect/Scope";
10
11
  import type * as Stream from "effect/Stream";
11
12
  /**
@@ -17,4 +18,9 @@ export * from "@effect/platform/WorkerRunner";
17
18
  * @category constructors
18
19
  */
19
20
  export declare const make: <I, R, E, O>(process: (request: I) => Stream.Stream<R, E, O>, options?: Runner.Runner.Options<O> | undefined) => Effect.Effect<R | Scope.Scope, WorkerError, void>;
21
+ /**
22
+ * @since 1.0.0
23
+ * @category layers
24
+ */
25
+ export declare const layer: Layer.Layer<never, never, Runner.PlatformRunner>;
20
26
  //# sourceMappingURL=WorkerRunner.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WorkerRunner.d.ts","sourceRoot":"../../../src","sources":["WorkerRunner.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAC/D,OAAO,KAAK,KAAK,MAAM,MAAM,+BAA+B,CAAA;AAC5D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,KAAK,KAAK,KAAK,MAAM,cAAc,CAAA;AAC1C,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAA;AAG5C;;GAEG;AACH,cAAc,+BAA+B,CAAA;AAE7C;;;GAGG;AACH,eAAO,MAAM,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAC5B,OAAO,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAC/C,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,SAAS,KAC3C,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,KAAK,CAAC,KAAK,EAAE,WAAW,EAAE,IAAI,CAAiB,CAAA"}
1
+ {"version":3,"file":"WorkerRunner.d.ts","sourceRoot":"../../../src","sources":["WorkerRunner.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAC/D,OAAO,KAAK,KAAK,MAAM,MAAM,+BAA+B,CAAA;AAC5D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,KAAK,KAAK,KAAK,MAAM,cAAc,CAAA;AAC1C,OAAO,KAAK,KAAK,KAAK,MAAM,cAAc,CAAA;AAC1C,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAA;AAG5C;;GAEG;AACH,cAAc,+BAA+B,CAAA;AAE7C;;;GAGG;AACH,eAAO,MAAM,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAC5B,OAAO,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAC/C,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,SAAS,KAC3C,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,KAAK,CAAC,KAAK,EAAE,WAAW,EAAE,IAAI,CAAiB,CAAA;AAEtE;;;GAGG;AACH,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,cAAc,CAAkB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effect/platform-bun",
3
- "version": "0.15.2",
3
+ "version": "0.15.3",
4
4
  "description": "Unified interfaces for common platform-specific services",
5
5
  "main": "dist/effect-platform-bun.cjs.js",
6
6
  "module": "dist/effect-platform-bun.esm.js",
@@ -31,7 +31,7 @@
31
31
  "sideEffects": false,
32
32
  "dependencies": {
33
33
  "@effect/platform": "^0.26.2",
34
- "@effect/platform-node": "^0.27.2"
34
+ "@effect/platform-node": "^0.27.3"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@effect/schema": "^0.46.1",
@@ -6,6 +6,7 @@
6
6
  import type { WorkerError } from "@effect/platform/WorkerError"
7
7
  import type * as Runner from "@effect/platform/WorkerRunner"
8
8
  import type { Effect } from "effect"
9
+ import type * as Layer from "effect/Layer"
9
10
  import type * as Scope from "effect/Scope"
10
11
  import type * as Stream from "effect/Stream"
11
12
  import * as internal from "./internal/workerRunner"
@@ -23,3 +24,9 @@ export const make: <I, R, E, O>(
23
24
  process: (request: I) => Stream.Stream<R, E, O>,
24
25
  options?: Runner.Runner.Options<O> | undefined
25
26
  ) => Effect.Effect<R | Scope.Scope, WorkerError, void> = internal.make
27
+
28
+ /**
29
+ * @since 1.0.0
30
+ * @category layers
31
+ */
32
+ export const layer: Layer.Layer<never, never, Runner.PlatformRunner> = internal.layer