zod-codegen 1.5.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## <small>1.5.1 (2026-01-05)</small>
|
|
2
|
+
|
|
3
|
+
- Merge pull request #52 from julienandreu/dependabot/npm_and_yarn/production-dependencies-3204786a64 ([c2fa562](https://github.com/julienandreu/zod-codegen/commit/c2fa562)), closes [#52](https://github.com/julienandreu/zod-codegen/issues/52)
|
|
4
|
+
- Merge pull request #53 from julienandreu/dependabot/npm_and_yarn/dev-dependencies-a389c980d8 ([408b886](https://github.com/julienandreu/zod-codegen/commit/408b886)), closes [#53](https://github.com/julienandreu/zod-codegen/issues/53)
|
|
5
|
+
- fix: remove useless default value in import-builder destructuring ([7bb9325](https://github.com/julienandreu/zod-codegen/commit/7bb9325))
|
|
6
|
+
- chore(deps-dev): bump the dev-dependencies group across 1 directory with 6 updates ([f869a2a](https://github.com/julienandreu/zod-codegen/commit/f869a2a))
|
|
7
|
+
- chore(deps): bump zod in the production-dependencies group ([a51b0f1](https://github.com/julienandreu/zod-codegen/commit/a51b0f1))
|
|
8
|
+
|
|
1
9
|
## 1.5.0 (2025-12-22)
|
|
2
10
|
|
|
3
11
|
- Merge pull request #44 from julienandreu/dependabot/github_actions/actions/upload-artifact-6 ([cebfd55](https://github.com/julienandreu/zod-codegen/commit/cebfd55)), closes [#44](https://github.com/julienandreu/zod-codegen/issues/44)
|
|
@@ -22,7 +22,7 @@ export class TypeScriptImportBuilderService {
|
|
|
22
22
|
const namedImportList = safeNameImports.success ? Object.entries(safeNameImports.data) : [];
|
|
23
23
|
// Create import specifiers for named imports
|
|
24
24
|
const namedImports = namedImportList.length > 0
|
|
25
|
-
? ts.factory.createNamedImports(namedImportList.map(([name, isTypeImport
|
|
25
|
+
? ts.factory.createNamedImports(namedImportList.map(([name, isTypeImport]) => {
|
|
26
26
|
return ts.factory.createImportSpecifier(isTypeImport, undefined, ts.factory.createIdentifier(name));
|
|
27
27
|
}))
|
|
28
28
|
: undefined;
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"typescript": "^5.9.3",
|
|
18
18
|
"url-pattern": "^1.0.3",
|
|
19
19
|
"yargs": "^18.0.0",
|
|
20
|
-
"zod": "^4.
|
|
20
|
+
"zod": "^4.3.5"
|
|
21
21
|
},
|
|
22
22
|
"description": "A powerful TypeScript code generator that creates Zod schemas and type-safe clients from OpenAPI specifications",
|
|
23
23
|
"keywords": [
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"validation"
|
|
33
33
|
],
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@commitlint/cli": "^20.
|
|
36
|
-
"@commitlint/config-conventional": "^20.
|
|
35
|
+
"@commitlint/cli": "^20.3.0",
|
|
36
|
+
"@commitlint/config-conventional": "^20.3.0",
|
|
37
37
|
"@eslint/js": "^9.39.2",
|
|
38
38
|
"@semantic-release/changelog": "^6.0.3",
|
|
39
39
|
"@semantic-release/git": "^10.0.1",
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
"@types/jest": "^30.0.0",
|
|
42
42
|
"@types/js-yaml": "^4.0.9",
|
|
43
43
|
"@types/jsonpath": "^0.2.4",
|
|
44
|
-
"@types/node": "^25.0.
|
|
44
|
+
"@types/node": "^25.0.3",
|
|
45
45
|
"@types/yargs": "^17.0.35",
|
|
46
|
-
"@vitest/coverage-v8": "^4.0.
|
|
46
|
+
"@vitest/coverage-v8": "^4.0.16",
|
|
47
47
|
"cross-env": "^10.1.0",
|
|
48
48
|
"eslint": "^9.39.2",
|
|
49
49
|
"eslint-config-prettier": "^10.1.8",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"lint-staged": "^16.2.7",
|
|
52
52
|
"semantic-release": "^25.0.2",
|
|
53
53
|
"ts-node": "^10.9.2",
|
|
54
|
-
"typescript-eslint": "^8.
|
|
54
|
+
"typescript-eslint": "^8.51.0",
|
|
55
55
|
"undici": "^7.16.0",
|
|
56
56
|
"vitest": "^4.0.14"
|
|
57
57
|
},
|
|
@@ -110,5 +110,5 @@
|
|
|
110
110
|
"release": "semantic-release",
|
|
111
111
|
"release:dry": "semantic-release --dry-run"
|
|
112
112
|
},
|
|
113
|
-
"version": "1.5.
|
|
113
|
+
"version": "1.5.1"
|
|
114
114
|
}
|
|
@@ -33,7 +33,7 @@ export class TypeScriptImportBuilderService implements ImportBuilder {
|
|
|
33
33
|
const namedImports =
|
|
34
34
|
namedImportList.length > 0
|
|
35
35
|
? ts.factory.createNamedImports(
|
|
36
|
-
namedImportList.map(([name, isTypeImport
|
|
36
|
+
namedImportList.map(([name, isTypeImport]) => {
|
|
37
37
|
return ts.factory.createImportSpecifier(isTypeImport, undefined, ts.factory.createIdentifier(name));
|
|
38
38
|
}),
|
|
39
39
|
)
|