diff --git a/.yarn/patches/typia-npm-5.3.3-21d3e18463.patch b/.yarn/patches/typia-npm-6.9.0-2fd4d85f25.patch similarity index 64% rename from .yarn/patches/typia-npm-5.3.3-21d3e18463.patch rename to .yarn/patches/typia-npm-6.9.0-2fd4d85f25.patch index 1487a9f4712d..22a02fa15957 100644 --- a/.yarn/patches/typia-npm-5.3.3-21d3e18463.patch +++ b/.yarn/patches/typia-npm-6.9.0-2fd4d85f25.patch @@ -1,22 +1,22 @@ diff --git a/lib/factories/internal/metadata/iterate_metadata_intersection.js b/lib/factories/internal/metadata/iterate_metadata_intersection.js -index 260670b8ea37b63dcacadeffa26450f81087c90e..f07b44b16099d896ab40c46f03df86ee2f2c1a90 100644 +index da05ef3ac6f397d68b8fa10285f62d1794c57579..0f2b9b26e01cebd0b9c04a2db8857f911cfbaf57 100644 --- a/lib/factories/internal/metadata/iterate_metadata_intersection.js +++ b/lib/factories/internal/metadata/iterate_metadata_intersection.js -@@ -247,7 +247,7 @@ var iterate_metadata_intersection = function (checker) { +@@ -181,7 +181,7 @@ var iterate_metadata_intersection = function (checker) { var tags = MetadataTypeTagFactory_1.MetadataTypeTagFactory.analyze(errors)(target)(objects.map(function (om) { return om.objects; }).flat(), explore); if (tags.length) if (target === "array") - meta.arrays.at(-1).tags.push(tags); + meta.arrays.slice(-1)[0].tags.push(tags); - else if (booleanLiteral === null) + else if (atomics.size) meta.atomics.find(function (a) { return a.type === target; }).tags.push(tags); - else { + else if (constants.length) { diff --git a/lib/programmers/CheckerProgrammer.js b/lib/programmers/CheckerProgrammer.js -index bbec09f22798d144b96f59bb946e7e32e3438c05..dc13cb47b72358b8e6165b768cff2360db2bd617 100644 +index 662e6ff51c91598229c88f691b7ce07200957167..4028a50cc92ee293e98b13822293d0fb35c64c1f 100644 --- a/lib/programmers/CheckerProgrammer.js +++ b/lib/programmers/CheckerProgrammer.js -@@ -458,8 +458,8 @@ var CheckerProgrammer; - ? "".concat(explore.postfix.slice(0, -1), "[").concat(index, "]\"") +@@ -529,8 +529,8 @@ var CheckerProgrammer; + ? "".concat((0, postfix_of_tuple_1.postfix_of_tuple)(explore.postfix), "[").concat(index, "]\"") : "\"[".concat(index, "]\"") })); }); - var rest = tuple.elements.length && tuple.elements.at(-1).rest !== null @@ -27,7 +27,7 @@ index bbec09f22798d144b96f59bb946e7e32e3438c05..dc13cb47b72358b8e6165b768cff2360 var arrayLength = typescript_1.default.factory.createPropertyAccessExpression(input, "length"); return config.combiner(explore)("and")(input, __spreadArray(__spreadArray(__spreadArray([], __read((rest === null diff --git a/lib/programmers/TypiaProgrammer.js b/lib/programmers/TypiaProgrammer.js -index c75ab1bc077b788e36c32834ea4916c22df34500..99452220e2dd090d4d562296e26fb266faa617f9 100644 +index db244cb5e40fd68e15b7a06936b0f92802e5e4c9..c2f64885f67cc543c62b0b09e141c88684f99253 100644 --- a/lib/programmers/TypiaProgrammer.js +++ b/lib/programmers/TypiaProgrammer.js @@ -165,7 +165,7 @@ var TypiaProgrammer; @@ -39,34 +39,53 @@ index c75ab1bc077b788e36c32834ea4916c22df34500..99452220e2dd090d4d562296e26fb266 })() : [0, 0], 2), line = _k[0], pos = _k[1]; console.error("".concat(file, ":").concat(line, ":").concat(pos, " - ").concat(category, " TS").concat(diag.code, ": ").concat(diag.messageText)); -diff --git a/lib/programmers/internal/application_tuple.js b/lib/programmers/internal/application_tuple.js -index 5c1853a3a1692f95fe702bdae9813e958f54ac4c..04ca996c2ffe72d1cd5969e45a38e91937b975b1 100644 ---- a/lib/programmers/internal/application_tuple.js -+++ b/lib/programmers/internal/application_tuple.js -@@ -22,15 +22,15 @@ var application_tuple = function (options) { - var schema = __assign(__assign({ type: "array", items: tuple.type.elements.map(function (meta, i) { - var _a; - return (0, application_schema_1.application_schema)(options)(false)(components)((_a = meta.rest) !== null && _a !== void 0 ? _a : meta)(__assign(__assign({}, attribute), { "x-typia-rest": i === tuple.type.elements.length - 1 && meta.rest !== null, "x-typia-required": meta.required, "x-typia-optional": meta.optional })); -- }) }, attribute), { minItems: !!((_a = tuple.type.elements.at(-1)) === null || _a === void 0 ? void 0 : _a.rest) -+ }) }, attribute), { minItems: !!((_a = tuple.type.elements.slice(-1)[0]) === null || _a === void 0 ? void 0 : _a.rest) - ? tuple.type.elements.length - 1 -- : tuple.type.elements.filter(function (x) { return !x.optional; }).length, maxItems: !!((_b = tuple.type.elements.at(-1)) === null || _b === void 0 ? void 0 : _b.rest) -+ : tuple.type.elements.filter(function (x) { return !x.optional; }).length, maxItems: !!((_b = tuple.type.elements.slice(-1)[0]) === null || _b === void 0 ? void 0 : _b.rest) - ? undefined - : tuple.type.elements.length }); - if (options.purpose === "ajv") - if (tuple.type.elements.length === 0) - return schema; -- else if (!((_c = tuple.type.elements.at(-1)) === null || _c === void 0 ? void 0 : _c.rest)) -+ else if (!((_c = tuple.type.elements.slice(-1)[0]) === null || _c === void 0 ? void 0 : _c.rest)) - return schema; - var wrapper = __assign(__assign({}, schema), { items: (0, application_schema_1.application_schema)(options)(false)(components)(tuple.type.elements.reduce(function (x, y) { var _a, _b; return Metadata_1.Metadata.merge((_a = x.rest) !== null && _a !== void 0 ? _a : x, (_b = y.rest) !== null && _b !== void 0 ? _b : y); }, Metadata_1.Metadata.initialize()))(tuple.type.recursive ? {} : attribute), "x-typia-tuple": schema, minItems: schema.minItems, maxItems: schema.maxItems }); - return wrapper; +diff --git a/lib/programmers/internal/application_v30_tuple.js b/lib/programmers/internal/application_v30_tuple.js +index 94e8827fd94df3792c1d7b2cdacac604175ba8ca..c9a3a1bcdd978b97a080ed2c467188d808d10c8f 100644 +--- a/lib/programmers/internal/application_v30_tuple.js ++++ b/lib/programmers/internal/application_v30_tuple.js +@@ -21,9 +21,9 @@ var application_v30_tuple = function (components) { + return function (tuple) { + return function (attribute) { + var _a, _b; +- return (__assign(__assign({}, attribute), { type: "array", items: (0, application_v30_schema_1.application_v30_schema)(false)(components)(tuple.type.recursive ? {} : attribute)(tuple.type.elements.reduce(function (x, y) { var _a, _b; return Metadata_1.Metadata.merge((_a = x.rest) !== null && _a !== void 0 ? _a : x, (_b = y.rest) !== null && _b !== void 0 ? _b : y); }, Metadata_1.Metadata.initialize())), minItems: !!((_a = tuple.type.elements.at(-1)) === null || _a === void 0 ? void 0 : _a.rest) ++ return (__assign(__assign({}, attribute), { type: "array", items: (0, application_v30_schema_1.application_v30_schema)(false)(components)(tuple.type.recursive ? {} : attribute)(tuple.type.elements.reduce(function (x, y) { var _a, _b; return Metadata_1.Metadata.merge((_a = x.rest) !== null && _a !== void 0 ? _a : x, (_b = y.rest) !== null && _b !== void 0 ? _b : y); }, Metadata_1.Metadata.initialize())), minItems: !!((_a = tuple.type.elements.slice(-1)[0]) === null || _a === void 0 ? void 0 : _a.rest) + ? tuple.type.elements.length - 1 +- : tuple.type.elements.filter(function (x) { return !x.optional; }).length, maxItems: !!((_b = tuple.type.elements.at(-1)) === null || _b === void 0 ? void 0 : _b.rest) ++ : tuple.type.elements.filter(function (x) { return !x.optional; }).length, maxItems: !!((_b = tuple.type.elements.slice(-1)[0]) === null || _b === void 0 ? void 0 : _b.rest) + ? undefined + : tuple.type.elements.length })); + }; +diff --git a/lib/programmers/internal/application_v31_tuple.js b/lib/programmers/internal/application_v31_tuple.js +index af7bbbe1536244eec93d7311e289fc8b34245c0f..e7f126b72a3480f761f57e4d43826a26b8b06e3f 100644 +--- a/lib/programmers/internal/application_v31_tuple.js ++++ b/lib/programmers/internal/application_v31_tuple.js +@@ -7,7 +7,7 @@ exports.application_v31_tuple = void 0; + var application_v31_tuple = function (generator) { + return function (tuple) { + var _a, _b; +- var tail = (_b = (_a = tuple.type.elements.at(-1)) === null || _a === void 0 ? void 0 : _a.rest) !== null && _b !== void 0 ? _b : null; ++ var tail = (_b = (_a = tuple.type.elements.slice(-1)[0]) === null || _a === void 0 ? void 0 : _a.rest) !== null && _b !== void 0 ? _b : null; + var prefixItems = tuple.type.isRest() + ? tuple.type.elements.slice(0, -1) + : tuple.type.elements; +diff --git a/lib/programmers/internal/decode_union_object.js b/lib/programmers/internal/decode_union_object.js +index c283bdfdcfb99f26954e6d76d35ccef4f78ddcee..7cdef1aeec80238014cf9457ca4351f02e99b638 100644 +--- a/lib/programmers/internal/decode_union_object.js ++++ b/lib/programmers/internal/decode_union_object.js +@@ -72,7 +72,7 @@ var iterate = function (escaper) { + ? typescript_1.default.factory.createIfStatement(b.condition, typescript_1.default.factory.createReturnStatement(b.value), undefined) + : typescript_1.default.factory.createReturnStatement(b.value); + }); +- if (branches.at(-1).condition !== null) ++ if (branches.slice(-1)[0].condition !== null) + statements.push(escaper(input, expected)); + return typescript_1.default.factory.createBlock(statements, true); + }; diff --git a/lib/programmers/json/JsonStringifyProgrammer.js b/lib/programmers/json/JsonStringifyProgrammer.js -index ce0ae787164f7eba68ef35b05232b4b94ad8e7d7..8f70cfc8c8e9d82cd1ec5004ca5637487f57b3bc 100644 +index 77f2812cb509f5b9093dc311f8ae8558e4469a74..54a6c4e22f9cfa87cd30f8ade50e6cb8ccda9957 100644 --- a/lib/programmers/json/JsonStringifyProgrammer.js +++ b/lib/programmers/json/JsonStringifyProgrammer.js -@@ -424,10 +424,10 @@ var JsonStringifyProgrammer; +@@ -469,10 +469,10 @@ var JsonStringifyProgrammer; var rest = (function () { if (tuple.elements.length === 0) return null; @@ -80,10 +99,10 @@ index ce0ae787164f7eba68ef35b05232b4b94ad8e7d7..8f70cfc8c8e9d82cd1ec5004ca563748 })(); return StringifyJoinder_1.StringifyJoiner.tuple(children, rest); diff --git a/lib/programmers/misc/MiscCloneProgrammer.js b/lib/programmers/misc/MiscCloneProgrammer.js -index 3db6bc92637284468c5fe47ef59f51a9b41d06eb..0b3fa9deaaadf28d4f348225c0d44f49700c1bca 100644 +index 38bec89fba26db7a9c3ee71abd49086692c7e78b..9b9d7a9b0606da78224ce083bcbd7e07cd6ce82e 100644 --- a/lib/programmers/misc/MiscCloneProgrammer.js +++ b/lib/programmers/misc/MiscCloneProgrammer.js -@@ -291,11 +291,11 @@ var MiscCloneProgrammer; +@@ -318,11 +318,11 @@ var MiscCloneProgrammer; var rest = (function () { if (tuple.elements.length === 0) return null; @@ -98,10 +117,10 @@ index 3db6bc92637284468c5fe47ef59f51a9b41d06eb..0b3fa9deaaadf28d4f348225c0d44f49 return CloneJoiner_1.CloneJoiner.tuple(children, rest); }; diff --git a/lib/programmers/misc/MiscPruneProgrammer.js b/lib/programmers/misc/MiscPruneProgrammer.js -index 8440aaba9e449dae2468e96dfd7035ac7e170cfc..e97ceec78427b7eed08db23cc4775fdb10c6b2ff 100644 +index d4a9c66c0b5508b4ffdc4b7684364a9d748f6508..33f9356bab69faffadb8c2b49997d2c3ca429810 100644 --- a/lib/programmers/misc/MiscPruneProgrammer.js +++ b/lib/programmers/misc/MiscPruneProgrammer.js -@@ -272,11 +272,11 @@ var MiscPruneProgrammer; +@@ -305,11 +305,11 @@ var MiscPruneProgrammer; var rest = (function () { if (tuple.elements.length === 0) return null; @@ -116,10 +135,10 @@ index 8440aaba9e449dae2468e96dfd7035ac7e170cfc..e97ceec78427b7eed08db23cc4775fdb return PruneJoiner_1.PruneJoiner.tuple(children, rest); }; diff --git a/lib/programmers/notations/NotationGeneralProgrammer.js b/lib/programmers/notations/NotationGeneralProgrammer.js -index 6e0b582a802180d7671c00b999469e7e59193b30..f11cc1d523875a040d3e27ce9a850b083c5d0275 100644 +index dfe64a21a5a81a7e887ab5ae02d73e6d3bdddb03..aa4b6070ed6a83c49018384e3a0c1dbd4a7c540b 100644 --- a/lib/programmers/notations/NotationGeneralProgrammer.js +++ b/lib/programmers/notations/NotationGeneralProgrammer.js -@@ -301,11 +301,11 @@ var NotationGeneralProgrammer; +@@ -328,11 +328,11 @@ var NotationGeneralProgrammer; var rest = (function () { if (tuple.elements.length === 0) return null; @@ -134,36 +153,36 @@ index 6e0b582a802180d7671c00b999469e7e59193b30..f11cc1d523875a040d3e27ce9a850b08 return NotationJoiner_1.NotationJoiner.tuple(children, rest); }; diff --git a/lib/transformers/CallExpressionTransformer.js b/lib/transformers/CallExpressionTransformer.js -index 2c5a23879d171ee271ebf6857dc9c65ec29c0ea7..96a40845614f6c54fe8e4ebc48a7d8efeba52a41 100644 +index f7be23d98552526d8c2348ba0f3d32b8d31e522b..133af0caa37ffcf7330811ef7bda79e75b9ecd89 100644 --- a/lib/transformers/CallExpressionTransformer.js +++ b/lib/transformers/CallExpressionTransformer.js -@@ -101,7 +101,7 @@ var CallExpressionTransformer; - var location = path_1.default.resolve(declaration.getSourceFile().fileName); - if (isTarget(location) === false) - return expression; +@@ -129,7 +129,7 @@ var CallExpressionTransformer; + // TRANSFORMATION + //---- + // FUNCTION NAME - var module = location.split(path_1.default.sep).at(-1).split(".")[0]; + var module = location.split(path_1.default.sep).slice(-1)[0].split(".")[0]; var name = project.checker.getTypeAtLocation(declaration).symbol.name; + // FIND TRANSFORMER var functor = (_b = FUNCTORS[module]) === null || _b === void 0 ? void 0 : _b[name]; - if (functor === undefined) diff --git a/src/factories/internal/metadata/iterate_metadata_intersection.ts b/src/factories/internal/metadata/iterate_metadata_intersection.ts -index f46caa25c987092597073e046ae3b9e8130bd994..1eedd727c74f173a5b98a9572b865e058885811d 100644 +index c4d93a961385c09abb6f448896ad4636b648703b..99b1547e6a501caf28a452390fe721cd47dc2ca1 100644 --- a/src/factories/internal/metadata/iterate_metadata_intersection.ts +++ b/src/factories/internal/metadata/iterate_metadata_intersection.ts -@@ -214,7 +214,7 @@ export const iterate_metadata_intersection = +@@ -188,7 +188,7 @@ export const iterate_metadata_intersection = target, )(objects.map((om) => om.objects).flat(), explore); if (tags.length) - if (target === "array") meta.arrays.at(-1)!.tags.push(tags); + if (target === "array") meta.arrays.slice(-1)[0]!.tags.push(tags); - else if (booleanLiteral === null) + else if (atomics.size) meta.atomics.find((a) => a.type === target)!.tags.push(tags); - else { + else if (constants.length) { diff --git a/src/programmers/CheckerProgrammer.ts b/src/programmers/CheckerProgrammer.ts -index 892748b80755b89d1449f4d515aa3166534c6b19..8cb5ce35fe6f918545c82066f0583dead2661c89 100644 +index 40f46e8212a5173e19e0214422086655de908933..18a1a2371cac697e1b621a8fbc6b090b691e3072 100644 --- a/src/programmers/CheckerProgrammer.ts +++ b/src/programmers/CheckerProgrammer.ts -@@ -702,14 +702,14 @@ export namespace CheckerProgrammer { +@@ -785,14 +785,14 @@ export namespace CheckerProgrammer { ), ); const rest: ts.Expression | null = @@ -181,47 +200,66 @@ index 892748b80755b89d1449f4d515aa3166534c6b19..8cb5ce35fe6f918545c82066f0583dea ...explore, start: tuple.elements.length - 1, diff --git a/src/programmers/TypiaProgrammer.ts b/src/programmers/TypiaProgrammer.ts -index e01eccf62eccd73e1f0720db897f539256a6bbc1..cae5eb6fc702d359d4886acefdb68d42691edf97 100644 +index 67d9fc138483832aae43574fd2753bbe40a27d14..4397517aa620a8733c51917eebfa467f2922bf6d 100644 --- a/src/programmers/TypiaProgrammer.ts +++ b/src/programmers/TypiaProgrammer.ts @@ -101,7 +101,7 @@ export namespace TypiaProgrammer { - .file!.text.substring(0, diag.start) - .split("\n"); - if (lines.length === 0) return [0, 0]; -- return [lines.length, lines.at(-1)!.length + 1]; -+ return [lines.length, lines.slice(-1)[0]!.length + 1]; - })() - : [0, 0]; - console.error( -diff --git a/src/programmers/internal/application_tuple.ts b/src/programmers/internal/application_tuple.ts -index 5e10b9051e4a846f298aa8f086109e8d6bb38bf9..a8e24d5c2a2a4a4d5d1dc49eb45b4784654a4b66 100644 ---- a/src/programmers/internal/application_tuple.ts -+++ b/src/programmers/internal/application_tuple.ts -@@ -28,16 +28,16 @@ export const application_tuple = - }), + .file!.text.substring(0, diag.start) + .split("\n"); + if (lines.length === 0) return [0, 0]; +- return [lines.length, lines.at(-1)!.length + 1]; ++ return [lines.length, lines.slice(-1)[0]!.length + 1]; + })() + : [0, 0]; + console.error( +diff --git a/src/programmers/internal/application_v30_tuple.ts b/src/programmers/internal/application_v30_tuple.ts +index 0431273d439c6069a1bb5fbfd7808c5e8d0ea255..4b27cfc3ebde7ce9dcdb5161d34e70004a327b1e 100644 +--- a/src/programmers/internal/application_v30_tuple.ts ++++ b/src/programmers/internal/application_v30_tuple.ts +@@ -24,10 +24,10 @@ export const application_v30_tuple = + Metadata.initialize(), ), - ...attribute, -- minItems: !!tuple.type.elements.at(-1)?.rest -+ minItems: !!tuple.type.elements.slice(-1)[0]?.rest - ? tuple.type.elements.length - 1 - : tuple.type.elements.filter((x) => !x.optional).length, -- maxItems: !!tuple.type.elements.at(-1)?.rest -+ maxItems: !!tuple.type.elements.slice(-1)[0]?.rest - ? undefined - : tuple.type.elements.length, - }; - if (options.purpose === "ajv") - if (tuple.type.elements.length === 0) return schema; -- else if (!tuple.type.elements.at(-1)?.rest) return schema; -+ else if (!tuple.type.elements.slice(-1)[0]?.rest) return schema; - - const wrapper: IJsonSchema.IArray = { - ...schema, + ), +- minItems: !!tuple.type.elements.at(-1)?.rest ++ minItems: !!tuple.type.elements.slice(-1)[0]?.rest + ? tuple.type.elements.length - 1 + : tuple.type.elements.filter((x) => !x.optional).length, +- maxItems: !!tuple.type.elements.at(-1)?.rest ++ maxItems: !!tuple.type.elements.slice(-1)[0]?.rest + ? undefined! + : tuple.type.elements.length, + }); +diff --git a/src/programmers/internal/application_v31_tuple.ts b/src/programmers/internal/application_v31_tuple.ts +index 426abad3423de706c368b35b2cf6b4845f6f3d91..be15ec0fda1725bf1ea882c9901e0f837c052fde 100644 +--- a/src/programmers/internal/application_v31_tuple.ts ++++ b/src/programmers/internal/application_v31_tuple.ts +@@ -9,7 +9,7 @@ import { MetadataTuple } from "../../schemas/metadata/MetadataTuple"; + export const application_v31_tuple = + (generator: (meta: Metadata) => OpenApi.IJsonSchema) => + (tuple: MetadataTuple): OpenApi.IJsonSchema.ITuple => { +- const tail: Metadata | null = tuple.type.elements.at(-1)?.rest ?? null; ++ const tail: Metadata | null = tuple.type.elements.slice(-1)[0]?.rest ?? null; + const prefixItems: Metadata[] = tuple.type.isRest() + ? tuple.type.elements.slice(0, -1) + : tuple.type.elements; +diff --git a/src/programmers/internal/decode_union_object.ts b/src/programmers/internal/decode_union_object.ts +index f60bf69f91f35dee2efc807475fd6eca71aab052..ef8d51160f7eb9853ec0c827827aaa6c65db1587 100644 +--- a/src/programmers/internal/decode_union_object.ts ++++ b/src/programmers/internal/decode_union_object.ts +@@ -87,7 +87,7 @@ const iterate = + ) + : ts.factory.createReturnStatement(b.value), + ); +- if (branches.at(-1)!.condition !== null) ++ if (branches.slice(-1)[0]!.condition !== null) + statements.push(escaper(input, expected)); + return ts.factory.createBlock(statements, true); + }; diff --git a/src/programmers/json/JsonStringifyProgrammer.ts b/src/programmers/json/JsonStringifyProgrammer.ts -index c317cec2c78e984a6e64c7bf287d0c67e530e309..5974830c62dbd2b865aa2e64e2e757283258d872 100644 +index 558e5bf4b79f5cc28791ba0f5e40ebe6599361ce..c43d77b5d15343af90f7362d1757fc758659d5c9 100644 --- a/src/programmers/json/JsonStringifyProgrammer.ts +++ b/src/programmers/json/JsonStringifyProgrammer.ts -@@ -543,7 +543,7 @@ export namespace JsonStringifyProgrammer { +@@ -560,7 +560,7 @@ export namespace JsonStringifyProgrammer { ); const rest = (() => { if (tuple.elements.length === 0) return null; @@ -230,7 +268,7 @@ index c317cec2c78e984a6e64c7bf287d0c67e530e309..5974830c62dbd2b865aa2e64e2e75728 if (last.rest === null) return null; const code = decode(project)(config)(importer)( -@@ -552,7 +552,7 @@ export namespace JsonStringifyProgrammer { +@@ -569,7 +569,7 @@ export namespace JsonStringifyProgrammer { undefined, [ExpressionFactory.number(tuple.elements.length - 1)], ), @@ -240,10 +278,10 @@ index c317cec2c78e984a6e64c7bf287d0c67e530e309..5974830c62dbd2b865aa2e64e2e75728 ...explore, start: tuple.elements.length - 1, diff --git a/src/programmers/misc/MiscCloneProgrammer.ts b/src/programmers/misc/MiscCloneProgrammer.ts -index 94d768b0a0738c0caccd711671351d1f22fa3848..739fd5f2baf4d2eb8e9dd65d73179242a0244707 100644 +index c8c9cb90085eff7dd68ac332a362674ca33d93d8..76a810816bc4ad57ff5e1787a33cd7f01471ffbe 100644 --- a/src/programmers/misc/MiscCloneProgrammer.ts +++ b/src/programmers/misc/MiscCloneProgrammer.ts -@@ -343,7 +343,7 @@ export namespace MiscCloneProgrammer { +@@ -395,7 +395,7 @@ export namespace MiscCloneProgrammer { const rest = (() => { if (tuple.elements.length === 0) return null; @@ -252,7 +290,7 @@ index 94d768b0a0738c0caccd711671351d1f22fa3848..739fd5f2baf4d2eb8e9dd65d73179242 const rest: Metadata | null = last.rest; if (rest === null) return null; -@@ -353,7 +353,7 @@ export namespace MiscCloneProgrammer { +@@ -405,7 +405,7 @@ export namespace MiscCloneProgrammer { undefined, [ExpressionFactory.number(tuple.elements.length - 1)], ), @@ -262,10 +300,10 @@ index 94d768b0a0738c0caccd711671351d1f22fa3848..739fd5f2baf4d2eb8e9dd65d73179242 ...explore, start: tuple.elements.length - 1, diff --git a/src/programmers/misc/MiscPruneProgrammer.ts b/src/programmers/misc/MiscPruneProgrammer.ts -index ed1465267066e382ae6696a25a806c2489597593..661f3cd93ae66070c978bd3e8d2b8db07189fe47 100644 +index 1051204a00041ddfb39da9de77b35ab8b44b75ee..73db30fdc06955f43dc2f563cbfc174e50a1bc6f 100644 --- a/src/programmers/misc/MiscPruneProgrammer.ts +++ b/src/programmers/misc/MiscPruneProgrammer.ts -@@ -310,7 +310,7 @@ export namespace MiscPruneProgrammer { +@@ -347,7 +347,7 @@ export namespace MiscPruneProgrammer { const rest = (() => { if (tuple.elements.length === 0) return null; @@ -274,7 +312,7 @@ index ed1465267066e382ae6696a25a806c2489597593..661f3cd93ae66070c978bd3e8d2b8db0 const rest: Metadata | null = last.rest; if (rest === null || filter(rest) === false) return null; -@@ -320,7 +320,7 @@ export namespace MiscPruneProgrammer { +@@ -357,7 +357,7 @@ export namespace MiscPruneProgrammer { undefined, [ExpressionFactory.number(tuple.elements.length - 1)], ), @@ -284,10 +322,10 @@ index ed1465267066e382ae6696a25a806c2489597593..661f3cd93ae66070c978bd3e8d2b8db0 ...explore, start: tuple.elements.length - 1, diff --git a/src/programmers/notations/NotationGeneralProgrammer.ts b/src/programmers/notations/NotationGeneralProgrammer.ts -index bd49b1e34002b1a1ec4f5444a8f91fa0ab794360..71d676de290986045910602ab10c6ef09a19c07d 100644 +index d8b2e22a8f9f3bfcb8f3e7987edaa7bf19a48720..96632214cb02b1534dc1987a0f892a3bf41e892f 100644 --- a/src/programmers/notations/NotationGeneralProgrammer.ts +++ b/src/programmers/notations/NotationGeneralProgrammer.ts -@@ -353,7 +353,7 @@ export namespace NotationGeneralProgrammer { +@@ -411,7 +411,7 @@ export namespace NotationGeneralProgrammer { const rest = (() => { if (tuple.elements.length === 0) return null; @@ -296,7 +334,7 @@ index bd49b1e34002b1a1ec4f5444a8f91fa0ab794360..71d676de290986045910602ab10c6ef0 const rest: Metadata | null = last.rest; if (rest === null) return null; -@@ -363,7 +363,7 @@ export namespace NotationGeneralProgrammer { +@@ -421,7 +421,7 @@ export namespace NotationGeneralProgrammer { undefined, [ExpressionFactory.number(tuple.elements.length - 1)], ), @@ -306,15 +344,15 @@ index bd49b1e34002b1a1ec4f5444a8f91fa0ab794360..71d676de290986045910602ab10c6ef0 ...explore, start: tuple.elements.length - 1, diff --git a/src/transformers/CallExpressionTransformer.ts b/src/transformers/CallExpressionTransformer.ts -index c58a1b143ce4f204bb249a4858c9d16a26f97408..9e9ffcf73e4c01aa6ac8c213669fdcd50e0181b9 100644 +index 99a4604f1a1944336b4d93dc61390269c346c243..c31ba72f1d206c441d6c237314a1c4d5c808dd09 100644 --- a/src/transformers/CallExpressionTransformer.ts +++ b/src/transformers/CallExpressionTransformer.ts -@@ -111,7 +111,7 @@ export namespace CallExpressionTransformer { - // TRANSFORMATION - //---- - // FUNCTION NAME -- const module: string = location.split(path.sep).at(-1)!.split(".")[0]!; -+ const module: string = location.split(path.sep).slice(-1)[0]!.split(".")[0]!; - const { name } = project.checker.getTypeAtLocation(declaration).symbol; - - // FIND TRANSFORMER +@@ -131,7 +131,7 @@ export namespace CallExpressionTransformer { + // TRANSFORMATION + //---- + // FUNCTION NAME +- const module: string = location.split(path.sep).at(-1)!.split(".")[0]!; ++ const module: string = location.split(path.sep).slice(-1)[0]!.split(".")[0]!; + const { name } = project.checker.getTypeAtLocation(declaration).symbol; + + // FIND TRANSFORMER diff --git a/apps/meteor/client/hooks/useEndpointAction.ts b/apps/meteor/client/hooks/useEndpointAction.ts index c7c371a04e1f..2cfb22b18548 100644 --- a/apps/meteor/client/hooks/useEndpointAction.ts +++ b/apps/meteor/client/hooks/useEndpointAction.ts @@ -15,7 +15,7 @@ type UseEndpointActionOptions = (undefined ext export function useEndpointAction( method: TMethod, pathPattern: TPathPattern, - options: UseEndpointActionOptions = { keys: {} as UrlParams }, + options: NoInfer> = { keys: {} as UrlParams }, ) { const sendData = useEndpoint(method, pathPattern, options.keys as UrlParams); diff --git a/apps/meteor/client/hooks/useEndpointData.ts b/apps/meteor/client/hooks/useEndpointData.ts index 6e759ad587e5..93942946ede0 100644 --- a/apps/meteor/client/hooks/useEndpointData.ts +++ b/apps/meteor/client/hooks/useEndpointData.ts @@ -20,11 +20,11 @@ const deprecationWarning = log('useEndpointData is deprecated, use @tanstack/rea */ export const useEndpointData = ( endpoint: TPathPattern, - options: { + options: NoInfer<{ keys?: UrlParams; params?: OperationParams<'GET', TPathPattern>; initialValue?: Serialized> | (() => Serialized>); - } = {}, + }> = {}, ): AsyncState>> & { reload: () => void; } => { diff --git a/apps/meteor/client/lib/createRouteGroup.tsx b/apps/meteor/client/lib/createRouteGroup.tsx index e418ecc56e99..70eab4782dd1 100644 --- a/apps/meteor/client/lib/createRouteGroup.tsx +++ b/apps/meteor/client/lib/createRouteGroup.tsx @@ -1,4 +1,4 @@ -import { type IRouterPaths, type RouteName, type RouterPathPattern } from '@rocket.chat/ui-contexts'; +import type { IRouterPaths, RouteName, RouterPathPattern } from '@rocket.chat/ui-contexts'; import React, { type ElementType, type ReactNode } from 'react'; import { router } from '../providers/RouterProvider'; @@ -9,21 +9,21 @@ type GroupName = 'omnichannel' | 'marketplace' | 'account' | 'admin'; type GroupPrefix = IRouterPaths[`${TGroupName}-index`]['pattern']; -type RouteNamesOf = Extract< +type RouteNamesOf = ( | keyof { [TRouteName in RouteName as IRouterPaths[TRouteName]['pattern'] extends `${GroupPrefix}/${string}` ? TRouteName : never]: never; } - | `${GroupName}-index`, - RouteName ->; + | `${GroupName}-index` +) & + RouteName; -type TrimPrefix = T extends `${P}${infer U}` ? U : T; +type TrimPrefix = T extends `${P}${infer U}` ? U : T; export const createRouteGroup = ( name: TGroupName, - prefix: GroupPrefix, + prefix: NoInfer>, RouterComponent: ElementType<{ children?: ReactNode; }>, diff --git a/apps/meteor/client/lib/getLocalePercentage.ts b/apps/meteor/client/lib/getLocalePercentage.ts index e6f2fa3bbff1..3aa84b59f03f 100644 --- a/apps/meteor/client/lib/getLocalePercentage.ts +++ b/apps/meteor/client/lib/getLocalePercentage.ts @@ -1,9 +1,6 @@ -export const getLocalePercentage = (locale: string, total: number, fraction: number, decimalCount = 2): string => { - const option = { +export const getLocalePercentage = (locale: string, total: number, fraction: number, decimalCount = 2) => + new Intl.NumberFormat(locale, { style: 'percent', minimumFractionDigits: decimalCount, maximumFractionDigits: decimalCount, - }; - - return new Intl.NumberFormat(locale, option).format(fraction / total); -}; + }).format(fraction / total); diff --git a/apps/meteor/client/providers/CallProvider/CallProvider.tsx b/apps/meteor/client/providers/CallProvider/CallProvider.tsx index f2c884aeb05f..6e728dc35eb6 100644 --- a/apps/meteor/client/providers/CallProvider/CallProvider.tsx +++ b/apps/meteor/client/providers/CallProvider/CallProvider.tsx @@ -11,7 +11,7 @@ import { } from '@rocket.chat/core-typings'; import { useMutableCallback } from '@rocket.chat/fuselage-hooks'; import { Random } from '@rocket.chat/random'; -import type { Device, IExperimentalHTMLAudioElement } from '@rocket.chat/ui-contexts'; +import type { Device } from '@rocket.chat/ui-contexts'; import { useRouter, useUser, @@ -65,7 +65,7 @@ export const CallProvider = ({ children }: CallProviderProps) => { const hasVoIPEnterpriseLicense = useIsVoipEnterprise(); - const remoteAudioMediaRef = useRef(null); // TODO: Create a dedicated file for the AUDIO and make the controls accessible + const remoteAudioMediaRef = useRef(null); // TODO: Create a dedicated file for the AUDIO and make the controls accessible const [queueCounter, setQueueCounter] = useState(0); const [queueName, setQueueName] = useState(''); diff --git a/apps/meteor/client/providers/DeviceProvider/DeviceProvider.tsx b/apps/meteor/client/providers/DeviceProvider/DeviceProvider.tsx index 90ced3b0459a..c8fd77fa257b 100644 --- a/apps/meteor/client/providers/DeviceProvider/DeviceProvider.tsx +++ b/apps/meteor/client/providers/DeviceProvider/DeviceProvider.tsx @@ -1,5 +1,5 @@ import { useMutableCallback } from '@rocket.chat/fuselage-hooks'; -import type { Device, IExperimentalHTMLAudioElement, DeviceContextValue } from '@rocket.chat/ui-contexts'; +import type { Device, DeviceContextValue } from '@rocket.chat/ui-contexts'; import { DeviceContext } from '@rocket.chat/ui-contexts'; import type { ReactElement, ReactNode } from 'react'; import React, { useEffect, useState, useMemo } from 'react'; @@ -33,7 +33,7 @@ export const DeviceProvider = ({ children }: DeviceProviderProps): ReactElement }; const setAudioOutputDevice = useMutableCallback( - ({ outputDevice, HTMLAudioElement }: { outputDevice: Device; HTMLAudioElement: IExperimentalHTMLAudioElement }): void => { + ({ outputDevice, HTMLAudioElement }: { outputDevice: Device; HTMLAudioElement: HTMLAudioElement }): void => { if (!isSetSinkIdAvailable()) { throw new Error('setSinkId is not available in this browser'); } diff --git a/apps/meteor/client/providers/DeviceProvider/lib/isSetSinkIdAvailable.tsx b/apps/meteor/client/providers/DeviceProvider/lib/isSetSinkIdAvailable.tsx index 65bf99ed116f..2f835819afe6 100644 --- a/apps/meteor/client/providers/DeviceProvider/lib/isSetSinkIdAvailable.tsx +++ b/apps/meteor/client/providers/DeviceProvider/lib/isSetSinkIdAvailable.tsx @@ -1,6 +1,4 @@ -import type { IExperimentalHTMLAudioElement } from '@rocket.chat/ui-contexts'; - export const isSetSinkIdAvailable = (): boolean => { - const audio = new Audio() as IExperimentalHTMLAudioElement; + const audio = new Audio(); return !!audio.setSinkId; }; diff --git a/apps/meteor/client/providers/TranslationProvider.tsx b/apps/meteor/client/providers/TranslationProvider.tsx index 0c0ef00b5ac0..eb546c91c6bd 100644 --- a/apps/meteor/client/providers/TranslationProvider.tsx +++ b/apps/meteor/client/providers/TranslationProvider.tsx @@ -84,7 +84,7 @@ const useI18next = (lng: string): typeof i18next => { loadPath: 'i18n/{{lng}}.json', parse: (data: string, _lngs?: string | string[], namespaces: string | string[] = []) => extractTranslationKeys(JSON.parse(data), namespaces), - request: (_options, url, _payload, callback) => { + request: (_options: unknown, url: string, _payload: unknown, callback: (error: unknown, data: unknown) => void) => { const params = url.split('/'); const lng = params[params.length - 1]; diff --git a/apps/meteor/client/views/admin/viewLogs/ansispan.ts b/apps/meteor/client/views/admin/viewLogs/ansispan.ts index 7f1709e48ef2..8aa5bccb1195 100644 --- a/apps/meteor/client/views/admin/viewLogs/ansispan.ts +++ b/apps/meteor/client/views/admin/viewLogs/ansispan.ts @@ -1,3 +1,4 @@ +/* eslint-disable no-control-regex */ const foregroundColors = { 30: 'var(--rcx-color-font-secondary-info, #6C727A)', 31: 'var(--rcx-color-font-danger, #D40C26)', @@ -16,13 +17,13 @@ export const ansispan = (str: string): string => { .replace(/>/g, '>') .replace(/$1') - .replace(/\033\[1m/g, '') - .replace(/\033\[22m/g, '') - .replace(/\033\[3m/g, '') - .replace(/\033\[23m/g, '') - .replace(/\033\[m/g, '') - .replace(/\033\[0m/g, '') - .replace(/\033\[39m/g, ''); + .replace(/\x1b\[1m/g, '') + .replace(/\x1b\[22m/g, '') + .replace(/\x1b\[3m/g, '') + .replace(/\x1b\[23m/g, '') + .replace(/\x1b\[m/g, '') + .replace(/\x1b\[0m/g, '') + .replace(/\x1b\[39m/g, ''); return Object.entries(foregroundColors).reduce((str, [ansiCode, color]) => { const span = ``; return str.replace(new RegExp(`\\033\\[${ansiCode}m`, 'g'), span).replace(new RegExp(`\\033\\[0;${ansiCode}m`, 'g'), span); diff --git a/apps/meteor/ee/server/services/package.json b/apps/meteor/ee/server/services/package.json index 118c033826c5..5d7039d0962f 100644 --- a/apps/meteor/ee/server/services/package.json +++ b/apps/meteor/ee/server/services/package.json @@ -62,7 +62,7 @@ "pino-pretty": "^7.6.1", "pm2": "^5.2.0", "ts-node": "^10.9.1", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "volta": { "extends": "../../../package.json" diff --git a/apps/meteor/package.json b/apps/meteor/package.json index 980145e88d21..f0fbd66c087d 100644 --- a/apps/meteor/package.json +++ b/apps/meteor/package.json @@ -210,7 +210,7 @@ "supports-color": "~7.2.0", "template-file": "^6.0.1", "ts-node": "^10.9.1", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "dependencies": { "@babel/runtime": "~7.22.15", @@ -430,7 +430,7 @@ "turndown": "^7.1.2", "twilio": "^3.76.1", "twit": "^2.2.11", - "typia": "^5.3.3", + "typia": "~6.9.0", "ua-parser-js": "^1.0.37", "underscore": "^1.13.6", "universal-perf-hooks": "^1.0.1", diff --git a/apps/meteor/server/services/federation/Federation.ts b/apps/meteor/server/services/federation/Federation.ts index c8e2a9b1bc57..34331dc00971 100644 --- a/apps/meteor/server/services/federation/Federation.ts +++ b/apps/meteor/server/services/federation/Federation.ts @@ -17,7 +17,9 @@ const allowedActionsInFederatedRooms: ValueOf[] = [ RoomMemberActions.LEAVE, ]; -const allowedActionsForModerators = allowedActionsInFederatedRooms.filter((action) => action !== RoomMemberActions.SET_AS_OWNER); +const allowedActionsForModerators: ValueOf[] = allowedActionsInFederatedRooms.filter( + (action) => action !== RoomMemberActions.SET_AS_OWNER, +); const allowedRoomSettingsChangesInFederatedRooms: ValueOf[] = [RoomSettingsEnum.NAME, RoomSettingsEnum.TOPIC]; diff --git a/ee/apps/account-service/package.json b/ee/apps/account-service/package.json index ac28eb76e76d..c0c3dab2ef8c 100644 --- a/ee/apps/account-service/package.json +++ b/ee/apps/account-service/package.json @@ -45,7 +45,7 @@ "@types/polka": "^0.5.6", "eslint": "~8.45.0", "ts-node": "^10.9.1", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "main": "./dist/ee/apps/account-service/src/service.js", "files": [ diff --git a/ee/apps/authorization-service/package.json b/ee/apps/authorization-service/package.json index bff15e7f7d91..ab1429fd0223 100644 --- a/ee/apps/authorization-service/package.json +++ b/ee/apps/authorization-service/package.json @@ -41,7 +41,7 @@ "@types/polka": "^0.5.6", "eslint": "~8.45.0", "ts-node": "^10.9.1", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "main": "./dist/ee/apps/authorization-service/src/service.js", "files": [ diff --git a/ee/apps/ddp-streamer/package.json b/ee/apps/ddp-streamer/package.json index fb492a70105d..e776c1a573b8 100644 --- a/ee/apps/ddp-streamer/package.json +++ b/ee/apps/ddp-streamer/package.json @@ -57,7 +57,7 @@ "eslint": "~8.45.0", "pino-pretty": "^7.6.1", "ts-node": "^10.9.1", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "main": "./dist/service.js", "files": [ diff --git a/ee/apps/omnichannel-transcript/package.json b/ee/apps/omnichannel-transcript/package.json index c60542c180ec..959ea0605c02 100644 --- a/ee/apps/omnichannel-transcript/package.json +++ b/ee/apps/omnichannel-transcript/package.json @@ -47,7 +47,7 @@ "@types/polka": "^0.5.6", "eslint": "~8.45.0", "ts-node": "^10.9.1", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "main": "./dist/ee/apps/omnichannel-transcript/src/service.js", "files": [ diff --git a/ee/apps/presence-service/package.json b/ee/apps/presence-service/package.json index c800dd4d6c80..49653f0dcbaf 100644 --- a/ee/apps/presence-service/package.json +++ b/ee/apps/presence-service/package.json @@ -41,7 +41,7 @@ "@types/polka": "^0.5.6", "eslint": "~8.45.0", "ts-node": "^10.9.1", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "main": "./dist/ee/apps/presence-service/src/service.js", "files": [ diff --git a/ee/apps/queue-worker/package.json b/ee/apps/queue-worker/package.json index 0a227cb271c0..19b252b70601 100644 --- a/ee/apps/queue-worker/package.json +++ b/ee/apps/queue-worker/package.json @@ -45,7 +45,7 @@ "@types/polka": "^0.5.6", "eslint": "~8.45.0", "ts-node": "^10.9.1", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "main": "./dist/ee/apps/queue-worker/src/service.js", "files": [ diff --git a/ee/apps/stream-hub-service/package.json b/ee/apps/stream-hub-service/package.json index 812522a5f1d8..069e58586fe7 100644 --- a/ee/apps/stream-hub-service/package.json +++ b/ee/apps/stream-hub-service/package.json @@ -43,7 +43,7 @@ "@types/polka": "^0.5.6", "eslint": "~8.45.0", "ts-node": "^10.9.1", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "main": "./dist/ee/apps/stream-hub-service/src/service.js", "files": [ diff --git a/ee/packages/license/package.json b/ee/packages/license/package.json index 1c746514d443..76d18fc35a8e 100644 --- a/ee/packages/license/package.json +++ b/ee/packages/license/package.json @@ -10,7 +10,7 @@ "eslint": "~8.45.0", "jest": "~29.7.0", "jest-websocket-mock": "~2.5.0", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "scripts": { "build": "tsc", diff --git a/ee/packages/omnichannel-services/package.json b/ee/packages/omnichannel-services/package.json index f520d82bd7d3..6e9c80ae02ea 100644 --- a/ee/packages/omnichannel-services/package.json +++ b/ee/packages/omnichannel-services/package.json @@ -8,7 +8,7 @@ "@types/jest": "~29.5.12", "eslint": "~8.45.0", "jest": "~29.7.0", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "dependencies": { "@rocket.chat/core-services": "workspace:^", diff --git a/ee/packages/pdf-worker/package.json b/ee/packages/pdf-worker/package.json index 749d48ccc9c2..9c58aff464bd 100644 --- a/ee/packages/pdf-worker/package.json +++ b/ee/packages/pdf-worker/package.json @@ -14,7 +14,7 @@ "eslint": "~8.45.0", "jest": "~29.7.0", "react-dom": "~18.3.1", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "scripts": { "build": "tsc -p tsconfig.build.json && cp -r src/public dist/public", diff --git a/ee/packages/presence/package.json b/ee/packages/presence/package.json index 9f2f50407b1d..f7c195678dd6 100644 --- a/ee/packages/presence/package.json +++ b/ee/packages/presence/package.json @@ -13,7 +13,7 @@ "babel-jest": "^29.0.3", "eslint": "~8.45.0", "jest": "~29.7.0", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "scripts": { "lint": "eslint src", diff --git a/ee/packages/ui-theming/package.json b/ee/packages/ui-theming/package.json index 713265b36bfa..2c5e6c41267d 100644 --- a/ee/packages/ui-theming/package.json +++ b/ee/packages/ui-theming/package.json @@ -16,7 +16,7 @@ "eslint-plugin-testing-library": "^5.11.1", "react": "~17.0.2", "react-docgen-typescript-plugin": "~1.0.5", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "scripts": { "lint": "eslint --ext .js,.jsx,.ts,.tsx .", diff --git a/package.json b/package.json index 29de436373e2..7cb5f88cdbe9 100644 --- a/package.json +++ b/package.json @@ -64,8 +64,7 @@ "@storybook/react-docgen-typescript-plugin@1.0.2-canary.6.9d540b91e815f8fc2f8829189deb00553559ff63.0": "patch:@storybook/react-docgen-typescript-plugin@npm%3A1.0.2-canary.6.9d540b91e815f8fc2f8829189deb00553559ff63.0#./.yarn/patches/@storybook-react-docgen-typescript-plugin-npm-1.0.2-canary.6.9d540b91e815f8fc2f8829189deb00553559ff63.0-b31cc57c40.patch", "mongodb@^4.17.1": "patch:mongodb@npm:4.17.1#.yarn/patches/mongodb-npm-4.17.1-a2fe811ff1.patch", "@rocket.chat/forked-matrix-sdk-crypto-nodejs": "0.1.0-beta.13", - "typia@5.3.3": "patch:typia@npm:5.3.3#.yarn/patches/typia-npm-5.3.3-21d3e18463.patch", - "typia@~5.3.3": "patch:typia@npm%3A5.3.3#./.yarn/patches/typia-npm-5.3.3-21d3e18463.patch" + "typia@~6.9.0": "patch:typia@npm%3A6.9.0#./.yarn/patches/typia-npm-6.9.0-2fd4d85f25.patch" }, "dependencies": { "node-gyp": "^9.4.1" diff --git a/packages/account-utils/package.json b/packages/account-utils/package.json index e33876a02d28..4ec6cd3bcab5 100644 --- a/packages/account-utils/package.json +++ b/packages/account-utils/package.json @@ -4,7 +4,7 @@ "private": true, "devDependencies": { "eslint": "~8.45.0", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "scripts": { "lint": "eslint --ext .js,.jsx,.ts,.tsx .", diff --git a/packages/agenda/package.json b/packages/agenda/package.json index 71b8b01bd6b0..f09921de6c31 100644 --- a/packages/agenda/package.json +++ b/packages/agenda/package.json @@ -14,7 +14,7 @@ "devDependencies": { "@types/debug": "^4.1.10", "eslint": "~8.45.0", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "scripts": { "lint": "eslint --ext .js,.jsx,.ts,.tsx .", diff --git a/packages/api-client/package.json b/packages/api-client/package.json index 43de20583d47..6d84bfe46f7e 100644 --- a/packages/api-client/package.json +++ b/packages/api-client/package.json @@ -8,7 +8,7 @@ "eslint": "~8.45.0", "jest": "~29.7.0", "jest-fetch-mock": "^3.0.3", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "scripts": { "build": "tsc", diff --git a/packages/apps/package.json b/packages/apps/package.json index 6b0dfc2beb68..b970a7d8cc20 100644 --- a/packages/apps/package.json +++ b/packages/apps/package.json @@ -4,7 +4,7 @@ "private": true, "devDependencies": { "eslint": "~8.45.0", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "scripts": { "lint": "eslint --ext .js,.jsx,.ts,.tsx .", diff --git a/packages/base64/package.json b/packages/base64/package.json index c58a652877a3..441fed0e06c1 100644 --- a/packages/base64/package.json +++ b/packages/base64/package.json @@ -21,7 +21,7 @@ "@typescript-eslint/parser": "~5.60.1", "eslint": "~8.45.0", "jest": "~29.7.0", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "volta": { "extends": "../../package.json" diff --git a/packages/cas-validate/package.json b/packages/cas-validate/package.json index 769b74d38e56..a7cccb911781 100644 --- a/packages/cas-validate/package.json +++ b/packages/cas-validate/package.json @@ -5,7 +5,7 @@ "private": true, "devDependencies": { "eslint": "~8.45.0", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "scripts": { "lint": "eslint --ext .js,.jsx,.ts,.tsx .", diff --git a/packages/core-services/package.json b/packages/core-services/package.json index 0b9a14aaa90d..191240062908 100644 --- a/packages/core-services/package.json +++ b/packages/core-services/package.json @@ -16,7 +16,7 @@ "jest": "~29.7.0", "mongodb": "^4.17.2", "prettier": "~2.8.8", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "scripts": { "lint": "eslint --ext .js,.jsx,.ts,.tsx .", diff --git a/packages/core-typings/package.json b/packages/core-typings/package.json index 30030fdf467a..485dec1d88ed 100644 --- a/packages/core-typings/package.json +++ b/packages/core-typings/package.json @@ -7,7 +7,7 @@ "eslint": "~8.45.0", "mongodb": "^4.17.2", "prettier": "~2.8.8", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "scripts": { "lint": "eslint --ext .js,.jsx,.ts,.tsx .", diff --git a/packages/cron/package.json b/packages/cron/package.json index a6484224ded5..3003eacb39dc 100644 --- a/packages/cron/package.json +++ b/packages/cron/package.json @@ -4,7 +4,7 @@ "private": true, "devDependencies": { "eslint": "~8.45.0", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "scripts": { "lint": "eslint --ext .js,.jsx,.ts,.tsx .", diff --git a/packages/ddp-client/package.json b/packages/ddp-client/package.json index 9e4fdfd85910..5d8ef8867497 100644 --- a/packages/ddp-client/package.json +++ b/packages/ddp-client/package.json @@ -8,7 +8,7 @@ "eslint": "~8.45.0", "jest": "~29.7.0", "jest-websocket-mock": "~2.5.0", - "typescript": "~5.3.3", + "typescript": "~5.5.4", "ws": "^8.13.0" }, "peerDependencies": { diff --git a/packages/favicon/package.json b/packages/favicon/package.json index b61eaee02a68..67f5c6dcdfea 100644 --- a/packages/favicon/package.json +++ b/packages/favicon/package.json @@ -4,7 +4,7 @@ "private": true, "devDependencies": { "eslint": "~8.45.0", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "scripts": { "lint": "eslint --ext .js,.jsx,.ts,.tsx .", diff --git a/packages/fuselage-ui-kit/package.json b/packages/fuselage-ui-kit/package.json index b0f2c694026b..75684f3f9fb5 100644 --- a/packages/fuselage-ui-kit/package.json +++ b/packages/fuselage-ui-kit/package.json @@ -106,7 +106,7 @@ "rimraf": "^3.0.2", "storybook-dark-mode": "~3.0.1", "tslib": "^2.5.3", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "dependencies": { "@rocket.chat/core-typings": "workspace:^", diff --git a/packages/gazzodown/package.json b/packages/gazzodown/package.json index 6ecb49fa9544..d025320e6874 100644 --- a/packages/gazzodown/package.json +++ b/packages/gazzodown/package.json @@ -41,7 +41,7 @@ "outdent": "^0.8.0", "react-docgen-typescript-plugin": "~1.0.5", "react-dom": "~17.0.2", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "scripts": { "build": "rm -rf dist && tsc -p tsconfig.build.json", diff --git a/packages/i18n/package.json b/packages/i18n/package.json index 6927aae08d1c..92fa97c42df7 100644 --- a/packages/i18n/package.json +++ b/packages/i18n/package.json @@ -7,7 +7,7 @@ "eslint": "~8.45.0", "jest": "~29.7.0", "tsup": "^6.7.0", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "scripts": { "build": "node ./src/index.mjs", diff --git a/packages/instance-status/package.json b/packages/instance-status/package.json index 088cba613d8e..f15a8feceff5 100644 --- a/packages/instance-status/package.json +++ b/packages/instance-status/package.json @@ -7,7 +7,7 @@ "eslint": "~8.45.0", "mongodb": "^4.17.2", "prettier": "~2.8.8", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "scripts": { "lint": "eslint --ext .js,.jsx,.ts,.tsx .", diff --git a/packages/jest-presets/package.json b/packages/jest-presets/package.json index e6c0c9197bce..5fb2e26389a0 100644 --- a/packages/jest-presets/package.json +++ b/packages/jest-presets/package.json @@ -30,7 +30,7 @@ "@types/uuid": "^9", "eslint": "~8.45.0", "jest": "~29.7.0", - "typescript": "~5.4.5" + "typescript": "~5.5.4" }, "volta": { "extends": "../../package.json" diff --git a/packages/jwt/package.json b/packages/jwt/package.json index a6d989e2c275..d945bd3a6f9c 100644 --- a/packages/jwt/package.json +++ b/packages/jwt/package.json @@ -7,7 +7,7 @@ "@types/jest": "~29.5.12", "eslint": "~8.45.0", "jest": "~29.7.0", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "scripts": { "build": "rm -rf dist && tsc", diff --git a/packages/livechat/package.json b/packages/livechat/package.json index 9d40643dd4c5..073c2e999e42 100644 --- a/packages/livechat/package.json +++ b/packages/livechat/package.json @@ -85,7 +85,7 @@ "stylelint-order": "^5.0.0", "svg-loader": "^0.0.2", "terser-webpack-plugin": "~4.2.3", - "typescript": "~5.3.3", + "typescript": "~5.5.4", "url-loader": "^4.1.1", "webpack": "^5.89.0", "webpack-bundle-analyzer": "^4.9.1", diff --git a/packages/log-format/package.json b/packages/log-format/package.json index b43a3954a96f..f6f7c03b6f63 100644 --- a/packages/log-format/package.json +++ b/packages/log-format/package.json @@ -6,7 +6,7 @@ "@types/chalk": "^2.2.0", "@types/ejson": "^2.2.1", "eslint": "~8.45.0", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "scripts": { "lint": "eslint --ext .js,.jsx,.ts,.tsx .", diff --git a/packages/logger/package.json b/packages/logger/package.json index aae996f35139..d073ebddbf49 100644 --- a/packages/logger/package.json +++ b/packages/logger/package.json @@ -4,7 +4,7 @@ "private": true, "devDependencies": { "eslint": "~8.45.0", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "scripts": { "lint": "eslint --ext .js,.jsx,.ts,.tsx .", diff --git a/packages/message-parser/package.json b/packages/message-parser/package.json index fd7e88dc1d86..78ffd3401ff4 100644 --- a/packages/message-parser/package.json +++ b/packages/message-parser/package.json @@ -68,7 +68,7 @@ "rimraf": "^3.0.2", "ts-loader": "~9.4.2", "typedoc": "~0.24.1", - "typescript": "~5.3.3", + "typescript": "~5.5.4", "webpack": "~5.78.0", "webpack-cli": "~5.0.1" }, diff --git a/packages/mock-providers/package.json b/packages/mock-providers/package.json index 64310f0695cc..f5fba6c3b74b 100644 --- a/packages/mock-providers/package.json +++ b/packages/mock-providers/package.json @@ -17,7 +17,7 @@ "@types/use-sync-external-store": "^0.0.5", "eslint": "~8.45.0", "react": "~17.0.2", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "peerDependencies": { "@tanstack/react-query": "*", diff --git a/packages/model-typings/package.json b/packages/model-typings/package.json index f96764fa49af..13ee8c08b727 100644 --- a/packages/model-typings/package.json +++ b/packages/model-typings/package.json @@ -6,7 +6,7 @@ "@types/node-rsa": "^1.1.3", "eslint": "~8.45.0", "mongodb": "^4.17.2", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "scripts": { "lint": "eslint --ext .js,.jsx,.ts,.tsx .", diff --git a/packages/models/package.json b/packages/models/package.json index 19f1f28438f6..6b0d1c0a6fe7 100644 --- a/packages/models/package.json +++ b/packages/models/package.json @@ -7,7 +7,7 @@ "@types/jest": "~29.5.12", "eslint": "~8.45.0", "jest": "^29.7.0", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "dependencies": { "@rocket.chat/model-typings": "workspace:~" diff --git a/packages/node-poplib/package.json b/packages/node-poplib/package.json index a232d6b4c476..1d0c4c462e46 100644 --- a/packages/node-poplib/package.json +++ b/packages/node-poplib/package.json @@ -4,7 +4,7 @@ "private": true, "devDependencies": { "eslint": "~8.45.0", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "main": "./src/index.js", "typings": "./dist/index.d.ts" diff --git a/packages/password-policies/package.json b/packages/password-policies/package.json index d53ffa1f5249..a2fef4ae0543 100644 --- a/packages/password-policies/package.json +++ b/packages/password-policies/package.json @@ -7,7 +7,7 @@ "@types/jest": "~29.5.12", "eslint": "~8.45.0", "jest": "~29.7.0", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "scripts": { "build": "rm -rf dist && tsc", diff --git a/packages/patch-injection/package.json b/packages/patch-injection/package.json index 99f676bff831..8dabf2fb3f2a 100644 --- a/packages/patch-injection/package.json +++ b/packages/patch-injection/package.json @@ -7,7 +7,7 @@ "@types/jest": "~29.5.12", "eslint": "~8.45.0", "jest": "~29.7.0", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "scripts": { "build": "rm -rf dist && tsc", diff --git a/packages/peggy-loader/package.json b/packages/peggy-loader/package.json index 5fa014da7f29..f0ac6d915567 100644 --- a/packages/peggy-loader/package.json +++ b/packages/peggy-loader/package.json @@ -50,7 +50,7 @@ "peggy": "3.0.2", "prettier": "~2.8.7", "rimraf": "^3.0.2", - "typescript": "~5.3.3", + "typescript": "~5.5.4", "webpack": "~5.78.0" }, "volta": { diff --git a/packages/random/package.json b/packages/random/package.json index 72fc8c5c566a..498e218338d9 100644 --- a/packages/random/package.json +++ b/packages/random/package.json @@ -23,7 +23,7 @@ "@typescript-eslint/parser": "~5.60.1", "eslint": "~8.45.0", "jest": "~29.7.0", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "volta": { "extends": "../../package.json" diff --git a/packages/release-action/package.json b/packages/release-action/package.json index 0d17e4fb4221..e633ef69d06f 100644 --- a/packages/release-action/package.json +++ b/packages/release-action/package.json @@ -11,7 +11,7 @@ "packageManager": "yarn@3.5.1", "devDependencies": { "@types/node": "^16.18.60", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "dependencies": { "@actions/core": "^1.10.1", diff --git a/packages/release-changelog/package.json b/packages/release-changelog/package.json index 9e48d015b321..f183d00b550b 100644 --- a/packages/release-changelog/package.json +++ b/packages/release-changelog/package.json @@ -12,7 +12,7 @@ "@rocket.chat/eslint-config": "workspace:^", "@types/node": "^14.18.63", "eslint": "~8.45.0", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "dependencies": { "dataloader": "^1.4.0", diff --git a/packages/rest-typings/package.json b/packages/rest-typings/package.json index 760255b1541c..2c676f04a07f 100644 --- a/packages/rest-typings/package.json +++ b/packages/rest-typings/package.json @@ -7,7 +7,7 @@ "eslint": "~8.45.0", "jest": "~29.7.0", "mongodb": "^4.17.2", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "scripts": { "build": "rm -rf dist && tsc", diff --git a/packages/server-cloud-communication/package.json b/packages/server-cloud-communication/package.json index 8c970687ab8b..35e67a2c0638 100644 --- a/packages/server-cloud-communication/package.json +++ b/packages/server-cloud-communication/package.json @@ -5,7 +5,7 @@ "devDependencies": { "@rocket.chat/license": "workspace:^", "eslint": "~8.45.0", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "volta": { "extends": "../../package.json" diff --git a/packages/server-fetch/package.json b/packages/server-fetch/package.json index c98b4ba99e54..27f957758520 100644 --- a/packages/server-fetch/package.json +++ b/packages/server-fetch/package.json @@ -4,7 +4,7 @@ "private": true, "devDependencies": { "eslint": "~8.45.0", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "scripts": { "lint": "eslint --ext .js,.jsx,.ts,.tsx .", diff --git a/packages/sha256/package.json b/packages/sha256/package.json index 6d10f5b80d65..fb9e0d0d7f26 100644 --- a/packages/sha256/package.json +++ b/packages/sha256/package.json @@ -22,7 +22,7 @@ "@typescript-eslint/parser": "~5.60.1", "eslint": "~8.45.0", "jest": "~29.7.0", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "volta": { "extends": "../../package.json" diff --git a/packages/tools/package.json b/packages/tools/package.json index d1301efb7055..11dade3ac5c8 100644 --- a/packages/tools/package.json +++ b/packages/tools/package.json @@ -7,7 +7,7 @@ "@types/jest": "~29.5.12", "eslint": "~8.45.0", "jest": "~29.7.0", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "scripts": { "lint": "eslint --ext .js,.jsx,.ts,.tsx .", diff --git a/packages/ui-avatar/package.json b/packages/ui-avatar/package.json index 1c2dc6dabbc4..d315553b8d83 100644 --- a/packages/ui-avatar/package.json +++ b/packages/ui-avatar/package.json @@ -15,7 +15,7 @@ "eslint-plugin-storybook": "~0.6.15", "eslint-plugin-testing-library": "~5.11.1", "react": "^17.0.2", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "scripts": { "lint": "eslint --ext .js,.jsx,.ts,.tsx .", diff --git a/packages/ui-client/package.json b/packages/ui-client/package.json index f43b2d8622b8..31492399dee9 100644 --- a/packages/ui-client/package.json +++ b/packages/ui-client/package.json @@ -37,7 +37,7 @@ "react": "^17.0.2", "react-dom": "^17.0.2", "react-hook-form": "~7.45.4", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "scripts": { "build": "rm -rf dist && tsc -p tsconfig.build.json", diff --git a/packages/ui-composer/package.json b/packages/ui-composer/package.json index d854a6ffea86..a051bc16db23 100644 --- a/packages/ui-composer/package.json +++ b/packages/ui-composer/package.json @@ -38,7 +38,7 @@ "react": "~17.0.2", "react-docgen-typescript-plugin": "~1.0.5", "react-dom": "~17.0.2", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "peerDependencies": { "@react-aria/toolbar": "*", diff --git a/packages/ui-contexts/package.json b/packages/ui-contexts/package.json index 513aebd86a30..b2954e61c9ec 100644 --- a/packages/ui-contexts/package.json +++ b/packages/ui-contexts/package.json @@ -16,7 +16,7 @@ "eslint-plugin-react-hooks": "^4.6.0", "mongodb": "^4.17.2", "react": "~17.0.2", - "typescript": "~5.3.3", + "typescript": "~5.5.4", "use-sync-external-store": "^1.2.0" }, "peerDependencies": { diff --git a/packages/ui-contexts/src/DeviceContext.ts b/packages/ui-contexts/src/DeviceContext.ts index 483f03707f95..5bbda60cfcd5 100644 --- a/packages/ui-contexts/src/DeviceContext.ts +++ b/packages/ui-contexts/src/DeviceContext.ts @@ -6,10 +6,6 @@ export type Device = { type: string; }; -export interface IExperimentalHTMLAudioElement extends HTMLAudioElement { - setSinkId: (sinkId: string) => void; -} - type EnabledDeviceContextValue = { enabled: true; availableAudioOutputDevices: Device[]; @@ -18,7 +14,7 @@ type EnabledDeviceContextValue = { selectedAudioOutputDevice?: Device; selectedAudioInputDevice?: Device; // selectedVideoInputDevice?: Device; - setAudioOutputDevice: (data: { outputDevice: Device; HTMLAudioElement: IExperimentalHTMLAudioElement }) => void; + setAudioOutputDevice: (data: { outputDevice: Device; HTMLAudioElement: HTMLAudioElement }) => void; setAudioInputDevice: (device: Device) => void; // setVideoInputDevice: (device: Device) => void; }; diff --git a/packages/ui-contexts/src/hooks/useEndpoint.ts b/packages/ui-contexts/src/hooks/useEndpoint.ts index a0b7c977f2c6..3d29917c63e2 100644 --- a/packages/ui-contexts/src/hooks/useEndpoint.ts +++ b/packages/ui-contexts/src/hooks/useEndpoint.ts @@ -14,7 +14,7 @@ export type EndpointFunction( method: TMethod, pathPattern: TPathPattern, - ...[keys]: undefined extends UrlParams ? [keys?: UrlParams] : [keys: UrlParams] + ...[keys]: NoInfer ? [keys?: UrlParams] : [keys: UrlParams]> ): EndpointFunction { const { callEndpoint } = useContext(ServerContext); const keysRef = useRef(keys); diff --git a/packages/ui-contexts/src/hooks/useSetOutputMediaDevice.ts b/packages/ui-contexts/src/hooks/useSetOutputMediaDevice.ts index 7a68d7b10e0d..c3d6b9425876 100644 --- a/packages/ui-contexts/src/hooks/useSetOutputMediaDevice.ts +++ b/packages/ui-contexts/src/hooks/useSetOutputMediaDevice.ts @@ -1,17 +1,11 @@ import { useContext } from 'react'; -import type { Device, IExperimentalHTMLAudioElement } from '../DeviceContext'; +import type { Device } from '../DeviceContext'; import { DeviceContext, isDeviceContextEnabled } from '../DeviceContext'; // This allows different places to set the output device by providing a HTMLAudioElement -type setOutputMediaDevice = ({ - outputDevice, - HTMLAudioElement, -}: { - outputDevice: Device; - HTMLAudioElement: IExperimentalHTMLAudioElement; -}) => void; +type setOutputMediaDevice = ({ outputDevice, HTMLAudioElement }: { outputDevice: Device; HTMLAudioElement: HTMLAudioElement }) => void; export const useSetOutputMediaDevice = (): setOutputMediaDevice => { const context = useContext(DeviceContext); diff --git a/packages/ui-contexts/src/index.ts b/packages/ui-contexts/src/index.ts index e021eb840aa0..313710bbfd4e 100644 --- a/packages/ui-contexts/src/index.ts +++ b/packages/ui-contexts/src/index.ts @@ -14,7 +14,7 @@ export { ToastMessagesContext, ToastMessagesContextValue } from './ToastMessages export { TooltipContext, TooltipContextValue } from './TooltipContext'; export { TranslationContext, TranslationContextValue } from './TranslationContext'; export { UserContext, UserContextValue } from './UserContext'; -export { DeviceContext, Device, IExperimentalHTMLAudioElement, DeviceContextValue } from './DeviceContext'; +export { DeviceContext, Device, DeviceContextValue } from './DeviceContext'; export { ActionManagerContext, IActionManager } from './ActionManagerContext'; export { useAbsoluteUrl } from './hooks/useAbsoluteUrl'; diff --git a/packages/ui-kit/package.json b/packages/ui-kit/package.json index c7e8159d457d..ae42ec71b2a0 100644 --- a/packages/ui-kit/package.json +++ b/packages/ui-kit/package.json @@ -52,11 +52,11 @@ "ts-jest": "~29.1.1", "ts-loader": "~9.4.2", "ts-node": "~10.9.1", - "ts-patch": "~3.0.2", - "typescript": "~5.3.3" + "ts-patch": "~3.2.1", + "typescript": "~5.5.4" }, "dependencies": { - "typia": "~5.3.3" + "typia": "~6.9.0" }, "peerDependencies": { "@rocket.chat/icons": "*" diff --git a/packages/ui-video-conf/package.json b/packages/ui-video-conf/package.json index 5e7d114a3576..befa3514509f 100644 --- a/packages/ui-video-conf/package.json +++ b/packages/ui-video-conf/package.json @@ -32,7 +32,7 @@ "jest": "~29.7.0", "jest-axe": "~9.0.0", "react-docgen-typescript-plugin": "~1.0.5", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "peerDependencies": { "@rocket.chat/css-in-js": "*", diff --git a/packages/uikit-playground/package.json b/packages/uikit-playground/package.json index f46f139a66f4..e29be5287b65 100644 --- a/packages/uikit-playground/package.json +++ b/packages/uikit-playground/package.json @@ -50,7 +50,7 @@ "eslint": "~8.45.0", "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-react-refresh": "^0.4.4", - "typescript": "~5.3.3", + "typescript": "~5.5.4", "vite": "^4.3.9" }, "volta": { diff --git a/packages/web-ui-registration/package.json b/packages/web-ui-registration/package.json index ba3dc31423a6..4a9b4ac82a9c 100644 --- a/packages/web-ui-registration/package.json +++ b/packages/web-ui-registration/package.json @@ -42,7 +42,7 @@ "react-hook-form": "~7.45.4", "react-i18next": "~13.2.2", "storybook-dark-mode": "~3.0.1", - "typescript": "~5.3.3" + "typescript": "~5.5.4" }, "peerDependencies": { "@rocket.chat/layout": "*", diff --git a/yarn.lock b/yarn.lock index 44e1db70b997..6578c3ba2410 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8433,7 +8433,7 @@ __metadata: pino: ^8.15.0 polka: ^0.5.2 ts-node: ^10.9.1 - typescript: ~5.3.3 + typescript: ~5.5.4 uuid: ^9.0.1 languageName: unknown linkType: soft @@ -8443,7 +8443,7 @@ __metadata: resolution: "@rocket.chat/account-utils@workspace:packages/account-utils" dependencies: eslint: ~8.45.0 - typescript: ~5.3.3 + typescript: ~5.5.4 languageName: unknown linkType: soft @@ -8459,7 +8459,7 @@ __metadata: human-interval: ^2.0.1 moment-timezone: ~0.5.43 mongodb: ^4.17.2 - typescript: ~5.3.3 + typescript: ~5.5.4 languageName: unknown linkType: soft @@ -8479,7 +8479,7 @@ __metadata: query-string: ^7.1.3 split-on-first: ^3.0.0 strict-uri-encode: ^2.0.0 - typescript: ~5.3.3 + typescript: ~5.5.4 languageName: unknown linkType: soft @@ -8513,7 +8513,7 @@ __metadata: "@rocket.chat/core-typings": "workspace:^" "@rocket.chat/model-typings": "workspace:^" eslint: ~8.45.0 - typescript: ~5.3.3 + typescript: ~5.5.4 languageName: unknown linkType: soft @@ -8545,7 +8545,7 @@ __metadata: pino: ^8.15.0 polka: ^0.5.2 ts-node: ^10.9.1 - typescript: ~5.3.3 + typescript: ~5.5.4 languageName: unknown linkType: soft @@ -8561,7 +8561,7 @@ __metadata: "@typescript-eslint/parser": ~5.60.1 eslint: ~8.45.0 jest: ~29.7.0 - typescript: ~5.3.3 + typescript: ~5.5.4 languageName: unknown linkType: soft @@ -8571,7 +8571,7 @@ __metadata: dependencies: cheerio: 1.0.0-rc.10 eslint: ~8.45.0 - typescript: ~5.3.3 + typescript: ~5.5.4 languageName: unknown linkType: soft @@ -8601,7 +8601,7 @@ __metadata: jest: ~29.7.0 mongodb: ^4.17.2 prettier: ~2.8.8 - typescript: ~5.3.3 + typescript: ~5.5.4 languageName: unknown linkType: soft @@ -8617,7 +8617,7 @@ __metadata: eslint: ~8.45.0 mongodb: ^4.17.2 prettier: ~2.8.8 - typescript: ~5.3.3 + typescript: ~5.5.4 languageName: unknown linkType: soft @@ -8631,7 +8631,7 @@ __metadata: "@rocket.chat/random": "workspace:^" eslint: ~8.45.0 mongodb: ^4.17.2 - typescript: ~5.3.3 + typescript: ~5.5.4 languageName: unknown linkType: soft @@ -8670,7 +8670,7 @@ __metadata: eslint: ~8.45.0 jest: ~29.7.0 jest-websocket-mock: ~2.5.0 - typescript: ~5.3.3 + typescript: ~5.5.4 ws: ^8.13.0 peerDependencies: "@rocket.chat/emitter": "*" @@ -8718,7 +8718,7 @@ __metadata: polka: ^0.5.2 sharp: ^0.32.6 ts-node: ^10.9.1 - typescript: ~5.3.3 + typescript: ~5.5.4 underscore: ^1.13.6 uuid: ^7.0.3 ws: ^8.8.1 @@ -8758,7 +8758,7 @@ __metadata: resolution: "@rocket.chat/favicon@workspace:packages/favicon" dependencies: eslint: ~8.45.0 - typescript: ~5.3.3 + typescript: ~5.5.4 languageName: unknown linkType: soft @@ -8923,7 +8923,7 @@ __metadata: rimraf: ^3.0.2 storybook-dark-mode: ~3.0.1 tslib: ^2.5.3 - typescript: ~5.3.3 + typescript: ~5.5.4 peerDependencies: "@rocket.chat/apps-engine": "*" "@rocket.chat/eslint-config": 0.7.0 @@ -9012,7 +9012,7 @@ __metadata: react-docgen-typescript-plugin: ~1.0.5 react-dom: ~17.0.2 react-error-boundary: ^3.1.4 - typescript: ~5.3.3 + typescript: ~5.5.4 peerDependencies: "@rocket.chat/core-typings": "workspace:^" "@rocket.chat/css-in-js": "*" @@ -9035,7 +9035,7 @@ __metadata: eslint: ~8.45.0 jest: ~29.7.0 tsup: ^6.7.0 - typescript: ~5.3.3 + typescript: ~5.5.4 languageName: unknown linkType: soft @@ -9055,7 +9055,7 @@ __metadata: eslint: ~8.45.0 mongodb: ^4.17.2 prettier: ~2.8.8 - typescript: ~5.3.3 + typescript: ~5.5.4 languageName: unknown linkType: soft @@ -9077,7 +9077,7 @@ __metadata: jest-axe: ~9.0.0 jest-environment-jsdom: ~29.7.0 jest-environment-node: ~29.7.0 - typescript: ~5.4.5 + typescript: ~5.5.4 uuid: ~9.0.1 languageName: unknown linkType: soft @@ -9091,7 +9091,7 @@ __metadata: eslint: ~8.45.0 jest: ~29.7.0 jose: ^4.14.4 - typescript: ~5.3.3 + typescript: ~5.5.4 languageName: unknown linkType: soft @@ -9122,7 +9122,7 @@ __metadata: eslint: ~8.45.0 jest: ~29.7.0 jest-websocket-mock: ~2.5.0 - typescript: ~5.3.3 + typescript: ~5.5.4 languageName: unknown linkType: soft @@ -9210,7 +9210,7 @@ __metadata: stylelint-order: ^5.0.0 svg-loader: ^0.0.2 terser-webpack-plugin: ~4.2.3 - typescript: ~5.3.3 + typescript: ~5.5.4 url-loader: ^4.1.1 webpack: ^5.89.0 webpack-bundle-analyzer: ^4.9.1 @@ -9232,7 +9232,7 @@ __metadata: chalk: ^4.0.0 ejson: ^2.2.3 eslint: ~8.45.0 - typescript: ~5.3.3 + typescript: ~5.5.4 languageName: unknown linkType: soft @@ -9243,7 +9243,7 @@ __metadata: "@rocket.chat/emitter": ~0.31.25 eslint: ~8.45.0 pino: ^8.15.0 - typescript: ~5.3.3 + typescript: ~5.5.4 languageName: unknown linkType: soft @@ -9292,7 +9292,7 @@ __metadata: tldts: ~5.7.112 ts-loader: ~9.4.2 typedoc: ~0.24.1 - typescript: ~5.3.3 + typescript: ~5.5.4 webpack: ~5.78.0 webpack-cli: ~5.0.1 languageName: unknown @@ -9665,8 +9665,8 @@ __metadata: turndown: ^7.1.2 twilio: ^3.76.1 twit: ^2.2.11 - typescript: ~5.3.3 - typia: ^5.3.3 + typescript: ~5.5.4 + typia: ~6.9.0 ua-parser-js: ^1.0.37 underscore: ^1.13.6 universal-perf-hooks: ^1.0.1 @@ -9698,7 +9698,7 @@ __metadata: i18next: ~23.4.9 react: ~17.0.2 react-i18next: ~13.2.2 - typescript: ~5.3.3 + typescript: ~5.5.4 use-sync-external-store: ~1.2.2 peerDependencies: "@tanstack/react-query": "*" @@ -9714,7 +9714,7 @@ __metadata: "@types/node-rsa": ^1.1.3 eslint: ~8.45.0 mongodb: ^4.17.2 - typescript: ~5.3.3 + typescript: ~5.5.4 languageName: unknown linkType: soft @@ -9727,7 +9727,7 @@ __metadata: "@types/jest": ~29.5.12 eslint: ~8.45.0 jest: ^29.7.0 - typescript: ~5.3.3 + typescript: ~5.5.4 languageName: unknown linkType: soft @@ -9770,7 +9770,7 @@ __metadata: mongo-message-queue: ^1.0.0 mongodb: ^4.17.2 pino: ^8.15.0 - typescript: ~5.3.3 + typescript: ~5.5.4 languageName: unknown linkType: soft @@ -9808,7 +9808,7 @@ __metadata: pino: ^8.15.0 polka: ^0.5.2 ts-node: ^10.9.1 - typescript: ~5.3.3 + typescript: ~5.5.4 languageName: unknown linkType: soft @@ -9841,7 +9841,7 @@ __metadata: "@types/jest": ~29.5.12 eslint: ~8.45.0 jest: ~29.7.0 - typescript: ~5.3.3 + typescript: ~5.5.4 languageName: unknown linkType: soft @@ -9853,7 +9853,7 @@ __metadata: "@types/jest": ~29.5.12 eslint: ~8.45.0 jest: ~29.7.0 - typescript: ~5.3.3 + typescript: ~5.5.4 languageName: unknown linkType: soft @@ -9880,7 +9880,7 @@ __metadata: moment-timezone: ^0.5.43 react: ~18.3.1 react-dom: ~18.3.1 - typescript: ~5.3.3 + typescript: ~5.5.4 languageName: unknown linkType: soft @@ -9896,7 +9896,7 @@ __metadata: peggy: 3.0.2 prettier: ~2.8.7 rimraf: ^3.0.2 - typescript: ~5.3.3 + typescript: ~5.5.4 webpack: ~5.78.0 peerDependencies: peggy: "*" @@ -9909,7 +9909,7 @@ __metadata: resolution: "@rocket.chat/poplib@workspace:packages/node-poplib" dependencies: eslint: ~8.45.0 - typescript: ~5.3.3 + typescript: ~5.5.4 languageName: unknown linkType: soft @@ -9941,7 +9941,7 @@ __metadata: pino: ^8.15.0 polka: ^0.5.2 ts-node: ^10.9.1 - typescript: ~5.3.3 + typescript: ~5.5.4 languageName: unknown linkType: soft @@ -9963,7 +9963,7 @@ __metadata: eslint: ~8.45.0 jest: ~29.7.0 mongodb: ^4.17.2 - typescript: ~5.3.3 + typescript: ~5.5.4 languageName: unknown linkType: soft @@ -10008,7 +10008,7 @@ __metadata: pino: ^8.15.0 polka: ^0.5.2 ts-node: ^10.9.1 - typescript: ~5.3.3 + typescript: ~5.5.4 languageName: unknown linkType: soft @@ -10024,7 +10024,7 @@ __metadata: "@typescript-eslint/parser": ~5.60.1 eslint: ~8.45.0 jest: ~29.7.0 - typescript: ~5.3.3 + typescript: ~5.5.4 languageName: unknown linkType: soft @@ -10043,7 +10043,7 @@ __metadata: remark-parse: 9.0.0 remark-stringify: 9.0.1 semver: ^7.5.2 - typescript: ~5.3.3 + typescript: ~5.5.4 unified: 9.2.2 languageName: unknown linkType: soft @@ -10058,7 +10058,7 @@ __metadata: dataloader: ^1.4.0 eslint: ~8.45.0 node-fetch: ^2 - typescript: ~5.3.3 + typescript: ~5.5.4 languageName: unknown linkType: soft @@ -10077,7 +10077,7 @@ __metadata: eslint: ~8.45.0 jest: ~29.7.0 mongodb: ^4.17.2 - typescript: ~5.3.3 + typescript: ~5.5.4 languageName: unknown linkType: soft @@ -10100,7 +10100,7 @@ __metadata: dependencies: "@rocket.chat/license": "workspace:^" eslint: ~8.45.0 - typescript: ~5.3.3 + typescript: ~5.5.4 languageName: unknown linkType: soft @@ -10114,7 +10114,7 @@ __metadata: https-proxy-agent: ^5.0.1 node-fetch: 2.3.0 proxy-from-env: ^1.1.0 - typescript: ~5.3.3 + typescript: ~5.5.4 languageName: unknown linkType: soft @@ -10130,7 +10130,7 @@ __metadata: "@typescript-eslint/parser": ~5.60.1 eslint: ~8.45.0 jest: ~29.7.0 - typescript: ~5.3.3 + typescript: ~5.5.4 languageName: unknown linkType: soft @@ -10164,7 +10164,7 @@ __metadata: pino: ^8.15.0 polka: ^0.5.2 ts-node: ^10.9.1 - typescript: ~5.3.3 + typescript: ~5.5.4 languageName: unknown linkType: soft @@ -10204,7 +10204,7 @@ __metadata: eslint: ~8.45.0 jest: ~29.7.0 moment-timezone: ^0.5.43 - typescript: ~5.3.3 + typescript: ~5.5.4 languageName: unknown linkType: soft @@ -10224,7 +10224,7 @@ __metadata: eslint-plugin-storybook: ~0.6.15 eslint-plugin-testing-library: ~5.11.1 react: ^17.0.2 - typescript: ~5.3.3 + typescript: ~5.5.4 peerDependencies: "@rocket.chat/fuselage": "*" "@rocket.chat/ui-contexts": 9.0.0 @@ -10270,7 +10270,7 @@ __metadata: react: ^17.0.2 react-dom: ^17.0.2 react-hook-form: ~7.45.4 - typescript: ~5.3.3 + typescript: ~5.5.4 peerDependencies: "@react-aria/toolbar": "*" "@rocket.chat/css-in-js": "*" @@ -10308,7 +10308,7 @@ __metadata: react: ~17.0.2 react-docgen-typescript-plugin: ~1.0.5 react-dom: ~17.0.2 - typescript: ~5.3.3 + typescript: ~5.5.4 peerDependencies: "@react-aria/toolbar": "*" "@rocket.chat/fuselage": "*" @@ -10336,7 +10336,7 @@ __metadata: eslint-plugin-react-hooks: ^4.6.0 mongodb: ^4.17.2 react: ~17.0.2 - typescript: ~5.3.3 + typescript: ~5.5.4 use-sync-external-store: ^1.2.0 peerDependencies: "@rocket.chat/core-typings": "workspace:^" @@ -10371,9 +10371,9 @@ __metadata: ts-jest: ~29.1.1 ts-loader: ~9.4.2 ts-node: ~10.9.1 - ts-patch: ~3.0.2 - typescript: ~5.3.3 - typia: ~5.3.3 + ts-patch: ~3.2.1 + typescript: ~5.5.4 + typia: ~6.9.0 peerDependencies: "@rocket.chat/icons": "*" languageName: unknown @@ -10396,7 +10396,7 @@ __metadata: eslint-plugin-testing-library: ^5.11.1 react: ~17.0.2 react-docgen-typescript-plugin: ~1.0.5 - typescript: ~5.3.3 + typescript: ~5.5.4 peerDependencies: "@rocket.chat/css-in-js": "*" "@rocket.chat/fuselage": "*" @@ -10440,7 +10440,7 @@ __metadata: jest: ~29.7.0 jest-axe: ~9.0.0 react-docgen-typescript-plugin: ~1.0.5 - typescript: ~5.3.3 + typescript: ~5.5.4 peerDependencies: "@rocket.chat/css-in-js": "*" "@rocket.chat/fuselage": "*" @@ -10495,7 +10495,7 @@ __metadata: react-split-pane: ^0.1.92 react-virtuoso: ^4.7.1 reactflow: ^11.7.2 - typescript: ~5.3.3 + typescript: ~5.5.4 use-subscription: ^1.8.0 vite: ^4.3.9 languageName: unknown @@ -10531,7 +10531,7 @@ __metadata: react-hook-form: ~7.45.4 react-i18next: ~13.2.2 storybook-dark-mode: ~3.0.1 - typescript: ~5.3.3 + typescript: ~5.5.4 peerDependencies: "@rocket.chat/layout": "*" "@rocket.chat/tools": 0.2.2 @@ -10543,6 +10543,13 @@ __metadata: languageName: unknown linkType: soft +"@samchon/openapi@npm:^0.4.6": + version: 0.4.9 + resolution: "@samchon/openapi@npm:0.4.9" + checksum: a6fd35db27ebf3223c4793bd9a6669fc0e48ccbe522fa8eb26519073b897fb774cd652777e8d7d414bc19bf47ae03be227dfc2b65e2e1a5869c9723c5adad2e0 + languageName: node + linkType: hard + "@selderee/plugin-htmlparser2@npm:^0.6.0": version: 0.6.0 resolution: "@selderee/plugin-htmlparser2@npm:0.6.0" @@ -36734,7 +36741,7 @@ __metadata: sodium-native: ^3.3.0 sodium-plus: ^0.9.0 ts-node: ^10.9.1 - typescript: ~5.3.3 + typescript: ~5.5.4 uuid: ^8.3.2 ws: ^8.8.1 languageName: unknown @@ -37200,7 +37207,7 @@ __metadata: languageName: node linkType: hard -"semver@npm:^7.2, semver@npm:^7.2.1, semver@npm:^7.3.2, semver@npm:^7.3.4, semver@npm:^7.3.5, semver@npm:^7.3.7, semver@npm:^7.3.8, semver@npm:^7.5.2, semver@npm:^7.5.3, semver@npm:^7.5.4": +"semver@npm:^7.2, semver@npm:^7.2.1, semver@npm:^7.3.2, semver@npm:^7.3.4, semver@npm:^7.3.5, semver@npm:^7.3.7, semver@npm:^7.5.2, semver@npm:^7.5.3, semver@npm:^7.5.4": version: 7.5.4 resolution: "semver@npm:7.5.4" dependencies: @@ -40047,20 +40054,20 @@ __metadata: languageName: node linkType: hard -"ts-patch@npm:~3.0.2": - version: 3.0.2 - resolution: "ts-patch@npm:3.0.2" +"ts-patch@npm:~3.2.1": + version: 3.2.1 + resolution: "ts-patch@npm:3.2.1" dependencies: chalk: ^4.1.2 global-prefix: ^3.0.0 minimist: ^1.2.8 resolve: ^1.22.2 - semver: ^7.3.8 + semver: ^7.5.4 strip-ansi: ^6.0.1 bin: ts-patch: bin/ts-patch.js tspc: bin/tspc.js - checksum: 09cdc54bf517b11d4b0de64515e9a0d7e71e238d6065b3c02a04280dc2683143cd810a9065046228571af0865a7d876a4a852ff9a909cb2cae8fe33b41e4eb81 + checksum: 8da4472dcd67b561a6299b54e30ab96181598edb90a97bc8dbe0066b28d706ec7402fee73496d25a281e2c4c94cb8e86d3b1592b1ca7591ea0b6cb48617ed19c languageName: node linkType: hard @@ -40544,75 +40551,57 @@ __metadata: languageName: node linkType: hard -"typescript@npm:~5.3.3": - version: 5.3.3 - resolution: "typescript@npm:5.3.3" - bin: - tsc: bin/tsc - tsserver: bin/tsserver - checksum: 2007ccb6e51bbbf6fde0a78099efe04dc1c3dfbdff04ca3b6a8bc717991862b39fd6126c0c3ebf2d2d98ac5e960bcaa873826bb2bb241f14277034148f41f6a2 - languageName: node - linkType: hard - -"typescript@npm:~5.4.5": - version: 5.4.5 - resolution: "typescript@npm:5.4.5" - bin: - tsc: bin/tsc - tsserver: bin/tsserver - checksum: 53c879c6fa1e3bcb194b274d4501ba1985894b2c2692fa079db03c5a5a7140587a1e04e1ba03184605d35f439b40192d9e138eb3279ca8eee313c081c8bcd9b0 - languageName: node - linkType: hard - -"typescript@patch:typescript@~5.3.3#~builtin": - version: 5.3.3 - resolution: "typescript@patch:typescript@npm%3A5.3.3#~builtin::version=5.3.3&hash=85af82" +"typescript@npm:~5.5.4": + version: 5.5.4 + resolution: "typescript@npm:5.5.4" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: f61375590b3162599f0f0d5b8737877ac0a7bc52761dbb585d67e7b8753a3a4c42d9a554c4cc929f591ffcf3a2b0602f65ae3ce74714fd5652623a816862b610 + checksum: b309040f3a1cd91c68a5a58af6b9fdd4e849b8c42d837b2c2e73f9a4f96a98c4f1ed398a9aab576ee0a4748f5690cf594e6b99dbe61de7839da748c41e6d6ca8 languageName: node linkType: hard -"typescript@patch:typescript@~5.4.5#~builtin": - version: 5.4.5 - resolution: "typescript@patch:typescript@npm%3A5.4.5#~builtin::version=5.4.5&hash=85af82" +"typescript@patch:typescript@~5.5.4#~builtin": + version: 5.5.4 + resolution: "typescript@patch:typescript@npm%3A5.5.4#~builtin::version=5.5.4&hash=85af82" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 2373c693f3b328f3b2387c3efafe6d257b057a142f9a79291854b14ff4d5367d3d730810aee981726b677ae0fd8329b23309da3b6aaab8263dbdccf1da07a3ba + checksum: fc52962f31a5bcb716d4213bef516885e4f01f30cea797a831205fc9ef12b405a40561c40eae3127ab85ba1548e7df49df2bcdee6b84a94bfbe3a0d7eff16b14 languageName: node linkType: hard -"typia@npm:5.3.3, typia@npm:^5.3.3": - version: 5.3.3 - resolution: "typia@npm:5.3.3" +"typia@npm:6.9.0": + version: 6.9.0 + resolution: "typia@npm:6.9.0" dependencies: + "@samchon/openapi": ^0.4.6 commander: ^10.0.0 comment-json: ^4.2.3 inquirer: ^8.2.5 randexp: ^0.5.3 peerDependencies: - typescript: ">=4.8.0 <5.4.0" + typescript: ">=4.8.0 <5.6.0" bin: typia: lib/executable/typia.js - checksum: 6e6c9f4c1382deda6ee91fb42f0adbfa57c5b73541a2e411474108d1deac9dd2f590fbbe48399c0357064a6298b5ab17324aa521195cf8e470057171ce868a64 + checksum: 1d5ab0d331ff29b84914f5c8c5655fe3b1d17fae45ac3a76d30690de8414e8c45a27c189662896730c3211a436373e8c2eb3fc55d2eeb6ac8d15a1f50218a2e9 languageName: node linkType: hard -"typia@patch:typia@npm%3A5.3.3#./.yarn/patches/typia-npm-5.3.3-21d3e18463.patch::locator=rocket.chat%40workspace%3A.": - version: 5.3.3 - resolution: "typia@patch:typia@npm%3A5.3.3#./.yarn/patches/typia-npm-5.3.3-21d3e18463.patch::version=5.3.3&hash=777cd5&locator=rocket.chat%40workspace%3A." +"typia@patch:typia@npm%3A6.9.0#./.yarn/patches/typia-npm-6.9.0-2fd4d85f25.patch::locator=rocket.chat%40workspace%3A.": + version: 6.9.0 + resolution: "typia@patch:typia@npm%3A6.9.0#./.yarn/patches/typia-npm-6.9.0-2fd4d85f25.patch::version=6.9.0&hash=71fcee&locator=rocket.chat%40workspace%3A." dependencies: + "@samchon/openapi": ^0.4.6 commander: ^10.0.0 comment-json: ^4.2.3 inquirer: ^8.2.5 randexp: ^0.5.3 peerDependencies: - typescript: ">=4.8.0 <5.4.0" + typescript: ">=4.8.0 <5.6.0" bin: typia: lib/executable/typia.js - checksum: 256a670f6d3265135090a493c9519cd97466444188766ce9f4e434d2bfe29ec88c3a4ac3ac39938921e116873694ac526136957cbed5710109525d4d0d2425da + checksum: d87f150a526959f92ac9bafe7ad88121e69a2807c7aeb01a625cb845e0614fb09c54bbdbd68d0c90bce37072c2da5e153daa2ccd1f5ff7ca92eca4b5edf9e8a9 languageName: node linkType: hard