File tree Expand file tree Collapse file tree 2 files changed +9
-11
lines changed
packages/cli-kit/src/private/node/context Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @shopify/cli ' : patch
3+ ---
4+
5+ Fix CLI loading on Node 25
Original file line number Diff line number Diff line change @@ -2,15 +2,8 @@ interface DeprecationsStore {
22 nextDeprecationDate : Date | undefined
33}
44
5- interface GlobalWithDeprecationsStore {
6- deprecationsStore : DeprecationsStore
7- }
8-
9- const globalWithDeprecationsStore : GlobalWithDeprecationsStore = {
10- ...globalThis ,
11- deprecationsStore : {
12- nextDeprecationDate : undefined ,
13- } ,
5+ const deprecationsStore : DeprecationsStore = {
6+ nextDeprecationDate : undefined ,
147}
158
169/**
@@ -19,7 +12,7 @@ const globalWithDeprecationsStore: GlobalWithDeprecationsStore = {
1912 * @returns The next deprecation date.
2013 */
2114export function getNextDeprecationDate ( ) : Date | undefined {
22- return globalWithDeprecationsStore . deprecationsStore . nextDeprecationDate
15+ return deprecationsStore . nextDeprecationDate
2316}
2417
2518/**
@@ -35,7 +28,7 @@ export function setNextDeprecationDate(dates: Date[]): Date | undefined {
3528
3629 const nextDeprecationDate = getNextDeprecationDate ( )
3730 if ( ! nextDeprecationDate || earliestFutureDateTime < nextDeprecationDate . getTime ( ) ) {
38- globalWithDeprecationsStore . deprecationsStore . nextDeprecationDate = new Date ( earliestFutureDateTime )
31+ deprecationsStore . nextDeprecationDate = new Date ( earliestFutureDateTime )
3932 }
4033}
4134
You can’t perform that action at this time.
0 commit comments