···11----
22-'@hey-api/openapi-ts': minor
33----
44-55-feat: support read-only and write-only properties
66-77-### Read-only and write-only fields
88-99-Starting with v0.66.0, `@hey-api/typescript` will generate separate types for payloads and responses if it detects any read-only or write-only fields. To preserve the previous behavior and generate a single type regardless, set `readOnlyWriteOnlyBehavior` to `off`.
1010-1111-```js
1212-export default {
1313- input: 'https://get.heyapi.dev/hey-api/backend',
1414- output: 'src/client',
1515- plugins: [
1616- // ...other plugins
1717- {
1818- name: '@hey-api/typescript',
1919- readOnlyWriteOnlyBehavior: 'off', // [!code ++]
2020- },
2121- ],
2222-};
2323-```
+24
packages/openapi-ts/CHANGELOG.md
···11# @hey-api/openapi-ts
2233+## 0.66.0
44+55+### Minor Changes
66+77+- [#1896](https://github.com/hey-api/openapi-ts/pull/1896) [`8840ed7`](https://github.com/hey-api/openapi-ts/commit/8840ed73df5ee718e803aa6e27b66e0c82ec3651) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: support read-only and write-only properties
88+99+ ### Read-only and write-only fields
1010+1111+ Starting with v0.66.0, `@hey-api/typescript` will generate separate types for payloads and responses if it detects any read-only or write-only fields. To preserve the previous behavior and generate a single type regardless, set `readOnlyWriteOnlyBehavior` to `off`.
1212+1313+ ```js
1414+ export default {
1515+ input: 'https://get.heyapi.dev/hey-api/backend',
1616+ output: 'src/client',
1717+ plugins: [
1818+ // ...other plugins
1919+ {
2020+ name: '@hey-api/typescript',
2121+ readOnlyWriteOnlyBehavior: 'off', // [!code ++]
2222+ },
2323+ ],
2424+ };
2525+ ```
2626+327## 0.65.0
428529### Minor Changes
+1-1
packages/openapi-ts/package.json
···11{
22 "name": "@hey-api/openapi-ts",
33- "version": "0.65.0",
33+ "version": "0.66.0",
44 "description": "🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more.",
55 "homepage": "https://heyapi.dev/",
66 "repository": {