diff --git a/package.json b/package.json index 06690c623..91e274a5e 100644 --- a/package.json +++ b/package.json @@ -188,7 +188,7 @@ "localforage": "^1.9.0", "lodash": "^4.17.21", "loglevel": "^1.4.1", - "luxon": "^3.1.0", + "luxon": "^3.2.1", "nanoid": "^2.1.6", "nonce-tracker": "^1.0.0", "obj-multiplex": "^1.0.0", diff --git a/patches/luxon+3.1.0.patch b/patches/luxon+3.1.0.patch deleted file mode 100644 index 0cb7a6e65..000000000 --- a/patches/luxon+3.1.0.patch +++ /dev/null @@ -1,22 +0,0 @@ -diff --git a/node_modules/luxon/build/cjs-browser/luxon.js b/node_modules/luxon/build/cjs-browser/luxon.js -index 9ab2b9f..14c2891 100644 ---- a/node_modules/luxon/build/cjs-browser/luxon.js -+++ b/node_modules/luxon/build/cjs-browser/luxon.js -@@ -7373,7 +7373,7 @@ var DateTime = /*#__PURE__*/function () { - */ - ; - -- _proto.toLocaleString = function toLocaleString(formatOpts, opts) { -+ Reflect.defineProperty(_proto, 'toLocaleString', { value: function toLocaleString(formatOpts, opts) { - if (formatOpts === void 0) { - formatOpts = DATE_SHORT; - } -@@ -7383,7 +7383,7 @@ var DateTime = /*#__PURE__*/function () { - } - - return this.isValid ? Formatter.create(this.loc.clone(opts), formatOpts).formatDateTime(this) : INVALID; -- } -+ }}) - /** - * Returns an array of format "parts", meaning individual tokens along with metadata. This is allows callers to post-process individual sections of the formatted output. - * Defaults to the system's locale if no locale has been specified diff --git a/patches/luxon+3.2.1.patch b/patches/luxon+3.2.1.patch new file mode 100644 index 000000000..c3b672663 --- /dev/null +++ b/patches/luxon+3.2.1.patch @@ -0,0 +1,40 @@ +diff --git a/node_modules/luxon/build/cjs-browser/luxon.js b/node_modules/luxon/build/cjs-browser/luxon.js +index 776c38a..c0f0c21 100644 +--- a/node_modules/luxon/build/cjs-browser/luxon.js ++++ b/node_modules/luxon/build/cjs-browser/luxon.js +@@ -4226,7 +4226,7 @@ var Interval = /*#__PURE__*/function () { + * @example Interval.fromISO('2022-11-07T17:00Z/2022-11-07T19:00Z').toLocaleString({ weekday: 'short', month: 'short', day: '2-digit', hour: '2-digit', minute: '2-digit' }); //=> Mon, Nov 07, 6:00 – 8:00 p + * @return {string} + */; +- _proto.toLocaleString = function toLocaleString(formatOpts, opts) { ++ Reflect.defineProperty(_proto, 'toLocaleString', { value: function toLocaleString(formatOpts, opts) { + if (formatOpts === void 0) { + formatOpts = DATE_SHORT; + } +@@ -4234,7 +4234,7 @@ var Interval = /*#__PURE__*/function () { + opts = {}; + } + return this.isValid ? Formatter.create(this.s.loc.clone(opts), formatOpts).formatInterval(this) : INVALID$1; +- } ++ }}) + + /** + * Returns an ISO 8601-compliant string representation of this Interval. +@@ -6598,7 +6598,7 @@ var DateTime = /*#__PURE__*/function () { + * @example DateTime.now().toLocaleString({ hour: '2-digit', minute: '2-digit', hourCycle: 'h23' }); //=> '11:32' + * @return {string} + */; +- _proto.toLocaleString = function toLocaleString(formatOpts, opts) { ++ Reflect.defineProperty(_proto, 'toLocaleString', { value: function toLocaleString(formatOpts, opts) { + if (formatOpts === void 0) { + formatOpts = DATE_SHORT; + } +@@ -6606,7 +6606,7 @@ var DateTime = /*#__PURE__*/function () { + opts = {}; + } + return this.isValid ? Formatter.create(this.loc.clone(opts), formatOpts).formatDateTime(this) : INVALID; +- } ++ }}) + + /** + * Returns an array of format "parts", meaning individual tokens along with metadata. This is allows callers to post-process individual sections of the formatted output. diff --git a/yarn.lock b/yarn.lock index ca67a7279..e275846a6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -16914,10 +16914,10 @@ ltgt@~2.2.0: resolved "https://registry.yarnpkg.com/ltgt/-/ltgt-2.2.1.tgz#f35ca91c493f7b73da0e07495304f17b31f87ee5" integrity sha1-81ypHEk/e3PaDgdJUwTxezH4fuU= -luxon@^3.0.1, luxon@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/luxon/-/luxon-3.1.0.tgz#9ac33d7142b7ea18d4ec8583cdeb0b079abef60d" - integrity sha512-7w6hmKC0/aoWnEsmPCu5Br54BmbmUp5GfcqBxQngRcXJ+q5fdfjEzn7dxmJh2YdDhgW8PccYtlWKSv4tQkrTQg== +luxon@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/luxon/-/luxon-3.2.1.tgz#14f1af209188ad61212578ea7e3d518d18cee45f" + integrity sha512-QrwPArQCNLAKGO/C+ZIilgIuDnEnKx5QYODdDtbFaxzsbZcc/a7WFq7MhsVYgRlwawLtvOUESTlfJ+hc/USqPg== madge@^5.0.1: version "5.0.1"