@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 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
  }
@@ -64,6 +64,8 @@ export default () => {
64
64
  'react',
65
65
  'react-dom/client',
66
66
  'react-server-dom-vite/client-proxy',
67
+ // https://github.com/vitejs/vite/issues/6215
68
+ 'react/jsx-runtime',
67
69
  ],
68
70
  },
69
71
  define: {
@@ -1 +1 @@
1
- export declare const LIB_VERSION = "0.16.0";
1
+ export declare const LIB_VERSION = "0.16.1";
@@ -1 +1 @@
1
- export const LIB_VERSION = '0.16.0';
1
+ export const LIB_VERSION = '0.16.1';
@@ -66,6 +66,8 @@ exports.default = () => {
66
66
  'react',
67
67
  'react-dom/client',
68
68
  'react-server-dom-vite/client-proxy',
69
+ // https://github.com/vitejs/vite/issues/6215
70
+ 'react/jsx-runtime',
69
71
  ],
70
72
  },
71
73
  define: {
@@ -1 +1 @@
1
- export declare const LIB_VERSION = "0.16.0";
1
+ export declare const LIB_VERSION = "0.16.1";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.LIB_VERSION = void 0;
4
- exports.LIB_VERSION = '0.16.0';
4
+ exports.LIB_VERSION = '0.16.1';
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "engines": {
8
8
  "node": ">=14"
9
9
  },
10
- "version": "0.16.0",
10
+ "version": "0.16.1",
11
11
  "description": "Modern custom Shopify storefronts",
12
12
  "license": "MIT",
13
13
  "main": "dist/esnext/index.js",