react-apollo
Advanced tools
Comparing version 0.13.1 to 0.13.2
@@ -7,2 +7,6 @@ # Change log | ||
### 0.13.2 | ||
- Address deprecation warnings coming from `graphql-tag` [graphql-tag#54](https://github.com/apollographql/graphql-tag/issues/54) | ||
- Make sure ApolloClient and gql are exported from browser bundle [PR #501](https://github.com/apollographql/react-apollo/pull/501) | ||
### 0.13.1 | ||
@@ -9,0 +13,0 @@ - Add apollo-client ^0.10.0 to dependency range |
export { default as ApolloProvider } from './ApolloProvider'; | ||
export { default as graphql, withApollo, InjectedGraphQLProps } from './graphql'; | ||
export { compose } from 'redux'; | ||
export { default as ApolloClient, createNetworkInterface } from 'apollo-client'; | ||
export { default as gql } from 'graphql-tag'; |
@@ -10,2 +10,7 @@ "use strict"; | ||
exports.compose = redux_1.compose; | ||
var apollo_client_1 = require("apollo-client"); | ||
exports.ApolloClient = apollo_client_1.default; | ||
exports.createNetworkInterface = apollo_client_1.createNetworkInterface; | ||
var graphql_tag_1 = require("graphql-tag"); | ||
exports.gql = graphql_tag_1.default; | ||
//# sourceMappingURL=browser.js.map |
@@ -15,3 +15,3 @@ "use strict"; | ||
var apollo_client_1 = require("apollo-client"); | ||
var printer_1 = require("graphql-tag/printer"); | ||
var bundledPrinter_1 = require("graphql-tag/bundledPrinter"); | ||
var ApolloProvider_1 = require("./ApolloProvider"); | ||
@@ -96,3 +96,3 @@ var MockedProvider = (function (_super) { | ||
if (!_this.mockedResponsesByKey[key] || _this.mockedResponsesByKey[key].length === 0) { | ||
throw new Error('No more mocked responses for the query: ' + printer_1.print(request.query)); | ||
throw new Error('No more mocked responses for the query: ' + bundledPrinter_1.print(request.query)); | ||
} | ||
@@ -176,3 +176,3 @@ var original = _this.mockedResponsesByKey[key].slice(); | ||
throw new Error("No more mocked subscription responses for the query: " + | ||
(printer_1.print(subscription.request.query) + ", variables: " + JSON.stringify(subscription.request.variables))); | ||
(bundledPrinter_1.print(subscription.request.query) + ", variables: " + JSON.stringify(subscription.request.variables))); | ||
} | ||
@@ -195,3 +195,3 @@ var response_1 = subscription.results.shift(); | ||
function requestToKey(request) { | ||
var queryString = request.query && printer_1.print(request.query); | ||
var queryString = request.query && bundledPrinter_1.print(request.query); | ||
return JSON.stringify({ | ||
@@ -198,0 +198,0 @@ variables: request.variables || {}, |
{ | ||
"name": "react-apollo", | ||
"version": "0.13.1", | ||
"version": "0.13.2", | ||
"description": "React data container for Apollo Client", | ||
@@ -13,3 +13,3 @@ "main": "lib/index.js", | ||
"posttest": "npm run lint", | ||
"filesize": "npm run compile:browser && ./scripts/filesize.js --file=./dist/index.min.js --maxGzip=15", | ||
"filesize": "npm run compile:browser && ./scripts/filesize.js --file=./dist/index.min.js --maxGzip=20", | ||
"compile": "tsc", | ||
@@ -134,3 +134,3 @@ "compile:browser": "rm -rf ./dist && mkdir ./dist && browserify ./lib/index.js --i react --i apollo-client -o=./dist/index.js && npm run minify:browser", | ||
"graphql-anywhere": "^2.0.0", | ||
"graphql-tag": "^1.2.4", | ||
"graphql-tag": "^1.3.1", | ||
"hoist-non-react-statics": "^1.2.0", | ||
@@ -137,0 +137,0 @@ "invariant": "^2.2.1", |
export { default as ApolloProvider } from './ApolloProvider'; | ||
export { default as graphql, withApollo, InjectedGraphQLProps } from './graphql'; | ||
// expose easy way to join queries from redux | ||
export { compose } from 'redux'; | ||
// re-exports of close dependencies. | ||
export { default as ApolloClient, createNetworkInterface } from 'apollo-client'; | ||
export { default as gql } from 'graphql-tag' |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
244620
4143
Updatedgraphql-tag@^1.3.1