@shopify/react-html
Advanced tools
Comparing version 9.2.14 to 9.2.15-core-js-beta.1
@@ -11,2 +11,4 @@ # Changelog | ||
- Update `serialize-javascript@^3.0.0`. Solved an issue when you try to deserialize a non-JSON object by enforcing data to be serialized as a JSON object. ([#762](https://github.com/Shopify/quilt/pull/762)) | ||
## 9.2.2 - 2019-09-06 | ||
@@ -13,0 +15,0 @@ |
@@ -10,4 +10,4 @@ "use strict"; | ||
var id = _a.id, data = _a.data; | ||
return (react_1.default.createElement("script", tslib_1.__assign({ type: "text/json", dangerouslySetInnerHTML: { __html: serialize_javascript_1.default(data) } }, (_b = {}, _b[utilities_1.SERIALIZE_ATTRIBUTE] = id, _b)))); | ||
return (react_1.default.createElement("script", tslib_1.__assign({ type: "text/json", dangerouslySetInnerHTML: { __html: serialize_javascript_1.default(data, { isJSON: true }) } }, (_b = {}, _b[utilities_1.SERIALIZE_ATTRIBUTE] = id, _b)))); | ||
} | ||
exports.default = Serialize; |
{ | ||
"name": "@shopify/react-html", | ||
"version": "9.2.14", | ||
"version": "9.2.15-core-js-beta.1", | ||
"license": "MIT", | ||
@@ -27,8 +27,7 @@ "description": "A component to render your react app with no static HTML.", | ||
"@shopify/react-effect": "^3.2.11", | ||
"@shopify/react-hydrate": "^1.1.14", | ||
"@shopify/react-serialize": "^1.0.22", | ||
"@shopify/react-hydrate": "^1.1.15", | ||
"@shopify/useful-types": "^2.1.4", | ||
"@types/multistream": "^2.1.1", | ||
"multistream": "^2.1.1", | ||
"serialize-javascript": "^1.5.0", | ||
"serialize-javascript": "^3.0.0", | ||
"tslib": "^1.9.3" | ||
@@ -35,0 +34,0 @@ }, |
@@ -71,3 +71,3 @@ # `@shopify/react-html` | ||
In order for `link`, `meta`, and `title` tags to be updated as components are mounted and unmounted, you must render the `HeadUpdater` component somewhere in your tree: | ||
In order for `link`, `meta`, and `title` tags to be updated as components are mounted and unmounted, you must render the `HtmlUpdater` component somewhere in your tree: | ||
@@ -80,3 +80,3 @@ ```tsx | ||
<> | ||
<HeadUpdater /> | ||
<HtmlUpdater /> | ||
<RestOfApp /> | ||
@@ -219,5 +219,5 @@ </> | ||
### `<HeadUpdater />` | ||
### `<HtmlUpdater />` | ||
The `<HeadUpdater />` component is responsible for updating the head in response to `link`, `meta`, and `title` changes. You should only render one of these in your entire app. | ||
The `<HtmlUpdater />` component is responsible for updating the head in response to `link`, `meta`, and `title` changes. It also renders a `HydrationTracker` from [`@shopify/react-hydrate`](../react-hydrate). You should only render one of these in your entire app. | ||
@@ -228,3 +228,3 @@ ### `useLink()` and `<Link />` | ||
Both the hook and component versions accept any properties you would supply to a `<link />` tag. If you are using this component to create a favicon, use the [`useFavicon()`/ `<Favicon />` component](#favicon) instead. | ||
Both the hook and component versions accept any properties you would supply to a `<link />` tag. If you are using this component to create a favicon, use the [`useFavicon()`/ `<Favicon />` component](#usefavicon-and-favicon-) instead. | ||
@@ -231,0 +231,0 @@ ### `useMeta()` and `<Meta />` |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
71509
9
1
+ Addedrandombytes@2.1.0(transitive)
+ Addedserialize-javascript@3.1.0(transitive)
- Removed@shopify/react-serialize@^1.0.22
- Removed@shopify/react-serialize@1.0.22(transitive)
- Removedserialize-javascript@1.9.1(transitive)
Updatedserialize-javascript@^3.0.0