Skip to content

Commit

Permalink
integrated guild-docs as website
Browse files Browse the repository at this point in the history
API routes generation fix

docs & components update; routing fixes

gitignore update

fix(deps): update dependency extract-files to v11 (ardatan#3065)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

fix(deps): update dependency tslib to ~2.3.0 (ardatan#3067)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

fix(deps): update dependency the-guild-components to v1.3.1 (ardatan#3070)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

fix(deps): update dependency apollo-upload-client to v16 (ardatan#3066)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

chore(deps): update typescript-eslint monorepo to v4.27.0 (ardatan#3071)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

chore(deps): update babel monorepo to v7.14.6 (ardatan#3072)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

[deploy_website] Update generate-schema.md (ardatan#3074)

corrected grammar

fix(deps): update dependency globby to v11.0.4 (ardatan#3077)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

fix(deps): update dependency ws to v7.5.0 (ardatan#3078)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

chore(deps): update dependency typescript to v4.3.3 (ardatan#3083)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

chore(deps): update dependency typedoc to v0.20.37 (ardatan#3082)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

Jest Transformer for GraphQL (ardatan#1887)

* Jest Transformer for GraphQL

* Changeset

* Align versions

* Fix package.json

* yarn.lock

* Fix

Co-authored-by: Arda TANRIKULU <ardatanrikulu@gmail.com>

chore(deps): update dependency @types/ws to v7.4.5 (ardatan#3084)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

Safer use of `Object.prototype.hasOwnProperty` (ardatan#3069)

* Safer use of `Object.prototype.hasOwnProperty`

Fixes an error I get when GraphQL JS passes a prototypeless object into the resolver

```
ReferenceError: maybeRef is not defined
    at eval (eval at <anonymous> (/Users/mattalexander/Projects/edge-sites-schema/tests/regression.test.js:67:7), <anonymous>:1:38)
    at forEach (/projectpath/tests/regression.test.js:67:7)
    at Array.forEach (<anonymous>)
    at Object.<anonymous> (/projectpath/tests/regression.test.js:65:17)
```

* changeset and test

Co-authored-by: Arda TANRIKULU <ardatanrikulu@gmail.com>

BugFix: Handle parsing endpoints when there are no mutations (ardatan#3076)

* BugFix: Handle parsing endpoints when there are no mutations

* changeset and test

* pass tests

Co-authored-by: itai <itaimain@gmail.com>
Co-authored-by: Arda TANRIKULU <ardatanrikulu@gmail.com>

chore(deps): update dependency typescript to v4.3.4 (ardatan#3086)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

chore(deps): update dependency typedoc to v0.21.0 (ardatan#3087)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

chore(deps): update dependency typedoc-plugin-markdown to v3.10.0 (ardatan#3088)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

chore(deps): update dependency eslint to v7.29.0 (ardatan#3089)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

chore(deps): update dependency graphql to v15.5.1 (ardatan#3091)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

enable typescript strict mode (ardatan#3010)

* enable noImplicitThis

* enable `strictBindCallApply`

* enable `strictFunctionTypes` 1: testing

* enable `strictFunctionTypes` 2: utils

* enable strictFunctionTypes 3: schema

* enable strictFunctionTypes 4: batch-execute

* enable strictFunctionTypes 5 `load`

* enable strictFunctionTypes 6 `loaders/url`

* enable strictFunctionTypes 7 `webpack-loader`

* enable strictFunctionTypes 8 `links`

* enable strictFunctionTypes 9 `delegate` and `batch-delegate`

* enable `strictFunctionTypes` 10 `wrap`

* enable `strictFunctionTypes` 11 `stitch` and `stitching-directive`

* enable `strictFunctionTypes` final tsconfig

* remove unnecessary generic params

* enable `strictNullChecks` 1 `utils`

* enable `strictNullChecks` 2 `schema`

* enable `strictNullChecks` 3 `resolvers-composition`

* enable `strictNullChecks` 4 `webpack-loader`

* enable `strictNullChecks` 5 `batch-execute`

* enable `strictNullChecks` 6 `graphql-tag-plug`

* enable `strictNullChecks` 7 `import`

* enable `strictNullChecks` 8 `loaders/url`

* enable `strictNullChecks` 8 `loaders/prisma`

* enable `strictNullChecks` 8 `loaders/module`

* enable `strictNullChecks` 9 `loaders/github`

* enable `strictNullChecks` 12 `loaders/code-file`

* enable `strictNullChecks` 13 `load`

* enable `strictNullChecks` 14 `delegate`

* enable `strictNullChecks` 15 `batch-delegate`

* interlude: move commonly used stuff to testing folder

* enable `strictNullChecks` 16 `wrap`

* enable `strictNullChecks` 17 `stitch`

* enable `strictNullChecks` 18 `load-files`

* enable `strictNullChecks` 19 `load-typedefs`

* enable `strictNullChecks` 20 `merge`

* enable `strictNullChecks` 21 `node-require`

* enable `strictNullChecks` 22 `mock`

* enable `strictNullChecks` 22 `stitching-directive`

* enable `strictNullChecks` flag in tsconfig

* fix: graphql-js 14 compat

* fix `strictPropertyInitialization` errors

* enable strictPropertyInitialization rule

* strict mode!!!

* enable `noPropertyAccessFromIndexSignature`

* enable `noFallthroughCasesInSwitch` and `noPropertyAccessFromIndexSignature`

* Add strict to new changes

* fix: remove casts as upstream issue is fixed

* fix: throw if we cannot identify the operation type.

ardatan#3010 (comment)
ardatan#3010 (comment)

* fix: change wording of error

ardatan#3010 (comment)

* fix: make error message more clear

ardatan#3010 (comment)

* refactor: use null/undefined instead of falsey check

* fix: assert operation from document

ardatan#3010 (comment)

* fix: type narrowing not working due to generics

ardatan#3010 (comment)

* fix: apply feedback for relocateError

* Make wrapSchema generic. Fix ardatan#3064 (#1)

* Fix Build

Co-authored-by: Arda TANRIKULU <ardatanrikulu@gmail.com>
Co-authored-by: Augustin Le Fèvre <augustin.public@gmail.com>

Huge cleanup before major release (breaking) (ardatan#3081)

* Breaking cleanup before major release

* Fix TS

* More

chore(deps): update typescript-eslint monorepo to v4.28.0 (ardatan#3093)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

fix(deps): update babel monorepo to v7.14.7 (ardatan#3094)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

chore(deps): update jest monorepo to v27.0.5 (ardatan#3095)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

chore(deps): update dependency @vue/compiler-sfc to v3.1.2 (ardatan#3097)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

fix build errors

Huge cleanup before major release (breaking) (ardatan#3081)

* Breaking cleanup before major release

* Fix TS

* More

chore(deps): update typescript-eslint monorepo to v4.28.0 (ardatan#3093)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

fix(deps): update babel monorepo to v7.14.7 (ardatan#3094)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

chore(deps): update jest monorepo to v27.0.5 (ardatan#3095)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

chore(deps): update dependency @vue/compiler-sfc to v3.1.2 (ardatan#3097)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

fix(deps): update dependency the-guild-components to v1.4.0 (ardatan#3098)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

chore(deps): update dependency @types/node to v14.17.4 (ardatan#3101)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

Some other refactor (ardatan#3096)

* Fix typing errors in tests

* ReplaObject.keys/values and forEach with for..in and for..of loops

* Improve Type Checking

* Update CI workflow

* Fix linting

* Fix TS errors for v14

* More

* More

* Allow incremental builds

* Finish

* Fix Type Check

* Disable sourcemaps

* Fix type issues

Better changelog

Respect  and  in  and more changes

chore(CI): Ability to release canaries on demand

Make AggregateError spec compliant

reintegration

docs update

updated tgc version and removed Poppins import

Able to release with custom tags

chore(deps): update dependency typedoc-plugin-markdown to v3.10.2 (ardatan#3107)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

Prevent TS Server to die on VSCode

chore(deps): update dependency typedoc to v0.21.1 (ardatan#3108)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

chore(deps): update dependency graphql-tag to v2.12.5 (ardatan#3109)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

chore(deps): update dependency prettier to v2.3.2 (ardatan#3110)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

chore(deps): update dependency typedoc to v0.21.2 (ardatan#3111)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

chore(deps): update dependency @types/babel__traverse to v7.14.0 (ardatan#3112)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

chore(deps): update jest monorepo to v27.0.6 (ardatan#3115)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

Remove Subscriber and use only Executor (ardatan#3117)

* Remove Subscriber and use only Executor

* Fix introspectSchema

* Fix tests

* Cleanup

fix(deps): update dependency ws to v7.5.1 (ardatan#3118)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

enhance(url-loader): refactor

Fix rawSDL issue

enhance(delegate): skip validation by default and add validateRequest option to enable

chore(deps): update dependency typescript to v4.3.5 (ardatan#3122)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

fix(file-loader): location path must be normalized (ardatan#3121)

chore(deps): update dependency husky to v7 (ardatan#3123)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

feat(graphql-tag-pluck): keep locationOffset and return graphql-js Source instead of string

chore(deps): update dependency @vue/compiler-sfc to v3.1.3 (ardatan#3125)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

chore(deps): update dependency @vue/compiler-sfc to v3.1.4 (ardatan#3126)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

fix(deps): update dependency @types/websocket to v1.0.3 (ardatan#3129)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

chore(deps): update dependency @types/ws to v7.4.6 (ardatan#3128)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

chore(deps): update dependency eslint to v7.30.0 (ardatan#3130)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

fix(deps): update dependency ws to v7.5.2 (ardatan#3131)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

fix(url-loader): fix node support for EventSource

feat(resolvers-composition): add support for glob patterns (ardatan#3132)

* feat(resolvers-composition): add support for glob patterns

* fix(resolvers-composition): add typings for micromatch

* feat(resolvers-composition): add unit tests for glob patterns

* chore(resolver-compositions): cleanup

* feat(docs): added samples for resolver composition path matcher format

* chore: added changeset

* fix(docs): typo

* fix(changeset): change patch to minor

* Fix tests and cleanup

Co-authored-by: Arda TANRIKULU <ardatanrikulu@gmail.com>

chore(deps): pin dependency @types/micromatch to 4.0.1 (ardatan#3133)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

chore(deps): update dependency nock to v13.1.1 (ardatan#3134)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

don't throw on errors that should not be relocated (ardatan#3136)

refactor: internal StitchingInfo properties (ardatan#3137)

to never be undefined

docs update

docs update after review

Some fixes

update tgc version
  • Loading branch information
alinsimoc authored and ardatan committed Jul 28, 2021
1 parent f013f62 commit 7bf15f3
Show file tree
Hide file tree
Showing 414 changed files with 9,799 additions and 15,363 deletions.
5 changes: 5 additions & 0 deletions .changeset/big-crews-suffer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-tools/webpack-loader': minor
---

feat(webpack-loader): export Options
8 changes: 8 additions & 0 deletions .changeset/blue-phones-kick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@graphql-tools/delegate': major
---

BREAKING CHANGE
- Remove `rootValue` from subschemaConfig
- - Pass it through `ExecutionParams` or delegation options
- Do not pass `info.rootValue` if `rootValue` is falsy
7 changes: 7 additions & 0 deletions .changeset/brave-rats-march.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@graphql-tools/wrap': major
---

BREAKING CHANGE
- `makeRemoteExecutableSchema` has been removed.
- - You can use [`wrapSchema`](https://www.graphql-tools.com/docs/remote-schemas#creating-an-executor) instead
5 changes: 5 additions & 0 deletions .changeset/cuddly-horses-prove.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-tools/utils': major
---

BREAKING - Remove fieldToFieldConfig, fieldToFieldConfig, argsToFieldConfigArgument and argumentToArgumentConfig
5 changes: 5 additions & 0 deletions .changeset/eighty-books-develop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-tools/graphql-file-loader': patch
---

fix(file-loader): location path must be normalized
11 changes: 11 additions & 0 deletions .changeset/fifty-carrots-pretend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
'@graphql-tools/url-loader': major
---

BREAKING CHANGE
- Remove `handleSDLAsync` and `handleSDLSync`; use `handleSDL` instead
- Remove `useSSEForSubscription` and `useWebSocketLegacyProtocol`; use `subscriptionProtocol` instead
- If introspection source is different than endpoint, use `endpoint` for remote execution source
- Default HTTP Executor is renamed to `buildHTTPExecutor` with a new signature
- `build*Subscriber` methods are renamed to `buildWSLegacyExecutor`, `buildWSExecutor` and `buildSSEExecutor` with new signatures
- `getFetch` no longer takes `async` flag
5 changes: 5 additions & 0 deletions .changeset/fifty-wombats-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-tools/mock': patch
---

Safer use of Object.prototype.hasOwnProperty #3069
7 changes: 7 additions & 0 deletions .changeset/forty-ducks-drum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@graphql-tools/schema': major
'@graphql-tools/stitch': major
'@graphql-tools/utils': major
---

BREAKING - deprecate legacy schema directives and directive resolvers
5 changes: 5 additions & 0 deletions .changeset/grumpy-months-nail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-tools/resolvers-composition': patch
---

BugFix: Handle parsing endpoints when there are no mutations #3076
5 changes: 5 additions & 0 deletions .changeset/heavy-vans-whisper.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-tools/schema': major
---

breaking - remove logger and addErrorLoggingToSchema - use envelop instead
5 changes: 5 additions & 0 deletions .changeset/long-rings-happen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'graphql-tools': major
---

Add deprecation notice and export makeExecutableSchema only
8 changes: 8 additions & 0 deletions .changeset/mean-news-return.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@graphql-tools/delegate': major
'@graphql-tools/apollo-engine-loader': major
'@graphql-tools/utils': major
'@graphql-tools/wrap': major
---

BREAKING - Use native AggregateError if possible. Native AggregateError doesn't have iterator but errors prop
5 changes: 5 additions & 0 deletions .changeset/new-balloons-reply.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-tools/schema': major
---

BREAKING - enhance(schema): remove schema level resolvers and addSchemaLevelResolver
6 changes: 6 additions & 0 deletions .changeset/nine-ducks-burn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@graphql-tools/wrap': major
---

BREAKING CHANGE
- Remove unnecessary `introspectSchemaSync`, `introspectSchema` already handles sync execution
5 changes: 5 additions & 0 deletions .changeset/ninety-shirts-crash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-tools/utils': major
---

BREAKING - remove debugLog
5 changes: 5 additions & 0 deletions .changeset/pink-glasses-move.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-tools/delegate': major
---

BREAKING CHANGE: validations are skipped by default, use validateRequest: true to reenable
5 changes: 5 additions & 0 deletions .changeset/pink-zoos-fold.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-tools/links': minor
---

feat(links): Respect operationName
5 changes: 5 additions & 0 deletions .changeset/polite-yaks-drive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-tools/utils': major
---

BREAKING - do not apply camelCase naming convention in buildOperationNodeForField
15 changes: 15 additions & 0 deletions .changeset/sharp-wombats-perform.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
'@graphql-tools/batch-execute': major
'@graphql-tools/delegate': major
'@graphql-tools/links': major
'@graphql-tools/url-loader': major
'@graphql-tools/stitch': major
'@graphql-tools/utils': major
'@graphql-tools/wrap': major
---

BREAKING CHANGE
- Remove Subscriber and use only Executor
- - Now `Executor` can receive `AsyncIterable` and subscriptions will also be handled by `Executor`. This is a future-proof change for defer, stream and live queries


5 changes: 5 additions & 0 deletions .changeset/silent-comics-tell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-tools/schema': major
---

BREAKING(schema) - remove allowUndefinedResolve option, buildSchemaFromTypeDefinitions and use buildSchema instead
5 changes: 5 additions & 0 deletions .changeset/silver-comics-check.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-tools/resolvers-composition': minor
---

Added glob pattern support for composeResolver method
6 changes: 6 additions & 0 deletions .changeset/slimy-rice-exercise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@graphql-tools/graphql-tag-pluck': major
---

BREAKING CHANGE
- feat(graphql-tag-pluck): keep locationOffset and return graphql-js Source instead of string
5 changes: 5 additions & 0 deletions .changeset/smooth-tips-know.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-tools/utils': major
---

BREAKING - Remove SchemaVisitor, visitSchema and VisitSchemaKind
5 changes: 5 additions & 0 deletions .changeset/twelve-suns-run.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-tools/schema': patch
---

enhance(schema): use merge package to handle typeDefs and resolvers merging
5 changes: 5 additions & 0 deletions .changeset/unlucky-kangaroos-tan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-tools/url-loader': patch
---

fix(url-loader): fix node support for EventSource
5 changes: 5 additions & 0 deletions .changeset/wicked-tables-beg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-tools/utils': minor
---

feat(utils): Respect operationName and rootValue in ExecutionParams
5 changes: 5 additions & 0 deletions .changeset/yellow-pumas-impress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-tools/jest-transform': major
---

new jest transform
10 changes: 10 additions & 0 deletions .changeset/young-beans-fail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
'@graphql-tools/url-loader': major
---

BREAKING CHANGE
- No more accept arrays or functions for `headers`

NEW FEATURES
- Respect `operationName` and `extensions`
- Ability to get headers from `extensions.headers`
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@
"packages/load/tests/loaders/schema",
"website",
"scripts",
"packages/loaders/code-file/tests/test-files"
"packages/loaders/code-file/tests/test-files",
"packages/loaders/git/tests/test-files"
],
"globals":{
"BigInt": true
Expand Down
20 changes: 18 additions & 2 deletions .github/workflows/canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,24 @@ on:
pull_request:
branches:
- master

workflow_dispatch:
inputs:
onDemand:
description: 'Are you sure?'
required: true
default: 'yes'
npmTag:
description: 'NPM Tag'
required: true
default: 'alpha'
npmVersionSuffix:
description: 'Custom NPM Version Suffix'
required: false
jobs:
publish-canary:
name: Publish Canary
runs-on: ubuntu-latest
if: github.event.pull_request.head.repo.full_name == github.repository
if: github.event.pull_request.head.repo.full_name == github.repository || github.event.inputs.onDemand == 'yes'
steps:
- name: Checkout Master
uses: actions/checkout@v2
Expand Down Expand Up @@ -44,6 +56,10 @@ jobs:
npm-token: ${{ secrets.NODE_AUTH_TOKEN }}
npm-script: 'yarn release:canary'
changesets: true
env:
ON_DEMAND: ${{github.event.inputs.onDemand}}
NPM_TAG: ${{github.event.inputs.npmTag || 'alpha'}}
NPM_VERSION_SUFFIX: ${{github.event.inputs.npmVersionSuffix}}
- name: Publish a message
if: steps.canary.outputs.released
uses: 'kamilkisiela/pr-comment@master'
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Lint
run: yarn lint
build:
name: Build on ${{matrix.os}} GraphQL v${{matrix.graphql_version}}
name: Type Check on GraphQL v${{matrix.graphql_version}}
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -55,14 +55,13 @@ jobs:
- name: Install Dependencies using Yarn
run: yarn install --ignore-engines && git checkout yarn.lock
- name: Build
run: yarn ts:transpile
run: yarn ts:check
test:
name: Test on ${{matrix.os}}, Node ${{matrix.node_version}} and GraphQL v${{matrix.graphql_version}}
runs-on: ${{matrix.os}}
name: Test, Node ${{matrix.node_version}} and GraphQL v${{matrix.graphql_version}}
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest] # remove windows to speed up the tests
node_version: [10, 16]
node_version: [12, 16]
graphql_version: [14, 15]
steps:
- name: Checkout Master
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:
key: ${{ runner.os }}-16-16-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-16-16-yarn-
- name: Align TypeScript version with typedoc
run: node scripts/install-typedocs-typescript-version.js
- name: Install Dependencies using Yarn
run: yarn install --ignore-engines && git checkout yarn.lock
- name: Deploy 🚀
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,5 @@ junit.xml

package-lock.json
website/yarn.lock
website/api-sidebar.json
website/docs/api
36 changes: 19 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"postinstall": "patch-package && husky install",
"predeploy:website": "yarn build:api-docs",
"deploy:website": "cd website && yarn deploy",
"ts:transpile": "concurrently \"tsc --project tsconfig.build.json\" \"tsc --project tsconfig.build.es5.json\"",
"ts:check": "tsc --noEmit --incremental",
"ts:transpile": "concurrently \"tsc --project tsconfig.build.json --incremental\" \"tsc --project tsconfig.build.es5.json --incremental\"",
"clean-dist": "rimraf \"packages/**/dist\" && rimraf \"packages/**/dist-es5\" && rimraf \".bob\"",
"build": "yarn ts:transpile && bob build",
"build:api-docs": "node scripts/build-api-docs.js",
Expand All @@ -18,7 +19,7 @@
"prerelease": "yarn build",
"prerelease-canary": "yarn build",
"release": "changeset publish",
"release:canary": "(node scripts/canary-release.js && yarn build && yarn changeset publish --tag alpha) || echo Skipping Canary..."
"release:canary": "(node scripts/canary-release.js && yarn build && yarn changeset publish --tag $NPM_TAG) || echo Skipping Canary..."
},
"repository": {
"type": "git",
Expand All @@ -43,37 +44,37 @@
},
"devDependencies": {
"bob-the-bundler": "1.4.1",
"@babel/core": "7.14.5",
"@babel/core": "7.14.6",
"@babel/plugin-proposal-class-properties": "7.14.5",
"@babel/preset-env": "7.14.5",
"@babel/preset-env": "7.14.7",
"@babel/preset-typescript": "7.14.5",
"@changesets/cli": "2.16.0",
"@types/jest": "26.0.23",
"@types/node": "14.17.3",
"@typescript-eslint/eslint-plugin": "4.26.1",
"@typescript-eslint/parser": "4.26.1",
"babel-jest": "27.0.2",
"@typescript-eslint/eslint-plugin": "4.28.0",
"@typescript-eslint/parser": "4.28.0",
"babel-jest": "27.0.6",
"concurrently": "6.2.0",
"eslint": "7.28.0",
"eslint": "7.30.0",
"eslint-config-prettier": "8.3.0",
"eslint-config-standard": "16.0.3",
"eslint-plugin-import": "2.23.4",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-promise": "5.1.0",
"eslint-plugin-standard": "5.0.0",
"graphql": "15.5.0",
"graphql": "15.5.1",
"graphql-helix": "1.6.1",
"graphql-subscriptions": "1.2.1",
"husky": "6.0.0",
"jest": "27.0.4",
"husky": "7.0.0",
"jest": "27.0.6",
"lint-staged": "11.0.0",
"nock": "13.1.0",
"nock": "13.1.1",
"patch-package": "6.4.7",
"prettier": "2.3.1",
"prettier": "2.3.2",
"ts-jest": "27.0.3",
"typedoc": "0.20.36",
"typedoc-plugin-markdown": "3.9.0",
"typescript": "4.3.2"
"typedoc": "0.21.2",
"typedoc-plugin-markdown": "3.10.2",
"typescript": "4.3.5"
},
"lint-staged": {
"packages/**/src/**/*.{ts,tsx}": [
Expand All @@ -94,7 +95,8 @@
]
},
"resolutions": {
"graphql": "15.5.0",
"graphql": "15.5.1",
"esbuild": "^0.12.8",
"@changesets/apply-release-plan": "5.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/batch-delegate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@graphql-tools/delegate": "^7.1.4",
"@graphql-tools/utils": "^7.8.1",
"dataloader": "2.0.0",
"tslib": "~2.2.0"
"tslib": "~2.3.0"
},
"devDependencies": {
"@graphql-tools/schema": "^7.1.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/batch-delegate/src/batchDelegateToSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { BatchDelegateOptions } from './types';

import { getLoader } from './getLoader';

export function batchDelegateToSchema(options: BatchDelegateOptions): any {
export function batchDelegateToSchema<TContext = any>(options: BatchDelegateOptions<TContext>): any {
const key = options.key;
if (key == null) {
return null;
Expand Down
Loading

0 comments on commit 7bf15f3

Please sign in to comment.