effect-app 3.0.10 → 3.2.0

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.
Files changed (65) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/Chunk.d.ts +1 -1
  3. package/dist/Chunk.d.ts.map +1 -1
  4. package/dist/Chunk.js +1 -1
  5. package/dist/Context.js +5 -5
  6. package/dist/Schema/ext.d.ts +5 -27
  7. package/dist/Schema/ext.d.ts.map +1 -1
  8. package/dist/Schema/ext.js +7 -19
  9. package/dist/Schema/schema.d.ts +1 -1
  10. package/dist/Schema/schema.d.ts.map +1 -1
  11. package/dist/Schema/schema.js +3 -2
  12. package/dist/Schema.d.ts +1 -1
  13. package/dist/Schema.d.ts.map +1 -1
  14. package/dist/Schema.js +2 -2
  15. package/dist/Tag.js +2 -2
  16. package/dist/client/apiClientFactory.d.ts +10 -4
  17. package/dist/client/apiClientFactory.d.ts.map +1 -1
  18. package/dist/client/apiClientFactory.js +12 -2
  19. package/dist/client/clientFor.d.ts +10 -10
  20. package/dist/client/clientFor.d.ts.map +1 -1
  21. package/dist/client/clientFor.js +2 -2
  22. package/dist/client/errors.d.ts +5 -4
  23. package/dist/client/errors.d.ts.map +1 -1
  24. package/dist/client/errors.js +3 -2
  25. package/dist/client/makeClient.d.ts +1 -1
  26. package/dist/client/makeClient.d.ts.map +1 -1
  27. package/dist/client/makeClient.js +2 -2
  28. package/dist/http/Request.d.ts +1 -1
  29. package/dist/http/Request.d.ts.map +1 -1
  30. package/dist/http/Request.js +3 -2
  31. package/dist/index.d.ts +15 -1
  32. package/dist/index.d.ts.map +1 -1
  33. package/dist/index.js +14 -2
  34. package/dist/rpc/MiddlewareMaker.d.ts +2 -3
  35. package/dist/rpc/MiddlewareMaker.d.ts.map +1 -1
  36. package/dist/rpc/MiddlewareMaker.js +2 -2
  37. package/dist/utils.d.ts +2 -0
  38. package/dist/utils.d.ts.map +1 -1
  39. package/dist/utils.js +3 -1
  40. package/package.json +3 -3
  41. package/src/Chunk.ts +1 -1
  42. package/src/Context.ts +4 -4
  43. package/src/Schema/ext.ts +3 -52
  44. package/src/Schema/schema.ts +1 -1
  45. package/src/Schema.ts +1 -1
  46. package/src/Tag.ts +1 -1
  47. package/src/client/apiClientFactory.ts +20 -8
  48. package/src/client/clientFor.ts +13 -12
  49. package/src/client/errors.ts +3 -2
  50. package/src/client/makeClient.ts +1 -1
  51. package/src/http/Request.ts +2 -1
  52. package/src/index.ts +20 -1
  53. package/src/rpc/MiddlewareMaker.ts +3 -4
  54. package/src/transform.ts +5 -5
  55. package/src/utils.ts +3 -1
  56. package/dist/internal/Prelude.d.ts +0 -126
  57. package/dist/internal/Prelude.d.ts.map +0 -1
  58. package/dist/internal/Prelude.js +0 -24
  59. package/dist/internal/lib.d.ts +0 -11
  60. package/dist/internal/lib.d.ts.map +0 -1
  61. package/dist/internal/lib.js +0 -12
  62. package/src/internal/Prelude.d.ts +0 -126
  63. package/src/internal/Prelude.d.ts.map +0 -1
  64. package/src/internal/Prelude.js +0 -24
  65. package/src/internal/lib.ts +0 -17
package/src/Context.ts CHANGED
@@ -124,7 +124,7 @@ export const proxify = <T extends object>(Tag: T) =>
124
124
  // const c: {
125
125
  // new(): Context.TagClassShape<Key, ServiceImpl>
126
126
  // toLayer: () => Layer<Id, E, R>
127
- // toLayerScoped: () => Layer<Id, E, Exclude<R, Scope>>
127
+ // toLayerScoped: () => Layer<Id, E, Exclude<R, Scope.Scope>>
128
128
  // } = class {
129
129
  // static toLayer = () => {
130
130
  // return Layer.effect(this as any, make)
@@ -146,7 +146,7 @@ export const proxify = <T extends object>(Tag: T) =>
146
146
  // Error.stackTraceLimit = limit
147
147
  // const c: (abstract new(impl: ServiceImpl) => Readonly<ServiceImpl>) & {
148
148
  // toLayer: <E, R>(eff: Effect.Effect<ServiceImpl, E, R>) => Layer<Id, E, R>
149
- // toLayerScoped: <E, R>(eff: Effect.Effect<ServiceImpl, E, R>) => Layer<Id, E, Exclude<R, Scope>>
149
+ // toLayerScoped: <E, R>(eff: Effect.Effect<ServiceImpl, E, R>) => Layer<Id, E, Exclude<R, Scope.Scope>>
150
150
  // } = class {
151
151
  // constructor(service: ServiceImpl) {
152
152
  // Object.assign(this, service)
@@ -178,8 +178,8 @@ export const proxify = <T extends object>(Tag: T) =>
178
178
  // const c: (abstract new(impl: ServiceImpl) => Readonly<ServiceImpl>) & {
179
179
  // toLayer: { (): Layer<Id, E, R>; <E, R>(eff: Effect.Effect<ServiceImpl, E, R>): Layer<Id, E, R> }
