Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish v6.10 update with TS 6.2 adjusting #1270

Merged
merged 1 commit into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion benchmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@
"suppress-warnings": "^1.0.2",
"tstl": "^3.0.0",
"uuid": "^9.0.1",
"typia": "../typia-6.10.0-dev.20240910-2.tgz"
"typia": "../typia-6.10.0.tgz"
}
}
2 changes: 1 addition & 1 deletion debug/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"dependencies": {
"tstl": "^3.0.0",
"typia": "../typia-6.10.0.tgz",
"typia": "../typia-6.10.0-dev.20240910-2.tgz",
"uuid": "^10.0.0"
}
}
2 changes: 1 addition & 1 deletion errors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
"typescript": "^5.3.2"
},
"dependencies": {
"typia": "../typia-6.10.0-dev.20240910-2.tgz"
"typia": "../typia-6.10.0.tgz"
}
}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "typia",
"version": "6.10.0-dev.20240910-2",
"version": "6.10.0",
"description": "Superfast runtime validators with only one line",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand Down Expand Up @@ -75,7 +75,7 @@
"randexp": "^0.5.3"
},
"peerDependencies": {
"typescript": ">=4.8.0 <5.6.0"
"typescript": ">=4.8.0 <5.7.0"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^26.0.1",
Expand All @@ -93,7 +93,7 @@
"rollup": "^4.18.0",
"suppress-warnings": "^1.0.2",
"ts-node": "^10.9.2",
"typescript": "^5.5.4"
"typescript": "^5.6.2"
},
"stackblitz": {
"startCommand": "npm install && npm run test"
Expand Down
6 changes: 3 additions & 3 deletions packages/typescript-json/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "typescript-json",
"version": "6.10.0-dev.20240910-2",
"version": "6.10.0",
"description": "Superfast runtime validators with only one line",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand Down Expand Up @@ -63,10 +63,10 @@
},
"homepage": "https://typia.io",
"dependencies": {
"typia": "6.10.0-dev.20240910-2"
"typia": "6.10.0"
},
"peerDependencies": {
"typescript": ">=4.8.0 <5.6.0"
"typescript": ">=4.8.0 <5.7.0"
},
"stackblitz": {
"startCommand": "npm install && npm run test"
Expand Down
2 changes: 1 addition & 1 deletion src/executable/TypiaSetupWizard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export namespace TypiaSetupWizard {
const args: IArguments = await ArgumentParser.parse(pack)(inquiry);

// INSTALL TYPESCRIPT COMPILERS
pack.install({ dev: true, modulo: "typescript", version: "5.5.2" });
pack.install({ dev: true, modulo: "typescript", version: "^5.6.2" });
pack.install({ dev: true, modulo: "ts-patch", version: "latest" });
args.project ??= (() => {
const runner: string = pack.manager === "npm" ? "npx" : pack.manager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@ export const iterate_metadata_intersection =
arrays.size
? "array"
: atomics.size
? atomics.values().next().value
? atomics.values().next().value!
: constants.length
? constants[0]!.constants[0]!.type
: "string";
if (target === "array") {
const name: string = arrays.values().next().value;
const name: string = arrays.values().next().value!;
if (!meta.arrays.some((a) => a.type.name === name)) {
iterate_metadata_array(checker)(options)(collection)(errors)(
meta,
Expand Down
2 changes: 1 addition & 1 deletion test-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@
"typescript": "^5.4.5"
},
"dependencies": {
"typia": "../typia-6.10.0-dev.20240910-2.tgz"
"typia": "../typia-6.10.0.tgz"
}
}
4 changes: 2 additions & 2 deletions test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"rimraf": "^5.0.5",
"ts-node": "^10.9.2",
"ts-patch": "^3.2.1",
"typescript": "^5.5.4"
"typescript": "^5.6.2"
},
"dependencies": {
"cli": "^1.0.1",
Expand All @@ -52,6 +52,6 @@
"suppress-warnings": "^1.0.2",
"tstl": "^3.0.0",
"uuid": "^9.0.1",
"typia": "../typia-6.10.0-dev.20240910-2.tgz"
"typia": "../typia-6.10.0.tgz"
}
}
9 changes: 8 additions & 1 deletion test/src/helpers/TestValidator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,14 @@ const json_equal_to =
if (!(y instanceof Array)) container.push(accessor);
else array(accessor)(x)(y);
else if (x instanceof Object) object(accessor)(x)(y);
else if (x !== y) container.push(accessor);
else if (
x !== y &&
!(
typeof x === "string" &&
x.replaceAll("\r\n", "\n") === y.replaceAll("\r\n", "n")
)
)
container.push(accessor);
};
const array =
(accessor: string) =>
Expand Down
4 changes: 2 additions & 2 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
"react-dom": "^18.2.0",
"tgrid": "^1.0.3",
"tstl": "^3.0.0",
"typescript": "^5.5.4",
"typia": "^6.10.0-dev.20240910"
"typescript": "^5.6.2",
"typia": "^6.10.0"
},
"devDependencies": {
"@rspack/cli": "^1.0.0",
Expand Down