shopify 3.93.2 → 3.94.0

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.
Files changed (111) hide show
  1. package/dist/assets/dev-console/extensions/dev-console/assets/index-Bm_GpKQW.js +51 -0
  2. package/dist/assets/dev-console/index.html +1 -1
  3. package/dist/assets/hydrogen/starter/CHANGELOG.md +0 -64
  4. package/dist/assets/hydrogen/starter/app/components/Aside.tsx +2 -4
  5. package/dist/assets/hydrogen/starter/app/components/CartMain.tsx +3 -6
  6. package/dist/assets/hydrogen/starter/app/components/CartSummary.tsx +23 -117
  7. package/dist/assets/hydrogen/starter/app/components/Header.tsx +3 -3
  8. package/dist/assets/hydrogen/starter/app/components/PaginatedResourceSection.tsx +4 -24
  9. package/dist/assets/hydrogen/starter/app/components/ProductPrice.tsx +1 -1
  10. package/dist/assets/hydrogen/starter/app/routes/[robots.txt].tsx +53 -14
  11. package/dist/assets/hydrogen/starter/app/routes/_index.tsx +4 -11
  12. package/dist/assets/hydrogen/starter/app/routes/account.$.tsx +1 -1
  13. package/dist/assets/hydrogen/starter/app/routes/account.addresses.tsx +2 -2
  14. package/dist/assets/hydrogen/starter/app/routes/account.profile.tsx +1 -1
  15. package/dist/assets/hydrogen/starter/app/routes/api.$version.[graphql.json].tsx +14 -0
  16. package/dist/assets/hydrogen/starter/package.json +5 -5
  17. package/dist/assets/hydrogen/starter/storefrontapi.generated.d.ts +11 -0
  18. package/dist/assets/hydrogen/starter/vite.config.ts +1 -1
  19. package/dist/assets/hydrogen/vite/vite.config.js +1 -1
  20. package/dist/chunk-52KHWFYF.js +1 -0
  21. package/dist/chunk-7F3HZJH4.js +3 -0
  22. package/dist/{chunk-4VZV4LQX.js → chunk-7JFIBCHH.js} +66 -66
  23. package/dist/{chunk-MX6WWR5F.js → chunk-AQOYGO3U.js} +16 -16
  24. package/dist/{chunk-IG47ZDRU.js → chunk-DBDY2YEY.js} +1 -1
  25. package/dist/chunk-DEW5QFGH.js +415 -0
  26. package/dist/chunk-FU2Y2M3M.js +5 -0
  27. package/dist/chunk-JBSYWYIP.js +2 -0
  28. package/dist/chunk-QYR5VPQA.js +4 -0
  29. package/dist/{chunk-5FCKEHCK.js → chunk-R6N4NGU6.js} +154 -154
  30. package/dist/{chunk-XVFYDYZA.js → chunk-SVA22NZQ.js} +209 -211
  31. package/dist/cli/commands/config/autoupgrade/constants.d.ts +5 -0
  32. package/dist/cli/commands/config/autoupgrade/constants.js +6 -0
  33. package/dist/cli/commands/config/autoupgrade/off.d.ts +7 -0
  34. package/dist/cli/commands/config/autoupgrade/off.js +22 -0
  35. package/dist/cli/commands/config/autoupgrade/on.d.ts +7 -0
  36. package/dist/cli/commands/config/autoupgrade/on.js +22 -0
  37. package/dist/cli/commands/config/autoupgrade/status.d.ts +7 -0
  38. package/dist/cli/commands/config/autoupgrade/status.js +30 -0
  39. package/dist/cli/commands/docs/generate.d.ts +1 -1
  40. package/dist/cli/commands/docs/generate.js +6 -3
  41. package/dist/cli/commands/upgrade.js +3 -1
  42. package/dist/cli/services/kitchen-sink/static.js +1 -1
  43. package/dist/configs/all.yml +3 -0
  44. package/dist/configs/recommended.yml +3 -0
  45. package/dist/data/filters.json +30 -0
  46. package/dist/data/objects.json +17 -1
  47. package/dist/data/setting.json +25 -0
  48. package/dist/data/shopify_system_translations.json +29 -6
  49. package/dist/error-handler-JHFQZGYG.js +1 -0
  50. package/dist/hooks/postrun.js +1 -1
  51. package/dist/hooks/prerun.js +1 -1
  52. package/dist/{http-proxy-node16-DSQMBVDI.js → http-proxy-node16-TTURN6MD.js} +1 -1
  53. package/dist/index.js +1117 -1121
  54. package/dist/lib-3WHF5XD3.js +1 -0
  55. package/dist/{local-WHQ3ZS4K.js → local-4PW2CHVR.js} +1 -1
  56. package/dist/{morph-Q32V442A.js → morph-DQREIZD2.js} +1 -1
  57. package/dist/node-package-manager-NTQEYCSE.js +1 -0
  58. package/dist/path-HUAU3YBW.js +1 -0
  59. package/dist/tsconfig.tsbuildinfo +1 -1
  60. package/dist/{ui-GZ7DOSHP.js → ui-7Z2HOOEO.js} +1 -1
  61. package/dist/{workerd-LJU6AVMQ.js → workerd-VL54JTEU.js} +1 -1
  62. package/oclif.manifest.json +65 -4
  63. package/package.json +8 -7
  64. package/dist/assets/dev-console/extensions/dev-console/assets/index-BnXVL6nA.js +0 -78
  65. package/dist/chunk-4QL77VYJ.js +0 -415
  66. package/dist/chunk-DDTYWTF2.js +0 -1
  67. package/dist/chunk-FYQIRCLV.js +0 -5
  68. package/dist/chunk-NOSKVZWJ.js +0 -2
  69. package/dist/chunk-QJEBL3WX.js +0 -4
  70. package/dist/cli/commands/store/auth.d.ts +0 -15
  71. package/dist/cli/commands/store/auth.js +0 -46
  72. package/dist/cli/commands/store/execute.d.ts +0 -21
  73. package/dist/cli/commands/store/execute.js +0 -89
  74. package/dist/cli/services/store/auth/callback.d.ts +0 -8
  75. package/dist/cli/services/store/auth/callback.js +0 -140
  76. package/dist/cli/services/store/auth/config.d.ts +0 -6
  77. package/dist/cli/services/store/auth/config.js +0 -15
  78. package/dist/cli/services/store/auth/existing-scopes.d.ts +0 -5
  79. package/dist/cli/services/store/auth/existing-scopes.js +0 -40
  80. package/dist/cli/services/store/auth/index.d.ts +0 -18
  81. package/dist/cli/services/store/auth/index.js +0 -88
  82. package/dist/cli/services/store/auth/pkce.d.ts +0 -36
  83. package/dist/cli/services/store/auth/pkce.js +0 -49
  84. package/dist/cli/services/store/auth/recovery.d.ts +0 -4
  85. package/dist/cli/services/store/auth/recovery.js +0 -17
  86. package/dist/cli/services/store/auth/result.d.ts +0 -24
  87. package/dist/cli/services/store/auth/result.js +0 -39
  88. package/dist/cli/services/store/auth/scopes.d.ts +0 -4
  89. package/dist/cli/services/store/auth/scopes.js +0 -53
  90. package/dist/cli/services/store/auth/session-lifecycle.d.ts +0 -3
  91. package/dist/cli/services/store/auth/session-lifecycle.js +0 -69
  92. package/dist/cli/services/store/auth/session-store.d.ts +0 -32
  93. package/dist/cli/services/store/auth/session-store.js +0 -127
  94. package/dist/cli/services/store/auth/token-client.d.ts +0 -40
  95. package/dist/cli/services/store/auth/token-client.js +0 -95
  96. package/dist/cli/services/store/execute/admin-context.d.ts +0 -11
  97. package/dist/cli/services/store/execute/admin-context.js +0 -41
  98. package/dist/cli/services/store/execute/admin-transport.d.ts +0 -6
  99. package/dist/cli/services/store/execute/admin-transport.js +0 -42
  100. package/dist/cli/services/store/execute/index.d.ts +0 -13
  101. package/dist/cli/services/store/execute/index.js +0 -22
  102. package/dist/cli/services/store/execute/request.d.ts +0 -21
  103. package/dist/cli/services/store/execute/request.js +0 -88
  104. package/dist/cli/services/store/execute/result.d.ts +0 -3
  105. package/dist/cli/services/store/execute/result.js +0 -29
  106. package/dist/cli/services/store/execute/targets.d.ts +0 -18
  107. package/dist/cli/services/store/execute/targets.js +0 -21
  108. package/dist/error-handler-GZ2I7BG5.js +0 -1
  109. package/dist/lib-GGVLMXY5.js +0 -1
  110. package/dist/node-package-manager-6XMPTNUI.js +0 -1
  111. package/dist/path-IT7KPARG.js +0 -1
