Socket
Socket
Sign inDemoInstall

@shopify/react-html

Package Overview
Dependencies
Maintainers
13
Versions
191
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/react-html - npm Package Compare versions

Comparing version 9.2.14 to 9.2.15-core-js-beta.1

2

CHANGELOG.md

@@ -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 @@

2

dist/src/server/components/Serialize.js

@@ -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 />`

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc