@grapes-agency/apollo-link-local-schema
Advanced tools
Comparing version 1.0.0-alpha.2 to 1.0.0-alpha.4
@@ -5,2 +5,16 @@ # Changelog | ||
## [1.0.0-alpha.4](https://github.com/grapes-agency/apollo-link-local-schema/compare/v1.0.0-alpha.2...v1.0.0-alpha.4) (2020-10-05) | ||
### Features | ||
* allow context to be created on each request ([47f9b37](https://github.com/grapes-agency/apollo-link-local-schema/commit/47f9b3770139a1959945339602903b76971bf8b1)) | ||
## [1.0.0-alpha.3](https://github.com/grapes-agency/apollo-link-local-schema/compare/v1.0.0-alpha.2...v1.0.0-alpha.3) (2020-10-05) | ||
### Features | ||
* allow context to be created on each request ([47f9b37](https://github.com/grapes-agency/apollo-link-local-schema/commit/47f9b3770139a1959945339602903b76971bf8b1)) | ||
## 1.0.0-alpha.2 (2020-10-05) | ||
@@ -7,0 +21,0 @@ |
@@ -435,2 +435,3 @@ 'use strict'; | ||
} | ||
const context = typeof this.context === 'function' ? this.context() : this.context; | ||
localState | ||
@@ -440,3 +441,3 @@ .runResolvers({ | ||
remoteResult, | ||
context: this.context, | ||
context, | ||
variables, | ||
@@ -443,0 +444,0 @@ }) |
@@ -10,3 +10,3 @@ /// <reference types="zen-observable" /> | ||
resolvers: Resolvers<Context>; | ||
context?: Context; | ||
context?: Context | (() => Context); | ||
validateQuery?: boolean; | ||
@@ -13,0 +13,0 @@ } |
@@ -65,2 +65,3 @@ import { ApolloLink, Observable } from '@apollo/client'; | ||
} | ||
const context = typeof this.context === 'function' ? this.context() : this.context; | ||
localState | ||
@@ -70,3 +71,3 @@ .runResolvers({ | ||
remoteResult, | ||
context: this.context, | ||
context, | ||
variables, | ||
@@ -73,0 +74,0 @@ }) |
{ | ||
"name": "@grapes-agency/apollo-link-local-schema", | ||
"version": "1.0.0-alpha.2", | ||
"version": "1.0.0-alpha.4", | ||
"description": "Lightweight local schema resolver for @apollo/client", | ||
@@ -5,0 +5,0 @@ "main": "index.cjs.js", |
Sorry, the diff of this file is not supported yet
85227
1022