Skip to content

Commit

Permalink
Merge pull request #13 from Fredx87/changeset-release/main
Browse files Browse the repository at this point in the history
Version Packages
  • Loading branch information
Fredx87 authored Jan 31, 2022
2 parents fe2bfb7 + 0f1bc5d commit 20c3e69
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 18 deletions.
7 changes: 0 additions & 7 deletions .changeset/wicked-bears-pretend.md

This file was deleted.

8 changes: 8 additions & 0 deletions examples/react-query-petstore/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# @openapi-io-ts/example-react-query-petstore

## 0.1.2

### Patch Changes

- Updated dependencies [[`1df5450`](https://github.com/Fredx87/openapi-io-ts/commit/1df545029aef4853eb958cffb92cf9f7517acd02)]:
- @openapi-io-ts/runtime@0.3.0

## 0.1.1

### Patch Changes

- Updated dependencies [[`84d6bf1`](https://github.com/Fredx87/openapi-io-ts/commit/84d6bf1cc2cedc0f818fa3e88da71135ee94e58f)]:
Expand Down
2 changes: 1 addition & 1 deletion examples/react-query-petstore/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openapi-io-ts/example-react-query-petstore",
"version": "0.1.1",
"version": "0.1.2",
"license": "MIT",
"private": true,
"dependencies": {
Expand Down
12 changes: 8 additions & 4 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
# @openapi-io-ts/cli

## 0.2.0
## 0.3.0

### Minor Changes

- [#12](https://github.com/Fredx87/openapi-io-ts/pull/12) [`1df5450`](https://github.com/Fredx87/openapi-io-ts/commit/1df545029aef4853eb958cffb92cf9f7517acd02) Thanks [@Fredx87](https://github.com/Fredx87)! - Changed types of generated request functions. Simplified types in runtime package, removed operation types and
added generation of request function types.

## 0.2.0

### Minor Changes

- [#9](https://github.com/Fredx87/openapi-io-ts/pull/9) [`84d6bf1`](https://github.com/Fredx87/openapi-io-ts/commit/84d6bf1cc2cedc0f818fa3e88da71135ee94e58f) Thanks [@Fredx87](https://github.com/Fredx87)! - Changes in codegen for generating new request functions for runtime.

**BREAKING CHANGE**
The generated code will not have single request function anymore, but a single `requestFunctionsBuilder` function that creates all the request functions.
The generated services builder will now take the object returned by the `requestFunctionsBuilder` function instead of an `HttpRequestAdapter`.

### Patch Changes



- [#11](https://github.com/Fredx87/openapi-io-ts/pull/11) [`355b111`](https://github.com/Fredx87/openapi-io-ts/commit/355b111d83cb308428f09f8bb6231bf3126bcc2c) Thanks [@Fredx87](https://github.com/Fredx87)! - Fixed a typo in response component generation
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openapi-io-ts/cli",
"version": "0.2.0",
"version": "0.3.0",
"description": "OpenAPI code generation tool with validation powered by io-ts",
"keywords": [
"openapi",
Expand Down
14 changes: 10 additions & 4 deletions packages/runtime/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
# @openapi-io-ts/runtime

## 0.2.0
## 0.3.0

### Minor Changes

- [#12](https://github.com/Fredx87/openapi-io-ts/pull/12) [`1df5450`](https://github.com/Fredx87/openapi-io-ts/commit/1df545029aef4853eb958cffb92cf9f7517acd02) Thanks [@Fredx87](https://github.com/Fredx87)! - Changed types of generated request functions. Simplified types in runtime package, removed operation types and
added generation of request function types.

## 0.2.0

### Minor Changes

- [#9](https://github.com/Fredx87/openapi-io-ts/pull/9) [`84d6bf1`](https://github.com/Fredx87/openapi-io-ts/commit/84d6bf1cc2cedc0f818fa3e88da71135ee94e58f) Thanks [@Fredx87](https://github.com/Fredx87)! - Changed types of request functions and operations.

**BREAKING CHANGE**
Request functions now have only one parameter: an object containing `params` and `body` (they can be optional if the operation
does not have parameters or body).

Example of operation with `{ id: string }` params and `{name: string; age: number }` body:

```ts
// Before:
operation({ id: "abc123" }, { name: "Jonh Doe", age: 35 });
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openapi-io-ts/runtime",
"version": "0.2.0",
"version": "0.3.0",
"description": "Runtime for openapi-io-ts",
"keywords": [
"openapi",
Expand Down

0 comments on commit 20c3e69

Please sign in to comment.