@nestia/sdk 14.0.3 → 14.1.0

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ORGANIZATION/PROJECT-api",
3
- "version": "14.0.3",
3
+ "version": "14.1.0",
4
4
  "description": "SDK library generated by Nestia",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -18,7 +18,7 @@ export declare namespace SdkImportWizard {
18
18
  * @evidence contracts/common.md#meaningful-documentation The comment states what the declaration produces and its result.
19
19
  * @evidenceExclude contracts/portability.md#os-neutral-implementation SdkImportWizard.Fetcher composes SDK syntax, identifiers or import bindings; it does not resolve native file identity or launch a process. Source resolution and file emission belong to their filesystem owners.
20
20
  */
21
- const Fetcher: (encrypted: boolean) => (importer: ImportDictionary) => string;
21
+ const Fetcher: (encrypted: boolean) => typeof PlainFetcher;
22
22
  /**
23
23
  * Registers `HttpError` of `@nestia/fetcher`.
24
24
  *
@@ -70,3 +70,5 @@ export declare namespace SdkImportWizard {
70
70
  */
71
71
  const typia: (importer: ImportDictionary) => string;
72
72
  }
73
+ declare const PlainFetcher: (importer: ImportDictionary) => string;
74
+ export {};
package/native/go.mod CHANGED
@@ -1,6 +1,6 @@
1
1
  module github.com/samchon/nestia/packages/sdk/native
2
2
 
3
- go 1.26
3
+ go 1.27
4
4
 
