effect-app 1.13.3 → 1.14.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # @effect-app/prelude
2
2
 
3
+ ## 1.14.0
4
+
5
+ ### Minor Changes
6
+
7
+ - b3d9a3e: update packages
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [b3d9a3e]
12
+ - @effect-app/schema@1.11.0
13
+ - @effect-app/core@1.9.0
14
+
15
+ ## 1.13.4
16
+
17
+ ### Patch Changes
18
+
19
+ - d08286c: update packages
20
+ - Updated dependencies [d08286c]
21
+ - @effect-app/schema@1.10.1
22
+ - @effect-app/core@1.8.1
23
+
3
24
  ## 1.13.3
4
25
 
5
26
  ### Patch Changes
package/dist/Request.d.ts CHANGED
@@ -13,7 +13,7 @@ export declare const responseWithJsonBody: (response: HttpClientResponse) => Eff
13
13
  /**
14
14
  * @tsplus fluent effect/platform/Http/Client schemaJsonBody
15
15
  */
16
- export declare const schemaJsonBody: <RS, To, From, E, R>(client: HttpClient.HttpClient<HttpClientResponse, E, R>, schema: Schema<To, From, RS>) => HttpClient.HttpClient<To, HttpClientError.ResponseError | S.ParseResult.ParseError | E, RS | R>;
16
+ export declare const schemaJsonBody: <RS, To, From, E, R>(client: HttpClient.HttpClient<HttpClientResponse, E, R>, schema: Schema<To, From, RS>) => HttpClient.HttpClient<To, HttpClientError.ResponseError | E | S.ParseResult.ParseError, RS | R>;
17
17
  /**
18
18
  * @tsplus fluent effect/platform/Http/Client schemaJsonBodyUnsafe
19
19
  */
@@ -30,7 +30,7 @@ export declare const responseWithSchemaBody: <To, From extends {
30
30
  headers: Headers;
31
31
  status: number;
32
32
  remoteAddress: Option.Option<string>;
33
- }, HttpClientError.ResponseError | S.ParseResult.ParseError | E, RS | R>;
33
+ }, HttpClientError.ResponseError | E | S.ParseResult.ParseError, RS | R>;
34
34
  /** @tsplus getter effect/platform/Http/Client demandJson */
35
35
  export declare const demandJson: <E, R>(client: HttpClient.HttpClient<HttpClientResponse, E, R>) => HttpClient.HttpClient<HttpClientResponse, HttpClientError.ResponseError | E, R>;
36
36
  //# sourceMappingURL=Request.d.ts.map
