@powerlines/deepkit 0.7.7 → 0.7.8

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.
Files changed (34) hide show
  1. package/dist/{packages/deepkit/schemas/reflection.mjs → capnp-BYEUkMpr.mjs} +1167 -259
  2. package/dist/{packages/deepkit/schemas/reflection.cjs → capnp-C8UENZHc.cjs} +1181 -4
  3. package/dist/capnp.cjs +46 -955
  4. package/dist/capnp.d.cts +1 -1
  5. package/dist/capnp.d.mts +1 -1
  6. package/dist/capnp.mjs +2 -911
  7. package/dist/{_virtual/_rolldown/runtime.cjs → chunk-BmvPcxpV.cjs} +12 -2
  8. package/dist/config-B6lMYoYG.d.mts +32 -0
  9. package/dist/config-C8svu6th.d.cts +32 -0
  10. package/dist/esbuild-plugin.cjs +1 -1
  11. package/dist/esbuild-plugin.d.cts +1 -1
  12. package/dist/esbuild-plugin.d.mts +1 -1
  13. package/dist/index.cjs +3 -2
  14. package/dist/index.mjs +3 -2
  15. package/dist/reflect-type.cjs +2 -2
  16. package/dist/{packages/deepkit/schemas/reflection.d.mts → reflection-DGOuMF8F.d.cts} +2 -2
  17. package/dist/{packages/deepkit/schemas/reflection.d.cts → reflection-DaLz4ZT5.d.mts} +2 -2
  18. package/dist/resolve-reflections.cjs +1 -1
  19. package/dist/rolldown-plugin.cjs +1 -1
  20. package/dist/transformer-BiefehPu.mjs +1360 -0
  21. package/dist/transformer-DS0zKU7l.cjs +1367 -0
  22. package/dist/transformer.cjs +3 -52
  23. package/dist/transformer.d.cts +1 -1
  24. package/dist/transformer.d.mts +1 -1
  25. package/dist/transformer.mjs +2 -50
  26. package/dist/transpile.cjs +3 -3
  27. package/dist/transpile.d.cts +1 -1
  28. package/dist/transpile.d.mts +1 -1
  29. package/dist/transpile.mjs +1 -1
  30. package/dist/types.d.cts +1 -1
  31. package/dist/types.d.mts +1 -1
  32. package/dist/utilities.cjs +1 -1
  33. package/package.json +2 -2
  34. package/dist/_virtual/_rolldown/runtime.mjs +0 -8
@@ -27,5 +27,15 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
27
27
 
28
28
  //#endregion
29
29
 
30
- exports.__commonJSMin = __commonJSMin;
31
- exports.__toESM = __toESM;
30
+ Object.defineProperty(exports, '__commonJSMin', {
31
+ enumerable: true,
32
+ get: function () {
33
+ return __commonJSMin;
34
+ }
35
+ });
36
+ Object.defineProperty(exports, '__toESM', {
37
+ enumerable: true,
38
+ get: function () {
39
+ return __toESM;
40
+ }
41
+ });
@@ -0,0 +1,32 @@
1
+ import ts from "typescript";
2
+
3
+ //#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=439aa6e683a9a48c3ebbf3529be5811680c45c22d6a265d_be73b50bc43bac944747b8ca0498113a/node_modules/@deepkit/type-compiler/dist/cjs/src/config.d.ts
4
+ /**
5
+ * Default means reflection is enabled for this file.
6
+ * Never means the whole reflection is disabled for this file.
7
+ * Explicit means that reflection is per default disabled for this file, but each symbol/type
8
+ * in it is allowed to enable it using jsdoc `@reflection`.
9
+ */
10
+ declare const reflectionModes: readonly ["default", "explicit", "never"];
11
+ type Mode = (typeof reflectionModes)[number];
12
+ declare const reflectionLevel: string[];
13
+ type Level = (typeof reflectionLevel)[number];
14
+ interface ReflectionConfig {
15
+ /**
16
+ * Allows to exclude type definitions/TS files from being included in the type compilation step.
17
+ * When a global .d.ts is matched, their types won't be embedded (useful to exclude DOM for example)
18
+ */
19
+ exclude?: string[];
20
+ /**
21
+ * Either a boolean indication general reflection mode,
22
+ * or a list of globs to match against.
23
+ */
24
+ reflection?: string[] | Mode;
25
+ /**
26
+ * Defines the level of reflection to be used during the transpilation process.
27
+ */
28
+ reflectionLevel?: Level;
29
+ }
30
+ //#endregion
31
+ export { Mode as n, ReflectionConfig as r, Level as t };
32
+ //# sourceMappingURL=config-B6lMYoYG.d.mts.map
@@ -0,0 +1,32 @@
1
+ import ts from "typescript";
2
+
3
+ //#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=439aa6e683a9a48c3ebbf3529be5811680c45c22d6a265d_be73b50bc43bac944747b8ca0498113a/node_modules/@deepkit/type-compiler/dist/cjs/src/config.d.ts
4
+ /**
5
+ * Default means reflection is enabled for this file.
6
+ * Never means the whole reflection is disabled for this file.
7
+ * Explicit means that reflection is per default disabled for this file, but each symbol/type
8
+ * in it is allowed to enable it using jsdoc `@reflection`.
9
+ */
10
+ declare const reflectionModes: readonly ["default", "explicit", "never"];
11
+ type Mode = (typeof reflectionModes)[number];
12
+ declare const reflectionLevel: string[];
13
+ type Level = (typeof reflectionLevel)[number];
14
+ interface ReflectionConfig {
15
+ /**
16
+ * Allows to exclude type definitions/TS files from being included in the type compilation step.
17
+ * When a global .d.ts is matched, their types won't be embedded (useful to exclude DOM for example)
18
+ */
19
+ exclude?: string[];
20
+ /**
21
+ * Either a boolean indication general reflection mode,
22
+ * or a list of globs to match against.
23
+ */
24
+ reflection?: string[] | Mode;
25
+ /**
26
+ * Defines the level of reflection to be used during the transpilation process.
27
+ */
28
+ reflectionLevel?: Level;
29
+ }
30
+ //#endregion
31
+ export { Mode as n, ReflectionConfig as r, Level as t };
32
+ //# sourceMappingURL=config-C8svu6th.d.cts.map
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
2
+ const require_chunk = require('./chunk-BmvPcxpV.cjs');
3
3
  const require_transpile = require('./transpile.cjs');
