@powerlines/deepkit 0.7.8 → 0.8.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.
Files changed (64) hide show
  1. package/dist/{capnp-C8UENZHc.cjs → capnp-CkbeQ2uR.cjs} +8 -0
  2. package/dist/{capnp-BYEUkMpr.mjs → capnp-D0NNeu5y.mjs} +9 -1
  3. package/dist/capnp.cjs +1 -1
  4. package/dist/capnp.d.cts +3 -1
  5. package/dist/capnp.d.mts +3 -1
  6. package/dist/capnp.mjs +1 -1
  7. package/dist/config-ClUYu_c-.d.mts +40 -0
  8. package/dist/config-u7zg69VP.d.cts +40 -0
  9. package/dist/esbuild-plugin.d.cts +7 -8
  10. package/dist/esbuild-plugin.d.mts +7 -8
  11. package/dist/index.cjs +2 -2
  12. package/dist/index.mjs +2 -2
  13. package/dist/reflect-type.cjs +1 -1
  14. package/dist/reflect-type.mjs +1 -1
  15. package/dist/{reflection-DGOuMF8F.d.cts → reflection-8fgblw1P.d.cts} +3 -1
  16. package/dist/{reflection-DaLz4ZT5.d.mts → reflection-l3nKKCgX.d.mts} +3 -1
  17. package/dist/{transformer-BiefehPu.mjs → transformer-BseLGhId.mjs} +6 -6
  18. package/dist/{transformer-DS0zKU7l.cjs → transformer-Ct9lYNRY.cjs} +5 -5
  19. package/dist/transformer.cjs +1 -1
  20. package/dist/transformer.d.cts +1 -1
  21. package/dist/transformer.d.mts +1 -1
  22. package/dist/transformer.mjs +1 -1
  23. package/dist/transpile.cjs +2 -2
  24. package/dist/transpile.d.cts +1 -1
  25. package/dist/transpile.d.mts +1 -1
  26. package/dist/transpile.mjs +2 -2
  27. package/dist/types.d.cts +1 -1
  28. package/dist/types.d.mts +1 -1
  29. package/dist/vendor/{compiler-CqkzeoNX.mjs → compiler-Ba99lbTF.mjs} +11 -12
  30. package/dist/vendor/{compiler-Dz2b4nOM.d.cts → compiler-CZ0k-pTB.d.cts} +6 -6
  31. package/dist/vendor/{compiler-BYhFaVxE.d.mts → compiler-DIcnaeXC.d.mts} +6 -6
  32. package/dist/vendor/{compiler-Ci5aO9pY.cjs → compiler-DYfCGCv5.cjs} +10 -11
  33. package/dist/vendor/{config-eSNKiBGB.mjs → config-BFH3ETeQ.mjs} +16 -15
  34. package/dist/vendor/{config-BTErH18l.d.mts → config-BQtfsjwX.d.mts} +32 -18
  35. package/dist/vendor/{config-BbFVGRVh.cjs → config-Cadu6Rkt.cjs} +18 -17
  36. package/dist/vendor/{config-Cc2qE8fH.d.cts → config-D0jKbRFV.d.cts} +32 -18
  37. package/dist/vendor/core.cjs +97 -120
  38. package/dist/vendor/core.mjs +1 -24
  39. package/dist/vendor/type-compiler/compiler.cjs +1 -1
  40. package/dist/vendor/type-compiler/compiler.d.cts +1 -1
  41. package/dist/vendor/type-compiler/compiler.d.mts +1 -1
  42. package/dist/vendor/type-compiler/compiler.mjs +1 -1
  43. package/dist/vendor/type-compiler/config.cjs +2 -2
  44. package/dist/vendor/type-compiler/config.d.cts +2 -2
  45. package/dist/vendor/type-compiler/config.d.mts +2 -2
  46. package/dist/vendor/type-compiler/config.mjs +2 -2
  47. package/dist/vendor/type-compiler/index.cjs +5 -5
  48. package/dist/vendor/type-compiler/index.d.cts +4 -4
  49. package/dist/vendor/type-compiler/index.d.mts +4 -4
  50. package/dist/vendor/type-compiler/index.mjs +5 -5
  51. package/dist/vendor/type.cjs +11015 -4928
  52. package/dist/vendor/type.d.cts +220 -24
  53. package/dist/vendor/type.d.mts +220 -24
  54. package/dist/vendor/type.mjs +11521 -5630
  55. package/dist/vendor/{string-DoT35ViA.mjs → types--t65boB8.mjs} +25 -2
  56. package/dist/vendor/{string-LTCnMzW_.cjs → types-BzOSMMf1.cjs} +41 -0
  57. package/package.json +4 -4
  58. package/schemas/reflection.capnp +3 -2
  59. package/schemas/reflection.cjs +6 -0
  60. package/schemas/reflection.d.cts +2 -0
  61. package/schemas/reflection.d.mts +2 -0
  62. package/schemas/reflection.mjs +6 -0
  63. package/dist/config-B6lMYoYG.d.mts +0 -32
  64. package/dist/config-C8svu6th.d.cts +0 -32