@@ -16,18 +16,18 @@ export declare function fetchApi(method: Method, path: string, body?: unknown, r
16
16
  status: number;
17
17
  body: unknown;
18
18
  headers: import("@effect/platform/Headers").Headers;
19
- } | FetchResponse<unknown>, import("@effect/platform/HttpBody").HttpBodyError | InvalidStateError | OptimisticConcurrencyException | NotFoundError<ItemType> | NotLoggedInError | import("./errors.js").LoginError | UnauthorizedError | ValidationError | ServiceUnavailableError | HttpResponseError<unknown> | HttpRequestError, HttpClient.HttpClient.Service | ApiConfig>;
19
+ } | FetchResponse<unknown>, NotFoundError<ItemType> | InvalidStateError | ServiceUnavailableError | ValidationError | NotLoggedInError | import("./errors.js").LoginError | UnauthorizedError | OptimisticConcurrencyException | HttpRequestError | import("@effect/platform/HttpBody").HttpBodyError | HttpResponseError<unknown>, HttpClient.HttpClient.Service | ApiConfig>;
20
20
  export declare function fetchApi2S<RequestR, RequestFrom, RequestTo, ResponseR, ResponseFrom, ResponseTo, ResponseErrorFrom = never, ResponseErrorTo extends {
21
21
  _tag: string;
22
- } = never>(request: Schema<RequestTo, RequestFrom, RequestR>, response: Schema<ResponseTo, ResponseFrom, ResponseR>, responseError?: Schema<ResponseErrorTo, ResponseErrorFrom, never>): (method: Method, path: Path) => (req: RequestTo) => Effect.Effect<FetchResponse<ResponseTo>, ResError | import("@effect/platform/HttpBody").HttpBodyError | InvalidStateError | OptimisticConcurrencyException | NotFoundError<ItemType> | NotLoggedInError | import("./errors.js").LoginError | UnauthorizedError | ValidationError | ServiceUnavailableError | HttpResponseError<unknown> | HttpRequestError | S.ParseResult.ParseError, HttpClient.HttpClient.Service | ApiConfig | RequestR | ResponseR>;
22
+ } = never>(request: Schema<RequestTo, RequestFrom, RequestR>, response: Schema<ResponseTo, ResponseFrom, ResponseR>, responseError?: Schema<ResponseErrorTo, ResponseErrorFrom, never>): (method: Method, path: Path) => (req: RequestTo) => Effect.Effect<FetchResponse<ResponseTo>, S.ParseResult.ParseError | NotFoundError<ItemType> | InvalidStateError | ServiceUnavailableError | ValidationError | NotLoggedInError | import("./errors.js").LoginError | UnauthorizedError | OptimisticConcurrencyException | HttpRequestError | ResError | import("@effect/platform/HttpBody").HttpBodyError | HttpResponseError<unknown>, HttpClient.HttpClient.Service | ApiConfig | RequestR | ResponseR>;
23
23
  export declare function fetchApi3S<RequestA, RequestE, ResponseE = unknown, ResponseA = void>({ Request, Response }: {
24
24
  Request: REST.RequestSchemed<RequestA, RequestE>;
25
25
  Response: REST.ReqRes<ResponseA, ResponseE, any>;
26
- }): (req: RequestA) => Effect.Effect<FetchResponse<ResponseA>, ResError | import("@effect/platform/HttpBody").HttpBodyError | InvalidStateError | OptimisticConcurrencyException | NotFoundError<ItemType> | NotLoggedInError | import("./errors.js").LoginError | UnauthorizedError | ValidationError | ServiceUnavailableError | HttpResponseError<unknown> | HttpRequestError | S.ParseResult.ParseError, any>;
26
+ }): (req: RequestA) => Effect.Effect<FetchResponse<ResponseA>, S.ParseResult.ParseError | NotFoundError<ItemType> | InvalidStateError | ServiceUnavailableError | ValidationError | NotLoggedInError | import("./errors.js").LoginError | UnauthorizedError | OptimisticConcurrencyException | HttpRequestError | ResError | import("@effect/platform/HttpBody").HttpBodyError | HttpResponseError<unknown>, any>;
27
27
  export declare function fetchApi3SE<RequestA, RequestE, ResponseE = unknown, ResponseA = void>({ Request, Response }: {
28
28
  Request: REST.RequestSchemed<RequestA, RequestE>;
29
29
  Response: REST.ReqRes<ResponseA, ResponseE, any>;
30
- }): (req: RequestA) => Effect.Effect<FetchResponse<ResponseE>, ResError | import("@effect/platform/HttpBody").HttpBodyError | InvalidStateError | OptimisticConcurrencyException | NotFoundError<ItemType> | NotLoggedInError | import("./errors.js").LoginError | UnauthorizedError | ValidationError | ServiceUnavailableError | HttpResponseError<unknown> | HttpRequestError | S.ParseResult.ParseError, any>;
30
+ }): (req: RequestA) => Effect.Effect<FetchResponse<ResponseE>, S.ParseResult.ParseError | NotFoundError<ItemType> | InvalidStateError | ServiceUnavailableError | ValidationError | NotLoggedInError | import("./errors.js").LoginError | UnauthorizedError | OptimisticConcurrencyException | HttpRequestError | ResError | import("@effect/platform/HttpBody").HttpBodyError | HttpResponseError<unknown>, any>;
31
31
  export declare function makePathWithQuery(path: Path, pars: Record<string, string | number | boolean | readonly string[] | readonly number[] | readonly boolean[] | null>): string;
32
32
  export declare function makePathWithBody(path: Path, pars: Record<string, string | number | boolean | readonly string[] | readonly number[] | readonly boolean[] | null>): string;
33
33
  export declare function mapResponse<T, A>(map: (t: T) => A): (r: FetchResponse<T>) => FetchResponse<A>;
package/package.json CHANGED
@@ -1,35 +1,35 @@
1
1
  {
2
2
  "name": "effect-app",
3
- "version": "1.13.3",
3
+ "version": "1.14.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "dependencies": {
7
7
  "@tsconfig/strictest": "^2.0.5",
8
- "date-fns": "^4.0.0",
8
+ "date-fns": "^4.1.0",
9
9
  "nanoid": "^5.0.7",
10
10
  "path-parser": "^6.1.0",
11
11
  "query-string": "^9.1.0",
12
12
  "ts-pattern": "^5.3.1",
13
13
  "uuid": "^10.0.0",
14
14
  "validator": "^13.12.0",
15
- "@effect-app/core": "1.8.0",
16
- "@effect-app/schema": "1.10.0"
15
+ "@effect-app/core": "1.9.0",
16
+ "@effect-app/schema": "1.11.0"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@babel/cli": "^7.25.6",
20
20
  "@faker-js/faker": "^8.4.1",
21
21
  "@types/node": "~22.5.5",
22
22
  "@types/uuid": "^10.0.0",
23
- "@types/validator": "^13.12.1",
23
+ "@types/validator": "^13.12.2",
24
24
  "fast-check": "~3.22.0",
25
25
  "ts-node": "^10.9.2",
26
26
  "typescript": "^5.6.2",
27
27
  "vitest": "^2.1.1"
28
28
  },
29
29
  "peerDependencies": {
30
- "@effect/platform": "^0.65.1",
31
- "effect": "^3.8.0",
32
- "@effect/schema": "^0.73.0"
30
+ "@effect/platform": "^0.65.5",
31
+ "effect": "^3.8.3",
32
+ "@effect/schema": "^0.73.4"
33
33
  },
34
34
  "typesVersions": {
35
35
  "*": {