Skip to content

Commit

Permalink
ci: release package (#32)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] committed Nov 19, 2023
1 parent 556dfca commit 062ea5e
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 18 deletions.
15 changes: 0 additions & 15 deletions .changeset/tame-eyes-complain.md

This file was deleted.

16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# openapi-msw

## 0.2.2

### Patch Changes

- [#31](https://github.com/christoph-fricke/openapi-msw/pull/31) [`556dfca`](https://github.com/christoph-fricke/openapi-msw/commit/556dfca3a2c87eeec6f1f7acd2db63af52df2806) Thanks [@christoph-fricke](https://github.com/christoph-fricke)! - Fixed a type mismatch between path fragment types and the values provided at runtime, which are always strings. Now all path-fragments are typed as string. If a fragment's schema is a string constrained by an enum, the resulting string literals are preserved. This fixes bug [#22](https://github.com/christoph-fricke/openapi-msw/issues/22).

```typescript
const handler = http.get("/resource/{id}", ({ params }) => {
// Previously calling "parseInt(...)" caused a type error
// when the schema type for "id" is defined as number.
const id = parseInt(params.id);

return HttpResponse.json({ id });
});
```

## 0.2.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://json.schemastore.org/package.json",
"name": "openapi-msw",
"type": "module",
"version": "0.2.1",
"version": "0.2.2",
"license": "MIT",
"author": "Christoph Fricke <christoph@frickeonline.de>",
"description": "Tiny, type-safe wrapper around MSW for type inference from OpenAPI schemas.",
Expand Down

0 comments on commit 062ea5e

Please sign in to comment.