@shopify/react-html
Advanced tools
Comparing version 11.1.23 to 12.0.0
@@ -5,3 +5,2 @@ 'use strict'; | ||
var _rollupPluginBabelHelpers = require('./_virtual/_rollupPluginBabelHelpers.js'); | ||
var utilities = require('./utilities.js'); | ||
@@ -94,3 +93,3 @@ | ||
extract() { | ||
return _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, this.state), {}, { | ||
return { ...this.state, | ||
serializations: [...this.serializations.entries()].map(([id, data]) => ({ | ||
@@ -100,3 +99,3 @@ id, | ||
})) | ||
}); | ||
}; | ||
} | ||
@@ -103,0 +102,0 @@ |
@@ -5,3 +5,2 @@ 'use strict'; | ||
var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js'); | ||
var React = require('react'); | ||
@@ -13,18 +12,14 @@ | ||
const _excluded = ["type", "defer"]; | ||
function Script(props) { | ||
const { | ||
type, | ||
defer | ||
} = props, | ||
otherProps = _rollupPluginBabelHelpers.objectWithoutProperties(props, _excluded); | ||
defer, | ||
...otherProps | ||
} = props; | ||
const isNoModule = type === 'nomodule'; | ||
const attributes = _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, otherProps), {}, { | ||
const attributes = { ...otherProps, | ||
type: !type || isNoModule ? 'text/javascript' : type, | ||
defer: type === 'module' ? undefined : defer, | ||
noModule: isNoModule ? true : undefined | ||
}); | ||
}; | ||
return /*#__PURE__*/React__default["default"].createElement("script", attributes); | ||
@@ -31,0 +26,0 @@ } |
@@ -26,3 +26,3 @@ 'use strict'; | ||
return value ? JSON.parse(value) : undefined; | ||
} catch (_unused) { | ||
} catch { | ||
return undefined; | ||
@@ -29,0 +29,0 @@ } |
{ | ||
"name": "@shopify/react-html", | ||
"version": "11.1.23", | ||
"version": "12.0.0", | ||
"license": "MIT", | ||
@@ -30,7 +30,7 @@ "description": "A component to render your React app with no static HTML", | ||
"engines": { | ||
"node": ">=12.14.0" | ||
"node": "^14.17.0 || >=16.0.0" | ||
}, | ||
"dependencies": { | ||
"@shopify/react-effect": "^4.1.12", | ||
"@shopify/react-hydrate": "^2.1.21", | ||
"@shopify/react-effect": "^5.0.0", | ||
"@shopify/react-hydrate": "^3.0.0", | ||
"@types/multistream": "^2.1.1", | ||
@@ -45,4 +45,4 @@ "multistream": "^2.1.1", | ||
"devDependencies": { | ||
"@shopify/react-testing": "^3.3.10", | ||
"@shopify/with-env": "^2.0.8" | ||
"@shopify/react-testing": "^4.0.0", | ||
"@shopify/with-env": "^3.0.0" | ||
}, | ||
@@ -73,6 +73,5 @@ "sideEffects": false, | ||
"require": "./index.js" | ||
}, | ||
"./*": "./*" | ||
} | ||
}, | ||
"gitHead": "c2d1591178ba2f54775299a8038497348c955e0b" | ||
"gitHead": "ef9afc562672dcda9d7800753dc6b777ecd2d751" | ||
} |
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
114048
140
1742
+ Added@shopify/react-effect@5.2.0(transitive)
+ Added@shopify/react-hooks@4.1.2(transitive)
+ Added@shopify/react-hydrate@3.1.4(transitive)
+ Addedreact@18.3.1(transitive)
- Removed@shopify/react-effect@4.1.12(transitive)
- Removed@shopify/react-hooks@2.1.19(transitive)
- Removed@shopify/react-hydrate@2.1.21(transitive)
Updated@shopify/react-effect@^5.0.0