@shopify/hydrogen 0.16.0 → 0.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/esnext/foundation/useUrl/useUrl.js +1 -1
- package/dist/esnext/framework/plugins/vite-plugin-hydrogen-config.js +2 -0
- package/dist/esnext/version.d.ts +1 -1
- package/dist/esnext/version.js +1 -1
- package/dist/node/framework/plugins/vite-plugin-hydrogen-config.js +2 -0
- package/dist/node/version.d.ts +1 -1
- package/dist/node/version.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.16.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1102](https://github.com/Shopify/hydrogen/pull/1102) [`59ee791a`](https://github.com/Shopify/hydrogen/commit/59ee791ac81f41764b4ab3e5dd667c0c72b672d3) Thanks [@frandiox](https://github.com/frandiox)! - Do not call client exported functions during RSC.
|
|
8
|
+
|
|
3
9
|
## 0.16.0
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -7,7 +7,6 @@ import { useEnvContext, META_ENV_SSR } from '../ssr-interop';
|
|
|
7
7
|
*/
|
|
8
8
|
export function useUrl() {
|
|
9
9
|
var _a, _b;
|
|
10
|
-
const location = useLocation();
|
|
11
10
|
if (META_ENV_SSR) {
|
|
12
11
|
const serverUrl = new URL(useEnvContext((req) => req.url));
|
|
13
12
|
if (serverUrl.pathname === RSC_PATHNAME) {
|
|
@@ -21,5 +20,6 @@ export function useUrl() {
|
|
|
21
20
|
* We return a `URL` object instead of passing through `location` because
|
|
22
21
|
* the URL object contains important info like hostname, etc.
|
|
23
22
|
*/
|
|
23
|
+
const location = useLocation();
|
|
24
24
|
return useMemo(() => new URL(window.location.href), [location]);
|
|
25
25
|
}
|
package/dist/esnext/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const LIB_VERSION = "0.16.
|
|
1
|
+
export declare const LIB_VERSION = "0.16.1";
|
package/dist/esnext/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const LIB_VERSION = '0.16.
|
|
1
|
+
export const LIB_VERSION = '0.16.1';
|
package/dist/node/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const LIB_VERSION = "0.16.
|
|
1
|
+
export declare const LIB_VERSION = "0.16.1";
|
package/dist/node/version.js
CHANGED