4
4
  let _stryke_type_checks = require("@stryke/type-checks");
5
5
  let _stryke_helpers_omit = require("@stryke/helpers/omit");
@@ -1,4 +1,4 @@
1
- import { Level, Mode } from "./node_modules/.pnpm/@deepkit_type-compiler@1.0.5_patch_hash_439aa6e683a9a48c3ebbf3529be5811680c45c22d6a265d_be73b50bc43bac944747b8ca0498113a/node_modules/@deepkit/type-compiler/dist/cjs/src/config.cjs";
1
+ import { n as Mode, t as Level } from "./config-C8svu6th.cjs";
2
2
  import { PluginContext } from "@powerlines/core";
3
3
  import { OnLoadOptions, Plugin } from "esbuild";
4
4
 
@@ -1,4 +1,4 @@
1
- import { Level, Mode } from "./node_modules/.pnpm/@deepkit_type-compiler@1.0.5_patch_hash_439aa6e683a9a48c3ebbf3529be5811680c45c22d6a265d_be73b50bc43bac944747b8ca0498113a/node_modules/@deepkit/type-compiler/dist/cjs/src/config.mjs";
1
+ import { n as Mode, t as Level } from "./config-B6lMYoYG.mjs";
2
2
  import { PluginContext } from "@powerlines/core";
3
3
  import { OnLoadOptions, Plugin } from "esbuild";
4
4
 
package/dist/index.cjs CHANGED
@@ -1,11 +1,12 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_capnp = require('./capnp.cjs');
3
- const require_transformer = require('./transformer.cjs');
2
+ const require_capnp = require('./capnp-C8UENZHc.cjs');
3
+ const require_transformer = require('./transformer-DS0zKU7l.cjs');
4
4
  const require_transpile = require('./transpile.cjs');
5
5
  const require_esbuild_plugin = require('./esbuild-plugin.cjs');
6
6
  const require_reflect_type = require('./reflect-type.cjs');
7
7
  const require_resolve_reflections = require('./resolve-reflections.cjs');
8
8
  const require_rolldown_plugin = require('./rolldown-plugin.cjs');
9
+ require('./types.cjs');
9
10
  const require_utilities = require('./utilities.cjs');
10
11
 
11
12
  exports.convertFromCapnp = require_capnp.convertFromCapnp;