@@ -20,7 +20,7 @@ export const meta: Route.MetaFunction = () => {
20
20
  };
21
21
 
22
22
  export async function loader({context}: Route.LoaderArgs) {
23
- await context.customerAccount.handleAuthStatus();
23
+ context.customerAccount.handleAuthStatus();
24
24
 
25
25
  return {};
26
26
  }
@@ -0,0 +1,14 @@
1
+ import type {Route} from './+types/api.$version.[graphql.json]';
2
+
3
+ export async function action({params, context, request}: Route.ActionArgs) {
4
+ const response = await fetch(
5
+ `https://${context.env.PUBLIC_CHECKOUT_DOMAIN}/api/${params.version}/graphql.json`,
6
+ {
7
+ method: 'POST',
8
+ body: request.body,
9
+ headers: request.headers,
10
+ },
11
+ );
12
+
13
+ return new Response(response.body, {headers: new Headers(response.headers)});
14
+ }
@@ -2,7 +2,7 @@
2
2
  "name": "skeleton",
3
3
  "private": true,
4
4
  "sideEffects": false,
5
- "version": "2026.4.0",
5
+ "version": "2026.1.1",
6
6
  "type": "module",
7
7
  "scripts": {
8
8
  "build": "shopify hydrogen build --codegen",
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "prettier": "@shopify/prettier-config",
16
16
  "dependencies": {
17
- "@shopify/hydrogen": "2026.4.0",
17
+ "@shopify/hydrogen": "*2026.1.1",
18
18
  "graphql": "^16.10.0",
19
19
  "graphql-tag": "^2.12.6",
20
20
  "isbot": "^5.1.22",
@@ -30,9 +30,9 @@
30
30
  "@graphql-codegen/cli": "5.0.2",
31
31
  "@react-router/dev": "7.12.0",
32
32
  "@react-router/fs-routes": "7.12.0",
33
- "@shopify/cli": "3.91.1",
33
+ "@shopify/cli": "3.85.4",
34
34
  "@shopify/hydrogen-codegen": "0.3.3",
35
- "@shopify/mini-oxygen": "4.0.2",
35
+ "@shopify/mini-oxygen": "4.0.1",
36
36
  "@shopify/oxygen-workers-types": "^4.1.6",
37
37
  "@shopify/prettier-config": "^1.1.2",
38
38
  "@total-typescript/ts-reset": "^0.6.1",
@@ -54,7 +54,7 @@
54
54
  "graphql-config": "^5.0.3",
55
55
  "prettier": "^3.4.2",
56
56
  "typescript": "^5.9.2",
57
- "vite": "^6.4.2",
57
+ "vite": "^6.2.4",
58
58
  "vite-tsconfig-paths": "^4.3.1"
59
59
  },
60
60
  "engines": {
@@ -377,6 +377,13 @@ export type FooterQuery = {
377
377
  >;
378
378
  };
379
379
 
380
+ export type StoreRobotsQueryVariables = StorefrontAPI.Exact<{
381
+ country?: StorefrontAPI.InputMaybe<StorefrontAPI.CountryCode>;
382
+ language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
383
+ }>;
384
+
385
+ export type StoreRobotsQuery = {shop: Pick<StorefrontAPI.Shop, 'id'>};
386
+
380
387
  export type FeaturedCollectionFragment = Pick<
381
388
  StorefrontAPI.Collection,
382
389
  'id' | 'title' | 'handle'
@@ -1276,6 +1283,10 @@ interface GeneratedQueryTypes {
1276
1283
  return: FooterQuery;
1277
1284
  variables: FooterQueryVariables;
1278
1285
  };
1286
+ '#graphql\n query StoreRobots($country: CountryCode, $language: LanguageCode)\n @inContext(country: $country, language: $language) {\n shop {\n id\n }\n }\n': {
1287
+ return: StoreRobotsQuery;
1288
+ variables: StoreRobotsQueryVariables;
1289
+ };
1279
1290
  '#graphql\n fragment FeaturedCollection on Collection {\n id\n title\n image {\n id\n url\n altText\n width\n height\n }\n handle\n }\n query FeaturedCollection($country: CountryCode, $language: LanguageCode)\n @inContext(country: $country, language: $language) {\n collections(first: 1, sortKey: UPDATED_AT, reverse: true) {\n nodes {\n ...FeaturedCollection\n }\n }\n }\n': {
1280
1291
  return: FeaturedCollectionQuery;
1281
1292
  variables: FeaturedCollectionQueryVariables;
@@ -8,7 +8,7 @@ export default defineConfig({
8
8
  plugins: [hydrogen(), oxygen(), reactRouter(), tsconfigPaths()],
9
9
  build: {
10
10
  // Allow a strict Content-Security-Policy
11
- // without inlining assets as base64:
11
+ // withtout inlining assets as base64:
12
12
  assetsInlineLimit: 0,
13
13
  },
14
14
  ssr: {
@@ -21,7 +21,7 @@ export default defineConfig({
21
21
  ],
22
22
  build: {
23
23
  // Allow a strict Content-Security-Policy
24
- // without inlining assets as base64:
24
+ // withtout inlining assets as base64:
25
25
  assetsInlineLimit: 0,
26
26
  },
27
27
  ssr: {
@@ -0,0 +1 @@
1
+ import{c as A,g as m}from"./chunk-VPRTJUIN.js";var w=A((q,R)=>{"use strict";m();R.exports=$;function $(r,t,a){r instanceof RegExp&&(r=E(r,a)),t instanceof RegExp&&(t=E(t,a));var e=I(r,t,a);return e&&{start:e[0],end:e[1],pre:a.slice(0,e[0]),body:a.slice(e[0]+r.length,e[1]),post:a.slice(e[1]+t.length)}}function E(r,t){var a=t.match(r);return a?a[0]:null}$.range=I;function I(r,t,a){var e,v,o,n,p,f=a.indexOf(r),s=a.indexOf(t,f+1),l=f;if(f>=0&&s>0){if(r===t)return[f,s];for(e=[],o=a.length;l>=0&&!p;)l==f?(e.push(l),f=a.indexOf(r,l+1)):e.length==1?p=[e.pop(),s]:(v=e.pop(),v<o&&(o=v,n=s),s=a.indexOf(t,l+1)),l=f<s&&f>=0?f:s;e.length&&(p=[o,n])}return p}});var k=A((rr,H)=>{m();var B=w();H.exports=V;var L="\0SLASH"+Math.random()+"\0",S="\0OPEN"+Math.random()+"\0",y="\0CLOSE"+Math.random()+"\0",Z="\0COMMA"+Math.random()+"\0",z="\0PERIOD"+Math.random()+"\0";function b(r){return parseInt(r,10)==r?parseInt(r,10):r.charCodeAt(0)}function Q(r){return r.split("\\\\").join(L).split("\\{").join(S).split("\\}").join(y).split("\\,").join(Z).split("\\.").join(z)}function U(r){return r.split(L).join("\\").split(S).join("{").split(y).join("}").split(Z).join(",").split(z).join(".")}function D(r){if(!r)return[""];var t=[],a=B("{","}",r);if(!a)return r.split(",");var e=a.pre,v=a.body,o=a.post,n=e.split(",");n[n.length-1]+="{"+v+"}";var p=D(o);return o.length&&(n[n.length-1]+=p.shift(),n.push.apply(n,p)),t.push.apply(t,n),t}function V(r){return r?(r.substr(0,2)==="{}"&&(r="\\{\\}"+r.substr(2)),c(Q(r),!0).map(U)):[]}function W(r){return"{"+r+"}"}function X(r){return/^-?0\d/.test(r)}function Y(r,t){return r<=t}function _(r,t){return r>=t}function c(r,t){var a=[],e=B("{","}",r);if(!e)return[r];var v=e.pre,o=e.post.length?c(e.post,!1):[""];if(/\$$/.test(e.pre))for(var n=0;n<o.length;n++){var p=v+"{"+e.body+"}"+o[n];a.push(p)}else{var f=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(e.body),s=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(e.body),l=f||s,T=e.body.indexOf(",")>=0;if(!l&&!T)return e.post.match(/,(?!,).*\}/)?(r=e.pre+"{"+e.body+y+e.post,c(r)):[r];var i;if(l)i=e.body.split(/\.\./);else if(i=D(e.body),i.length===1&&(i=c(i[0],!1).map(W),i.length===1))return o.map(function(K){return e.pre+i[0]+K});var h;if(l){var x=b(i[0]),j=b(i[1]),F=Math.max(i[0].length,i[1].length),M=i.length==3?Math.abs(b(i[2])):1,O=Y,G=j<x;G&&(M*=-1,O=_);var J=i.some(X);h=[];for(var g=x;O(g,j);g+=M){var u;if(s)u=String.fromCharCode(g),u==="\\"&&(u="");else if(u=String(g),J){var C=F-u.length;if(C>0){var P=new Array(C+1).join("0");g<0?u="-"+P+u.slice(1):u=P+u}}h.push(u)}}else{h=[];for(var d=0;d<i.length;d++)h.push.apply(h,c(i[d],!1))}for(var d=0;d<h.length;d++)for(var n=0;n<o.length;n++){var p=v+h[d]+o[n];(!t||l||p)&&a.push(p)}}return a}});export{w as a,k as b};
@@ -0,0 +1,3 @@
1
+ import{Da as F,a as p,sa as M}from"./chunk-7JFIBCHH.js";import{G as E,N as O,O as T,P as b,T as $,V as v,q as f,s as g,t as L}from"./chunk-AQOYGO3U.js";import{Bd as l,Cb as V,Db as y,Eb as N,Ed as r,Fd as m,Uc as G,Yc as _,ad as H,lb as I,mb as P,nb as R,qb as w,rb as x,uc as j,wd as c,yc as J,yd as u}from"./chunk-DEW5QFGH.js";import{o as A,p as D,q as S}from"./chunk-JBSYWYIP.js";import{g as d}from"./chunk-VPRTJUIN.js";d();d();var W=e=>{let t=M();if(t){let a=e.id.includes("theme");ee(t,a)}};function ee(e,t){let o=`Upgrade to the latest CLI version by ${new Intl.DateTimeFormat("default",{year:"numeric",month:"long",day:"numeric"}).format(e)}.`;j({headline:o,body:"This command requires an upgrade to continue working as intended.",nextSteps:[["Run",{command:"upgrade"},"to",{link:{label:"upgrade Shopify CLI",url:t?"https://shopify.dev/docs/themes/tools/cli#upgrade-shopify-cli":"https://shopify.dev/docs/apps/tools/cli#upgrade-shopify-cli"}}]]})}d();function q(){let e=w();if(!(!e||e==="unknown"))return e==="homebrew"?"brew upgrade shopify-cli":e==="yarn"?`${e} global add @shopify/cli@latest`:`${e} ${e==="pnpm"?"add":"install"} -g @shopify/cli@latest`}async function B(){let e=S()??D(),t=x(e),a=R();if(H()){l("Skipping upgrade in development mode.");return}if(a){let n=q();if(!n)throw new Error("Could not determine the package manager");let[o,...i]=n.split(" ");if(!o)throw new Error("Could not determine the command to run");l(u`Upgrading Shopify CLI by running: ${c.genericShellCommand(n)}...`),await G(o,i,{stdio:"inherit"})}else if(t)await te(t,p);else throw new Error("Could not determine the local project directory")}function K(){let e=p,t=b("@shopify/cli",e);if(!t){r("Auto-upgrade: No newer version available.");return}if(process.env.SHOPIFY_CLI_FORCE_AUTO_UPGRADE==="1")return r("Auto-upgrade: Forcing auto-upgrade because of SHOPIFY_CLI_FORCE_AUTO_UPGRADE."),t;if(!g()){r("Auto-upgrade: Skipping because auto-upgrade is not enabled.");return}if(_()){r("Auto-upgrade: Skipping auto-upgrade in CI.");return}if(I(e)){r("Auto-upgrade: Skipping auto-upgrade for pre-release version.");return}return t}async function z(){if(_()||I(p)||g())return;let e=b("@shopify/cli",p);e&&await f("warn-on-available-upgrade",{days:1},async()=>{m(C(e))})}function C(e,t=!1){let a=q(),n=a?u`💡 Version ${e} available! Run ${c.genericShellCommand(a)}`.value:u`💡 Version ${e} available!`.value;if(t){let o=`https://github.com/Shopify/cli/releases/tag/${e}`,i=u`⚠️ This is a major version — review breaking changes before upgrading:\n ${c.link(o,o)}`.value;return`${n}
2
+
3
+ ${i}`}return n}async function Ie(){let e=g();if(e!==void 0)return e;let t=await J({message:"Enable automatic updates for Shopify CLI?",confirmationMessage:"Yes, automatically update",cancellationMessage:"No, I'll update manually"});return L(t),t}async function te(e,t){let a=(await v(e)).content,n=a.dependencies??{},o=a.devDependencies??{},s={...n,...o}[await U()];if(!s){r("Auto-upgrade: CLI dependency not found in project dependencies, skipping local upgrade.");return}s.slice(0,1).match(/[\^~]/)&&(s=t);let k=await T(await U(),s);k?oe(s,k):ne(s),await Y("prod",n,e),await Y("dev",o,e)}async function Y(e,t,a){let n=[await U(),...await ae()].filter(i=>!!t[i]).map(i=>({name:i,version:"latest"})),o=await O(a);n.length>0&&await $(n,{packageManager:await E(a),type:e,directory:a,stdout:process.stdout,stderr:process.stderr,addToRootDirectory:o})}async function U(){return(await Q()).name}async function ae(){return(await Q())?.oclif?.plugins??[]}var h;async function Q(){if(!h){let e=await v(A(import.meta.url));h=h??e.content}return h}function ne(e){l(u`You're on the latest version, ${c.yellow(e)}, no need to upgrade!`)}function oe(e,t){l(u`Upgrading CLI from ${c.yellow(e)} to ${c.yellow(t)}...`)}var Z=!1;function xe(){return Z}var Ee=async({config:e,Command:t})=>{await ie(t),await F({config:e,exitMode:"ok"}),W(t);let a=t.id.replace(/:/g," ");r(`Completed command ${a}`),Z=!0,!a.includes("notifications")&&!a.includes("upgrade")&&await re()};async function re(){let e=K();if(!e){await z();return}process.env.SHOPIFY_CLI_FORCE_AUTO_UPGRADE==="1"?await X(e):await f("auto-upgrade",{days:1},async()=>{await X(e)})}async function X(e){if(P(p,e)){m(C(e,!0)),await y(()=>({env_auto_upgrade_skipped_reason:"major_version"}));return}try{await B(),await y(()=>({env_auto_upgrade_success:!0}))}catch(t){let a=`Auto-upgrade failed: ${t}`;r(a),m(C(e)),await y(()=>({env_auto_upgrade_success:!1}));let{sendErrorToBugsnag:n}=await import("./error-handler-JHFQZGYG.js"),o=Object.assign(new Error(a),{packageManager:w(),platform:process.platform,cliVersion:p});await n(o,"expected_error")}}async function ie(e){let t=new Date().getTime();if(e&&Object.prototype.hasOwnProperty.call(e,"analyticsStopCommand")){let a=e.analyticsStopCommand();if(a){let{commandStartOptions:n}=V();if(!n)return;await N(()=>({commandStartOptions:{...n,startTime:t,startCommand:a}}))}}}export{B as a,Ie as b,xe as c,Ee as d};