Skip to content
Draft
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
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
"[mdx]": {
"editor.wordWrap": "on"
},
"js/ts.tsdk.path": "node_modules\\typescript\\lib",
Comment thread
samchon marked this conversation as resolved.
}
2 changes: 1 addition & 1 deletion benchmark/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@typia/benchmark",
"version": "12.0.1",
"version": "12.1.0-dev.20260325",
"description": "Benchmark program of typia performance",
"main": "bin/index.js",
"scripts": {
Expand Down
7 changes: 4 additions & 3 deletions benchmark/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,14 @@

/* Modules */
"module": "CommonJS", /* Specify what module code is generated. */
// "rootDir": "./", /* Specify the root folder within your source files. */
// "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
"rootDir": "./src", /* Specify the root folder within your source files. */
"moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
"ignoreDeprecations": "6.0",
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
// "typeRoots": [], /* Specify multiple folders that act like `./node_modules/@types`. */
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
"types": ["*"], /* Specify type package names to be included without being referenced in a source file. */
Comment thread
samchon marked this conversation as resolved.
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
// "resolveJsonModule": true, /* Enable importing .json files */
// "noResolve": true, /* Disallow `import`s, `require`s or `<reference>`s from expanding the number of files TypeScript should add to a project. */
Expand Down
2 changes: 1 addition & 1 deletion config/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@typia/config",
"version": "12.0.1",
"version": "12.1.0-dev.20260325",
"description": "Shared build configuration for typia packages",
"devDependencies": {
"@rollup/plugin-commonjs": "catalog:rollup",
Expand Down
3 changes: 2 additions & 1 deletion config/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@
"module": "commonjs" /* Specify what module code is generated. */,
// "rootDir": "./", /* Specify the root folder within your source files. */
"moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
"ignoreDeprecations": "6.0",
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
"types": ["*"], /* Specify type package names to be included without being referenced in a source file. */
Comment thread
samchon marked this conversation as resolved.
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
// "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
// "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
Expand Down
2 changes: 1 addition & 1 deletion examples/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@typia/examples",
"version": "12.0.1",
"version": "12.1.0-dev.20260325",
"description": "Example codes for typia website",
"scripts": {
"build": "rimraf bin && cross-env NODE_OPTIONS=\"--no-experimental-strip-types -r ts-node/register\" tsc && prettier --write bin/**/*.js",
Expand Down
4 changes: 2 additions & 2 deletions examples/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@

/* Modules */
"module": "esnext", /* Specify what module code is generated. */
// "rootDir": "./", /* Specify the root folder within your source files. */
"moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
"rootDir": "./src", /* Specify the root folder within your source files. */
// "moduleResolution": "node16", /* Specify how TypeScript looks up a file from a given module specifier. */
Comment thread
samchon marked this conversation as resolved.
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
Expand Down
3 changes: 2 additions & 1 deletion experiments/unplugin/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
"lib": ["esnext", "DOM"],
"module": "NodeNext",
"moduleResolution": "NodeNext",
"rootDir": "src",
"resolveJsonModule": true,
"types": ["vitest/globals"],
"types": ["*", "vitest/globals"],
Comment thread
samchon marked this conversation as resolved.
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@typia/station",
"version": "12.0.1",
"version": "12.1.0-dev.20260325",
"description": "Typia Station",
"scripts": {
"build": "pnpm --filter=./packages/* -r build",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@typia/core",
"version": "12.0.1",
"version": "12.1.0-dev.20260325",
"description": "Superfast runtime validators with only one line",
"main": "src/index.ts",
"exports": {
Expand Down
1 change: 1 addition & 0 deletions packages/core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "../../config/tsconfig.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib",
},
"include": ["src"],
Expand Down
2 changes: 1 addition & 1 deletion packages/interface/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@typia/interface",
"version": "12.0.1",
"version": "12.1.0-dev.20260325",
"description": "Superfast runtime validators with only one line",
"main": "src/index.ts",
"exports": {
Expand Down
1 change: 1 addition & 0 deletions packages/interface/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "../../config/tsconfig.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib",
},
"include": ["src"],
Expand Down
2 changes: 1 addition & 1 deletion packages/langchain/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@typia/langchain",
"version": "12.0.1",
"version": "12.1.0-dev.20260325",
"description": "LangChain.js integration for typia",
"main": "src/index.ts",
"exports": {
Expand Down
1 change: 1 addition & 0 deletions packages/langchain/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "../../config/tsconfig.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib"
},
"include": ["src"]
Expand Down
2 changes: 1 addition & 1 deletion packages/mcp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@typia/mcp",
"version": "12.0.1",
"version": "12.1.0-dev.20260325",
"description": "MCP (Model Context Protocol) integration for typia",
"main": "src/index.ts",
"exports": {
Expand Down
1 change: 1 addition & 0 deletions packages/mcp/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "../../config/tsconfig.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib",
},
"include": ["src"],
Expand Down
2 changes: 1 addition & 1 deletion packages/transform/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@typia/transform",
"version": "12.0.1",
"version": "12.1.0-dev.20260325",
"description": "Superfast runtime validators with only one line",
"main": "src/index.ts",
"exports": {
Expand Down
48 changes: 24 additions & 24 deletions packages/transform/src/FileTransformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,14 @@ export namespace FileTransformer {
if (!isTransformerError(exp)) throw exp;

// REPORT DIAGNOSTIC
const diagnostic = ts.createDiagnosticForNode(props.node, {
key: exp.code,
const diagnostic: ts.Diagnostic = {
file: props.node.getSourceFile(),
start: props.node.getStart(),
length: props.node.getWidth(),
messageText: exp.message,
category: ts.DiagnosticCategory.Error,
message: exp.message,
code: `(${exp.code})` as any,
});
};
props.context.extras.addDiagnostic(diagnostic);
return null;
}
Expand Down Expand Up @@ -118,26 +120,24 @@ const isTransformerError = (error: any): error is TransformerError =>

const checkJsDocParsingMode = new Singleton(
(context: ITypiaContext, file: ts.SourceFile) => {
if (
typeof file.jsDocParsingMode === "number" &&
file.jsDocParsingMode !== 0
) {
context.extras.addDiagnostic(
ts.createDiagnosticForNode(file, {
code: `(typia setup)` as any,
key: "jsDocParsingMode",
category: ts.DiagnosticCategory.Warning,
message: [
`Run "npx typia setup" or "npx typia patch" command again.`,
``,
`Since TypeScript v5.3 update, "tsc" no more parses JSDoc comments. Therefore, "typia" also cannot utilize those JSDoc comments too, and it damages on some features of "typia" like "comment tags" or "JSON schema" generator.`,
``,
`To solve this problem, run "npx typia setup" or "npx typia patch" command to hack the TypeScript compiler to revive the JSDoc parsing feature.`,
``,
` - reference: https://github.com/microsoft/TypeScript/pull/55739`,
].join("\n"),
}),
);
const jsDocParsingMode = (file as any).jsDocParsingMode;
if (typeof jsDocParsingMode === "number" && jsDocParsingMode !== 0) {
context.extras.addDiagnostic({
file,
start: 0,
length: 0,
messageText: [
`Run "npx typia setup" or "npx typia patch" command again.`,
``,
`Since TypeScript v5.3 update, "tsc" no more parses JSDoc comments. Therefore, "typia" also cannot utilize those JSDoc comments too, and it damages on some features of "typia" like "comment tags" or "JSON schema" generator.`,
``,
`To solve this problem, run "npx typia setup" or "npx typia patch" command to hack the TypeScript compiler to revive the JSDoc parsing feature.`,
``,
` - reference: https://github.com/microsoft/TypeScript/pull/55739`,
].join("\n"),
category: ts.DiagnosticCategory.Warning,
code: `(typia setup)` as any,
});
}
},
);
1 change: 1 addition & 0 deletions packages/transform/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "../../config/tsconfig.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib",
},
"include": ["src"],
Expand Down
5 changes: 3 additions & 2 deletions packages/typia/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "typia",
"version": "12.0.1",
"version": "12.1.0-dev.20260325",
"description": "Superfast runtime validators with only one line",
"main": "src/index.ts",
"exports": {
".": "./src/index.ts",
"./lib/transform": "./src/transform.ts",
"./lib/internal/*": "./src/internal/*.ts",
"./src/transform.ts": "./src/transform.ts",
"./package.json": "./package.json"
},
"bin": {
Expand Down Expand Up @@ -45,7 +46,7 @@
"randexp": "^0.5.3"
},
"peerDependencies": {
"typescript": ">=4.8.0 <5.10.0"
"typescript": ">=4.8.0 <7.0.0"
},
"devDependencies": {
"@rollup/plugin-commonjs": "catalog:rollup",
Expand Down
1 change: 1 addition & 0 deletions packages/typia/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "../../config/tsconfig.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib",
},
"include": ["src"],
Expand Down
2 changes: 1 addition & 1 deletion packages/unplugin/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@typia/unplugin",
"type": "module",
"version": "12.0.1",
"version": "12.1.0-dev.20260325",
"description": "unplugin for typia",
"author": "ryoppippi",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@typia/utils",
"version": "12.0.1",
"version": "12.1.0-dev.20260325",
"description": "Superfast runtime validators with only one line",
"main": "src/index.ts",
"exports": {
Expand Down
1 change: 1 addition & 0 deletions packages/utils/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "../../config/tsconfig.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib",
},
"include": ["src"],
Expand Down
2 changes: 1 addition & 1 deletion packages/vercel/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@typia/vercel",
"version": "12.0.1",
"version": "12.1.0-dev.20260325",
"description": "Vercel AI SDK integration for typia",
"main": "src/index.ts",
"exports": {
Expand Down
1 change: 1 addition & 0 deletions packages/vercel/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "../../config/tsconfig.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib",
},
"include": ["src"],
Expand Down
Loading
Loading