package/dist/index.mjs CHANGED
@@ -1,10 +1,11 @@
1
- import { convertFromCapnp, convertFromCapnpArray, convertFromCapnpBase, convertFromCapnpClassType, convertFromCapnpDefault, convertFromCapnpEnum, convertFromCapnpFunction, convertFromCapnpIndexAccessOrigin, convertFromCapnpInfer, convertFromCapnpIntersection, convertFromCapnpLiteral, convertFromCapnpMethodSignature, convertFromCapnpObjectLiteral, convertFromCapnpOther, convertFromCapnpParameter, convertFromCapnpProperty, convertFromCapnpPropertySignature, convertFromCapnpSimple, convertFromCapnpTagsReflection, convertFromCapnpTuple, convertFromCapnpTupleMember, convertFromCapnpUnion, convertToCapnp, convertToCapnpArray, convertToCapnpBase, convertToCapnpClassType, convertToCapnpDefault, convertToCapnpEnum, convertToCapnpFunction, convertToCapnpIndexAccessOrigin, convertToCapnpInfer, convertToCapnpIntersection, convertToCapnpLiteral, convertToCapnpMethod, convertToCapnpMethodSignature, convertToCapnpObjectLiteral, convertToCapnpOther, convertToCapnpParameter, convertToCapnpProperty, convertToCapnpPropertySignature, convertToCapnpSimple, convertToCapnpTagsReflection, convertToCapnpTuple, convertToCapnpTupleMember, convertToCapnpUnion } from "./capnp.mjs";
2
- import { createDeclarationTransformer, createTransformer } from "./transformer.mjs";
1
+ import { n as createTransformer, t as createDeclarationTransformer } from "./transformer-BiefehPu.mjs";
2
+ import { A as convertToCapnpIndexAccessOrigin, B as convertToCapnpPropertySignature, C as convertToCapnp, D as convertToCapnpDefault, E as convertToCapnpClassType, F as convertToCapnpMethodSignature, G as convertToCapnpUnion, H as convertToCapnpTagsReflection, I as convertToCapnpObjectLiteral, L as convertToCapnpOther, M as convertToCapnpIntersection, N as convertToCapnpLiteral, O as convertToCapnpEnum, P as convertToCapnpMethod, R as convertToCapnpParameter, S as convertFromCapnpUnion, T as convertToCapnpBase, U as convertToCapnpTuple, V as convertToCapnpSimple, W as convertToCapnpTupleMember, _ as convertFromCapnpPropertySignature, a as convertFromCapnpDefault, b as convertFromCapnpTuple, c as convertFromCapnpIndexAccessOrigin, d as convertFromCapnpLiteral, f as convertFromCapnpMethodSignature, g as convertFromCapnpProperty, h as convertFromCapnpParameter, i as convertFromCapnpClassType, j as convertToCapnpInfer, k as convertToCapnpFunction, l as convertFromCapnpInfer, m as convertFromCapnpOther, n as convertFromCapnpArray, o as convertFromCapnpEnum, p as convertFromCapnpObjectLiteral, r as convertFromCapnpBase, s as convertFromCapnpFunction, t as convertFromCapnp, u as convertFromCapnpIntersection, v as convertFromCapnpSimple, w as convertToCapnpArray, x as convertFromCapnpTupleMember, y as convertFromCapnpTagsReflection, z as convertToCapnpProperty } from "./capnp-BYEUkMpr.mjs";
3
3
  import { transpile } from "./transpile.mjs";
4
4
  import { esbuildPlugin } from "./esbuild-plugin.mjs";
5
5
  import { reflectType } from "./reflect-type.mjs";
6
6
  import { getReflectionsPath } from "./resolve-reflections.mjs";
7
7
  import { rolldownPlugin } from "./rolldown-plugin.mjs";
8
+ import "./types.mjs";
8
9
  import { getEnumReflectionType, getUnionTypes, isStringUnion, kindToName, stringifyDefaultValue, stringifyStringValue, stringifyValue } from "./utilities.mjs";
9
10
 
10
11
  export { convertFromCapnp, convertFromCapnpArray, convertFromCapnpBase, convertFromCapnpClassType, convertFromCapnpDefault, convertFromCapnpEnum, convertFromCapnpFunction, convertFromCapnpIndexAccessOrigin, convertFromCapnpInfer, convertFromCapnpIntersection, convertFromCapnpLiteral, convertFromCapnpMethodSignature, convertFromCapnpObjectLiteral, convertFromCapnpOther, convertFromCapnpParameter, convertFromCapnpProperty, convertFromCapnpPropertySignature, convertFromCapnpSimple, convertFromCapnpTagsReflection, convertFromCapnpTuple, convertFromCapnpTupleMember, convertFromCapnpUnion, convertToCapnp, convertToCapnpArray, convertToCapnpBase, convertToCapnpClassType, convertToCapnpDefault, convertToCapnpEnum, convertToCapnpFunction, convertToCapnpIndexAccessOrigin, convertToCapnpInfer, convertToCapnpIntersection, convertToCapnpLiteral, convertToCapnpMethod, convertToCapnpMethodSignature, convertToCapnpObjectLiteral, convertToCapnpOther, convertToCapnpParameter, convertToCapnpProperty, convertToCapnpPropertySignature, convertToCapnpSimple, convertToCapnpTagsReflection, convertToCapnpTuple, convertToCapnpTupleMember, convertToCapnpUnion, createDeclarationTransformer, createTransformer, esbuildPlugin, getEnumReflectionType, getReflectionsPath, getUnionTypes, isStringUnion, kindToName, reflectType, rolldownPlugin, stringifyDefaultValue, stringifyStringValue, stringifyValue, transpile };
