elysia 2.0.0-beta.2 → 2.0.0-beta.21
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/dist/adapter/bun/index.d.ts +18 -2
- package/dist/adapter/bun/index.js +467 -110
- package/dist/adapter/bun/index.mjs +467 -112
- package/dist/adapter/types.d.ts +2 -21
- package/dist/adapter/utils.d.ts +14 -3
- package/dist/adapter/utils.js +146 -87
- package/dist/adapter/utils.mjs +148 -90
- package/dist/adapter/web-standard/handler.d.ts +1 -1
- package/dist/adapter/web-standard/handler.js +47 -36
- package/dist/adapter/web-standard/handler.mjs +48 -37
- package/dist/adapter/web-standard/index.js +2 -30
- package/dist/adapter/web-standard/index.mjs +2 -30
- package/dist/adapter/web-standard/utils.js +5 -18
- package/dist/adapter/web-standard/utils.mjs +5 -18
- package/dist/base.d.ts +99 -67
- package/dist/base.js +678 -510
- package/dist/base.mjs +682 -514
- package/dist/compile/aot-capture.d.ts +2 -13
- package/dist/compile/aot-capture.js +26 -69
- package/dist/compile/aot-capture.mjs +28 -67
- package/dist/compile/aot-emit.d.ts +9 -7
- package/dist/compile/aot-emit.js +42 -19
- package/dist/compile/aot-emit.mjs +42 -20
- package/dist/compile/aot.d.ts +17 -19
- package/dist/compile/aot.js +41 -51
- package/dist/compile/aot.mjs +39 -49
- package/dist/compile/handler/descriptor.d.ts +9 -12
- package/dist/compile/handler/descriptor.js +19 -44
- package/dist/compile/handler/descriptor.mjs +20 -42
- package/dist/compile/handler/frozen-validator.d.ts +5 -10
- package/dist/compile/handler/frozen-validator.js +55 -105
- package/dist/compile/handler/frozen-validator.mjs +53 -105
- package/dist/compile/handler/index.d.ts +7 -5
- package/dist/compile/handler/index.js +270 -111
- package/dist/compile/handler/index.mjs +270 -113
- package/dist/compile/handler/jit.d.ts +19 -17
- package/dist/compile/handler/jit.js +222 -149
- package/dist/compile/handler/jit.mjs +224 -152
- package/dist/compile/handler/params.d.ts +1 -4
- package/dist/compile/handler/params.js +10 -5
- package/dist/compile/handler/params.mjs +14 -8
- package/dist/compile/handler/reconstruct.d.ts +2 -2
- package/dist/compile/handler/reconstruct.js +6 -4
- package/dist/compile/handler/reconstruct.mjs +6 -4
- package/dist/compile/handler/static-clone-resolver.d.ts +6 -0
- package/dist/compile/handler/static-clone-resolver.js +8 -0
- package/dist/compile/handler/static-clone-resolver.mjs +7 -0
- package/dist/compile/handler/utils.d.ts +22 -11
- package/dist/compile/handler/utils.js +159 -253
- package/dist/compile/handler/utils.mjs +155 -252
- package/dist/compile/jit-probe.d.ts +2 -2
- package/dist/compile/jit-probe.js +2 -3
- package/dist/compile/jit-probe.mjs +2 -3
- package/dist/compile/lexer.d.ts +7 -4
- package/dist/compile/lexer.js +268 -6
- package/dist/compile/lexer.mjs +268 -4
- package/dist/compile/utils.js +7 -4
- package/dist/compile/utils.mjs +7 -4
- package/dist/compiled.d.ts +0 -1
- package/dist/compiled.js +0 -1
- package/dist/compiled.mjs +0 -1
- package/dist/context.d.ts +14 -4
- package/dist/context.js +17 -32
- package/dist/context.mjs +19 -34
- package/dist/cookie/config.d.ts +7 -2
- package/dist/cookie/config.js +76 -16
- package/dist/cookie/config.mjs +77 -18
- package/dist/cookie/cookie.d.ts +1 -1
- package/dist/cookie/cookie.js +8 -10
- package/dist/cookie/cookie.mjs +8 -10
- package/dist/cookie/crypto.d.ts +8 -7
- package/dist/cookie/crypto.js +51 -40
- package/dist/cookie/crypto.mjs +51 -41
- package/dist/cookie/error.d.ts +1 -2
- package/dist/cookie/error.js +6 -4
- package/dist/cookie/error.mjs +6 -4
- package/dist/cookie/lib.js +7 -2
- package/dist/cookie/lib.mjs +7 -2
- package/dist/cookie/serialize.js +1 -1
- package/dist/cookie/serialize.mjs +1 -1
- package/dist/cookie/types.d.ts +10 -0
- package/dist/cookie/utils.d.ts +4 -8
- package/dist/cookie/utils.js +86 -52
- package/dist/cookie/utils.mjs +89 -54
- package/dist/error.d.ts +113 -103
- package/dist/error.js +181 -117
- package/dist/error.mjs +179 -118
- package/dist/generation.d.ts +2 -2
- package/dist/handler/error.d.ts +26 -15
- package/dist/handler/error.js +77 -96
- package/dist/handler/error.mjs +74 -97
- package/dist/handler/fetch.js +87 -108
- package/dist/handler/fetch.mjs +89 -110
- package/dist/handler/utils.d.ts +12 -6
- package/dist/handler/utils.js +84 -28
- package/dist/handler/utils.mjs +80 -28
- package/dist/index.d.ts +12 -12
- package/dist/index.js +2 -9
- package/dist/index.mjs +1 -1
- package/dist/memory.js +1 -1
- package/dist/memory.mjs +1 -1
- package/dist/package.js +1 -1
- package/dist/package.mjs +1 -1
- package/dist/plugin/aot/bun.d.ts +8 -1
- package/dist/plugin/aot/bun.js +16 -9
- package/dist/plugin/aot/bun.mjs +17 -10
- package/dist/plugin/aot/core.d.ts +52 -60
- package/dist/plugin/aot/core.js +208 -109
- package/dist/plugin/aot/core.mjs +205 -111
- package/dist/plugin/aot/esbuild.js +8 -5
- package/dist/plugin/aot/esbuild.mjs +9 -6
- package/dist/plugin/aot/hooks.d.ts +6 -17
- package/dist/plugin/aot/hooks.js +36 -14
- package/dist/plugin/aot/hooks.mjs +37 -16
- package/dist/plugin/aot/rspack-loader.d.ts +1 -5
- package/dist/plugin/aot/rspack-loader.js +1 -10
- package/dist/plugin/aot/rspack-loader.mjs +1 -10
- package/dist/plugin/aot/rspack.js +2 -5
- package/dist/plugin/aot/rspack.mjs +3 -6
- package/dist/plugin/aot/source.d.ts +6 -42
- package/dist/plugin/aot/source.js +71 -71
- package/dist/plugin/aot/source.mjs +72 -72
- package/dist/plugin/aot/treeshake.js +2 -6
- package/dist/plugin/aot/treeshake.mjs +2 -6
- package/dist/plugin/aot/unplugin.d.ts +1 -4
- package/dist/plugin/aot/unplugin.js +4 -13
- package/dist/plugin/aot/unplugin.mjs +4 -13
- package/dist/plugin/aot/vite.d.ts +2 -6
- package/dist/plugin/aot/worker.js +2 -2
- package/dist/plugin/aot/worker.mjs +2 -2
- package/dist/plugin/auto-head.js +1 -10
- package/dist/plugin/auto-head.mjs +1 -10
- package/dist/plugin/trace.d.ts +2 -1
- package/dist/route-table.d.ts +3 -0
- package/dist/route-table.js +16 -11
- package/dist/route-table.mjs +16 -11
- package/dist/schema-snapshot.d.ts +0 -4
- package/dist/schema-snapshot.js +32 -49
- package/dist/schema-snapshot.mjs +32 -49
- package/dist/sucrose.d.ts +6 -55
- package/dist/sucrose.js +103 -731
- package/dist/sucrose.mjs +102 -724
- package/dist/trace.d.ts +5 -8
- package/dist/trace.js +23 -134
- package/dist/trace.mjs +24 -135
- package/dist/type/bridge-live.d.ts +4 -2
- package/dist/type/bridge-live.js +6 -3
- package/dist/type/bridge-live.mjs +4 -2
- package/dist/type/bridge.d.ts +6 -4
- package/dist/type/bridge.js +17 -9
- package/dist/type/bridge.mjs +5 -3
- package/dist/type/coerce-plan.d.ts +5 -5
- package/dist/type/coerce-plan.js +41 -39
- package/dist/type/coerce-plan.mjs +43 -39
- package/dist/type/coerce.d.ts +3 -7
- package/dist/type/coerce.js +18 -75
- package/dist/type/coerce.mjs +19 -76
- package/dist/type/compat.d.ts +3 -0
- package/dist/type/compat.js +23 -14
- package/dist/type/compat.mjs +20 -10
- package/dist/type/elysia/array-buffer.d.ts +4 -1
- package/dist/type/elysia/array-buffer.js +17 -17
- package/dist/type/elysia/array-buffer.mjs +17 -17
- package/dist/type/elysia/array-string.js +2 -40
- package/dist/type/elysia/array-string.mjs +2 -39
- package/dist/type/elysia/array.js +5 -9
- package/dist/type/elysia/array.mjs +5 -9
- package/dist/type/elysia/boolean-string.js +2 -3
- package/dist/type/elysia/boolean-string.mjs +1 -1
- package/dist/type/elysia/boolean.js +3 -12
- package/dist/type/elysia/boolean.mjs +3 -11
- package/dist/type/elysia/cookie.d.ts +3 -4
- package/dist/type/elysia/cookie.js +5 -15
- package/dist/type/elysia/cookie.mjs +5 -15
- package/dist/type/elysia/date.js +13 -20
- package/dist/type/elysia/date.mjs +10 -16
- package/dist/type/elysia/file-type.d.ts +11 -4
- package/dist/type/elysia/file-type.js +17 -2
- package/dist/type/elysia/file-type.mjs +17 -3
- package/dist/type/elysia/file.d.ts +1 -3
- package/dist/type/elysia/file.js +11 -27
- package/dist/type/elysia/file.mjs +11 -12
- package/dist/type/elysia/files.js +7 -11
- package/dist/type/elysia/files.mjs +7 -10
- package/dist/type/elysia/form.js +2 -3
- package/dist/type/elysia/form.mjs +3 -3
- package/dist/type/elysia/integer-string.d.ts +1 -1
- package/dist/type/elysia/integer-string.js +4 -30
- package/dist/type/elysia/integer-string.mjs +5 -30
- package/dist/type/elysia/integer.js +3 -12
- package/dist/type/elysia/integer.mjs +3 -11
- package/dist/type/elysia/intersect.js +0 -5
- package/dist/type/elysia/intersect.mjs +0 -5
- package/dist/type/elysia/json-string.d.ts +7 -0
- package/dist/type/elysia/json-string.js +47 -0
- package/dist/type/elysia/json-string.mjs +46 -0
- package/dist/type/elysia/keep-config.d.ts +14 -0
- package/dist/type/elysia/keep-config.js +62 -0
- package/dist/type/elysia/keep-config.mjs +53 -0
- package/dist/type/elysia/maybe-empty.js +3 -4
- package/dist/type/elysia/maybe-empty.mjs +1 -1
- package/dist/type/elysia/nullable.js +2 -3
- package/dist/type/elysia/nullable.mjs +1 -1
- package/dist/type/elysia/number.d.ts +2 -1
- package/dist/type/elysia/number.js +19 -11
- package/dist/type/elysia/number.mjs +18 -10
- package/dist/type/elysia/numeric-enum.d.ts +1 -1
- package/dist/type/elysia/numeric-enum.js +4 -5
- package/dist/type/elysia/numeric-enum.mjs +3 -3
- package/dist/type/elysia/numeric.d.ts +4 -2
- package/dist/type/elysia/numeric.js +20 -17
- package/dist/type/elysia/numeric.mjs +19 -16
- package/dist/type/elysia/object-string.js +2 -37
- package/dist/type/elysia/object-string.mjs +2 -36
- package/dist/type/elysia/object.js +5 -9
- package/dist/type/elysia/object.mjs +5 -9
- package/dist/type/elysia/optional.js +8 -8
- package/dist/type/elysia/optional.mjs +7 -7
- package/dist/type/elysia/problem.d.ts +20 -0
- package/dist/type/elysia/problem.js +25 -0
- package/dist/type/elysia/problem.mjs +24 -0
- package/dist/type/elysia/string.js +4 -3
- package/dist/type/elysia/string.mjs +4 -2
- package/dist/type/elysia/uint8-array.d.ts +1 -1
- package/dist/type/elysia/uint8-array.js +5 -20
- package/dist/type/elysia/uint8-array.mjs +5 -19
- package/dist/type/elysia/union-enum.js +7 -8
- package/dist/type/elysia/union-enum.mjs +6 -6
- package/dist/type/elysia/union.js +0 -5
- package/dist/type/elysia/union.mjs +0 -5
- package/dist/type/elysia/utils.d.ts +2 -4
- package/dist/type/elysia/utils.js +10 -21
- package/dist/type/elysia/utils.mjs +7 -15
- package/dist/type/exports.d.ts +4 -2
- package/dist/type/exports.js +23 -2
- package/dist/type/exports.mjs +11 -2
- package/dist/type/index.d.ts +10 -2
- package/dist/type/index.js +62 -15
- package/dist/type/index.mjs +65 -11
- package/dist/type/shared.d.ts +3 -9
- package/dist/type/shared.js +44 -97
- package/dist/type/shared.mjs +43 -97
- package/dist/type/sync-require.d.ts +11 -0
- package/dist/type/sync-require.js +14 -0
- package/dist/type/sync-require.mjs +12 -0
- package/dist/type/typebox-system-lite.d.ts +2 -0
- package/dist/type/typebox-system-lite.js +34 -0
- package/dist/type/typebox-system-lite.mjs +3 -0
- package/dist/type/typebox-system-require.d.ts +7 -0
- package/dist/type/typebox-system-require.js +24 -0
- package/dist/type/typebox-system-require.mjs +23 -0
- package/dist/type/typebox-type-live.d.ts +11 -0
- package/dist/type/typebox-type-live.js +45 -0
- package/dist/type/typebox-type-live.mjs +20 -0
- package/dist/type/typebox-type.d.ts +34 -0
- package/dist/type/typebox-type.js +199 -0
- package/dist/type/typebox-type.mjs +86 -0
- package/dist/type/typebox-value-live.d.ts +11 -0
- package/dist/type/typebox-value-live.js +31 -0
- package/dist/type/typebox-value-live.mjs +13 -0
- package/dist/type/typebox-value-ops.d.ts +4 -0
- package/dist/type/typebox-value-ops.js +90 -0
- package/dist/type/typebox-value-ops.mjs +5 -0
- package/dist/type/typebox-value-require.d.ts +8 -0
- package/dist/type/typebox-value-require.js +28 -0
- package/dist/type/typebox-value-require.mjs +25 -0
- package/dist/type/typebox-value.d.ts +35 -0
- package/dist/type/typebox-value.js +161 -0
- package/dist/type/typebox-value.mjs +74 -0
- package/dist/type/utils.js +1 -10
- package/dist/type/utils.mjs +1 -10
- package/dist/type/validator/clean-safe.d.ts +2 -4
- package/dist/type/validator/clean-safe.js +15 -11
- package/dist/type/validator/clean-safe.mjs +16 -10
- package/dist/type/validator/custom-error.js +12 -16
- package/dist/type/validator/custom-error.mjs +11 -14
- package/dist/type/validator/default-precompute.d.ts +9 -1
- package/dist/type/validator/default-precompute.js +40 -77
- package/dist/type/validator/default-precompute.mjs +37 -74
- package/dist/type/validator/exact-mirror-live.d.ts +8 -0
- package/dist/type/validator/exact-mirror-live.js +22 -0
- package/dist/type/validator/exact-mirror-live.mjs +17 -0
- package/dist/type/validator/exact-mirror-require.d.ts +4 -0
- package/dist/type/validator/exact-mirror-require.js +11 -0
- package/dist/type/validator/exact-mirror-require.mjs +9 -0
- package/dist/type/validator/exact-mirror.js +8 -8
- package/dist/type/validator/exact-mirror.mjs +9 -8
- package/dist/type/validator/frozen-check.js +5 -6
- package/dist/type/validator/frozen-check.mjs +6 -7
- package/dist/type/validator/index.d.ts +1 -0
- package/dist/type/validator/index.js +169 -166
- package/dist/type/validator/index.mjs +162 -158
- package/dist/type/validator/string-codec-aot.d.ts +2 -1
- package/dist/type/validator/string-codec-aot.js +8 -2
- package/dist/type/validator/string-codec-aot.mjs +7 -2
- package/dist/type/validator/validator-cache.d.ts +5 -4
- package/dist/type/validator/validator-cache.js +41 -24
- package/dist/type/validator/validator-cache.mjs +40 -22
- package/dist/types.d.ts +263 -95
- package/dist/universal/constants.d.ts +2 -1
- package/dist/universal/constants.js +3 -1
- package/dist/universal/constants.mjs +2 -1
- package/dist/universal/env.js +2 -3
- package/dist/universal/env.mjs +2 -3
- package/dist/universal/file.d.ts +6 -4
- package/dist/universal/file.js +11 -16
- package/dist/universal/file.mjs +12 -16
- package/dist/universal/index.d.ts +2 -2
- package/dist/universal/is-production.d.ts +1 -2
- package/dist/universal/is-production.js +1 -3
- package/dist/universal/is-production.mjs +2 -3
- package/dist/universal/server.d.ts +0 -272
- package/dist/utils.d.ts +43 -7
- package/dist/utils.js +181 -126
- package/dist/utils.mjs +168 -126
- package/dist/validator/index.d.ts +1 -1
- package/dist/validator/index.js +17 -30
- package/dist/validator/index.mjs +18 -31
- package/dist/validator/route.js +2 -1
- package/dist/validator/route.mjs +2 -1
- package/dist/ws/context.d.ts +8 -1
- package/dist/ws/context.js +68 -44
- package/dist/ws/context.mjs +67 -44
- package/dist/ws/parser.js +10 -20
- package/dist/ws/parser.mjs +10 -20
- package/dist/ws/route.d.ts +2 -2
- package/dist/ws/route.js +249 -141
- package/dist/ws/route.mjs +254 -146
- package/dist/ws/types.d.ts +2 -2
- package/package.json +23 -49
- package/dist/compile/analysis-cache.d.ts +0 -6
- package/dist/compile/analysis-cache.js +0 -12
- package/dist/compile/analysis-cache.mjs +0 -11
- package/dist/cookie/index.d.ts +0 -7
- package/dist/cookie/index.js +0 -13
- package/dist/cookie/index.mjs +0 -7
- package/dist/handler/index.d.ts +0 -2
- package/dist/handler/index.js +0 -5
- package/dist/handler/index.mjs +0 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "elysia",
|
|
3
3
|
"description": "Ergonomic Framework for Human",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.21",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "saltyAom",
|
|
7
7
|
"url": "https://github.com/SaltyAom",
|
|
@@ -10,6 +10,9 @@
|
|
|
10
10
|
"main": "./dist/index.js",
|
|
11
11
|
"module": "./dist/index.mjs",
|
|
12
12
|
"types": "./dist/index.d.ts",
|
|
13
|
+
"engines": {
|
|
14
|
+
"node": ">=22.18"
|
|
15
|
+
},
|
|
13
16
|
"files": [
|
|
14
17
|
"dist"
|
|
15
18
|
],
|
|
@@ -40,10 +43,10 @@
|
|
|
40
43
|
"import": "./dist/adapter/web-standard/index.mjs",
|
|
41
44
|
"require": "./dist/adapter/web-standard/index.js"
|
|
42
45
|
},
|
|
43
|
-
"./adapter/
|
|
44
|
-
"types": "./dist/adapter/
|
|
45
|
-
"import": "./dist/adapter/
|
|
46
|
-
"require": "./dist/adapter/
|
|
46
|
+
"./adapter/response-ownership": {
|
|
47
|
+
"types": "./dist/adapter/response-ownership.d.ts",
|
|
48
|
+
"import": "./dist/adapter/response-ownership.mjs",
|
|
49
|
+
"require": "./dist/adapter/response-ownership.js"
|
|
47
50
|
},
|
|
48
51
|
"./base": {
|
|
49
52
|
"types": "./dist/base.d.ts",
|
|
@@ -75,11 +78,6 @@
|
|
|
75
78
|
"import": "./dist/context.mjs",
|
|
76
79
|
"require": "./dist/context.js"
|
|
77
80
|
},
|
|
78
|
-
"./cookies": {
|
|
79
|
-
"types": "./dist/cookie/index.d.ts",
|
|
80
|
-
"import": "./dist/cookie/index.mjs",
|
|
81
|
-
"require": "./dist/cookie/index.js"
|
|
82
|
-
},
|
|
83
81
|
"./error": {
|
|
84
82
|
"types": "./dist/error.d.ts",
|
|
85
83
|
"import": "./dist/error.mjs",
|
|
@@ -90,11 +88,6 @@
|
|
|
90
88
|
"import": "./dist/memory.mjs",
|
|
91
89
|
"require": "./dist/memory.js"
|
|
92
90
|
},
|
|
93
|
-
"./parse-query": {
|
|
94
|
-
"types": "./dist/parse-query.d.ts",
|
|
95
|
-
"import": "./dist/parse-query.mjs",
|
|
96
|
-
"require": "./dist/parse-query.js"
|
|
97
|
-
},
|
|
98
91
|
"./plugin/aot/bun": {
|
|
99
92
|
"types": "./dist/plugin/aot/bun.d.ts",
|
|
100
93
|
"import": "./dist/plugin/aot/bun.mjs",
|
|
@@ -125,11 +118,6 @@
|
|
|
125
118
|
"import": "./dist/plugin/auto-head.mjs",
|
|
126
119
|
"require": "./dist/plugin/auto-head.js"
|
|
127
120
|
},
|
|
128
|
-
"./sucrose": {
|
|
129
|
-
"types": "./dist/sucrose.d.ts",
|
|
130
|
-
"import": "./dist/sucrose.mjs",
|
|
131
|
-
"require": "./dist/sucrose.js"
|
|
132
|
-
},
|
|
133
121
|
"./trace": {
|
|
134
122
|
"types": "./dist/plugin/trace.d.ts",
|
|
135
123
|
"import": "./dist/plugin/trace.mjs",
|
|
@@ -140,16 +128,6 @@
|
|
|
140
128
|
"import": "./dist/type/exports.mjs",
|
|
141
129
|
"require": "./dist/type/exports.js"
|
|
142
130
|
},
|
|
143
|
-
"./type-system": {
|
|
144
|
-
"types": "./dist/type/index.d.ts",
|
|
145
|
-
"import": "./dist/type/index.mjs",
|
|
146
|
-
"require": "./dist/type/index.js"
|
|
147
|
-
},
|
|
148
|
-
"./type-system/utils": {
|
|
149
|
-
"types": "./dist/type/utils.d.ts",
|
|
150
|
-
"import": "./dist/type/utils.mjs",
|
|
151
|
-
"require": "./dist/type/utils.js"
|
|
152
|
-
},
|
|
153
131
|
"./type-system/types": {
|
|
154
132
|
"types": "./dist/type/types.d.ts",
|
|
155
133
|
"import": "./dist/type/types.mjs",
|
|
@@ -165,16 +143,6 @@
|
|
|
165
143
|
"import": "./dist/universal/index.mjs",
|
|
166
144
|
"require": "./dist/universal/index.js"
|
|
167
145
|
},
|
|
168
|
-
"./universal/server": {
|
|
169
|
-
"types": "./dist/universal/server.d.ts",
|
|
170
|
-
"import": "./dist/universal/server.mjs",
|
|
171
|
-
"require": "./dist/universal/server.js"
|
|
172
|
-
},
|
|
173
|
-
"./universal/env": {
|
|
174
|
-
"types": "./dist/universal/env.d.ts",
|
|
175
|
-
"import": "./dist/universal/env.mjs",
|
|
176
|
-
"require": "./dist/universal/env.js"
|
|
177
|
-
},
|
|
178
146
|
"./universal/file": {
|
|
179
147
|
"types": "./dist/universal/file.d.ts",
|
|
180
148
|
"import": "./dist/universal/file.mjs",
|
|
@@ -215,12 +183,14 @@
|
|
|
215
183
|
],
|
|
216
184
|
"license": "MIT",
|
|
217
185
|
"scripts": {
|
|
218
|
-
"test": "bun run test:functionality && bun run test:types && bun run test:node && bun run test:bundle",
|
|
219
|
-
"test:functionality": "bun run build && bun test test && bun run test:imports",
|
|
186
|
+
"test": "bun run test:functionality && bun run test:types && bun run test:node && bun run test:bundle && bun run test:type-perf",
|
|
187
|
+
"test:functionality": "bun run build && bun test ./test && bun run test:imports",
|
|
220
188
|
"test:imports": "bun run test/type-system/import.ts",
|
|
221
189
|
"test:types": "tsc --project tsconfig.test.json",
|
|
222
190
|
"test:node": "bun run build && npm install --prefix test/node/cjs && npm install --prefix test/node/esm/ && node test/node/cjs/index.js && node test/node/esm/index.js",
|
|
223
191
|
"test:bundle": "bun run test/bundle-size.ts",
|
|
192
|
+
"test:type-perf": "bun run test/type-perf.ts",
|
|
193
|
+
"lint": "eslint src",
|
|
224
194
|
"test:cf": "bun run build && npm install --prefix test/cloudflare && cd test/cloudflare && bun run cf-typegen && bun run test",
|
|
225
195
|
"bench": "bun run example/stress/run.ts",
|
|
226
196
|
"bench:quick": "bun run example/stress/run.ts --quick",
|
|
@@ -238,11 +208,15 @@
|
|
|
238
208
|
"./dist/type/exports.mjs",
|
|
239
209
|
"./dist/type/exports.js",
|
|
240
210
|
"./dist/type/bridge-live.mjs",
|
|
241
|
-
"./dist/type/bridge-live.js"
|
|
211
|
+
"./dist/type/bridge-live.js",
|
|
212
|
+
"./dist/type/typebox-value-live.mjs",
|
|
213
|
+
"./dist/type/typebox-value-live.js",
|
|
214
|
+
"./dist/type/typebox-type-live.mjs",
|
|
215
|
+
"./dist/type/typebox-type-live.js"
|
|
242
216
|
],
|
|
243
217
|
"dependencies": {
|
|
244
218
|
"deuri": "^3.0.0",
|
|
245
|
-
"memoirist": "1.2.
|
|
219
|
+
"memoirist": "1.2.2"
|
|
246
220
|
},
|
|
247
221
|
"devDependencies": {
|
|
248
222
|
"@eslint/eslintrc": "^3.3.5",
|
|
@@ -255,7 +229,7 @@
|
|
|
255
229
|
"esbuild": "0.25.4",
|
|
256
230
|
"eslint": "^9.24.0",
|
|
257
231
|
"eslint-plugin-sonarjs": "^4.0.2",
|
|
258
|
-
"exact-mirror": "^1.2.
|
|
232
|
+
"exact-mirror": "^1.2.6",
|
|
259
233
|
"expect-type": "^1.2.1",
|
|
260
234
|
"file-type": "^22.0.0",
|
|
261
235
|
"globals": "^17.4.0",
|
|
@@ -271,7 +245,7 @@
|
|
|
271
245
|
},
|
|
272
246
|
"peerDependencies": {
|
|
273
247
|
"@types/bun": ">= 1.3.0",
|
|
274
|
-
"exact-mirror": ">= 1.2.
|
|
248
|
+
"exact-mirror": ">= 1.2.6",
|
|
275
249
|
"openapi-types": ">= 12.0.0",
|
|
276
250
|
"typebox": ">= 1.3.0",
|
|
277
251
|
"typescript": ">= 5.7.0"
|
|
@@ -280,11 +254,11 @@
|
|
|
280
254
|
"@types/bun": {
|
|
281
255
|
"optional": true
|
|
282
256
|
},
|
|
283
|
-
"openapi-types": {
|
|
284
|
-
"optional": true
|
|
285
|
-
},
|
|
286
257
|
"typescript": {
|
|
287
258
|
"optional": true
|
|
288
259
|
}
|
|
260
|
+
},
|
|
261
|
+
"volta": {
|
|
262
|
+
"node": "24.21.0"
|
|
289
263
|
}
|
|
290
264
|
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_utils = require('../utils.js');
|
|
3
|
-
const require_compile_handler_index = require('./handler/index.js');
|
|
4
|
-
|
|
5
|
-
//#region src/compile/analysis-cache.ts
|
|
6
|
-
function clearAuthoringAnalysisCaches(root) {
|
|
7
|
-
require_compile_handler_index.clearHandlerAnalysisCaches(root);
|
|
8
|
-
require_utils.clearFlattenChainMemo(root);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
//#endregion
|
|
12
|
-
exports.clearAuthoringAnalysisCaches = clearAuthoringAnalysisCaches;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { clearFlattenChainMemo } from "../utils.mjs";
|
|
2
|
-
import { clearHandlerAnalysisCaches } from "./handler/index.mjs";
|
|
3
|
-
|
|
4
|
-
//#region src/compile/analysis-cache.ts
|
|
5
|
-
function clearAuthoringAnalysisCaches(root) {
|
|
6
|
-
clearHandlerAnalysisCaches(root);
|
|
7
|
-
clearFlattenChainMemo(root);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
//#endregion
|
|
11
|
-
export { clearAuthoringAnalysisCaches };
|
package/dist/cookie/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { BaseCookie, CookieOptions } from "./types.js";
|
|
2
|
-
import { Cookie } from "./cookie.js";
|
|
3
|
-
import { serializeCookie } from "./serialize.js";
|
|
4
|
-
import { signCookie, unsignCookie } from "./crypto.js";
|
|
5
|
-
import { parseCookie } from "./utils.js";
|
|
6
|
-
import { InvalidCookie } from "./error.js";
|
|
7
|
-
export { type BaseCookie, Cookie, type CookieOptions, InvalidCookie, parseCookie, serializeCookie, signCookie, unsignCookie };
|
package/dist/cookie/index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_cookie_error = require('./error.js');
|
|
3
|
-
const require_cookie_serialize = require('./serialize.js');
|
|
4
|
-
const require_cookie_crypto = require('./crypto.js');
|
|
5
|
-
const require_cookie_cookie = require('./cookie.js');
|
|
6
|
-
const require_cookie_utils = require('./utils.js');
|
|
7
|
-
|
|
8
|
-
exports.Cookie = require_cookie_cookie.Cookie;
|
|
9
|
-
exports.InvalidCookie = require_cookie_error.InvalidCookie;
|
|
10
|
-
exports.parseCookie = require_cookie_utils.parseCookie;
|
|
11
|
-
exports.serializeCookie = require_cookie_serialize.serializeCookie;
|
|
12
|
-
exports.signCookie = require_cookie_crypto.signCookie;
|
|
13
|
-
exports.unsignCookie = require_cookie_crypto.unsignCookie;
|
package/dist/cookie/index.mjs
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { InvalidCookie } from "./error.mjs";
|
|
2
|
-
import { serializeCookie } from "./serialize.mjs";
|
|
3
|
-
import { signCookie, unsignCookie } from "./crypto.mjs";
|
|
4
|
-
import { Cookie } from "./cookie.mjs";
|
|
5
|
-
import { parseCookie } from "./utils.mjs";
|
|
6
|
-
|
|
7
|
-
export { Cookie, InvalidCookie, parseCookie, serializeCookie, signCookie, unsignCookie };
|
package/dist/handler/index.d.ts
DELETED
package/dist/handler/index.js
DELETED
package/dist/handler/index.mjs
DELETED