5
5
  require (
6
6
  github.com/microsoft/typescript-go/shim/ast v0.0.0
@@ -9,7 +9,7 @@ require (
9
9
  github.com/microsoft/typescript-go/shim/scanner v0.0.0
10
10
  github.com/samchon/nestia/packages/core/native v0.0.0
11
11
  github.com/samchon/ttsc/packages/ttsc v0.0.0
12
- github.com/samchon/typia/packages/typia/native v0.0.0-20260926142025-755176823ba3
12
+ github.com/samchon/typia/packages/typia/native v0.0.0-20261023133454-6432cda78a43
13
13
  )
14
14
 
15
15
  require (
package/native/go.sum CHANGED
@@ -1,54 +1,64 @@
1
1
  github.com/go-json-experiment/json v0.0.0-20260214004413-d219187c3433 h1:vymEbVwYFP/L05h5TKQxvkXoKxNvTpjxYKdF1Nlwuao=
2
2
  github.com/go-json-experiment/json v0.0.0-20260214004413-d219187c3433/go.mod h1:tphK2c80bpPhMOI4v6bIc2xWywPfbqi1Z06+RcrMkDg=
3
+ github.com/go-json-experiment/json v0.0.0-20260623181947-01eb4420fa68 h1:KZaTBSyshWX3MP5jukJcNSuXDQTO+rNpt0J564dX/eg=
4
+ github.com/go-json-experiment/json v0.0.0-20260623181947-01eb4420fa68/go.mod h1:tphK2c80bpPhMOI4v6bIc2xWywPfbqi1Z06+RcrMkDg=
3
5
  github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
4
6
  github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
5
7
  github.com/klauspost/cpuid/v2 v2.2.10 h1:tBs3QSyvjDyFTq3uoc/9xFpCuOsJQFNPiAhYdw2skhE=
6
8
  github.com/klauspost/cpuid/v2 v2.2.10/go.mod h1:hqwkgyIinND0mEev00jJYCxPNVRVXFQeu1XKlok6oO0=
7
9
  github.com/microsoft/typescript-go v0.0.0-20260429010842-56ab4af42157 h1:llOMPhKDiQ+UEJiAaQuuWaJOTg5V7tNNTEf9JPWoYSY=
8
10
  github.com/microsoft/typescript-go v0.0.0-20260429010842-56ab4af42157/go.mod h1:m8YA0PMC7ti0GW0RI05D6fEcjQeu98XVS+FWF+VDW2k=
11
+ github.com/microsoft/typescript-go v0.0.0-20260708042240-2bd066d87f5b h1:IgfPOv9pzPZ1sbyRHOKu3UCvhaTS0IyrkTcs6JLPqhY=
12
+ github.com/microsoft/typescript-go v0.0.0-20260708042240-2bd066d87f5b/go.mod h1:gV4G6M8xxLNqQSRHiFOgKHlY+5YJgYPM6QwFLWllC+8=
9
13
  github.com/peter-evans/patience v0.3.0 h1:rX0JdJeepqdQl1Sk9c9uvorjYYzL2TfgLX1adqYm9cA=
10
14
  github.com/peter-evans/patience v0.3.0/go.mod h1:Kmxu5sY1NmBLFSStvXjX1wS9mIv7wMcP/ubucyMOAu0=
11
- github.com/samchon/ttsc/packages/ttsc v0.0.0-20260820075544-3fe6b732f888 h1:N4jvJNOiHPpelrsNowlY1ubn5tDIJ7VV9/uEYogFMqU=
12
- github.com/samchon/ttsc/packages/ttsc v0.0.0-20260820075544-3fe6b732f888/go.mod h1:mHD0o2ZFVv6wSNzKZi+ux6u0Wz34Kq33YrPj2tdSyU8=
13
- github.com/samchon/ttsc/packages/ttsc/shim/ast v0.0.0-20260820075544-3fe6b732f888 h1:9Gi+v6ZIJfs+vGuuVoZrPM0ZusY9aY9u3XwwlRBREc0=
14
- github.com/samchon/ttsc/packages/ttsc/shim/ast v0.0.0-20260820075544-3fe6b732f888/go.mod h1:BCVAEArtMC+X1laJmDwxlsRROIQIYvHeT7Dl0gNjT0A=
15
- github.com/samchon/ttsc/packages/ttsc/shim/bundled v0.0.0-20260820075544-3fe6b732f888 h1:wH6goeOwavAxUjlyOo7LqOkOr6PnoJSw4JBTPrZSFFM=
16
- github.com/samchon/ttsc/packages/ttsc/shim/bundled v0.0.0-20260820075544-3fe6b732f888/go.mod h1:0tz+Y8szXmEpXWHWVrLrv11ga1z6tQJQErkUyIWJ9RQ=
17
- github.com/samchon/ttsc/packages/ttsc/shim/checker v0.0.0-20260820075544-3fe6b732f888 h1:MzAA30HyHf8eLzEN3+vTohyAETv+lyx8p67ag6hSXyc=
18
- github.com/samchon/ttsc/packages/ttsc/shim/checker v0.0.0-20260820075544-3fe6b732f888/go.mod h1:lX+u4ZMEyydpdGXSRaOAi5gkP6VIl7WE+Ue7eokwMjM=
19
- github.com/samchon/ttsc/packages/ttsc/shim/compiler v0.0.0-20260820075544-3fe6b732f888 h1:RkUrnwWL67tR6CtKGz5Uv1unwlmYOmZOmh5mcnHpiyg=
20
- github.com/samchon/ttsc/packages/ttsc/shim/compiler v0.0.0-20260820075544-3fe6b732f888/go.mod h1:s12vcy3pf6RYDxXcyiK7448DiK+Ol9qx3cjiInd1uxw=
21
- github.com/samchon/ttsc/packages/ttsc/shim/core v0.0.0-20260820075544-3fe6b732f888 h1:oTcsePbFgh4VIRQlJSWs83uG6VwOXkvs1vt9PJHg/SY=
22
- github.com/samchon/ttsc/packages/ttsc/shim/core v0.0.0-20260820075544-3fe6b732f888/go.mod h1:DUewcVNEdXyDveQholE4GAsiqqA3C2+SJYqia3nCf00=
23
- github.com/samchon/ttsc/packages/ttsc/shim/diagnosticwriter v0.0.0-20260820075544-3fe6b732f888 h1:lfw9JjPoUilJPkP/2sWmHPPk7hupGjvVUS51jO9JVYM=
24
- github.com/samchon/ttsc/packages/ttsc/shim/diagnosticwriter v0.0.0-20260820075544-3fe6b732f888/go.mod h1:v86GtrD7qALo6Xkgz1MDomPMSV2D9NdniQWB5t8eY6k=
25
- github.com/samchon/ttsc/packages/ttsc/shim/parser v0.0.0-20260820075544-3fe6b732f888 h1:VfBPOZsU736NVxZncttHSSnTHg3wmGJciamo2WK/mXQ=
26
- github.com/samchon/ttsc/packages/ttsc/shim/parser v0.0.0-20260820075544-3fe6b732f888/go.mod h1:inUjC/bNlCkO0zIzHZRXlHR/WgLcK0vi2KLc7tpQ1ek=
27
- github.com/samchon/ttsc/packages/ttsc/shim/printer v0.0.0-20260820075544-3fe6b732f888 h1:rWSO7jtTdfmthgJvkQ3875LfrGL6kQM+eU4hakjT9zQ=
28
- github.com/samchon/ttsc/packages/ttsc/shim/printer v0.0.0-20260820075544-3fe6b732f888/go.mod h1:Hz8BbCqKCrykLfIX+PburWsGEKR8+bkrBJDe2TMLLS0=
29
- github.com/samchon/ttsc/packages/ttsc/shim/scanner v0.0.0-20260820075544-3fe6b732f888 h1:PWwuDTnPxbj0tVl0B7/wDoZHgysUqnyQMsoKwJ1D6Q4=
30
- github.com/samchon/ttsc/packages/ttsc/shim/scanner v0.0.0-20260820075544-3fe6b732f888/go.mod h1:abIC7C28cUA5IQKmLJulsl2qOvmimhkMNOfjJhRm5jM=
31
- github.com/samchon/ttsc/packages/ttsc/shim/tsoptions v0.0.0-20260820075544-3fe6b732f888 h1:lz0eJbiPb4e0DnWNfZRIW2+FEtEdkStClUCEko481s8=
32
- github.com/samchon/ttsc/packages/ttsc/shim/tsoptions v0.0.0-20260820075544-3fe6b732f888/go.mod h1:EQwrCr3nY0U1SZBNyp6cQSogAiXsjFxTuT8NlMit1lc=
33
- github.com/samchon/ttsc/packages/ttsc/shim/tspath v0.0.0-20260820075544-3fe6b732f888 h1:gx0BaA7+aiZH8gadWxlUc1rJ0uFS9lyP2FIDPMTcxD0=
34
- github.com/samchon/ttsc/packages/ttsc/shim/tspath v0.0.0-20260820075544-3fe6b732f888/go.mod h1:hsE2c1bZquSNlDLIkT3SfLH3MrDmMk1BLzWI/KomT1A=
35
- github.com/samchon/ttsc/packages/ttsc/shim/vfs v0.0.0-20260820075544-3fe6b732f888 h1:hluGlN8yDeNO9fOn3nmPuEpnrQ7HLqb+kZITTwlc2jc=
36
- github.com/samchon/ttsc/packages/ttsc/shim/vfs v0.0.0-20260820075544-3fe6b732f888/go.mod h1:HoQcoC0FEG3iMI6zvjg8r6j/ves+RVH6SRn48VSi5H0=
37
- github.com/samchon/ttsc/packages/ttsc/shim/vfs/cachedvfs v0.0.0-20260820075544-3fe6b732f888 h1:rFmIUXTH4TVyii/qidmmHDRtwYwORquRd83WUoUkdmk=
38
- github.com/samchon/ttsc/packages/ttsc/shim/vfs/cachedvfs v0.0.0-20260820075544-3fe6b732f888/go.mod h1:XS3LhXkn5xadyRe3tW+9+suW/7gh7dPdL43Q+s/lUDo=
39
- github.com/samchon/ttsc/packages/ttsc/shim/vfs/osvfs v0.0.0-20260820075544-3fe6b732f888 h1:ihiKD2OhuYc7Dngxw3uFYbVoiA/xuPwwQoUakB59E40=
40
- github.com/samchon/ttsc/packages/ttsc/shim/vfs/osvfs v0.0.0-20260820075544-3fe6b732f888/go.mod h1:otX+qw8aZLNCoBmCwMAn53Nw0RQTPzSoId3DxmE67So=
41
- github.com/samchon/typia/packages/typia/native v0.0.0-20260926142025-755176823ba3 h1:XtRIf6wvDuSHLsphMXiB3lm6p0/2sxHMfc6FMjI5LLA=
42
- github.com/samchon/typia/packages/typia/native v0.0.0-20260926142025-755176823ba3/go.mod h1:pUTSG5IZxw8Hohle//RsDXnE+8ZhAus7mPDKFqzvZnk=
15
+ github.com/samchon/ttsc/packages/ttsc v0.0.0-20261022210737-6c732c27442a h1:s1Ymwc9dlinhcDz1+7g0/eVwSdDvzQLhWYxyt7+vkA0=
16
+ github.com/samchon/ttsc/packages/ttsc v0.0.0-20261022210737-6c732c27442a/go.mod h1:a1grzQVVywGwOJxeJls3I0AlbD2+/GJh7s4ErLX+TnU=
17
+ github.com/samchon/ttsc/packages/ttsc/shim/ast v0.0.0-20261022210737-6c732c27442a h1:HDkTyoPaCkbgdMfVh9yUo+bkABtsxYHLpSUrOXDmm0U=
18
+ github.com/samchon/ttsc/packages/ttsc/shim/ast v0.0.0-20261022210737-6c732c27442a/go.mod h1:dPTnnu8/P6Mhj/VI4+OdGMwH2AgHE1Q+Dqf0Pl9fKHc=
19
+ github.com/samchon/ttsc/packages/ttsc/shim/bundled v0.0.0-20261022210737-6c732c27442a h1:Kf4qC6YQ49dbVQQ6qbweD7uKxDHN5mdkz3gYmcM5WRs=
20
+ github.com/samchon/ttsc/packages/ttsc/shim/bundled v0.0.0-20261022210737-6c732c27442a/go.mod h1:j936pzYoZDEktNKssLpJ90gInf/td/OuMToWfk8BWwY=
21
+ github.com/samchon/ttsc/packages/ttsc/shim/checker v0.0.0-20261022210737-6c732c27442a h1:s/fFCzWgLY/0JqITEHmIDkPL0dVedSA7dzf3bVd6hfY=
22
+ github.com/samchon/ttsc/packages/ttsc/shim/checker v0.0.0-20261022210737-6c732c27442a/go.mod h1:CTy32RVSxc+WUf2WYwtlx4X+S7diqHM0gZw3XJd+1oc=
23
+ github.com/samchon/ttsc/packages/ttsc/shim/compiler v0.0.0-20261022210737-6c732c27442a h1:gRcSHxUJkLoY8wymY0iryrBTHMSJev/BMH1b4mnUw+k=
24
+ github.com/samchon/ttsc/packages/ttsc/shim/compiler v0.0.0-20261022210737-6c732c27442a/go.mod h1:YIxaboLIEEn1+kkiXP8j0p/cJaGlr+u5kQ7wbq+tvfs=
25
+ github.com/samchon/ttsc/packages/ttsc/shim/core v0.0.0-20261022210737-6c732c27442a h1:eTAeQ1EPEziG1goUacn+lJ6+bZZ/XC6uiADPNLkLMnA=
26
+ github.com/samchon/ttsc/packages/ttsc/shim/core v0.0.0-20261022210737-6c732c27442a/go.mod h1:/a0R6/hJ3z4RNGw9ErdltbqarOfEVH0qh/Rw3H1bHvE=
27
+ github.com/samchon/ttsc/packages/ttsc/shim/diagnosticwriter v0.0.0-20261022210737-6c732c27442a h1:zRl/vPKbtOK/G4Ky3KGa00mYHefeX9bdR9SAMetNbkM=
28
+ github.com/samchon/ttsc/packages/ttsc/shim/diagnosticwriter v0.0.0-20261022210737-6c732c27442a/go.mod h1:YEmozuZcYwQG5hlQvrVjO0caudRTVQmkWIYApAGyu1k=
29
+ github.com/samchon/ttsc/packages/ttsc/shim/parser v0.0.0-20261022210737-6c732c27442a h1:TQivd3E1NwUKu4BuJ4VKhgkluUyBotGqBXLBmAMIxnA=
30
+ github.com/samchon/ttsc/packages/ttsc/shim/parser v0.0.0-20261022210737-6c732c27442a/go.mod h1:PF1exhetyHPY/jm1XJqYbPLVApr27DSnKJG4/5ITVok=
31
+ github.com/samchon/ttsc/packages/ttsc/shim/printer v0.0.0-20261022210737-6c732c27442a h1:JiRHN+/9x0RHSeyt/MtkUUsZfpg7K0KAUpaHPYiYDqg=
32
+ github.com/samchon/ttsc/packages/ttsc/shim/printer v0.0.0-20261022210737-6c732c27442a/go.mod h1:+3u7YXcr9py6RuGEAuCF8q8I+5/s+6cVrhdbtmKFPoQ=
33
+ github.com/samchon/ttsc/packages/ttsc/shim/scanner v0.0.0-20261022210737-6c732c27442a h1:+FBxEvaoP8yd8/Y5fklYkw36D0xVN0ZJVLqpaV3Mkb8=
34
+ github.com/samchon/ttsc/packages/ttsc/shim/scanner v0.0.0-20261022210737-6c732c27442a/go.mod h1:ENkHgpU4FSWsyFbeKs7zzD24dcafXLrFG/ibpLJcUnM=
35
+ github.com/samchon/ttsc/packages/ttsc/shim/tsoptions v0.0.0-20261022210737-6c732c27442a h1:J1lnIxajRDLbBRJvYR0CFUVPVzLOnr7im66ZAnrAll8=
36
+ github.com/samchon/ttsc/packages/ttsc/shim/tsoptions v0.0.0-20261022210737-6c732c27442a/go.mod h1:ZfhcSNZMwjb/VCFBkvcWA67cahSTsJWirU6QPvHmaVI=
37
+ github.com/samchon/ttsc/packages/ttsc/shim/tspath v0.0.0-20261022210737-6c732c27442a h1:A2GUJXOsbu16pzTx2ruQBwtf7anNeDjTp6Qy6GQmHa4=
38
+ github.com/samchon/ttsc/packages/ttsc/shim/tspath v0.0.0-20261022210737-6c732c27442a/go.mod h1:uMUjLdUXMzynxNRrImYxZ39p2507Xr5PJXkcsjmHDLg=
39
+ github.com/samchon/ttsc/packages/ttsc/shim/vfs v0.0.0-20261022210737-6c732c27442a h1:H2XgDZhpN9GKVBbGaMVRqKW8zEMqGXH1L6yi9MoVJb0=
40
+ github.com/samchon/ttsc/packages/ttsc/shim/vfs v0.0.0-20261022210737-6c732c27442a/go.mod h1:Gb6lZS1XGze5Y0VdFUBExOfLIb97VFJZMu2j4WYBMDY=
41
+ github.com/samchon/ttsc/packages/ttsc/shim/vfs/cachedvfs v0.0.0-20261022210737-6c732c27442a h1:p+Tq5JCS40zL0O64L1J6Glml/t6Amldd/MyF6FQSOa4=
42
+ github.com/samchon/ttsc/packages/ttsc/shim/vfs/cachedvfs v0.0.0-20261022210737-6c732c27442a/go.mod h1:DaCDdbH+CHIFe/q892vC4j3mZRUStrIusZ+GYvKlyt8=
43
+ github.com/samchon/ttsc/packages/ttsc/shim/vfs/osvfs v0.0.0-20261022210737-6c732c27442a h1:8nE4S9Us6IjW5enNNfS87Y0sv3hsJumG2aBxP2z66Cw=
44
+ github.com/samchon/ttsc/packages/ttsc/shim/vfs/osvfs v0.0.0-20261022210737-6c732c27442a/go.mod h1:+yDn4SWLNFqwazlFuoW6/Q68j17MZSoUBvRDvFzwKSk=
45
+ github.com/samchon/typia/packages/typia/native v0.0.0-20261023133454-6432cda78a43 h1:qqOqlBpRP8pNvdrU5Jx4o7/Jq8jJpAAELExhaNOPBNo=
46
+ github.com/samchon/typia/packages/typia/native v0.0.0-20261023133454-6432cda78a43/go.mod h1:wpHKKDEHhiK4yKFbNhq0KYmaSkzU4SIxGjFxqydWp8U=
43
47
  github.com/zeebo/assert v1.3.0 h1:g7C04CbJuIDKNPFHmsk4hwZDO5O+kntRxzaUoNXj+IQ=
44
48
  github.com/zeebo/assert v1.3.0/go.mod h1:Pq9JiuJQpG8JLJdtkwrJESF0Foym2/D9XMU5ciN/wJ0=
45
49
  github.com/zeebo/xxh3 v1.1.0 h1:s7DLGDK45Dyfg7++yxI0khrfwq9661w9EN78eP/UZVs=
46
50
  github.com/zeebo/xxh3 v1.1.0/go.mod h1:IisAie1LELR4xhVinxWS5+zf1lA4p0MW4T+w+W07F5s=
47
51
  golang.org/x/sync v0.20.0 h1:e0PTpb7pjO8GAtTs2dQ6jYa5BWYlMuX047Dco/pItO4=
48
52
  golang.org/x/sync v0.20.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0=
53
+ golang.org/x/sync v0.21.0 h1:HLII4xRRTtCRkxYp4HNFF0Js/Og6q2i++KXbg0gHCwM=
54
+ golang.org/x/sync v0.21.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0=
49
55
  golang.org/x/sys v0.43.0 h1:Rlag2XtaFTxp19wS8MXlJwTvoh8ArU6ezoyFsMyCTNI=
50
56
  golang.org/x/sys v0.43.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
57
+ golang.org/x/sys v0.46.0 h1:noSf2Fq6F8DBgS+LysIkx7rIExoNHJsxOAtPp4rthXw=
58
+ golang.org/x/sys v0.46.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
51
59
  golang.org/x/text v0.36.0 h1:JfKh3XmcRPqZPKevfXVpI1wXPTqbkE5f7JA92a55Yxg=
52
60
  golang.org/x/text v0.36.0/go.mod h1:NIdBknypM8iqVmPiuco0Dh6P5Jcdk8lJL0CUebqK164=
61
+ golang.org/x/text v0.38.0 h1:sXmwo9DwP3OK9EZ7PqAdaooSGozfl/3a6/xJcbzPRhE=
62
+ golang.org/x/text v0.38.0/go.mod h1:YXZt3QhHUKYT53r2lLKFIVi6Ao1jdzrTR/KQ09qyxF4=
53
63
  gotest.tools/v3 v3.5.2 h1:7koQfIKdy+I8UTetycgUqXWSDwpgv193Ka+qRsmBY8Q=
54
64
  gotest.tools/v3 v3.5.2/go.mod h1:LtdLGcnqToBH83WByAAi/wiwSFCArdFIUV/xxN4pcjA=
@@ -115,7 +115,7 @@ func EmitTransform(prog *driver.Program) (driver.PluginTransform, []transform.Di
115
115
  if sf == nil {
116
116
  return sf
117
117
  }
118
- fileSites := byFile[filepath.ToSlash(sf.FileName())]
118
+ fileSites := byFile[filepath.ToSlash(string(sf.FileName()))]
119
119
  if len(fileSites) == 0 {
120
120
  return sf
121
121
  }
@@ -9,7 +9,6 @@ import (
9
9
  "path/filepath"
10
10
  "reflect"
11
11
  "sort"
12
- "strconv"
13
12
  "strings"
14
13
 
15
14
  shimast "github.com/microsoft/typescript-go/shim/ast"
@@ -24,6 +23,7 @@ import (
24
23
  nativeiterate "github.com/samchon/typia/packages/typia/native/core/programmers/iterate"
25
24
  nativejson "github.com/samchon/typia/packages/typia/native/core/programmers/json"
26
25
  schemametadata "github.com/samchon/typia/packages/typia/native/core/schemas/metadata"
26
+ nativeutils "github.com/samchon/typia/packages/typia/native/core/utils"
27
27
  )
28
28
 
29
29
  type nestiaSDKSite struct {
@@ -72,7 +72,7 @@ func (ctx *nestiaSDKContext) imports(file *shimast.SourceFile) []nestiaSDKImport
72
72
  if file == nil {
73
73
  return nil
74
74
  }
75
- name := filepath.ToSlash(file.FileName())
75
+ name := filepath.ToSlash(string(file.FileName()))
76
76
  if imports, ok := ctx.importsByFile[name]; ok {
77
77
  return imports
78
78
  }
@@ -124,7 +124,7 @@ func visitNestiaSDKNode(
124
124
  metadata, err := nestiaSDKMetadataText(context, file, node)
125
125
  site := nestiaSDKSite{
126
126
  File: file,
127
- FilePath: file.FileName(),
127
+ FilePath: string(file.FileName()),
128
128
  ClassName: className,
129
129
  MethodName: methodName,
130
130
  Method: node,
@@ -204,14 +204,12 @@ func nestiaSDKMetadataLiteralText(metadata map[string]any) (string, error) {
204
204
  // nestiaSDKFiniteLiteral copies a metadata value for encoding/json, writing
205
205
  // every non-finite number as null, the way JavaScript's `JSON.stringify` does.
206
206
  //
207
- // typia hands over NaN and positive or negative Infinity wherever a type or a comment spells one: a
208
- // numeric literal type such as `1e999`, a type tag argument such as
209
- // `tags.Minimum<1e999>`, and a JSDoc `@x-` extension whose text parses as
210
- // a float, which `NaN`, `Infinity`, and `inf` all do. encoding/json
211
- // refuses those values, so one of them anywhere in the types a route reaches
212
- // used to abort the whole metadata pass. The metadata is marshaled only here,
213
- // so walking it here gives every value, baked schema and metadata literal
214
- // alike, the same rule.
207
+ // typia can supply nonfinite numbers from numeric literal types such as
208
+ // `1e999` and type tag arguments such as `tags.Minimum<1e999>`. encoding/json
209
+ // refuses those values, so a single one used to abort the whole metadata pass.
210
+ // This serialization boundary handles baked schemas and metadata literals
211
+ // alike. JSDoc vendor extensions preserve nonfinite numeric text as strings
212
+ // before reaching this walk.
215
213
  //
216
214
  // The walk rebuilds maps, slices, and typia's ordered objects, whose
217
215
  // MarshalJSON would otherwise marshal a non-finite member itself. A null is
@@ -670,7 +668,7 @@ func nestiaSDKAnalyzeImports(file *shimast.SourceFile) []nestiaSDKImportInfo {
670
668
  continue
671
669
  }
672
670
  info := nestiaSDKImportInfo{
673
- File: nestiaSDKNormalizeImportPath(file.FileName(), decl.ModuleSpecifier.Text()),
671
+ File: nestiaSDKNormalizeImportPath(string(file.FileName()), decl.ModuleSpecifier.Text()),
674
672
  Elements: []nestiaSDKImportElement{},
675
673
  }
676
674
  if name := clause.Name(); name != nil {
@@ -740,7 +738,7 @@ func nestiaSDKReflectImports(prog *driver.Program, node *shimast.Node, imports [
740
738
  }
741
739
  if prog != nil && prog.Checker != nil {
742
740
  symbol := prog.Checker.GetSymbolAtLocation(root)
743
- if symbol != nil && symbol.Flags&shimast.SymbolFlagsAlias != 0 {
741
+ if symbol != nil && shimast.SymbolFlagsOf(symbol)&shimast.SymbolFlagsAlias != 0 {
744
742
  prefixes := map[string]bool{prefix: true}
745
743
  for _, imp := range imports {
746
744
  if nestiaSDKImportMatches(prefixes, imp) {
@@ -1050,8 +1048,9 @@ func nestiaSDKPropertySchemas(
1050
1048
 
1051
1049
  // nestiaSDKJsDocExtensions writes a property's `x-` JSDoc tags into its schema
1052
1050
  // the way typia's object writer does (`json_schema_jsDocTags`, unexported):
1053
- // the first text part, trimmed, read as a boolean, a number, null, or else a
1054
- // string.
1051
+ // the first text part, trimmed, read as a boolean, a finite JavaScript number,
1052
+ // null, or else a string. Nonfinite and Go-only numeric spellings remain text
1053
+ // in both component schemas and decomposed parameter schemas.
1055
1054
  func nestiaSDKJsDocExtensions(schema nativeiterate.JsonSchema, tags []schemametadata.IJsDocTagInfo) {
1056
1055
  for _, tag := range tags {
1057
1056
  if strings.HasPrefix(tag.Name, "x-") == false {
@@ -1064,8 +1063,8 @@ func nestiaSDKJsDocExtensions(schema nativeiterate.JsonSchema, tags []schemameta
1064
1063
  value := strings.ReplaceAll(strings.TrimSpace(text.Text), "\r\n", "\n")
1065
1064
  if value == "true" || value == "false" {
1066
1065
  schema[tag.Name] = value == "true"
1067
- } else if number, err := strconv.ParseFloat(value, 64); err == nil {
1068
- schema[tag.Name] = number
1066
+ } else if reading := nativeutils.NumberUtil.Read(value); reading.Numeric && reading.Finite {
1067
+ schema[tag.Name] = reading.Value
1069
1068
  } else if value == "null" {
1070
1069
  schema[tag.Name] = nil
1071
1070
  } else {
@@ -1558,15 +1557,15 @@ func nestiaSDKIsTypeGuardError(prog *driver.Program, typ *shimchecker.Type, type
1558
1557
  if symbol == nil {
1559
1558
  return false
1560
1559
  }
1561
- if symbol.Flags&shimast.SymbolFlagsAlias != 0 {
1560
+ if shimast.SymbolFlagsOf(symbol)&shimast.SymbolFlagsAlias != 0 {
1562
1561
  if aliased := shimchecker.Checker_getAliasedSymbol(prog.Checker, symbol); aliased != nil {
1563
1562
  symbol = aliased
1564
1563
  }
1565
1564
  }
1566
- if symbol.Name != "TypeGuardError" {
1565
+ if shimast.SymbolNameOf(symbol) != "TypeGuardError" {
1567
1566
  return false
1568
1567
  }
1569
- for _, declaration := range symbol.Declarations {
1568
+ for _, declaration := range shimast.SymbolDeclarationsOf(symbol) {
1570
1569
  source := shimast.GetSourceFileOfNode(declaration)
1571
1570
  if source == nil {
1572
1571
  continue
@@ -1783,7 +1782,7 @@ func nestiaSDKReflectAsyncAlias(
1783
1782
  if current == nil || current.Symbol() == nil {
1784
1783
  return false
1785
1784
  }
1786
- for _, declaration := range current.Symbol().Declarations {
1785
+ for _, declaration := range shimast.SymbolDeclarationsOf(current.Symbol()) {
1787
1786
  if declaration != nil && declaration.Name() != nil && transform.NestiaCoreIsAsyncReturnWrapperReference(prog, declaration.Name()) {
1788
1787
  return true
1789
1788
  }
@@ -1825,7 +1824,7 @@ func nestiaSDKReflectAsyncAlias(
1825
1824
  return
1826
1825
  }
1827
1826
  symbol := symbols[root]
1828
- if symbol == nil || symbol.Flags&shimast.SymbolFlagsTypeParameter != 0 {
1827
+ if symbol == nil || shimast.SymbolFlagsOf(symbol)&shimast.SymbolFlagsTypeParameter != 0 {
1829
1828
  return
1830
1829
  }
1831
1830
  prefixes := map[string]bool{root.Text(): true}
@@ -1839,11 +1838,11 @@ func nestiaSDKReflectAsyncAlias(
1839
1838
  if matched {
1840
1839
  return
1841
1840
  }
1842
- for _, declaration := range symbol.Declarations {
1841
+ for _, declaration := range shimast.SymbolDeclarationsOf(symbol) {
1843
1842
  source := shimast.GetSourceFileOfNode(declaration)
1844
1843
  if source != nil && (prog.TSProgram == nil || !prog.TSProgram.IsLibFile(source)) {
1845
1844
  refs = append(refs, map[string]any{
1846
- "file": filepath.ToSlash(source.FileName()), "asterisk": nestiaSDKLiteralNull,
1845
+ "file": filepath.ToSlash(string(source.FileName())), "asterisk": nestiaSDKLiteralNull,
1847
1846
  "default": nestiaSDKLiteralNull, "elements": []string{root.Text()},
1848
1847
  })
1849
1848
  return
@@ -1967,10 +1966,10 @@ func nestiaSDKReflectTypeReferenceSymbolImport(prog *driver.Program, node *shima
1967
1966
  symbol = typ.Symbol()
1968
1967
  }
1969
1968
  }
1970
- if symbol == nil || symbol.Flags&shimast.SymbolFlagsTypeParameter != 0 || len(symbol.Declarations) == 0 {
1969
+ if symbol == nil || shimast.SymbolFlagsOf(symbol)&shimast.SymbolFlagsTypeParameter != 0 || len(shimast.SymbolDeclarationsOf(symbol)) == 0 {
1971
1970
  return nil
1972
1971
  }
1973
- sourceFile := shimast.GetSourceFileOfNode(symbol.Declarations[0])
1972
+ sourceFile := shimast.GetSourceFileOfNode(shimast.SymbolDeclarationsOf(symbol)[0])
1974
1973
  if sourceFile == nil {
1975
1974
  return nil
1976
1975
  }
@@ -1978,7 +1977,7 @@ func nestiaSDKReflectTypeReferenceSymbolImport(prog *driver.Program, node *shima
1978
1977
  if prog.TSProgram != nil && prog.TSProgram.IsLibFile(sourceFile) {
1979
1978
  return nil
1980
1979
  }
1981
- file := filepath.ToSlash(sourceFile.FileName())
1980
+ file := filepath.ToSlash(string(sourceFile.FileName()))
1982
1981
  return []any{
1983
1982
  map[string]any{
1984
1983
  "file": file,
@@ -2278,11 +2277,11 @@ func nestiaSDKTypeParameterIndex(prog *driver.Program, parameters *shimast.NodeL
2278
2277
  return -1
2279
2278
  }
2280
2279
  symbol := prog.Checker.GetSymbolAtLocation(node.AsTypeReferenceNode().TypeName)
2281
- if symbol == nil || symbol.Flags&shimast.SymbolFlagsTypeParameter == 0 {
2280
+ if symbol == nil || shimast.SymbolFlagsOf(symbol)&shimast.SymbolFlagsTypeParameter == 0 {
2282
2281
  return -1
2283
2282
  }
2284
2283
  for index, parameter := range parameters.Nodes {
2285
- for _, declaration := range symbol.Declarations {
2284
+ for _, declaration := range shimast.SymbolDeclarationsOf(symbol) {
2286
2285
  if declaration == parameter {
2287
2286
  return index
2288
2287
  }
@@ -2299,8 +2298,8 @@ func nestiaSDKUsesAliasTypeParameter(prog *driver.Program, node *shimast.Node) b
2299
2298
  }
2300
2299
  if node.Kind == shimast.KindTypeReference {
2301
2300
  symbol := prog.Checker.GetSymbolAtLocation(node.AsTypeReferenceNode().TypeName)
2302
- if symbol != nil && symbol.Flags&shimast.SymbolFlagsTypeParameter != 0 {
2303
- for _, declaration := range symbol.Declarations {
2301
+ if symbol != nil && shimast.SymbolFlagsOf(symbol)&shimast.SymbolFlagsTypeParameter != 0 {
2302
+ for _, declaration := range shimast.SymbolDeclarationsOf(symbol) {
2304
2303
  if declaration != nil && declaration.Parent != nil && declaration.Parent.Kind == shimast.KindTypeAliasDeclaration {
2305
2304
  return true
2306
2305
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestia/sdk",
3
- "version": "14.0.3",
3
+ "version": "14.1.0",
4
4
  "description": "Nestia SDK and Swagger generator",
5
5
  "main": "lib/index.js",
6
6
  "bin": {
@@ -45,23 +45,23 @@
45
45
  },
46
46
  "homepage": "https://nestia.io",
47
47
  "dependencies": {
48
- "@ttsc/factory": "^0.28.1",
49
- "@typia/interface": "^15.0.0",
50
- "@typia/utils": "^15.0.0",
48
+ "@ttsc/factory": "^0.34.1",
49
+ "@typia/interface": "^15.2.0",
50
+ "@typia/utils": "^15.2.0",
51
51
  "get-function-location": "^2.0.0",
52
52
  "glob": "^11.0.3",
53
53
  "path-to-regexp": "^6.2.1",
54
54
  "prettier": "^3.8.1",
55
55
  "tgrid": "^1.2.1",
56
- "ttsc": "^0.28.1",
56
+ "ttsc": "^0.34.1",
57
57
  "tstl": "^3.0.0",
58
- "typia": "15.0.0",
58
+ "typia": "15.2.0",
59
59
  "@babel/parser": "^7.29.8",
60
- "@nestia/core": "^14.0.3",
61
- "@nestia/fetcher": "^14.0.3"
60
+ "@nestia/core": "^14.1.0",
61
+ "@nestia/fetcher": "^14.1.0"
62
62
  },
63
63
  "peerDependencies": {
64
- "@nestia/core": "^14.0.3"
64
+ "@nestia/core": "^14.1.0"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@modelcontextprotocol/sdk": "^1.18.0",
@@ -90,6 +90,7 @@
90
90
  "build": "rimraf lib && ttsc",
91
91
  "dev": "ttsc --watch",
92
92
  "test:go": "cd test && go test -count=1 ./...",
93
+ "test:go:7.1": "ttsx --no-plugins --tsconfig ../../config/tsconfig.json ../../config/testing/CompilerEnvironment.ts --package=sdk --typescript-7-1",
93
94
  "evidence": "evidence"
94
95
  },
95
96
  "types": "lib/index.d.ts"