Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version Packages #1497

Merged
merged 1 commit into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/afraid-mangos-search.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/cool-days-scream.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/empty-numbers-change.md

This file was deleted.

21 changes: 0 additions & 21 deletions .changeset/flat-brooms-sort.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/funny-donuts-call.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/mean-moles-reflect.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/nasty-comics-smoke.md

This file was deleted.

35 changes: 0 additions & 35 deletions .changeset/old-gorillas-speak.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/orange-squids-press.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/tender-bananas-march.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/twenty-walls-compete.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/wise-poets-flow.md

This file was deleted.

23 changes: 0 additions & 23 deletions .changeset/witty-wasps-relate.md

This file was deleted.

39 changes: 39 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,44 @@
# @hey-api/docs

## 0.9.0

### Minor Changes

- [#1511](https://github.com/hey-api/openapi-ts/pull/1511) [`4e8064d`](https://github.com/hey-api/openapi-ts/commit/4e8064d9a589e14b42d2b1a329e2436f242884da) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: add watch mode

## Watch Mode

::: warning
Watch mode currently supports only remote files via URL.
:::

If your schema changes frequently, you may want to automatically regenerate the output during development. To watch your input file for changes, enable `watch` mode in your configuration or pass the `--watch` flag to the CLI.

### Config

```js
export default {
client: '@hey-api/client-fetch',
input: 'path/to/openapi.json',
output: 'src/client',
watch: true,
};
```

### CLI

```sh
npx @hey-api/openapi-ts \
-c @hey-api/client-fetch \
-i path/to/openapi.json \
-o src/client \
-w
```

### Patch Changes

- [#1496](https://github.com/hey-api/openapi-ts/pull/1496) [`1e418ba`](https://github.com/hey-api/openapi-ts/commit/1e418ba760b9903326ec37009651c32e195e24a9) Thanks [@mrlubos](https://github.com/mrlubos)! - docs: split output section into multiple pages

## 0.8.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hey-api/docs",
"version": "0.8.0",
"version": "0.9.0",
"description": "Documentation for OpenaAPI TypeScript.",
"private": true,
"type": "module",
Expand Down
7 changes: 7 additions & 0 deletions examples/openapi-ts-axios/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @example/openapi-ts-axios

## 0.0.22

### Patch Changes

- Updated dependencies []:
- @hey-api/[email protected]

## 0.0.21

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/openapi-ts-axios/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@example/openapi-ts-axios",
"private": true,
"version": "0.0.21",
"version": "0.0.22",
"type": "module",
"scripts": {
"build": "tsc && vite build",
Expand Down
7 changes: 7 additions & 0 deletions examples/openapi-ts-fastify/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @example/openapi-ts-fastify

## 0.0.11

### Patch Changes

- Updated dependencies [[`e2e1410`](https://github.com/hey-api/openapi-ts/commit/e2e1410b22c0c84c40d1b1803e9650d546350cb7)]:
- @hey-api/[email protected]

## 0.0.10

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/openapi-ts-fastify/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@example/openapi-ts-fastify",
"private": true,
"version": "0.0.10",
"version": "0.0.11",
"type": "module",
"scripts": {
"openapi-ts": "openapi-ts",
Expand Down
7 changes: 7 additions & 0 deletions examples/openapi-ts-fetch/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @example/openapi-ts-fetch

## 0.0.40

### Patch Changes

- Updated dependencies [[`e2e1410`](https://github.com/hey-api/openapi-ts/commit/e2e1410b22c0c84c40d1b1803e9650d546350cb7)]:
- @hey-api/[email protected]

## 0.0.39

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/openapi-ts-fetch/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@example/openapi-ts-fetch",
"private": true,
"version": "0.0.39",
"version": "0.0.40",
"type": "module",
"scripts": {
"build": "tsc && vite build",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @example/openapi-ts-tanstack-angular-query-experimental

## 0.0.11

### Patch Changes

- Updated dependencies [[`e2e1410`](https://github.com/hey-api/openapi-ts/commit/e2e1410b22c0c84c40d1b1803e9650d546350cb7)]:
- @hey-api/[email protected]

## 0.0.10

### Patch Changes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@example/openapi-ts-tanstack-angular-query-experimental",
"version": "0.0.10",
"version": "0.0.11",
"scripts": {
"ng": "ng",
"start": "ng serve",
Expand Down
7 changes: 7 additions & 0 deletions examples/openapi-ts-tanstack-react-query/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @example/openapi-ts-tanstack-react-query

## 0.0.22

### Patch Changes

- Updated dependencies [[`e2e1410`](https://github.com/hey-api/openapi-ts/commit/e2e1410b22c0c84c40d1b1803e9650d546350cb7)]:
- @hey-api/[email protected]

## 0.0.21

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/openapi-ts-tanstack-react-query/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@example/openapi-ts-tanstack-react-query",
"private": true,
"version": "0.0.21",
"version": "0.0.22",
"type": "module",
"scripts": {
"build": "tsc && vite build",
Expand Down
7 changes: 7 additions & 0 deletions examples/openapi-ts-tanstack-svelte-query/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @example/openapi-ts-tanstack-svelte-query

## 0.0.22

### Patch Changes

- Updated dependencies [[`e2e1410`](https://github.com/hey-api/openapi-ts/commit/e2e1410b22c0c84c40d1b1803e9650d546350cb7)]:
- @hey-api/[email protected]

## 0.0.21

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/openapi-ts-tanstack-svelte-query/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@example/openapi-ts-tanstack-svelte-query",
"private": true,
"version": "0.0.21",
"version": "0.0.22",
"type": "module",
"scripts": {
"build": "vite build",
Expand Down
7 changes: 7 additions & 0 deletions examples/openapi-ts-tanstack-vue-query/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @example/openapi-ts-tanstack-vue-query

## 0.0.22

### Patch Changes

- Updated dependencies [[`e2e1410`](https://github.com/hey-api/openapi-ts/commit/e2e1410b22c0c84c40d1b1803e9650d546350cb7)]:
- @hey-api/[email protected]

## 0.0.21

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/openapi-ts-tanstack-vue-query/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@example/openapi-ts-tanstack-vue-query",
"private": true,
"version": "0.0.21",
"version": "0.0.22",
"type": "module",
"scripts": {
"build-only": "vite build",
Expand Down
28 changes: 28 additions & 0 deletions packages/client-axios/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# @hey-api/client-axios

## 0.4.0

### Minor Changes

- **BREAKING**: rename exported Security interface to Auth

- **BREAKING**: remove support for passing auth to Axios instance

- **BREAKING**: please update `@hey-api/openapi-ts` to the latest version

feat: replace accessToken and apiKey functions with auth

### Added `auth` option

Client package functions `accessToken` and `apiKey` were replaced with a single `auth` function for fetching auth tokens. If your API supports multiple auth mechanisms, you can use the `auth` argument to return the appropriate token.

```js
import { client } from 'client/sdk.gen';

client.setConfig({
accessToken: () => '<my_token>', // [!code --]
apiKey: () => '<my_token>', // [!code --]
auth: (auth) => '<my_token>', // [!code ++]
});
```

Due to conflict with the Axios native `auth` option, we removed support for configuring Axios auth. Please let us know if you require this feature added back.

## 0.3.4

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/client-axios/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hey-api/client-axios",
"version": "0.3.4",
"version": "0.4.0",
"description": "🚀 Axios client for `@hey-api/openapi-ts` codegen.",
"homepage": "https://heyapi.dev/",
"repository": {
Expand Down
Loading