@shopify/react-hydrate
Advanced tools
Comparing version 0.0.0-snapshot-20240308174203 to 0.0.0-snapshot-20240620045713
@@ -22,3 +22,2 @@ 'use strict'; | ||
this.hydration = new Map(); | ||
if (typeof document !== 'undefined') { | ||
@@ -30,3 +29,2 @@ for (const element of document.querySelectorAll(`[${shared.HYDRATION_ATTRIBUTE}]`)) { | ||
} | ||
hydrationId(id) { | ||
@@ -38,7 +36,5 @@ const finalId = id || DEFAULT_HYDRATION_ID; | ||
} | ||
getHydration(id) { | ||
return this.hydration.get(id); | ||
} | ||
} | ||
@@ -45,0 +41,0 @@ |
{ | ||
"name": "@shopify/react-hydrate", | ||
"version": "0.0.0-snapshot-20240308174203", | ||
"version": "0.0.0-snapshot-20240620045713", | ||
"license": "MIT", | ||
@@ -24,10 +24,10 @@ "description": "Utilities for hydrating server-rendered React apps", | ||
"engines": { | ||
"node": "^14.17.0 || >=16.0.0" | ||
"node": ">=18.12.0" | ||
}, | ||
"dependencies": { | ||
"@shopify/react-effect": "^5.0.3", | ||
"@shopify/react-hooks": "0.0.0-snapshot-20240308174203" | ||
"@shopify/react-effect": "0.0.0-snapshot-20240620045713", | ||
"@shopify/react-hooks": "0.0.0-snapshot-20240620045713" | ||
}, | ||
"peerDependencies": { | ||
"react": ">=16.8.0 <19.0.0" | ||
"react": ">=18.0.0 <19.0.0" | ||
}, | ||
@@ -34,0 +34,0 @@ "files": [ |
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
+ Added@shopify/react-effect@0.0.0-snapshot-20240620045713(transitive)
+ Added@shopify/react-hooks@0.0.0-snapshot-20240620045713(transitive)
- Removed@shopify/react-effect@5.2.0(transitive)
- Removed@shopify/react-hooks@0.0.0-snapshot-20240308174203(transitive)