Skip to content

Commit

Permalink
Version Packages (#15)
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] authored Jun 28, 2022
1 parent 9ed4803 commit 776eb8d
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 23 deletions.
22 changes: 0 additions & 22 deletions .changeset/nine-seals-watch.md

This file was deleted.

23 changes: 23 additions & 0 deletions packages/schema/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# @graphql-ts/schema

## 0.5.3

### Patch Changes

- [`3663690`](https://github.com/Thinkmill/graphql-ts/commit/3663690f9063c72933465a6ee369795f8d1d864e) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Fixed having a union of `Arg`s where at least one is nullable without a default value not resulting in an inferred input type that includes `undefined` in the union.

```ts
graphql.field({
type: graphql.String,
args: {
something: graphql.arg({
type:
Math.random() > 0.5 ? graphql.nonNull(graphql.String) : graphql.String
})
},
resolve(source, { something }) {
const previouslyIncorrectlyAllowedNowError: string | null = something;
const correct: string | null | undefined = something;
return "";
}
});
```

## 0.5.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/schema/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphql-ts/schema",
"version": "0.5.2",
"version": "0.5.3",
"main": "dist/graphql-ts-schema.cjs.js",
"module": "dist/graphql-ts-schema.esm.js",
"files": [
Expand Down

0 comments on commit 776eb8d

Please sign in to comment.