graphql-react
Advanced tools
Comparing version 11.0.2 to 11.0.3
# graphql-react changelog | ||
## 11.0.3 | ||
### Patch | ||
- Updated the [`extract-files`](https://npm.im/extract-files) dependency to [v9.0.0](https://github.com/jaydenseric/extract-files/releases/tag/v9.0.0), and used its new deep `require` path. | ||
- Updated dev dependencies. | ||
- No longer test Node.js v13 in GitHub Actions CI. | ||
- Corrected the Browserslist query in the Babel config for the server API. | ||
- Write tests as CJS and no longer separately build and test ESM and CJS to simplify package scripts, Babel and ESLint config. | ||
- Removed the [`@babel/plugin-proposal-class-properties`](https://npm.im/@babel/plugin-proposal-class-properties) dev dependency and config, as [`@babel/preset-env`](https://npm.im/@babel/preset-env) has handed this via it’s `shippedProposals` options [since v7.10.0](https://babeljs.io/blog/2020/05/25/7.10.0#class-properties-and-private-methods-to-shippedproposals-option-of-babel-preset-env-11451-https-githubcom-babel-babel-pull-11451). | ||
- Removed unnecessary `.js` file extensions from `require` paths. | ||
- Improved polyfilling globals in tests: | ||
- Use [`revertable-globals`](https://npm.im/revertable-globals) to define globals per-test. | ||
- Use [`node-fetch`](https://npm.im/node-fetch) v3 instead of [`cross-fetch`](https://npm.im/cross-fetch). | ||
- Removed a no longer necessary [`formdata-node`](https://npm.im/formdata-node) workaround in `graphqlFetchOptions` tests. | ||
- Removed `npm-debug.log` from the `.gitignore` file as npm [v4.2.0](https://github.com/npm/npm/releases/tag/v4.2.0)+ doesn’t create it in the current working directory. | ||
## 11.0.2 | ||
@@ -4,0 +21,0 @@ |
{ | ||
"name": "graphql-react", | ||
"version": "11.0.2", | ||
"version": "11.0.3", | ||
"description": "A GraphQL client for React using modern context and hooks APIs that is lightweight (< 3 KB size limited) but powerful; the first Relay and Apollo alternative with server side rendering.", | ||
@@ -64,3 +64,3 @@ "license": "MIT", | ||
"@babel/runtime": "^7.10.5", | ||
"extract-files": "^8.1.0", | ||
"extract-files": "^9.0.0", | ||
"fnv1a": "^1.0.1", | ||
@@ -73,3 +73,2 @@ "mitt": "^2.1.0", | ||
"@babel/core": "^7.10.5", | ||
"@babel/plugin-proposal-class-properties": "^7.10.4", | ||
"@babel/plugin-transform-runtime": "^7.10.5", | ||
@@ -80,5 +79,2 @@ "@babel/preset-env": "^7.10.4", | ||
"babel-eslint": "^10.1.0", | ||
"babel-plugin-transform-require-extensions": "^2.0.1", | ||
"babel-plugin-transform-runtime-file-extensions": "^2.0.0", | ||
"cross-fetch": "^3.0.5", | ||
"eslint": "^7.5.0", | ||
@@ -88,9 +84,9 @@ "eslint-config-env": "^15.0.1", | ||
"eslint-plugin-import": "^2.22.0", | ||
"eslint-plugin-jsdoc": "^30.0.0", | ||
"eslint-plugin-jsdoc": "^30.0.3", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-prettier": "^3.1.4", | ||
"eslint-plugin-react": "^7.20.3", | ||
"eslint-plugin-react": "^7.20.4", | ||
"eslint-plugin-react-hooks": "^4.0.8", | ||
"fetch-blob": "^2.0.1", | ||
"formdata-node": "^2.2.1", | ||
"formdata-node": "^2.2.2", | ||
"graphql": "^15.3.0", | ||
@@ -102,2 +98,3 @@ "graphql-api-koa": "^6.0.0", | ||
"koa-bodyparser": "^4.3.0", | ||
"node-fetch": "^3.0.0-beta.7", | ||
"prettier": "^2.0.5", | ||
@@ -107,2 +104,3 @@ "react": "^16.13.1", | ||
"react-test-renderer": "^16.13.1", | ||
"revertable-globals": "^1.0.1", | ||
"size-limit": "^4.5.5", | ||
@@ -112,13 +110,11 @@ "test-director": "^4.0.1" | ||
"scripts": { | ||
"prepare": "npm run prepare:clean && npm run prepare:esm && npm run prepare:cjs && npm run prepare:jsdoc && npm run prepare:prettier", | ||
"prepare": "npm run prepare:clean && npm run prepare:babel && npm run prepare:jsdoc && npm run prepare:prettier", | ||
"prepare:clean": "rm -rf universal server test", | ||
"prepare:esm": "PREPARE_MODULE_TYPE=esm babel src -d . --keep-file-extension", | ||
"prepare:cjs": "PREPARE_MODULE_TYPE=cjs babel src -d .", | ||
"prepare:babel": "babel src -d . --keep-file-extension", | ||
"prepare:jsdoc": "jsdoc-md", | ||
"prepare:prettier": "prettier --write universal server test readme.md", | ||
"test": "npm run test:eslint && npm run test:prettier && npm run test:esm && npm run test:cjs && npm run test:size", | ||
"test": "npm run test:eslint && npm run test:prettier && npm run test:api && npm run test:size", | ||
"test:eslint": "eslint --ext mjs,js .", | ||
"test:prettier": "prettier -c .", | ||
"test:esm": "if node --input-type=module -e '' > /dev/null 2>&1; then node -r hard-rejection/register test/index.mjs; fi", | ||
"test:cjs": "node -r hard-rejection/register test", | ||
"test:api": "node -r hard-rejection/register test", | ||
"test:size": "size-limit", | ||
@@ -125,0 +121,0 @@ "prepublishOnly": "npm test" |
'use strict'; | ||
module.exports.ssr = require('./ssr.js'); | ||
module.exports.ssr = require('./ssr'); |
'use strict'; | ||
const ReactDOMServer = require('react-dom/server.node.js'); | ||
const ReactDOMServer = require('react-dom/server.node'); | ||
const GraphQL = require('../universal/GraphQL.js'); | ||
const GraphQL = require('../universal/GraphQL'); | ||
@@ -7,0 +7,0 @@ module.exports = async function ssr( |
'use strict'; | ||
var _objectWithoutPropertiesLoose = require('@babel/runtime/helpers/objectWithoutPropertiesLoose.js'); | ||
var _objectWithoutPropertiesLoose = require('@babel/runtime/helpers/objectWithoutPropertiesLoose'); | ||
var _temp; | ||
var mitt = require('mitt/dist/mitt.js'); | ||
var mitt = require('mitt/dist/mitt'); | ||
var graphqlFetchOptions = require('./private/graphqlFetchOptions.js'); | ||
var graphqlFetchOptions = require('./private/graphqlFetchOptions'); | ||
var hashObject = require('./private/hashObject.js'); | ||
var hashObject = require('./private/hashObject'); | ||
@@ -13,0 +13,0 @@ module.exports = |
@@ -7,7 +7,7 @@ 'use strict'; | ||
var GraphQL = require('./GraphQL.js'); | ||
var GraphQL = require('./GraphQL'); | ||
var GraphQLContext = require('./GraphQLContext.js'); | ||
var GraphQLContext = require('./GraphQLContext'); | ||
var FirstRenderDateContext = require('./private/FirstRenderDateContext.js'); | ||
var FirstRenderDateContext = require('./private/FirstRenderDateContext'); | ||
@@ -14,0 +14,0 @@ function GraphQLProvider(_ref) { |
'use strict'; | ||
exports.GraphQL = require('./GraphQL.js'); | ||
exports.GraphQLContext = require('./GraphQLContext.js'); | ||
exports.GraphQLProvider = require('./GraphQLProvider.js'); | ||
exports.reportCacheErrors = require('./reportCacheErrors.js'); | ||
exports.useGraphQL = require('./useGraphQL.js'); | ||
exports.GraphQL = require('./GraphQL'); | ||
exports.GraphQLContext = require('./GraphQLContext'); | ||
exports.GraphQLProvider = require('./GraphQLProvider'); | ||
exports.reportCacheErrors = require('./reportCacheErrors'); | ||
exports.useGraphQL = require('./useGraphQL'); |
'use strict'; | ||
var _require = require('extract-files'), | ||
extractFiles = _require.extractFiles; | ||
var extractFiles = require('extract-files/public/extractFiles'); | ||
@@ -6,0 +5,0 @@ module.exports = function graphqlFetchOptions(operation) { |
@@ -7,11 +7,11 @@ 'use strict'; | ||
var GraphQL = require('./GraphQL.js'); | ||
var GraphQL = require('./GraphQL'); | ||
var GraphQLContext = require('./GraphQLContext.js'); | ||
var GraphQLContext = require('./GraphQLContext'); | ||
var FirstRenderDateContext = require('./private/FirstRenderDateContext.js'); | ||
var FirstRenderDateContext = require('./private/FirstRenderDateContext'); | ||
var graphqlFetchOptions = require('./private/graphqlFetchOptions.js'); | ||
var graphqlFetchOptions = require('./private/graphqlFetchOptions'); | ||
var hashObject = require('./private/hashObject.js'); | ||
var hashObject = require('./private/hashObject'); | ||
@@ -18,0 +18,0 @@ module.exports = function useGraphQL(_ref) { |
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
84353
32
446
+ Addedextract-files@9.0.0(transitive)
- Removedextract-files@8.1.0(transitive)
Updatedextract-files@^9.0.0