180
180
  // toLayerScoped: {
181
- // (): Layer<Id, E, Exclude<R, Scope>>
182
- // <E, R>(eff: Effect.Effect<ServiceImpl, E, R>): Layer<Id, E, Exclude<R, Scope>>
181
+ // (): Layer<Id, E, Exclude<R, Scope.Scope>>
182
+ // <E, R>(eff: Effect.Effect<ServiceImpl, E, R>): Layer<Id, E, Exclude<R, Scope.Scope>>
183
183
  // }
184
184
  // make: Effect.Effect<Id, E, R>
185
185
  // } = class {
package/src/Schema/ext.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  /* eslint-disable @typescript-eslint/no-explicit-any */
2
2
  /* eslint-disable @typescript-eslint/no-unsafe-return */
3
3
  import { Effect, ParseResult, pipe, type SchemaAST } from "effect"
4
- import type { NonEmptyReadonlyArray } from "effect/Array"
5
4
  import type { Tag } from "effect/Context"
6
5
  import type { Schema } from "effect/Schema"
7
6
  import * as S from "effect/Schema"
@@ -22,73 +21,26 @@ export const Boolean = Object.assign(S.Boolean, {
22
21
  export const Number = Object.assign(S.Number, { withDefault: S.Number.pipe(withDefaultConstructor(() => 0)) })
23
22
 
24
23
  /**
25
- * Like the default Schema `Struct` but with batching enabled by default
26
- */
27
- export function Struct<Fields extends S.Struct.Fields, const Records extends S.IndexSignature.NonEmptyRecords>(
28
- fields: Fields,
29
- ...records: Records
30
- ): S.TypeLiteral<Fields, Records>
31
- export function Struct<Fields extends S.Struct.Fields>(fields: Fields): S.Struct<Fields>
32
- export function Struct<Fields extends S.Struct.Fields, const Records extends S.IndexSignature.Records>(
33
- fields: Fields,
34
- ...records: Records
35
- ): S.TypeLiteral<Fields, Records> {
36
- return S.Struct(fields, ...records as any).pipe(S.annotations({ batching: true }))
37
- }
38
-
39
- export declare namespace Struct {
40
- export type Fields = S.Struct.Fields
41
- export type Type<F extends Fields> = S.Struct.Type<F>
42
- export type Encoded<F extends Fields> = S.Struct.Encoded<F>
43
- export type Context<F extends Fields> = S.Struct.Context<F>
44
- export type Constructor<F extends Fields> = S.Struct.Constructor<F>
45
- }
46
-
47
- /**
48
- * Like the default Schema `tuple` but with batching enabled by default
49
- */
50
- export function Tuple<
51
- const Elements extends S.TupleType.Elements,
52
- Rest extends NonEmptyReadonlyArray<Schema.Any>
53
- >(elements: Elements, ...rest: Rest): S.TupleType<Elements, Rest>
54
- export function Tuple<Elements extends S.TupleType.Elements>(...elements: Elements): S.Tuple<Elements>
55
- export function Tuple(...args: ReadonlyArray<any>): any {
56
- return S.Tuple(...args).pipe(S.annotations({ batching: true }))
57
- }
58
-
59
- /**
60
- * Like the default Schema `NonEmptyArray` but with batching enabled by default
61
- */
62
- export function NonEmptyArray<Value extends Schema.Any>(value: Value): S.NonEmptyArray<Value> {
63
- return pipe(
64
- S.NonEmptyArray(value),
65
- S.annotations({ batching: true })
66
- )
67
- }
68
-
69
- /**
70
- * Like the default Schema `Array` but with `withDefault` and batching enabled by default
24
+ * Like the default Schema `Array` but with `withDefault`
71
25
  */
72
26
  export function Array<Value extends Schema.Any>(value: Value) {
73
27
  return pipe(
74
28
  S.Array(value),
75
- S.annotations({ batching: true }),
76
29
  (s) => Object.assign(s, { withDefault: s.pipe(withDefaultConstructor(() => [])) })
77
30
  )
78
31
  }
79
32
 
80
33
  /**
81
- * Like the default Schema `ReadonlySet` but with `withDefault` and batching enabled by default
34
+ * Like the default Schema `ReadonlySet` but with `withDefault`
82
35
  */
83
36
  export const ReadonlySet = <Value extends Schema.Any>(value: Value) =>
84
37
  pipe(
85
38
  S.ReadonlySet(value),
86
- S.annotations({ batching: true }),
87
39
  (s) => Object.assign(s, { withDefault: s.pipe(withDefaultConstructor(() => new Set<S.Schema.Type<Value>>())) })
88
40
  )
89
41
 
90
42
  /**
91
- * Like the default Schema `ReadonlyMap` but with `withDefault` and batching enabled by default
43
+ * Like the default Schema `ReadonlyMap` but with `withDefault`
92
44
  */
93
45
  export const ReadonlyMap = <K extends Schema.Any, V extends Schema.Any>(pair: {
94
46
  readonly key: K
@@ -96,7 +48,6 @@ export const ReadonlyMap = <K extends Schema.Any, V extends Schema.Any>(pair: {
96
48
  }) =>
97
49
  pipe(
98
50
  S.ReadonlyMap(pair),
99
- S.annotations({ batching: true }),
100
51
  (s) => Object.assign(s, { withDefault: s.pipe(withDefaultConstructor(() => new Map())) })
101
52
  )
102
53
 
@@ -1,5 +1,5 @@
1
1
  import * as A from "effect/Arbitrary"
2
- import type * as B from "effect/Brand"
2
+ import * as B from "effect/Brand"
3
3
  import * as P from "effect/ParseResult"
4
4
  import * as AST from "effect/SchemaAST"
5
5
 
package/src/Schema.ts CHANGED
@@ -14,7 +14,7 @@ export * from "./Schema/Class.js"
14
14
  export { Class, TaggedClass } from "./Schema/Class.js"
15
15
 
16
16
  export { fromBrand, nominal } from "./Schema/brand.js"
17
- export { Array, Boolean, Date, NonEmptyArray, NullOr, Number, ReadonlyMap, ReadonlySet, Struct, Tuple } from "./Schema/ext.js"
17
+ export { Array, Boolean, Date, NullOr, Number, ReadonlyMap, ReadonlySet } from "./Schema/ext.js"
18
18
  export { Int, NonNegativeInt } from "./Schema/numbers.js"
19
19
 
20
20
  export * from "./Schema/email.js"
package/src/Tag.ts CHANGED
@@ -1,4 +1,4 @@
1
- // export function accessM_<T, I, R, E, A>(self: Tag<T, I>, f: (x: T) => Effect<R, E, A>) {
1
+ // export function accessM_<T, I, R, E, A>(self: Tag<T, I>, f: (x: T) => Effect.Effect<R, E, A>) {
2
2
  // return Effect.serviceWithEffect(self)(f)
3
3
  // }
4
4
 
@@ -1,13 +1,23 @@
1
1
  /* eslint-disable @typescript-eslint/no-explicit-any */
2
2
  import { Rpc, RpcClient, RpcGroup, RpcSerialization } from "@effect/rpc"
3
+ import * as Config from "effect/Config"
4
+ import { flow } from "effect/Function"
5
+ import * as HashMap from "effect/HashMap"
6
+ import * as Layer from "effect/Layer"
7
+ import * as ManagedRuntime from "effect/ManagedRuntime"
8
+ import * as Predicate from "effect/Predicate"
9
+ import * as Struct from "effect/Struct"
10
+ import * as Context from "../Context.js"
11
+ import * as Effect from "../Effect.js"
3
12
  import { HttpClient, HttpClientRequest } from "../http.js"
4
- import { Config, Context, Effect, flow, HashMap, Layer, ManagedRuntime, Option, Predicate, S, Struct } from "../internal/lib.js"
13
+ import * as Option from "../Option.js"
14
+ import * as S from "../Schema.js"
5
15
  import { typedKeysOf, typedValuesOf } from "../utils.js"
6
16
  import type { Client, ClientForOptions, Requests } from "./clientFor.js"
7
17
 
8
18
  export interface ApiConfig {
9
19
  url: string
10
- headers: Option<HashMap<string, string>>
20
+ headers: Option.Option<HashMap.HashMap<string, string>>
11
21
  }
12
22
 
13
23
  export const DefaultApiConfig = Config.all({
@@ -202,7 +212,9 @@ const makeApiClientFactory = Effect
202
212
  prev[cur] = Object.keys(fields).length === 0
203
213
  ? {
204
214
  handler: TheClient.pipe(
205
- Effect.flatMap((client) => (client as any)[requestAttr]!(new Request()) as Effect<any, any, never>),
215
+ Effect.flatMap((client) =>
216
+ (client as any)[requestAttr]!(new Request()) as Effect.Effect<any, any, never>
217
+ ),
206
218
  Effect.provide(requestLevelLayers),
207
219
  Effect.provide(mr),
208
220
  Effect.provide(requestNameLayer)
@@ -211,7 +223,7 @@ const makeApiClientFactory = Effect
211
223
  raw: {
212
224
  handler: TheClient.pipe(
213
225
  Effect.flatMap((client) =>
214
- (client as any)[requestAttr]!(new Request()) as Effect<any, any, never>
226
+ (client as any)[requestAttr]!(new Request()) as Effect.Effect<any, any, never>
215
227
  ),
216
228
  Effect.flatMap((res) => S.encode(Response)(res)), // TODO,
217
229
  Effect.provide(requestLevelLayers),
@@ -226,7 +238,7 @@ const makeApiClientFactory = Effect
226
238
  handler: (req: any) =>
227
239
  TheClient.pipe(
228
240
  Effect.flatMap((client) =>
229
- (client as any)[requestAttr]!(new Request(req)) as Effect<any, any, never>
241
+ (client as any)[requestAttr]!(new Request(req)) as Effect.Effect<any, any, never>
230
242
  ),
231
243
  Effect.provide(requestLevelLayers),
232
244
  Effect.provide(mr),
@@ -239,7 +251,7 @@ const makeApiClientFactory = Effect
239
251
  // @effect-diagnostics effect/missingEffectContext:off
240
252
  TheClient.pipe(
241
253
  Effect.flatMap((client) =>
242
- (client as any)[requestAttr]!(new Request(req)) as Effect<any, any, never>
254
+ (client as any)[requestAttr]!(new Request(req)) as Effect.Effect<any, any, never>
243
255
  ),
244
256
  Effect.flatMap((res) => S.encode(Response)(res)), // TODO,
245
257
  Effect.provide(requestLevelLayers),
@@ -270,7 +282,7 @@ const makeApiClientFactory = Effect
270
282
 
271
283
  return <M extends Requests>(
272
284
  models: M
273
- ): Effect<Client<Omit<M, "meta">>> =>
285
+ ): Effect.Effect<Client<Omit<M, "meta">>> =>
274
286
  Effect.gen(function*() {
275
287
  const found = cache.get(models)
276
288
  if (found) {
@@ -290,7 +302,7 @@ const makeApiClientFactory = Effect
290
302
  * Used to create clients for resource modules.
291
303
  */
292
304
  export class ApiClientFactory
293
- extends Context.TagId("ApiClientFactory")<ApiClientFactory, Effect.Success<typeof makeApiClientFactory>>()
305
+ extends Context.TagId("ApiClientFactory")<ApiClientFactory, Effect.Effect.Success<typeof makeApiClientFactory>>()
294
306
  {
295
307
  static readonly layer = (config: ApiConfig) =>
296
308
  this.toLayerScoped(makeApiClientFactory).pipe(Layer.provide(RpcSerializationLayer(config)))
@@ -1,10 +1,11 @@
1
1
  /* eslint-disable @typescript-eslint/no-unsafe-argument */
2
2
  /* eslint-disable @typescript-eslint/no-explicit-any */
3
3
 
4
+ import * as Record from "effect/Record"
4
5
  import type * as Request from "effect/Request"
5
6
  import type { Path } from "path-parser"
6
7
  import qs from "query-string"
7
- import { type Effect, Record, type Schema } from "../internal/lib.js"
8
+ import type * as Effect from "../Effect.js"
8
9
  import type * as S from "../Schema.js"
9
10
 
10
11
  export function makePathWithQuery(
@@ -54,18 +55,18 @@ export type Client<M extends Requests> = RequestHandlers<
54
55
  M
55
56
  >
56
57
 
57
- export type ExtractResponse<T> = T extends Schema<any, any, any> ? Schema.Type<T>
58
+ export type ExtractResponse<T> = T extends S.Schema<any, any, any> ? S.Schema.Type<T>
58
59
  : T extends unknown ? void
59
60
  : never
60
61
 
61
- export type ExtractEResponse<T> = T extends Schema<any, any, any> ? Schema.Encoded<T>
62
+ export type ExtractEResponse<T> = T extends S.Schema<any, any, any> ? S.Schema.Encoded<T>
62
63
  : T extends unknown ? void
63
64
  : never
64
65
 
65
66
  type IsEmpty<T> = keyof T extends never ? true
66
67
  : false
67
68
 
68
- type Cruft = "_tag" | Request.RequestTypeId | typeof Schema.symbolSerializable | typeof Schema.symbolWithResult
69
+ type Cruft = "_tag" | Request.RequestTypeId | typeof S.symbolSerializable | typeof S.symbolWithResult
69
70
 
70
71
  export type TaggedRequestClassAny = S.Schema.Any & {
71
72
  readonly _tag: string
@@ -80,14 +81,14 @@ export interface ClientForOptions {
80
81
  }
81
82
 
82
83
  export interface RequestHandler<A, E, R, Request extends TaggedRequestClassAny> {
83
- handler: Effect<A, E, R>
84
+ handler: Effect.Effect<A, E, R>
84
85
  name: string
85
86
  options?: ClientForOptions
86
87
  Request: Request
87
88
  }
88
89
 
89
90
  export interface RequestHandlerWithInput<I, A, E, R, Request extends TaggedRequestClassAny> {
90
- handler: (i: I) => Effect<A, E, R>
91
+ handler: (i: I) => Effect.Effect<A, E, R>
91
92
  name: string
92
93
  options?: ClientForOptions
93
94
  Request: Request
@@ -96,22 +97,22 @@ export interface RequestHandlerWithInput<I, A, E, R, Request extends TaggedReque
96
97
  // make sure this is exported or d.ts of apiClientFactory breaks?!
97
98
  export type RequestHandlers<R, E, M extends Requests> = {
98
99
  [K in keyof M]: IsEmpty<Omit<S.Schema.Type<M[K]>, Cruft>> extends true
99
- ? RequestHandler<Schema.Type<M[K]["success"]>, Schema.Schema.Type<M[K]["failure"]> | E, R, M[K]> & {
100
- raw: RequestHandler<Schema.Type<M[K]["success"]>, Schema.Schema.Type<M[K]["failure"]> | E, R, M[K]>
100
+ ? RequestHandler<S.Schema.Type<M[K]["success"]>, S.Schema.Type<M[K]["failure"]> | E, R, M[K]> & {
101
+ raw: RequestHandler<S.Schema.Type<M[K]["success"]>, S.Schema.Type<M[K]["failure"]> | E, R, M[K]>
101
102
  }
102
103
  :
103
104
  & RequestHandlerWithInput<
104
105
  Omit<S.Schema.Type<M[K]>, Cruft>,
105
- Schema.Schema.Type<M[K]["success"]>,
106
- Schema.Schema.Type<M[K]["failure"]> | E,
106
+ S.Schema.Type<M[K]["success"]>,
107
+ S.Schema.Type<M[K]["failure"]> | E,
107
108
  R,
108
109
  M[K]
109
110
  >
110
111
  & {
111
112
  raw: RequestHandlerWithInput<
112
113
  Omit<S.Schema.Type<M[K]>, Cruft>,
113
- Schema.Schema.Encoded<M[K]["success"]>,
114
- Schema.Schema.Type<M[K]["failure"]> | E,
114
+ S.Schema.Encoded<M[K]["success"]>,
115
+ S.Schema.Type<M[K]["failure"]> | E,
115
116
  R,
116
117
  M[K]
117
118
  >
@@ -1,7 +1,8 @@
1
1
  /** @effect-diagnostics overriddenSchemaConstructor:skip-file */
2
2
  import { TaggedError } from "effect-app/Schema"
3
+ import * as Cause from "effect/Cause"
3
4
  import { makeFiberFailure } from "effect/Runtime"
4
- import { Cause, S } from "../internal/lib.js"
5
+ import * as S from "../Schema.js"
5
6
 
6
7
  export const tryToJson = (error: { toJSON(): unknown; toString(): string }) => {
7
8
  try {
@@ -169,7 +170,7 @@ export const silenceError = (e: Record<PropertyKey, any>) => {
169
170
  }
170
171
 
171
172
  export class CauseException<E> extends Error {
172
- constructor(readonly originalCause: Cause<E>, readonly _tag: string) {
173
+ constructor(readonly originalCause: Cause.Cause<E>, readonly _tag: string) {
173
174
  const limit = Error.stackTraceLimit
174
175
  Error.stackTraceLimit = 0
175
176
  super()
@@ -1,5 +1,5 @@
1
- import { S } from "../internal/lib.js"
2
1
  import { type GetContextConfig, type GetEffectError, type RequestContextMapTagAny } from "../rpc/RpcContextMap.js"
2
+ import * as S from "../Schema.js"
3
3
  import { AST } from "../Schema.js"
4
4
 
5
5
  // TODO: Fix error types... (?)
@@ -1,5 +1,6 @@
1
1
  import type { HttpClientResponse } from "@effect/platform/HttpClientResponse"
2
- import { Effect, Option } from "../internal/lib.js"
2
+ import * as Effect from "../Effect.js"
3
+ import * as Option from "../Option.js"
3
4
  import { HttpClient, HttpClientError, HttpClientRequest, HttpHeaders } from "./internal/lib.js"
4
5
 
5
6
  export interface ResponseWithBody<A> extends Pick<HttpClientResponse, "headers" | "status" | "remoteAddress"> {
package/src/index.ts CHANGED
@@ -1,3 +1,22 @@
1
1
  import "./builtin.js"
2
2
 
3
- export * from "./internal/lib.js"
3
+ export * as Fnc from "./Function.js"
4
+ export * as Utils from "./utils.js"
5
+
6
+ export * as Array from "./Array.js"
7
+ export * as Context from "./Context.js"
8
+ export * as Effect from "./Effect.js"
9
+ export * as Layer from "./Layer.js"
10
+ export * as NonEmptySet from "./NonEmptySet.js"
11
+ export * as Set from "./Set.js"
12
+
13
+ export { type NonEmptyArray, type NonEmptyReadonlyArray } from "./Array.js"
14
+
15
+ export * from "effect"
16
+
17
+ export * as Struct from "./Struct.js"
18
+ export type * as Types from "./Types.js"
19
+
20
+ export * as SecretURL from "./Config/SecretURL.js"
21
+ export * as S from "./Schema.js"
22
+ export { copy } from "./utils.js"
@@ -1,9 +1,8 @@
1
1
  /* eslint-disable @typescript-eslint/no-explicit-any */
2
2
  import { Rpc, type RpcGroup, type RpcMiddleware, type RpcSchema } from "@effect/rpc"
3
3
  import { type HandlersFrom } from "@effect/rpc/RpcGroup"
4
- import { Context, Effect, Layer, type Schema, Schema as S } from "effect"
4
+ import { Context, Effect, Layer, type Schema, Schema as S, type Scope } from "effect"
5
5
  import { type NonEmptyArray, type NonEmptyReadonlyArray } from "effect/Array"
6
- import { type Scope } from "effect/Scope"
7
6
  import { type Simplify } from "effect/Types"
8
7
  import { PreludeLogger } from "../logger.js"
9
8
  import { type TypeTestId } from "../TypeTest.js"
@@ -261,7 +260,7 @@ const middlewareMaker = <
261
260
  return Effect.gen(function*() {
262
261
  const context = yield* Effect.context()
263
262
 
264
- // returns a Effect/RpcMiddlewareV4 with Scope in requirements
263
+ // returns a Effect/RpcMiddlewareV4 with Scope.Scope in requirements
265
264
  return (
266
265
  _options: Parameters<
267
266
  RpcMiddleware.RpcMiddlewareWrap<
@@ -446,7 +445,7 @@ export const middlewareGroup = <
446
445
  ): Layer.Layer<
447
446
  Rpc.ToHandler<RN>,
448
447
  EX,
449
- | Exclude<RX, Scope>
448
+ | Exclude<RX, Scope.Scope>
450
449
  | RpcMiddlewareX.HandlersContext<RN, Handlers>
451
450
  > => {
452
451
  return toLayerOriginal(build as any) as any // ??
package/src/transform.ts CHANGED
@@ -5,13 +5,13 @@ import type { Misc, Union } from "ts-toolbelt"
5
5
  import type * as SET from "./Set.js"
6
6
 
7
7
  // type SomeObject = {
8
- // 0: Option<string>
8
+ // 0: Option.Option<string>
9
9
  // a: {
10
- // b: Option<string>
11
- // g: Option<Option<string>>
12
- // h: Option<{ i: Option<boolean> }>
10
+ // b: Option.Option<string>
11
+ // g: Option.Option<Option<string>>
12
+ // h: Option.Option<{ i: Option.Option<boolean> }>
13
13
  // }
14
- // c: { d: Array<Option<{ e: Option<boolean> }>> }
14
+ // c: { d: Array<Option<{ e: Option.Option<boolean> }>> }
15
15
  // }
16
16
  // type test0 = Transform<SomeObject>
17
17
  // type test1 = Transform<SomeObject[]>
package/src/utils.ts CHANGED
@@ -11,6 +11,7 @@ import type { DeepMutable, Equals, Mutable } from "./Types.js"
11
11
  // codegen:start {preset: barrel, include: ./utils/*.ts, nodir: false }
12
12
  export * from "./utils/effectify.js"
13
13
  export * from "./utils/extend.js"
14
+ export * from "./utils/gen.js"
14
15
  export * from "./utils/logger.js"
15
16
  export * from "./utils/logLevel.js"
16
17
  // codegen:end
@@ -130,6 +131,7 @@ function get(obj: any, path: any, defaultValue = undefined) {
130
131
  // codegen:start {preset: barrel, include: ./utils/*.ts }
131
132
  export * from "./utils/effectify.js"
132
133
  export * from "./utils/extend.js"
134
+ export * from "./utils/gen.js"
133
135
  export * from "./utils/logger.js"
134
136
  export * from "./utils/logLevel.js"
135
137
  // codegen:end
@@ -239,7 +241,7 @@ export interface Unifiable<X> {
239
241
  // Effect: [X] extends [Effect<infer R, infer E, infer A>]
240
242
  // ? [X] extends [Sync<infer R, infer E, infer A>]
241
243
  // ? never
242
- // : Effect<R, E, A>
244
+ // : Effect.Effect<R, E, A>
243
245
  // : never
244
246
  Unify: [X] extends [{ readonly [unifyIndex]: infer K }] ? K extends UnifiableIndexedURI ? UnifiableIndexed<X>[K]
245
247
  : never
@@ -1,126 +0,0 @@
1
- /**
2
- * For namespace * exports to work, there must be a matching and USED `import type * as ` from the same file
3
- * We need to handle the real exports separately in another file (Prelude.code.ts)
4
- * and post build move the other file as .js counter part of this d.ts file.
5
- */
6
- import type * as CTX from "effect-app/Context";
7
- import type * as EFFECT from "effect-app/Effect";
8
- import type * as NS from "effect-app/NonEmptySet";
9
- import type * as SET from "effect-app/Set";
10
- import type * as C from "effect/Cause";
11
- import type * as CNK from "effect/Chunk";
12
- import type * as CFG from "effect/Config";
13
- import type * as DUR from "effect/Duration";
14
- import type * as EITHER from "effect/Either";
15
- import type * as EQL from "effect/Equal";
16
- import type * as EQ from "effect/Equivalence";
17
- import type * as EX from "effect/Exit";
18
- import type * as FR from "effect/FiberRef";
19
- import type * as HM from "effect/HashMap";
20
- import type * as LAYER from "effect-app/Layer";
21
- import type * as O from "effect/Option";
22
- import type * as ORD from "effect/Order";
23
- import type * as REF from "effect/Ref";
24
- import type * as REC from "effect/Record";
25
- import type * as SCHEMA from "effect/Schema";
26
- import type * as SCOPE from "effect/Scope";
27
-
28
- export type { NonEmptyArray, NonEmptyReadonlyArray } from "effect-app/Array";
29
- export declare namespace Effect {
30
- export * from "effect-app/Effect";
31
- export type Success<T extends Effect<any, any, any>> = EFFECT.Effect.Success<T>;
32
- export type Error<T extends Effect<any, any, any>> = EFFECT.Effect.Error<T>;
33
- export type Context<T extends Effect<any, any, any>> = EFFECT.Effect.Context<T>;
34
- }
35
- export type Effect<out A, out E = never, out R = never> = EFFECT.Effect<A, E, R>;
36
- export declare namespace Layer {
37
- export * from "effect-app/Layer";
38
- export type Success<T extends Layer<never, any, any>> = LAYER.Layer.Success<T>;
39
- export type Error<T extends Layer<never, any, any>> = LAYER.Layer.Error<T>;
40
- export type Context<T extends Layer<never, any, any>> = LAYER.Layer.Context<T>;
41
- }
42
- export type Layer<in ROut, out E = never, out RIn = never> = LAYER.Layer<ROut, E, RIn>;
43
- export declare namespace Either {
44
- export * from "effect/Either";
45
- }
46
- export type Either<R, L = never> = EITHER.Either<R, L>;
47
- export declare namespace Order {
48
- export * from "effect/Order";
49
- }
50
- export type Order<in A> = ORD.Order<A>;
51
- export declare namespace Ref {
52
- export * from "effect/Ref";
53
- }
54
- export type Ref<in out A> = REF.Ref<A>;
55
- export declare namespace Duration {
56
- export * from "effect/Duration";
57
- }
58
- export type Duration = DUR.Duration;
59
- export declare namespace Context {
60
- export * from "effect-app/Context";
61
- }
62
- export type Context<in Services> = CTX.Context<Services>;
63
- export declare namespace FiberRef {
64
- export * from "effect/FiberRef";
65
- }
66
- export type FiberRef<in out A> = FR.FiberRef<A>;
67
- export declare namespace Cause {
68
- export * from "effect/Cause";
69
- }
70
- export type Cause<A> = C.Cause<A>;
71
- export declare namespace Exit {
72
- export * from "effect/Exit";
73
- }
74
- export type Exit<A, E = never> = EX.Exit<A, E>;
75
- export declare namespace HashMap {
76
- export * from "effect/HashMap";
77
- }
78
- export type HashMap<out Key, out Value> = HM.HashMap<Key, Value>;
79
- export declare namespace Scope {
80
- export * from "effect/Scope";
81
- }
82
- export type Scope = SCOPE.Scope;
83
- export declare namespace Option {
84
- export * from "effect/Option";
85
- }
86
- export type Option<A> = O.Option<A>;
87
- export declare namespace Equivalence {
88
- export * from "effect/Equivalence";
89
- }
90
- export type Equivalence<in A> = EQ.Equivalence<A>;
91
- export declare namespace Config {
92
- export * from "effect/Config";
93
- }
94
- export type Config<out A> = CFG.Config<A>;
95
- export declare namespace Equal {
96
- export * from "effect/Equal";
97
- }
98
- export type Equal = EQL.Equal;
99
- export declare namespace Chunk {
100
- export * from "effect/Chunk";
101
- }
102
- export type Chunk<out A> = CNK.Chunk<A>;
103
- export declare namespace NonEmptySet {
104
- export * from "effect-app/NonEmptySet";
105
- }
106
- export type NonEmptySet<A> = NS.NonEmptySet<A>;
107
- export declare namespace Record {
108
- export * from "effect/Record";
109
- }
110
- export type Record<K extends keyof any, T> = globalThis.Record<K, V>;
111
- export declare namespace Array {
112
- export * from "effect-app/Array";
113
- }
114
- export type Array<A> = globalThis.ReadonlyArray<A>;
115
- export declare namespace ReadonlySet {
116
- export * from "effect-app/Set";
117
- }
118
- export type ReadonlySet<A> = SET.Set<A>;
119
- export declare namespace Schema {
120
- export * from "effect/Schema";
121
- export type Type<S> = SCHEMA.Schema.Type<S>;
122
- export type Encoded<S> = SCHEMA.Schema.Encoded<S>;
123
- export type Context<S> = SCHEMA.Schema.Context<S>;
124
- }
125
- export type Schema<in out A, in out I = A, out R = never> = SCHEMA.Schema<A, I, R>;
126
- //# sourceMappingURL=Prelude.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Prelude.d.ts","sourceRoot":"","sources":["../src/Prelude.ts"],"names":[],"mappings":"AACA;;;;GAIG;AAIH,OAAO,KAAK,KAAK,GAAG,MAAM,oBAAoB,CAAA;AAC9C,OAAO,KAAK,KAAK,MAAM,MAAM,mBAAmB,CAAA;AAChD,OAAO,KAAK,KAAK,EAAE,MAAM,wBAAwB,CAAA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CAAC,CAAA;AAE9C,yBAAiB,MAAM,CAAC;IAEtB,cAAc,mBAAmB,CAAA;CAClC;AACD;;;;;GAKG;AACH,MAAM,MAAM,MAAM,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,CAAC,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;AAEnF,yBAAiB,KAAK,CAAC;IAErB,cAAc,kBAAkB,CAAA;CACjC;AACD;;;;;GAKG;AACH,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI,UAAU,CAAC,aAAa,CAAC,CAAC,CAAC,CAAA;AAUlD,yBAAiB,WAAW,CAAC;IAE3B,cAAc,gBAAgB,CAAA;CAC/B;AACD;;;GAGG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;AAEvC,yBAAiB,MAAM,CAAC;IAEtB,cAAc,eAAe,CAAA;IAC7B,MAAM,MAAM,IAAI,CAAC,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAC3C,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;IACjD,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;CAClD;AAED;;;GAGG;AACH,MAAM,MAAM,MAAM,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,KAAK,IAAI,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA"}
@@ -1,24 +0,0 @@
1
- // TODO: Export order seems to be important? Somehow some cyclics?
2
- export * as Context from "effect-app/Context";
3
- export * as Effect from "effect-app/Effect";
4
- export * as Cause from "effect/Cause";
5
- export * as Chunk from "effect/Chunk";
6
- export * as Config from "effect/Config";
7
- export * as Duration from "effect/Duration";
8
- export * as Either from "effect/Either";
9
- export * as Equal from "effect/Equal";
10
- export * as Equivalence from "effect/Equivalence";
11
- export * as Exit from "effect/Exit";
12
- export * as FiberRef from "effect/FiberRef";
13
- export * as HashMap from "effect/HashMap";
14
- export * as Layer from "effect-app/Layer";
15
- export * as Option from "effect/Option";
16
- export * as Order from "effect/Order";
17
- export * as Ref from "effect/Ref";
18
- export * as Schema from "effect/Schema";
19
- export * as Scope from "effect/Scope";
20
- export * as NonEmptySet from "effect-app/NonEmptySet";
21
- export * as Set from "effect-app/Set";
22
- export * as Array from "effect-app/Array";
23
- export * as Record from "effect/Record";
24
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJlbHVkZS5jb2RlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL1ByZWx1ZGUuY29kZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxrRUFBa0U7QUFDbEUsT0FBTyxLQUFLLE9BQU8sTUFBTSxvQkFBb0IsQ0FBQTtBQUM3QyxPQUFPLEtBQUssTUFBTSxNQUFNLG1CQUFtQixDQUFBO0FBQzNDLE9BQU8sS0FBSyxLQUFLLE1BQU0sY0FBYyxDQUFBO0FBQ3JDLE9BQU8sS0FBSyxLQUFLLE1BQU0sY0FBYyxDQUFBO0FBQ3JDLE9BQU8sS0FBSyxNQUFNLE1BQU0sZUFBZSxDQUFBO0FBQ3ZDLE9BQU8sS0FBSyxRQUFRLE1BQU0saUJBQWlCLENBQUE7QUFDM0MsT0FBTyxLQUFLLE1BQU0sTUFBTSxlQUFlLENBQUE7QUFDdkMsT0FBTyxLQUFLLEtBQUssTUFBTSxjQUFjLENBQUE7QUFDckMsT0FBTyxLQUFLLFdBQVcsTUFBTSxvQkFBb0IsQ0FBQTtBQUNqRCxPQUFPLEtBQUssSUFBSSxNQUFNLGFBQWEsQ0FBQTtBQUNuQyxPQUFPLEtBQUssUUFBUSxNQUFNLGlCQUFpQixDQUFBO0FBQzNDLE9BQU8sS0FBSyxPQUFPLE1BQU0sZ0JBQWdCLENBQUE7QUFDekMsT0FBTyxLQUFLLEtBQUssTUFBTSxjQUFjLENBQUE7QUFDckMsT0FBTyxLQUFLLE1BQU0sTUFBTSxlQUFlLENBQUE7QUFDdkMsT0FBTyxLQUFLLEtBQUssTUFBTSxjQUFjLENBQUE7QUFDckMsT0FBTyxLQUFLLEdBQUcsTUFBTSxZQUFZLENBQUE7QUFDakMsT0FBTyxLQUFLLE1BQU0sTUFBTSxlQUFlLENBQUE7QUFDdkMsT0FBTyxLQUFLLEtBQUssTUFBTSxjQUFjLENBQUE7QUFHckMsT0FBTyxLQUFLLFdBQVcsTUFBTSx3QkFBd0IsQ0FBQTtBQUVyRCxPQUFPLEtBQUssR0FBRyxNQUFNLGdCQUFnQixDQUFBO0FBRXJDLE9BQU8sS0FBSyxLQUFLLE1BQU0sa0JBQWtCLENBQUE7QUFDekMsT0FBTyxLQUFLLE1BQU0sTUFBTSxlQUFlLENBQUEifQ==
@@ -1,11 +0,0 @@
1
- export * as Fnc from "../Function.js";
2
- export * as Utils from "../utils.js";
3
- export * from "./Prelude.js";
4
- export { Array, Cause, Chunk, Config, Context, Duration, Effect, Either, Equal, Equivalence, Exit, FiberRef, HashMap, Layer, Option, Order, Record, Ref, Schema, Scope } from "./Prelude.js";
5
- export * as Struct from "../Struct.js";
6
- export type * as Types from "../Types.js";
7
- export * as SecretURL from "../Config/SecretURL.js";
8
- export * as S from "../Schema.js";
9
- export { copy } from "../utils.js";
10
- export * from "effect";
11
- //# sourceMappingURL=lib.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../src/internal/lib.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,gBAAgB,CAAA;AACrC,OAAO,KAAK,KAAK,MAAM,aAAa,CAAA;AAIpC,cAAc,cAAc,CAAA;AAE5B,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,cAAc,CAAA;AAE5L,OAAO,KAAK,MAAM,MAAM,cAAc,CAAA;AACtC,YAAY,KAAK,KAAK,MAAM,aAAa,CAAA;AAEzC,OAAO,KAAK,SAAS,MAAM,wBAAwB,CAAA;AACnD,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAElC,cAAc,QAAQ,CAAA"}
@@ -1,12 +0,0 @@
1
- export * as Fnc from "../Function.js";
2
- export * as Utils from "../utils.js";
3
- // we cannot export types colliding with namespaces from .ts files, only from .d.ts files with custom .js trick, applied in effect-app
4
- // for app land, it may make sense to create an app/prelude?
5
- export * from "./Prelude.js";
6
- export { Array, Cause, Chunk, Config, Context, Duration, Effect, Either, Equal, Equivalence, Exit, FiberRef, HashMap, Layer, Option, Order, Record, Ref, Schema, Scope } from "./Prelude.js";
7
- export * as Struct from "../Struct.js";
8
- export * as SecretURL from "../Config/SecretURL.js";
9
- export * as S from "../Schema.js";
10
- export { copy } from "../utils.js";
11
- export * from "effect";
12
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGliLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2ludGVybmFsL2xpYi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssR0FBRyxNQUFNLGdCQUFnQixDQUFBO0FBQ3JDLE9BQU8sS0FBSyxLQUFLLE1BQU0sYUFBYSxDQUFBO0FBRXBDLHNJQUFzSTtBQUN0SSw0REFBNEQ7QUFDNUQsY0FBYyxjQUFjLENBQUE7QUFFNUIsT0FBTyxFQUFFLEtBQUssRUFBRSxLQUFLLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBRSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sRUFBRSxNQUFNLEVBQUUsS0FBSyxFQUFFLFdBQVcsRUFBRSxJQUFJLEVBQUUsUUFBUSxFQUFFLE9BQU8sRUFBRSxLQUFLLEVBQUUsTUFBTSxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQUUsR0FBRyxFQUFFLE1BQU0sRUFBRSxLQUFLLEVBQUUsTUFBTSxjQUFjLENBQUE7QUFFNUwsT0FBTyxLQUFLLE1BQU0sTUFBTSxjQUFjLENBQUE7QUFHdEMsT0FBTyxLQUFLLFNBQVMsTUFBTSx3QkFBd0IsQ0FBQTtBQUNuRCxPQUFPLEtBQUssQ0FBQyxNQUFNLGNBQWMsQ0FBQTtBQUNqQyxPQUFPLEVBQUUsSUFBSSxFQUFFLE1BQU0sYUFBYSxDQUFBO0FBRWxDLGNBQWMsUUFBUSxDQUFBIn0=