@@ -2438,5 +2438,28 @@ capitalize.__type = [
2438
2438
  ];
2439
2439
 
2440
2440
  //#endregion
2441
- export { isFunction as $, first as A, eachKey as At, getObjectKeysSize as B, copy as C, setPathValue as Ct, empty as D, time as Dt, deletePathValue as E, stringifyValueWithType as Et, getClassName as F, identifyType as G, getPathValue as H, getClassPropertyName as I, isArray as J, inDebugMode as K, getClassTypeFromInstance as L, fixAsyncOperation as M, formatError as N, ensureError as O, zip as Ot, forwardTypeArguments as P, isConstructable as Q, getCurrentFileName as R, collectForMicrotask as S, rangeArray as St, createStack as T, sleep as Tt, hasProperty as U, getParentClass as V, humanBytes as W, isClass as X, isAsyncFunction as Y, isClassInstance as Z, assertDefined as _, mergePromiseStack as _t, arrayHasItem as a, isNumeric as at, average as b, prettyPrintObject as bt, toFastProperties as c, isPlainObject as ct, __ΩAbstractClassType as d, isSet as dt, isGlobalClass as et, __ΩClassType as f, isString as ft, applyDefaults as g, lastKey as gt, appendObject as h, last as ht, arrayClear as i, isNumber as it, firstKey as j, eachPair as jt, escapeRegExp as k, each as kt, AsyncFunction as l, isPromise as lt, __ΩExtractClassType as m, iterableSize as mt, indent as n, isIterable as nt, arrayMoveItem as o, isObject as ot, __ΩCustomError as p, isUndefined as pt, indexOf as q, CompilerContext as r, isNull as rt, arrayRemoveItem as s, isObjectLiteral as st, capitalize as t, isInteger as tt, CustomError as u, isPrototypeOfBase as ut, assertInstanceOf as v, mergeStack as vt, createDynamicClass as w, size as wt, changeClass as x, range as xt, asyncOperation as y, prependObjectKeys as yt, getInheritanceChain as z };
2442
- //# sourceMappingURL=string-DoT35ViA.mjs.map
2441
+ //#region ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/types.js
2442
+ const __ΩTypeAnnotation = [
2443
+ "T",
2444
+ "Options",
2445
+ "TypeAnnotation",
2446
+ "b!!c\"#w#y"
2447
+ ];
2448
+ const __ΩInjectMeta = [
2449
+ "T",
2450
+ () => __ΩTypeAnnotation,
2451
+ "inject",
2452
+ "InjectMeta",
2453
+ "!c!.#e!!o\"#w$y"
2454
+ ];
2455
+ const __ΩInject = [
2456
+ "Type",
2457
+ "Token",
2458
+ () => __ΩInjectMeta,
2459
+ "Inject",
2460
+ "b!!c\"Pe\"!e\"\"o#\"Kw$y"
2461
+ ];
2462
+
2463
+ //#endregion
2464
+ export { isClass as $, empty as A, time as At, getClassTypeFromInstance as B, average as C, prettyPrintObject as Ct, createDynamicClass as D, size as Dt, copy as E, setPathValue as Et, fixAsyncOperation as F, getPathValue as G, getInheritanceChain as H, formatError as I, identifyType as J, hasProperty as K, forwardTypeArguments as L, escapeRegExp as M, each as Mt, first as N, eachKey as Nt, createStack as O, sleep as Ot, firstKey as P, eachPair as Pt, isAsyncFunction as Q, getClassName as R, asyncOperation as S, prependObjectKeys as St, collectForMicrotask as T, rangeArray as Tt, getObjectKeysSize as U, getCurrentFileName as V, getParentClass as W, indexOf as X, inDebugMode as Y, isArray as Z, __ΩExtractClassType as _, iterableSize as _t, indent as a, isIterable as at, assertDefined as b, mergePromiseStack as bt, arrayHasItem as c, isNumeric as ct, toFastProperties as d, isPlainObject as dt, isClassInstance as et, AsyncFunction as f, isPromise as ft, __ΩCustomError as g, isUndefined as gt, __ΩClassType as h, isString as ht, capitalize as i, isInteger as it, ensureError as j, zip as jt, deletePathValue as k, stringifyValueWithType as kt, arrayMoveItem as l, isObject as lt, __ΩAbstractClassType as m, isSet as mt, __ΩInjectMeta as n, isFunction as nt, CompilerContext as o, isNull as ot, CustomError as p, isPrototypeOfBase as pt, humanBytes as q, __ΩTypeAnnotation as r, isGlobalClass as rt, arrayClear as s, isNumber as st, __ΩInject as t, isConstructable as tt, arrayRemoveItem as u, isObjectLiteral as ut, appendObject as v, last as vt, changeClass as w, range as wt, assertInstanceOf as x, mergeStack as xt, applyDefaults as y, lastKey as yt, getClassPropertyName as z };
2465
+ //# sourceMappingURL=types--t65boB8.mjs.map
@@ -2437,6 +2437,29 @@ capitalize.__type = [
2437
2437
  "P&2!&/\""
2438
2438
  ];