@@ -1,9 +1,9 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
2
+ const require_chunk = require('./chunk-BmvPcxpV.cjs');
3
3
  const require_esbuild_plugin = require('./esbuild-plugin.cjs');
4
4
  let _powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
5
5
  let defu = require("defu");
6
- defu = require_runtime.__toESM(defu);
6
+ defu = require_chunk.__toESM(defu);
7
7
  let _powerlines_plugin_esbuild_helpers_resolve = require("@powerlines/plugin-esbuild/helpers/resolve");
8
8
 
9
9
  //#region src/reflect-type.ts
@@ -1557,5 +1557,5 @@ declare class SerializedTypes extends $.Struct {
1557
1557
  toString(): string;
1558
1558
  } //#endregion
1559
1559
  //#endregion
1560
- export { DefaultValueReflection, IndexAccessOrigin, SerializedType, SerializedTypeArray, SerializedTypeClassType, SerializedTypeEnum, SerializedTypeFunction, SerializedTypeInfer, SerializedTypeIntersection, SerializedTypeLiteral, SerializedTypeMethod, SerializedTypeMethodSignature, SerializedTypeObjectLiteral, SerializedTypeOther, SerializedTypeParameter, SerializedTypeProperty, SerializedTypePropertySignature, SerializedTypeTuple, SerializedTypeTupleMember, SerializedTypeUnion, SerializedType_Type, SerializedTypes, SimpleSerializedType, TagsReflection };
1561
- //# sourceMappingURL=reflection.d.mts.map
1560
+ export { SimpleSerializedType as C, SerializedTypes as S, SerializedTypePropertySignature as _, SerializedTypeClassType as a, SerializedTypeUnion as b, SerializedTypeInfer as c, SerializedTypeMethod as d, SerializedTypeMethodSignature as f, SerializedTypeProperty as g, SerializedTypeParameter as h, SerializedTypeArray as i, SerializedTypeIntersection as l, SerializedTypeOther as m, IndexAccessOrigin as n, SerializedTypeEnum as o, SerializedTypeObjectLiteral as p, SerializedType as r, SerializedTypeFunction as s, DefaultValueReflection as t, SerializedTypeLiteral as u, SerializedTypeTuple as v, TagsReflection as w, SerializedType_Type as x, SerializedTypeTupleMember as y };
1561
+ //# sourceMappingURL=reflection-DGOuMF8F.d.cts.map
@@ -1557,5 +1557,5 @@ declare class SerializedTypes extends $.Struct {
1557
1557
  toString(): string;
1558
1558
  } //#endregion
1559
1559
  //#endregion
1560
- export { DefaultValueReflection, IndexAccessOrigin, SerializedType, SerializedTypeArray, SerializedTypeClassType, SerializedTypeEnum, SerializedTypeFunction, SerializedTypeInfer, SerializedTypeIntersection, SerializedTypeLiteral, SerializedTypeMethod, SerializedTypeMethodSignature, SerializedTypeObjectLiteral, SerializedTypeOther, SerializedTypeParameter, SerializedTypeProperty, SerializedTypePropertySignature, SerializedTypeTuple, SerializedTypeTupleMember, SerializedTypeUnion, SerializedType_Type, SerializedTypes, SimpleSerializedType, TagsReflection };
1561
- //# sourceMappingURL=reflection.d.cts.map
1560
+ export { SimpleSerializedType as C, SerializedTypes as S, SerializedTypePropertySignature as _, SerializedTypeClassType as a, SerializedTypeUnion as b, SerializedTypeInfer as c, SerializedTypeMethod as d, SerializedTypeMethodSignature as f, SerializedTypeProperty as g, SerializedTypeParameter as h, SerializedTypeArray as i, SerializedTypeIntersection as l, SerializedTypeOther as m, IndexAccessOrigin as n, SerializedTypeEnum as o, SerializedTypeObjectLiteral as p, SerializedType as r, SerializedTypeFunction as s, DefaultValueReflection as t, SerializedTypeLiteral as u, SerializedTypeTuple as v, TagsReflection as w, SerializedType_Type as x, SerializedTypeTupleMember as y };
1561
+ //# sourceMappingURL=reflection-DaLz4ZT5.d.mts.map
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
2
+ const require_chunk = require('./chunk-BmvPcxpV.cjs');
3
3
  let _stryke_path_join_paths = require("@stryke/path/join-paths");
4
4
 
5
5
  //#region src/resolve-reflections.ts
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
2
+ const require_chunk = require('./chunk-BmvPcxpV.cjs');
3
3
  const require_transpile = require('./transpile.cjs');
4
4
  let _stryke_type_checks = require("@stryke/type-checks");
5
5
  let typescript = require("typescript");