@shopify/react-effect
Advanced tools
Comparing version 3.2.11 to 3.2.12-sknext-beta.9
@@ -8,4 +8,6 @@ # Changelog | ||
## [Unreleased] | ||
<!-- ## Unreleased --> | ||
## [3.2.1] - 2019-01-27 | ||
- Specify package has no `sideEffects` ([#1233](https://github.com/Shopify/quilt/pull/1233)) | ||
@@ -12,0 +14,0 @@ |
{ | ||
"name": "@shopify/react-effect", | ||
"version": "3.2.11", | ||
"version": "3.2.12-sknext-beta.9", | ||
"license": "MIT", | ||
"description": "A component and set of utilities for performing effects within a universal React app", | ||
"main": "dist/src/index.js", | ||
"types": "dist/src/index.d.ts", | ||
"main": "index.js", | ||
"types": "index.d.ts", | ||
"scripts": { | ||
@@ -27,3 +27,2 @@ "build": "tsc --p tsconfig.json" | ||
"dependencies": { | ||
"@shopify/useful-types": "^2.1.4", | ||
"tslib": "^1.9.3" | ||
@@ -35,5 +34,11 @@ }, | ||
"files": [ | ||
"dist/*", | ||
"build/*", | ||
"!tsconfig.tsbuildinfo", | ||
"index.js", | ||
"index.mjs", | ||
"index.esnext", | ||
"index.d.ts", | ||
"server.js", | ||
"server.mjs", | ||
"server.esnext", | ||
"server.d.ts" | ||
@@ -44,3 +49,18 @@ ], | ||
"react-dom": ">=16.8.0 <17.0.0" | ||
}, | ||
"module": "index.mjs", | ||
"esnext": "index.esnext", | ||
"exports": { | ||
"./": "./", | ||
"./index": { | ||
"import": "./index.mjs", | ||
"require": "./index.js", | ||
"esnext": "./index.esnext" | ||
}, | ||
"./server": { | ||
"import": "./server.mjs", | ||
"require": "./server.js", | ||
"esnext": "./server.esnext" | ||
} | ||
} | ||
} |
@@ -6,3 +6,3 @@ # `@shopify/react-effect` | ||
This package contains a component and set of utilities for performing multiple effects during one single pass of server rendering in a universal React application. | ||
This package contains a component and set of utilities for performing multiple effects during a single pass of server-side rendering in a universal React application. | ||
@@ -88,6 +88,6 @@ ## Installation | ||
import {extract} from '@shopify/react-effect/server'; | ||
import {createApolloBridge} from '@shopify/react-effect-apollo'; | ||
import {HtmlContext, HtmlManager} from '@shopify/react-html/server'; | ||
async function app(ctx) { | ||
const ApolloBridge = createApolloBridge(); | ||
const htmlManager = new HtmlManager(); | ||
const app = <App />; | ||
@@ -97,3 +97,7 @@ | ||
decorate(element) { | ||
return <ApolloBridge>{element}</ApolloBridge>; | ||
return ( | ||
<HtmlContext.Provider value={htmlManager}> | ||
{element} | ||
</HtmlContext.Provider> | ||
); | ||
}, | ||
@@ -100,0 +104,0 @@ }); |
@@ -1,1 +0,1 @@ | ||
export * from './dist/src/server'; | ||
export * from "./build/ts/server"; |
@@ -1,1 +0,1 @@ | ||
module.exports = require('./dist/src/server'); | ||
module.exports = require("./build/node/server"); |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
69946
3
67
1292
152
1
1
- Removed@shopify/useful-types@^2.1.4
- Removed@shopify/useful-types@2.4.2(transitive)