Commit Graph

723 Commits

Author SHA1 Message Date
Jan Piotrowski 99b34f6773
temp: Temporary redirects for old nexus.js.org (#514) 2020-09-30 12:33:08 +02:00
Jan Piotrowski efa96cb113
feat: new docs site (#500)
Co-authored-by: Jason Kuhrt <jasonkuhrt@me.com>
Co-authored-by: Jason Kuhrt <jason.kuhrt@dialogue.co>
2020-09-30 12:25:39 +02:00
Jason Kuhrt 58c3ad9c12 chore: release changes 2020-09-22 13:46:16 -04:00
Jason Kuhrt 2327a94d10 fix: force release 2020-09-22 09:25:45 -04:00
Jason Kuhrt ddb1211d45 chore: upgrade dripip 2020-09-22 09:24:22 -04:00
Santi Albo 3c38a65eb0
fix: message for missing resolveType in interfaces (#495) 2020-08-26 15:42:26 -04:00
Jason Kuhrt 0ee644b234
feat(deps)!: upgrade to graphql v15 (#486)
closes #410

BREAKING CHANGE:

The graphql peer dep requirement has been bumped to v15.

No graphql v15 exclusive features have been shipped yet. But this update
sets us up to begin that work.

Support for graphql v14 and lower has been dropped. It may technically work
still (the test suite did not show any major reasons why it won't, for
now/currently) but there is no guarantee about that remaining so in the
future. Internally we are only testing against v15. Certain new grpahqljs
v15 features like interfaces being able to implement other interfaces will
be released in the future.

If you absolutely cannot upgrade from graphql v14 right now then stay with
@nexus/schema v15. But if you also really need a new @nexus/schema feature
on v16+ (future) then you can try your luck with it an older version of
graphqljs.
2020-08-07 16:12:15 -04:00
Santi Albo 5e156ac823
docs: update asNexusMethod example with the changes from #473 (#476) 2020-08-07 15:54:00 -04:00
Émile Fugulin 1d97b788b5
feat: allow asNexusMethod to specify TS type (#473)
Co-authored-by: Jason Kuhrt <jasonkuhrt@me.com>

- Create a new `NexusGenScalars` for all scalar types
- Remove scalars from `NexusGenRootTypes` (might be a breaking change, need review)
- Use the `NexusGenScalars` for all non specified (base GraphQL) scalars in `input` and `output` types
- Add `rootTyping` parameter to `asNexusMethod` to allow the user to specify it, otherwise it will fallback to the `backingTypeMap`

BREAKING CHANGE:

The global TS type `NexusGenRootTypes` no longer contains scalars. All scalars now live under a new global TS type named `NexusGenScalars`.

```ts
// before
let foo: NexusGenRootTypes['String']
```
```ts
// after
let foo: NexusGenScalars['String']
```
2020-08-04 09:50:09 -04:00
Jason Kuhrt 61eccca200
fix: MaybePromiseDeep case of null with .then (#475)
closes #470
closes #474 (thanks @Sytten)
2020-08-03 16:56:44 -04:00
Jason Kuhrt fe5fea7321 new dir name 2020-07-17 14:20:17 -04:00
Jason Kuhrt dd57ecaf06 chore: try website deploy 2020-07-17 14:03:14 -04:00
Jason Kuhrt 903ceb86d4
feat: add subscriptionType (#462) 2020-07-07 18:23:21 -04:00
Tim Griesser dec6593990
Update siteConfig.js 2020-07-05 23:34:09 -04:00
Jason Kuhrt f0c163a745 chore: move renovate config into github dir 2020-07-02 18:31:07 -04:00
Jason Kuhrt 78af75686d
chore: format with prisma-labs prettier config (#461) 2020-07-01 23:42:06 -04:00
Jason Kuhrt ee7c37118c
feat: use prettier api to load config (#460) 2020-07-01 23:23:17 -04:00
Jason Kuhrt 9c8e7762fa
feat: support typescript 3.9 (#459)
One internal type error was raised with 3.9 that wasn't before.

This might have led to end-users having to enable skipLibCheck?

For the uncertainty, treating this as a feature as opposed to a chore.
2020-07-01 23:06:45 -04:00
Jason Kuhrt 122b0e17b0
feat: base hasNextPage in connectionPlugin upon gt not gte (#458)
closes #392

BREAKING CHANGE:

Remember that internally Nexus Schema over-fetches by 1 but hides this internally.

It used to be that `SomeEdge.hasNextPage` would be `true` _if_ the number of returned nodes was greater-than OR equal-to the `first` arg value given in the query.

Now when Nexus Schema treats the `equal-to` case as `SomeEdge.hasNextPage` being `false`.

Co-authored-by: Eyal Wiener <eyalwiener@gmail.com>
2020-07-01 16:16:09 -04:00
Leonardo Dino 5b900b156a
fix(connectionPlugin): allow first and last to be zero (#436)
Co-authored-by: Jason Kuhrt <jason.kuhrt@dialogue.co>
2020-07-01 14:49:09 -04:00
Jason Kuhrt bf0df64ebd
tests: add windows to os matrix (#405) 2020-06-10 10:02:04 -04:00
Matthew Leffler fe2553cf97
chore(docs): Update repo name in examples readme (#443) 2020-06-03 16:28:49 -04:00
Jason Kuhrt b3abdb9391 chore: dripip managed version 2020-06-03 16:11:57 -04:00
Jason Kuhrt cd27481f61 chore: post-release update examples 2020-06-03 16:11:26 -04:00
Jason Kuhrt 8c7b047a7b chore: setup dripip for release scripts 2020-06-03 16:09:38 -04:00
Jason Kuhrt d597086177 v0.14.0-next.2 2020-05-12 14:00:47 -04:00
Jason Kuhrt 133c4a4705
feat: publish esm builds (#438) 2020-05-12 13:58:58 -04:00
Jason Kuhrt 286bd663b0 improve: update warning to use new package name 2020-05-12 13:29:09 -04:00
Flavian Desverne 7fce3dc955
chore(website): fix links (#433) 2020-05-05 16:07:55 +02:00
Jason Kuhrt 57f1c7c249 chore: update example lock file, fix tests 2020-04-30 08:18:34 -04:00
Flavian Desverne 8c7615e723
fix: return types of queryField and mutationField (#415) 2020-04-29 23:12:51 -04:00
Tim Griesser 6e58acd9e5
chore: Disable Renovate (#430) 2020-04-29 23:11:42 -04:00
Rafael R 05181018ea
chore(docs): fix typo on readme file (#420) 2020-04-29 21:37:29 -04:00
Jason Kuhrt 70d2abb60f chore(docs): fix link
close #419
close #417
2020-04-29 08:38:16 -04:00
Jason Kuhrt d74f9979d0 chore: examples update 2020-04-07 11:41:11 -04:00
Jason Kuhrt 63e9ea0fbf v0.14.0-next.1 2020-04-07 11:39:12 -04:00
Jason Kuhrt a6c29bae64
feat: allow control over nexus schema import id (#408)
Currently the typegen output is designed with the assumption that @nexus/schema will be available at node_modules/@nexus/schema. This assumes that either the project depends on @nexus/schema or that @nexus/schema has been hoisted. The former is fine but does not support being wrapped by another tool, while the latter is liable to result in module not found errors for hard-to-debug reasons (especially users who know little or nothing about the internals).
2020-04-07 11:36:14 -04:00
Jason Kuhrt 358c33efaa refactor: add typegen utils module 2020-04-07 11:20:44 -04:00
Jason Kuhrt 17fad3a78a chore: update snapshots 2020-04-07 11:19:59 -04:00
Jason Kuhrt 72a13a9025 refactor: update lang headers 2020-04-07 11:15:26 -04:00
Jason Kuhrt cd08bb2a6d refactor: update lang headers 2020-04-07 11:14:08 -04:00
Jason Kuhrt b9df04b883
refactor: getOwnPackage util (#409) 2020-04-07 11:10:03 -04:00
Jason Kuhrt 3156f9bc46 refactor(style): sort imports 2020-04-07 08:19:45 -04:00
Jason Kuhrt 9deb327dbe chore: setup renovate 2020-04-04 13:29:19 -04:00
Julien Blatecky 035e0a1092
fix: typegen stable path generation with Windows (#400)
* fix: typegen stable path generation with Windows

When using Windows, rootTypings paths are using `\` instead of `/` in generated code. This commit fixes it.

* Replace all Windows path separators in rootTypings

Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2020-04-02 09:49:36 -04:00
Tim Griesser a10463e77c
chore: update lockfile entries (#404)
* chore: update lockfile entries
* fix: link-examples for website
2020-03-31 12:33:16 -04:00
Jason Kuhrt ccae81ab6e chore: update changelog 2020-03-30 16:39:33 -04:00
Jason Kuhrt 7da4bb18a4 v0.13.1 2020-03-30 16:38:01 -04:00
Jason Kuhrt 3816e0511d fix: remove transition postinstall message 2020-03-30 16:37:26 -04:00
Jason Kuhrt 00c1aad3ab chore: update examples, changelog 2020-03-30 16:35:21 -04:00