2439
2439
 
2440
+ //#endregion
2441
+ //#region ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/types.js
2442
+ const __ΩTypeAnnotation = [
2443
+ "T",
2444
+ "Options",
2445
+ "TypeAnnotation",
2446
+ "b!!c\"#w#y"
2447
+ ];
2448
+ const __ΩInjectMeta = [
2449
+ "T",
2450
+ () => __ΩTypeAnnotation,
2451
+ "inject",
2452
+ "InjectMeta",
2453
+ "!c!.#e!!o\"#w$y"
2454
+ ];
2455
+ const __ΩInject = [
2456
+ "Type",
2457
+ "Token",
2458
+ () => __ΩInjectMeta,
2459
+ "Inject",
2460
+ "b!!c\"Pe\"!e\"\"o#\"Kw$y"
2461
+ ];
2462
+
2440
2463
  //#endregion
2441
2464
  Object.defineProperty(exports, 'AsyncFunction', {
2442
2465
  enumerable: true,
@@ -2480,6 +2503,24 @@ Object.defineProperty(exports, '__ΩExtractClassType', {
2480
2503
  return __ΩExtractClassType;
2481
2504
  }
2482
2505
  });
2506
+ Object.defineProperty(exports, '__ΩInject', {
2507
+ enumerable: true,
2508
+ get: function () {
2509
+ return __ΩInject;
2510
+ }
2511
+ });
2512
+ Object.defineProperty(exports, '__ΩInjectMeta', {
2513
+ enumerable: true,
2514
+ get: function () {
2515
+ return __ΩInjectMeta;
2516
+ }
2517
+ });
2518
+ Object.defineProperty(exports, '__ΩTypeAnnotation', {
2519
+ enumerable: true,
2520
+ get: function () {
2521
+ return __ΩTypeAnnotation;
2522
+ }
2523
+ });
2483
2524
  Object.defineProperty(exports, 'appendObject', {
2484
2525
  enumerable: true,
2485
2526
  get: function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/deepkit",
3
- "version": "0.7.8",
3
+ "version": "0.8.0",
4
4
  "private": false,
5
5
  "description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
6
6
  "keywords": ["deepkit", "powerlines", "storm-software"],
@@ -114,8 +114,8 @@
114
114
  "bin": { "deepkit-install": "bin/deepkit-install.cjs" },
115
115
  "files": ["bin/*", "dist/**/*", "schemas/*"],
116
116
  "dependencies": {
117
- "@powerlines/core": "^0.13.8",
118
- "@powerlines/plugin-esbuild": "^0.13.395",
117
+ "@powerlines/core": "^0.13.9",
118
+ "@powerlines/plugin-esbuild": "^0.13.396",
119
119
  "@storm-software/config-tools": "^1.189.75",
120
120
  "@stryke/capnp": "^0.12.92",
121
121
  "@stryke/fs": "^0.33.66",
@@ -145,5 +145,5 @@
145
145
  "rolldown": { "optional": true }
146
146
  },
147
147
  "publishConfig": { "access": "public" },
148
- "gitHead": "ebb3c7faf787b60313824df7d801ea077abe23b1"
148
+ "gitHead": "9104f99f87d0f09319d19a8eb8e1b8ac2def7cd0"
149
149
  }
@@ -54,8 +54,9 @@ struct TagsReflection {
54
54
  readonly @3 :Bool;
55
55
  ignore @4 :Bool;
56
56
  internal @5 :Bool;
57
- permission @6 :List(Text);
58
- domain @7 :Text;
57
+ runtime @6 :Bool;
58
+ permission @7 :List(Text);
59
+ domain @8 :Text;
59
60
  }
60
61
 
61
62
  struct DefaultValueReflection {
@@ -128,6 +128,12 @@ var TagsReflection = class extends _stryke_capnp.Struct {
128
128
  set internal(value) {
129
129
  _stryke_capnp.utils.setBit(3, value, this);
130
130
  }
131
+ get runtime() {
132
+ return _stryke_capnp.utils.getBit(4, this);
133
+ }
134
+ set runtime(value) {
135
+ _stryke_capnp.utils.setBit(4, value, this);
136
+ }
131
137
  _adoptPermission(value) {
132
138
  _stryke_capnp.utils.adopt(value, _stryke_capnp.utils.getPointer(2, this));
133
139
  }
@@ -69,6 +69,8 @@ declare class TagsReflection extends $.Struct {
69
69
  set ignore(value: boolean);
70
70
  get internal(): boolean;
71
71
  set internal(value: boolean);
72
+ get runtime(): boolean;
73
+ set runtime(value: boolean);
72
74
  _adoptPermission(value: $.Orphan<$.List<string>>): void;
73
75
  _disownPermission(): $.Orphan<$.List<string>>;
74
76
  get permission(): $.List<string>;
@@ -69,6 +69,8 @@ declare class TagsReflection extends $.Struct {
69
69
  set ignore(value: boolean);
70
70
  get internal(): boolean;
71
71
  set internal(value: boolean);
72
+ get runtime(): boolean;
73
+ set runtime(value: boolean);
72
74
  _adoptPermission(value: $.Orphan<$.List<string>>): void;
73
75
  _disownPermission(): $.Orphan<$.List<string>>;
74
76
  get permission(): $.List<string>;
@@ -99,6 +99,12 @@ var TagsReflection = class extends $.Struct {
99
99
  set internal(value) {
100
100
  $.utils.setBit(3, value, this);
101
101
  }
102
+ get runtime() {
103
+ return $.utils.getBit(4, this);
104
+ }
105
+ set runtime(value) {
106
+ $.utils.setBit(4, value, this);
107
+ }
102
108
  _adoptPermission(value) {
103
109
  $.utils.adopt(value, $.utils.getPointer(2, this));
104
110
  }
@@ -1,32 +0,0 @@
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
@@ -1,32 +0,0 @@
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