@shopify/react-async
Advanced tools
Comparing version 4.0.1 to 4.1.0
@@ -12,2 +12,3 @@ 'use strict'; | ||
const _excluded = ["passive"]; | ||
// see https://github.com/oliviertassinari/react-event-listener/ | ||
@@ -20,3 +21,3 @@ class EventListener extends React__default['default'].PureComponent { | ||
componentDidUpdate(_ref) { | ||
let detachProps = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, ["passive"]); | ||
let detachProps = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded); | ||
@@ -23,0 +24,0 @@ this.detachListener(detachProps); |
@@ -7,4 +7,3 @@ import React from 'react'; | ||
} | ||
componentDidUpdate(_a) { | ||
var { passive } = _a, detachProps = __rest(_a, ["passive"]); | ||
componentDidUpdate({ passive, ...detachProps }) { | ||
this.detachListener(detachProps); | ||
@@ -11,0 +10,0 @@ this.attachListener(); |
@@ -62,3 +62,3 @@ import { useState, useCallback, useContext } from 'react'; | ||
} | ||
}, async === null || async === void 0 ? void 0 : async.effect); | ||
}, async?.effect); | ||
} |
@@ -1,1 +0,4 @@ | ||
module.exports = require("./build/cjs/index.js"); | ||
function interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : {default: obj}; | ||
} | ||
module.exports = interopRequireDefault(require("./build/cjs/index.js")); |
{ | ||
"name": "@shopify/react-async", | ||
"version": "4.0.1", | ||
"version": "4.1.0", | ||
"license": "MIT", | ||
@@ -28,11 +28,11 @@ "description": "Tools for creating powerful, asynchronously-loaded React components", | ||
"@shopify/async": "^3.0.1", | ||
"@shopify/react-effect": "^4.0.1", | ||
"@shopify/react-hooks": "^2.0.1", | ||
"@shopify/react-hydrate": "^2.0.1", | ||
"@shopify/react-idle": "^2.0.1", | ||
"@shopify/react-intersection-observer": "^3.0.1", | ||
"@shopify/react-effect": "^4.1.0", | ||
"@shopify/react-hooks": "^2.1.0", | ||
"@shopify/react-hydrate": "^2.1.0", | ||
"@shopify/react-idle": "^2.1.0", | ||
"@shopify/react-intersection-observer": "^3.1.0", | ||
"@shopify/useful-types": "^3.0.1" | ||
}, | ||
"peerDependencies": { | ||
"react": ">=16.8.0 <17.0.0" | ||
"react": ">=16.8.0 <18.0.0" | ||
}, | ||
@@ -66,3 +66,3 @@ "files": [ | ||
}, | ||
"gitHead": "0edc9e3b7df7b6a4805cc3ff1443641cdb8e8a72" | ||
"gitHead": "30d892584692f05644604a818e8f3613d1ec6e0b" | ||
} |
@@ -308,3 +308,3 @@ # `@shopify/react-async` | ||
path={/^\/products\/(\d+)$/} | ||
render={url => { | ||
render={(url) => { | ||
const id = url.pathname.split('/').pop(); | ||
@@ -383,3 +383,3 @@ return <ProductDetails.Prefetch id={id} />; | ||
<ExpensiveFileContext.Consumer> | ||
{file => (file ? <CsvViewer file={file} /> : null)} | ||
{(file) => (file ? <CsvViewer file={file} /> : null)} | ||
</ExpensiveFileContext.Consumer>; | ||
@@ -386,0 +386,0 @@ ``` |
@@ -1,1 +0,4 @@ | ||
module.exports = require("./build/cjs/testing.js"); | ||
function interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : {default: obj}; | ||
} | ||
module.exports = interopRequireDefault(require("./build/cjs/testing.js")); |
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
434604
2504
- Removedprop-types@15.8.1(transitive)
- Removedreact@16.14.0(transitive)
- Removedreact-is@16.13.1(transitive)
Updated@shopify/react-effect@^4.1.0
Updated@shopify/react-hooks@^2.1.0
Updated@shopify/react-idle@^2.1.0