openapi-typesafe-helpers 1.0.0-rc.6 → 1.0.0-rc.8

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 (2) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -2,6 +2,34 @@
2
2
 
3
3
  This package is a fork of `openapi-typescript-helpers`. The entries above `0.1.0` are releases of openapi-typesafe-helpers; `0.1.0` and the entries below it are the upstream history up to the fork point (upstream commit `d46a319a`), with `openapi-typescript-helpers` versions.
4
4
 
5
+ ## 1.0.0-rc.8
6
+
7
+ ### Patch Changes
8
+
9
+ - [#103](https://github.com/openapi-typesafe/openapi-typesafe/pull/103) [`091b864`](https://github.com/openapi-typesafe/openapi-typesafe/commit/091b864cdb6dd9e1ff5810d4d44cebee8a01a721) Thanks [@fedorello](https://github.com/fedorello)! - `createClient<any>()` types `data` and `error` as `any` again; they were `never`, so
10
+ `if (error)` made the whole result `never`. `SuccessResponse<any>` and `ErrorResponse<any>` are
11
+ `any` too.
12
+
13
+ - [#103](https://github.com/openapi-typesafe/openapi-typesafe/pull/103) [`091b864`](https://github.com/openapi-typesafe/openapi-typesafe/commit/091b864cdb6dd9e1ff5810d4d44cebee8a01a721) Thanks [@fedorello](https://github.com/fedorello)! - Response types follow what the client returns. `ErrorResponseJSON`, `SuccessResponseJSON` and the
14
+ `data` and `error` of a client made with ``createClient<paths, `${string}/json`>()`` keep a
15
+ JSON body of any JSON media type: an `application/problem+json` error, an
16
+ `application/vnd.api+json` success and `application/json; charset=utf-8` bodies were left out,
17
+ so the error could be `never` or miss a status. An error that is not JSON, such as the HTML page
18
+ of a proxy, is typed `string`, the text the client returns, instead of being left out.
19
+ - Updated dependencies [[`091b864`](https://github.com/openapi-typesafe/openapi-typesafe/commit/091b864cdb6dd9e1ff5810d4d44cebee8a01a721), [`091b864`](https://github.com/openapi-typesafe/openapi-typesafe/commit/091b864cdb6dd9e1ff5810d4d44cebee8a01a721), [`091b864`](https://github.com/openapi-typesafe/openapi-typesafe/commit/091b864cdb6dd9e1ff5810d4d44cebee8a01a721), [`091b864`](https://github.com/openapi-typesafe/openapi-typesafe/commit/091b864cdb6dd9e1ff5810d4d44cebee8a01a721)]:
20
+ - openapi-typesafe-fetch@1.0.0-rc.8
21
+
22
+ ## 1.0.0-rc.7
23
+
24
+ ### Patch Changes
25
+
26
+ - [#96](https://github.com/openapi-typesafe/openapi-typesafe/pull/96) [`171fa71`](https://github.com/openapi-typesafe/openapi-typesafe/commit/171fa71311107e4e26a9ae7a62b431662fb13de5) Thanks [@fedorello](https://github.com/fedorello)! - `SuccessResponseJSON`, `ErrorResponseJSON` and the `data` and `error` of a client made with
27
+ ``createClient<paths, `${string}/json`>()`` leave out a response that has no JSON media type. It
28
+ added its whole `content` map, so a `text/html` 500 typed the error as `{ "text/html": string }`,
29
+ a value the client never returns.
30
+ - Updated dependencies [[`171fa71`](https://github.com/openapi-typesafe/openapi-typesafe/commit/171fa71311107e4e26a9ae7a62b431662fb13de5), [`171fa71`](https://github.com/openapi-typesafe/openapi-typesafe/commit/171fa71311107e4e26a9ae7a62b431662fb13de5), [`171fa71`](https://github.com/openapi-typesafe/openapi-typesafe/commit/171fa71311107e4e26a9ae7a62b431662fb13de5)]:
31
+ - openapi-typesafe-fetch@1.0.0-rc.7
32
+
5
33
  ## 1.0.0-rc.6
6
34
 
7
35
  ### Patch Changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "openapi-typesafe-helpers",
3
3
  "description": "TypeScript helpers for consuming openapi-typesafe types",
4
- "version": "1.0.0-rc.6",
4
+ "version": "1.0.0-rc.8",
5
5
  "author": {
6
6
  "name": "Fedor Chishchin",
7
7
  "url": "https://github.com/fedorello"
@@ -37,7 +37,7 @@
37
37
  "url": "https://github.com/openapi-typesafe/openapi-typesafe/issues"
38
38
  },
39
39
  "dependencies": {
40
- "openapi-typesafe-fetch": "^1.0.0-rc.6"
40
+ "openapi-typesafe-fetch": "^1.0.0-rc.8"
41
41
  },
42
42
  "devDependencies": {
43
43
  "typescript": "^6.0.3",