@powerlines/deepkit 0.9.95 → 0.9.97

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 (59) hide show
  1. package/dist/capnp.d.cts +1 -2
  2. package/dist/capnp.d.mts +1 -2
  3. package/dist/{config-Bgt67as0.d.cts → config-dmZSl9F7.d.cts} +10 -11
  4. package/dist/{config-Bgt67as0.d.mts → config-dmZSl9F7.d.mts} +10 -11
  5. package/dist/esbuild-plugin.d.cts +0 -1
  6. package/dist/esbuild-plugin.d.mts +0 -1
  7. package/dist/index.cjs +1 -1
  8. package/dist/index.mjs +1 -1
  9. package/dist/{reflection-dZCCqxc3.d.cts → reflection-CVyhGqGH.d.cts} +17 -18
  10. package/dist/{reflection-dZCCqxc3.d.mts → reflection-CVyhGqGH.d.mts} +17 -18
  11. package/dist/resolve-reflections.d.cts +0 -1
  12. package/dist/resolve-reflections.d.mts +0 -1
  13. package/dist/rolldown-plugin.d.cts +0 -1
  14. package/dist/rolldown-plugin.d.mts +0 -1
  15. package/dist/{transformer-DnuSSWPR.cjs → transformer-CHOVkgMG.cjs} +10 -5
  16. package/dist/{transformer-9Qq95aUb.mjs → transformer-DSI6FAaZ.mjs} +11 -6
  17. package/dist/transformer.cjs +1 -1
  18. package/dist/transformer.d.cts +1 -2
  19. package/dist/transformer.d.mts +1 -2
  20. package/dist/transformer.mjs +1 -1
  21. package/dist/transpile.cjs +1 -1
  22. package/dist/transpile.d.cts +1 -2
  23. package/dist/transpile.d.mts +1 -2
  24. package/dist/transpile.mjs +1 -1
  25. package/dist/types.d.cts +2 -3
  26. package/dist/types.d.mts +2 -3
  27. package/dist/utilities.d.cts +0 -1
  28. package/dist/utilities.d.mts +0 -1
  29. package/dist/vendor/{compiler-CFzs_txx.d.cts → compiler-Bj6czf9C.d.cts} +3 -4
  30. package/dist/vendor/{compiler-EgkBSwnY.cjs → compiler-CDs-Gj-Z.cjs} +10 -5
  31. package/dist/vendor/{compiler-D4QaHzhD.d.mts → compiler-D6HDCNKP.d.mts} +3 -4
  32. package/dist/vendor/{compiler-8hCF4N7g.mjs → compiler-Dn_z_CUa.mjs} +11 -6
  33. package/dist/vendor/{config-B8wUohU6.d.cts → config-CUnBXA3v.d.cts} +10 -11
  34. package/dist/vendor/{config-B8wUohU6.d.mts → config-CUnBXA3v.d.mts} +10 -11
  35. package/dist/vendor/core.d.cts +1 -2
  36. package/dist/vendor/core.d.mts +1 -2
  37. package/dist/vendor/{type-BLubGRUo.d.cts → type-CUwNL20r.d.cts} +59 -59
  38. package/dist/vendor/{type-BLubGRUo.d.mts → type-CUwNL20r.d.mts} +59 -59
  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.d.cts +1 -1
  44. package/dist/vendor/type-compiler/config.d.mts +1 -1
  45. package/dist/vendor/type-compiler/index.cjs +1 -1
  46. package/dist/vendor/type-compiler/index.d.cts +2 -3
  47. package/dist/vendor/type-compiler/index.d.mts +2 -3
  48. package/dist/vendor/type-compiler/index.mjs +1 -1
  49. package/dist/vendor/type-spec.d.cts +1 -1
  50. package/dist/vendor/type-spec.d.mts +1 -1
  51. package/dist/vendor/type.cjs +8 -2
  52. package/dist/vendor/type.d.cts +22 -27
  53. package/dist/vendor/type.d.mts +22 -27
  54. package/dist/vendor/type.mjs +8 -2
  55. package/dist/vendor/{types-Dh22x546.d.cts → types-cfMYDjR6.d.cts} +2 -2
  56. package/dist/vendor/{types-Dh22x546.d.mts → types-cfMYDjR6.d.mts} +2 -2
  57. package/package.json +7 -7
  58. package/schemas/reflection.d.cts +18 -19
  59. package/schemas/reflection.d.mts +18 -19
@@ -1,12 +1,11 @@
1
- import { c as AbstractClassType, d as CustomError, f as ExtractClassType, r as TypeAnnotation, s as CompilerContext, u as ClassType } from "./types-Dh22x546.cjs";
2
- import { n as ReflectionOp, r as TypeNumberBrand } from "./type-BLubGRUo.cjs";
1
+ import { c as AbstractClassType, d as CustomError, f as ExtractClassType, r as TypeAnnotation, s as CompilerContext, u as ClassType } from "./types-cfMYDjR6.cjs";
2
+ import { n as ReflectionOp, r as TypeNumberBrand } from "./type-CUwNL20r.cjs";
3
3
  import { Buffer } from "node:buffer";
4
-
5
4
  //#region ../../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=17c60c07374c9da3514394a2d04fad4a83ac0ae8b88d5311f9e3af70_07f0fd87d125e88586cdd9a0713e08aa/node_modules/@deepkit/type/dist/cjs/src/changes.d.ts
6
- type NumberFields<T> = { [K in keyof T]: T[K] extends number | bigint ? K : never }[keyof T];
7
- type Expression<T> = { [P in keyof T & string]?: string };
8
- type Partial$1<T> = { [P in keyof T & string]?: T[P] };
9
- type DeepPartial<T> = { [P in keyof T]?: T[P] } & {
5
+ type NumberFields<T> = { [K in keyof T]: T[K] extends number | bigint ? K : never; }[keyof T];
6
+ type Expression<T> = { [P in keyof T & string]?: string; };
7
+ type Partial$1<T> = { [P in keyof T & string]?: T[P]; };
8
+ type DeepPartial<T> = { [P in keyof T]?: T[P]; } & {
10
9
  [deepPath: string]: any;
11
10
  };
12
11
  interface ChangesInterface<T> {
@@ -538,9 +537,9 @@ declare function indexAccess(container: Type, index: Type): Type;
538
537
  declare function merge(types: (TypeObjectLiteral | TypeClass)[]): TypeObjectLiteral;
539
538
  declare function narrowOriginalLiteral(type: Type): Type;
540
539
  type GetArrayElement<T extends any[]> = [T] extends [Array<infer K>] ? K : never;
541
- type RemoveParent<T, K extends keyof T> = { [P in K]: T[P] extends Type[] ? RemoveParentHomomorphic<GetArrayElement<T[P]>>[] : T[P] extends Type ? RemoveParentHomomorphic<T[P]> : T[P] };
540
+ type RemoveParent<T, K extends keyof T> = { [P in K]: T[P] extends Type[] ? RemoveParentHomomorphic<GetArrayElement<T[P]>>[] : T[P] extends Type ? RemoveParentHomomorphic<T[P]> : T[P]; };
542
541
  type RemoveParentHomomorphic<T> = RemoveParent<T, Exclude<keyof T, "parent">>;
543
- type RemoveDeepParent<T extends Type> = T extends infer K ? RemoveParentHomomorphic<K> : never;
542
+ type RemoveDeepParent<T extends Type> = T extends (infer K) ? RemoveParentHomomorphic<K> : never;
544
543
  type ParentLessType = RemoveDeepParent<Type>;
545
544
  /**
546
545
  * This function does not do a deep copy, only shallow. A deep copy makes it way to inefficient, so much that router.spec.ts takes up to 20-30seconds
@@ -712,9 +711,9 @@ type Entity<T extends EntityOptions> = {} & TypeAnnotation<"entity", T>;
712
711
  */
713
712
  type PrimaryKey = TypeAnnotation<"primaryKey">;
714
713
  type TypeKeyOf<T> = T[keyof T];
715
- type PrimaryKeyFields<T> = any extends T ? any : { [P in keyof T]: Required<T[P]> extends Required<PrimaryKey> ? T[P] : never };
714
+ type PrimaryKeyFields<T> = any extends T ? any : { [P in keyof T]: Required<T[P]> extends Required<PrimaryKey> ? T[P] : never; };
716
715
  type PrimaryKeyType<T> = any extends T ? any : TypeKeyOf<PrimaryKeyFields<T>>;
717
- type ReferenceFields<T> = { [P in keyof T]: Required<T[P]> extends Required<Reference> | Required<BackReference> ? T[P] : never };
716
+ type ReferenceFields<T> = { [P in keyof T]: Required<T[P]> extends Required<Reference> | Required<BackReference> ? T[P] : never; };
718
717
  /**
719
718
  * Marks a primary property key as auto-increment.
720
719
  *
@@ -1736,7 +1735,7 @@ declare class TemplateRegistry {
1736
1735
  serializer: Serializer;
1737
1736
  protected static ids: number;
1738
1737
  id: number;
1739
- protected templates: { [kind in ReflectionKind]?: Template<any>[] };
1738
+ protected templates: { [kind in ReflectionKind]?: Template<any>[]; };
1740
1739
  protected decorator: TemplateDecorator[];
1741
1740
  preHooks: TemplateHook[];
1742
1741
  postHooks: TemplateHook[];
@@ -1974,22 +1973,18 @@ declare class ValidationErrorItem {
1974
1973
  /**
1975
1974
  * The path to the property. Might be a deep path separated by dot.
1976
1975
  */
1977
-
1978
1976
  path: string,
1979
1977
  /**
1980
1978
  * A lower cased error code that can be used to identify this error and translate.
1981
1979
  */
1982
-
1983
1980
  code: string,
1984
1981
  /**
1985
1982
  * Free text of the error.
1986
1983
  */
1987
-
1988
1984
  message: string,
1989
1985
  /**
1990
1986
  * Optional value that caused the error.
1991
1987
  */
1992
-
1993
1988
  value?: any | undefined);
1994
1989
  toString(prefix?: string): string;
1995
1990
  }
@@ -2654,10 +2649,10 @@ declare function buildChanges<T extends object>(classSchema: ReflectionClass<T>,
2654
2649
  //#endregion
2655
2650
  //#region ../../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=17c60c07374c9da3514394a2d04fad4a83ac0ae8b88d5311f9e3af70_07f0fd87d125e88586cdd9a0713e08aa/node_modules/@deepkit/type/dist/cjs/src/core.d.ts
2656
2651
  declare enum UnpopulatedCheck {
2657
- None = 0,
2658
- //returns undefined
2659
- Throw = 1,
2660
- //throws regular error
2652
+ None = 0 //returns undefined
2653
+ ,
2654
+ Throw = 1 //throws regular error
2655
+ ,
2661
2656
  ReturnSymbol = 2
2662
2657
  }
2663
2658
  declare const unpopulatedSymbol: unique symbol;
@@ -2743,7 +2738,7 @@ type ClassDecoratorFn = (classType: AbstractClassType, property?: string, parame
2743
2738
  type PropertyDecoratorFn = (prototype: object, property?: number | string | symbol, parameterIndexOrDescriptor?: any) => void;
2744
2739
  type FluidDecorator<T, D extends Function> = { [name in keyof T]: T[name] extends ((...args: infer K) => any) ? (...args: K) => D & FluidDecorator<T, D> : D & FluidDecorator<T, D> & {
2745
2740
  _data: ExtractApiDataType<T>;
2746
- } };
2741
+ }; };
2747
2742
  declare function createFluidDecorator<API extends APIClass<any> | APIProperty<any>, D extends Function>(api: API, modifier: {
2748
2743
  name: string;
2749
2744
  args?: any;
@@ -2753,7 +2748,7 @@ declare function createFluidDecorator<API extends APIClass<any> | APIProperty<an
2753
2748
  args?: any;
2754
2749
  }[], target: any, property?: string, parameterIndexOrDescriptor?: any) => void, returnCollapse?: boolean, fluidFunctionSymbol?: symbol): FluidDecorator<ExtractClass<API>, D>;
2755
2750
  type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends ((k: infer I) => void) ? I : never;
2756
- type Merge<U> = { [K in keyof U]: U[K] extends ((...a: infer A) => infer R) ? R extends DualDecorator ? (...a: A) => PropertyDecoratorFn & R & U : (...a: A) => R : never };
2751
+ type Merge<U> = { [K in keyof U]: U[K] extends ((...a: infer A) => infer R) ? R extends DualDecorator ? (...a: A) => PropertyDecoratorFn & R & U : (...a: A) => R : never; };
2757
2752
  /**
2758
2753
  * A dual decorator is a decorator that can be used on a class and class property.
2759
2754
  */
@@ -2789,7 +2784,7 @@ type FreeDecoratorFn<API> = {
2789
2784
  } & {
2790
2785
  _data: ExtractApiDataType<API>;
2791
2786
  };
2792
- type FreeFluidDecorator<API> = { [name in keyof ExtractClass<API>]: ExtractClass<API>[name] extends ((...args: infer K) => any) ? (...args: K) => FreeFluidDecorator<API> : FreeFluidDecorator<API> } & FreeDecoratorFn<API>;
2787
+ type FreeFluidDecorator<API> = { [name in keyof ExtractClass<API>]: ExtractClass<API>[name] extends ((...args: infer K) => any) ? (...args: K) => FreeFluidDecorator<API> : FreeFluidDecorator<API>; } & FreeDecoratorFn<API>;
2793
2788
  type FreeDecoratorResult<API extends APIClass<any>> = FreeFluidDecorator<API> & {
2794
2789
  _fluidFunctionSymbol: symbol;
2795
2790
  };
@@ -2941,7 +2936,7 @@ interface RegistryDecorator<T> {
2941
2936
  v: T;
2942
2937
  }
2943
2938
  declare class TypeRegistry<T> {
2944
- protected results: { [kind in ReflectionKind]?: T };
2939
+ protected results: { [kind in ReflectionKind]?: T; };
2945
2940
  classes: Map<ClassType<any>, T>;
2946
2941
  protected decorators: RegistryDecorator<T>[];
2947
2942
  clear(): void;
@@ -2987,9 +2982,9 @@ declare function writeUuid(buffer: Uint8Array, offset?: number): Uint8Array;
2987
2982
  declare function stringifyUuid(buffer: Uint8Array, offset?: number): string;
2988
2983
  type Binary = ArrayBuffer | Uint8Array | Int8Array | Uint8ClampedArray | Uint16Array | Int16Array | Uint32Array | Int32Array | Float32Array | Float64Array;
2989
2984
  type JSONPartial<T> = T extends Date ? string : T extends Array<infer K> ? Array<JSONPartial<K>> : T extends Binary ? string : T extends object ? JSONPartialObject<T> : T extends string ? number | T : T extends boolean ? number | string | T : T extends bigint ? number | string | T : T extends number ? bigint | string | T : T;
2990
- type JSONPartialObject<T> = { [name in keyof T]?: T[name] | null };
2985
+ type JSONPartialObject<T> = { [name in keyof T]?: T[name] | null; };
2991
2986
  type JSONSingle<T> = T extends Date ? string | Date : T extends Array<infer K> ? Array<JSONSingle<K>> : T extends Binary ? string : T extends object ? JSONEntity<T> : T extends string ? string | number | boolean | undefined : T extends boolean ? T | number | string : T extends number ? T | string : T;
2992
- type JSONEntity<T> = { [name in keyof T]: JSONSingle<T[name]> };
2987
+ type JSONEntity<T> = { [name in keyof T]: JSONSingle<T[name]>; };
2993
2988
  declare function regExpFromString(v: string): RegExp;
2994
2989
  declare type __ΩBinary = any[];
2995
2990
  declare type __ΩJSONPartial = any[];
@@ -3135,7 +3130,7 @@ type AutoId = number & PrimaryKey & AutoIncrement & Positive;
3135
3130
  declare type __ΩAutoId = any[];
3136
3131
  //#endregion
3137
3132
  //#region ../../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=17c60c07374c9da3514394a2d04fad4a83ac0ae8b88d5311f9e3af70_07f0fd87d125e88586cdd9a0713e08aa/node_modules/@deepkit/type/dist/cjs/src/validators.d.ts
3138
- declare const validators: { [name in string]?: (...args: any[]) => (value: any) => ValidatorError | undefined };
3133
+ declare const validators: { [name in string]?: (...args: any[]) => (value: any) => ValidatorError | undefined; };
3139
3134
  //#endregion
3140
3135
  //#region ../../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=17c60c07374c9da3514394a2d04fad4a83ac0ae8b88d5311f9e3af70_07f0fd87d125e88586cdd9a0713e08aa/node_modules/@deepkit/type/dist/cjs/src/reflection/extends.d.ts
3141
3136
  type AssignableType = Type | string | boolean | number | symbol | bigint | undefined | null;
@@ -1,12 +1,11 @@
1
- import { c as AbstractClassType, d as CustomError, f as ExtractClassType, r as TypeAnnotation, s as CompilerContext, u as ClassType } from "./types-Dh22x546.mjs";
2
- import { n as ReflectionOp, r as TypeNumberBrand } from "./type-BLubGRUo.mjs";
1
+ import { c as AbstractClassType, d as CustomError, f as ExtractClassType, r as TypeAnnotation, s as CompilerContext, u as ClassType } from "./types-cfMYDjR6.mjs";
2
+ import { n as ReflectionOp, r as TypeNumberBrand } from "./type-CUwNL20r.mjs";
3
3
  import { Buffer } from "node:buffer";
4
-
5
4
  //#region ../../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=17c60c07374c9da3514394a2d04fad4a83ac0ae8b88d5311f9e3af70_07f0fd87d125e88586cdd9a0713e08aa/node_modules/@deepkit/type/dist/cjs/src/changes.d.ts
6
- type NumberFields<T> = { [K in keyof T]: T[K] extends number | bigint ? K : never }[keyof T];
7
- type Expression<T> = { [P in keyof T & string]?: string };
8
- type Partial$1<T> = { [P in keyof T & string]?: T[P] };
9
- type DeepPartial<T> = { [P in keyof T]?: T[P] } & {
5
+ type NumberFields<T> = { [K in keyof T]: T[K] extends number | bigint ? K : never; }[keyof T];
6
+ type Expression<T> = { [P in keyof T & string]?: string; };
7
+ type Partial$1<T> = { [P in keyof T & string]?: T[P]; };
8
+ type DeepPartial<T> = { [P in keyof T]?: T[P]; } & {
10
9
  [deepPath: string]: any;
11
10
  };
12
11
  interface ChangesInterface<T> {
@@ -538,9 +537,9 @@ declare function indexAccess(container: Type, index: Type): Type;
538
537
  declare function merge(types: (TypeObjectLiteral | TypeClass)[]): TypeObjectLiteral;
539
538
  declare function narrowOriginalLiteral(type: Type): Type;
540
539
  type GetArrayElement<T extends any[]> = [T] extends [Array<infer K>] ? K : never;
541
- type RemoveParent<T, K extends keyof T> = { [P in K]: T[P] extends Type[] ? RemoveParentHomomorphic<GetArrayElement<T[P]>>[] : T[P] extends Type ? RemoveParentHomomorphic<T[P]> : T[P] };
540
+ type RemoveParent<T, K extends keyof T> = { [P in K]: T[P] extends Type[] ? RemoveParentHomomorphic<GetArrayElement<T[P]>>[] : T[P] extends Type ? RemoveParentHomomorphic<T[P]> : T[P]; };
542
541
  type RemoveParentHomomorphic<T> = RemoveParent<T, Exclude<keyof T, "parent">>;
543
- type RemoveDeepParent<T extends Type> = T extends infer K ? RemoveParentHomomorphic<K> : never;
542
+ type RemoveDeepParent<T extends Type> = T extends (infer K) ? RemoveParentHomomorphic<K> : never;
544
543
  type ParentLessType = RemoveDeepParent<Type>;
545
544
  /**
546
545
  * This function does not do a deep copy, only shallow. A deep copy makes it way to inefficient, so much that router.spec.ts takes up to 20-30seconds
@@ -712,9 +711,9 @@ type Entity<T extends EntityOptions> = {} & TypeAnnotation<"entity", T>;
712
711
  */
713
712
  type PrimaryKey = TypeAnnotation<"primaryKey">;
714
713
  type TypeKeyOf<T> = T[keyof T];
715
- type PrimaryKeyFields<T> = any extends T ? any : { [P in keyof T]: Required<T[P]> extends Required<PrimaryKey> ? T[P] : never };
714
+ type PrimaryKeyFields<T> = any extends T ? any : { [P in keyof T]: Required<T[P]> extends Required<PrimaryKey> ? T[P] : never; };
716
715
  type PrimaryKeyType<T> = any extends T ? any : TypeKeyOf<PrimaryKeyFields<T>>;
717
- type ReferenceFields<T> = { [P in keyof T]: Required<T[P]> extends Required<Reference> | Required<BackReference> ? T[P] : never };
716
+ type ReferenceFields<T> = { [P in keyof T]: Required<T[P]> extends Required<Reference> | Required<BackReference> ? T[P] : never; };
718
717
  /**
719
718
  * Marks a primary property key as auto-increment.
720
719
  *
@@ -1736,7 +1735,7 @@ declare class TemplateRegistry {
1736
1735
  serializer: Serializer;
1737
1736
  protected static ids: number;
1738
1737
  id: number;
1739
- protected templates: { [kind in ReflectionKind]?: Template<any>[] };
1738
+ protected templates: { [kind in ReflectionKind]?: Template<any>[]; };
1740
1739
  protected decorator: TemplateDecorator[];
1741
1740
  preHooks: TemplateHook[];
1742
1741
  postHooks: TemplateHook[];
@@ -1974,22 +1973,18 @@ declare class ValidationErrorItem {
1974
1973
  /**
1975
1974
  * The path to the property. Might be a deep path separated by dot.
1976
1975
  */
1977
-
1978
1976
  path: string,
1979
1977
  /**
1980
1978
  * A lower cased error code that can be used to identify this error and translate.
1981
1979
  */
1982
-
1983
1980
  code: string,
1984
1981
  /**
1985
1982
  * Free text of the error.
1986
1983
  */
1987
-
1988
1984
  message: string,
1989
1985
  /**
1990
1986
  * Optional value that caused the error.
1991
1987
  */
1992
-
1993
1988
  value?: any | undefined);
1994
1989
  toString(prefix?: string): string;
1995
1990
  }
@@ -2654,10 +2649,10 @@ declare function buildChanges<T extends object>(classSchema: ReflectionClass<T>,
2654
2649
  //#endregion
2655
2650
  //#region ../../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=17c60c07374c9da3514394a2d04fad4a83ac0ae8b88d5311f9e3af70_07f0fd87d125e88586cdd9a0713e08aa/node_modules/@deepkit/type/dist/cjs/src/core.d.ts
2656
2651
  declare enum UnpopulatedCheck {
2657
- None = 0,
2658
- //returns undefined
2659
- Throw = 1,
2660
- //throws regular error
2652
+ None = 0 //returns undefined
2653
+ ,
2654
+ Throw = 1 //throws regular error
2655
+ ,
2661
2656
  ReturnSymbol = 2
2662
2657
  }
2663
2658
  declare const unpopulatedSymbol: unique symbol;
@@ -2743,7 +2738,7 @@ type ClassDecoratorFn = (classType: AbstractClassType, property?: string, parame
2743
2738
  type PropertyDecoratorFn = (prototype: object, property?: number | string | symbol, parameterIndexOrDescriptor?: any) => void;
2744
2739
  type FluidDecorator<T, D extends Function> = { [name in keyof T]: T[name] extends ((...args: infer K) => any) ? (...args: K) => D & FluidDecorator<T, D> : D & FluidDecorator<T, D> & {
2745
2740
  _data: ExtractApiDataType<T>;
2746
- } };
2741
+ }; };
2747
2742
  declare function createFluidDecorator<API extends APIClass<any> | APIProperty<any>, D extends Function>(api: API, modifier: {
2748
2743
  name: string;
2749
2744
  args?: any;
@@ -2753,7 +2748,7 @@ declare function createFluidDecorator<API extends APIClass<any> | APIProperty<an
2753
2748
  args?: any;
2754
2749
  }[], target: any, property?: string, parameterIndexOrDescriptor?: any) => void, returnCollapse?: boolean, fluidFunctionSymbol?: symbol): FluidDecorator<ExtractClass<API>, D>;
2755
2750
  type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends ((k: infer I) => void) ? I : never;
2756
- type Merge<U> = { [K in keyof U]: U[K] extends ((...a: infer A) => infer R) ? R extends DualDecorator ? (...a: A) => PropertyDecoratorFn & R & U : (...a: A) => R : never };
2751
+ type Merge<U> = { [K in keyof U]: U[K] extends ((...a: infer A) => infer R) ? R extends DualDecorator ? (...a: A) => PropertyDecoratorFn & R & U : (...a: A) => R : never; };
2757
2752
  /**
2758
2753
  * A dual decorator is a decorator that can be used on a class and class property.
2759
2754
  */
@@ -2789,7 +2784,7 @@ type FreeDecoratorFn<API> = {
2789
2784
  } & {
2790
2785
  _data: ExtractApiDataType<API>;
2791
2786
  };
2792
- type FreeFluidDecorator<API> = { [name in keyof ExtractClass<API>]: ExtractClass<API>[name] extends ((...args: infer K) => any) ? (...args: K) => FreeFluidDecorator<API> : FreeFluidDecorator<API> } & FreeDecoratorFn<API>;
2787
+ type FreeFluidDecorator<API> = { [name in keyof ExtractClass<API>]: ExtractClass<API>[name] extends ((...args: infer K) => any) ? (...args: K) => FreeFluidDecorator<API> : FreeFluidDecorator<API>; } & FreeDecoratorFn<API>;
2793
2788
  type FreeDecoratorResult<API extends APIClass<any>> = FreeFluidDecorator<API> & {
2794
2789
  _fluidFunctionSymbol: symbol;
2795
2790
  };
@@ -2941,7 +2936,7 @@ interface RegistryDecorator<T> {
2941
2936
  v: T;
2942
2937
  }
2943
2938
  declare class TypeRegistry<T> {
2944
- protected results: { [kind in ReflectionKind]?: T };
2939
+ protected results: { [kind in ReflectionKind]?: T; };
2945
2940
  classes: Map<ClassType<any>, T>;
2946
2941
  protected decorators: RegistryDecorator<T>[];
2947
2942
  clear(): void;
@@ -2987,9 +2982,9 @@ declare function writeUuid(buffer: Uint8Array, offset?: number): Uint8Array;
2987
2982
  declare function stringifyUuid(buffer: Uint8Array, offset?: number): string;
2988
2983
  type Binary = ArrayBuffer | Uint8Array | Int8Array | Uint8ClampedArray | Uint16Array | Int16Array | Uint32Array | Int32Array | Float32Array | Float64Array;
2989
2984
  type JSONPartial<T> = T extends Date ? string : T extends Array<infer K> ? Array<JSONPartial<K>> : T extends Binary ? string : T extends object ? JSONPartialObject<T> : T extends string ? number | T : T extends boolean ? number | string | T : T extends bigint ? number | string | T : T extends number ? bigint | string | T : T;
2990
- type JSONPartialObject<T> = { [name in keyof T]?: T[name] | null };
2985
+ type JSONPartialObject<T> = { [name in keyof T]?: T[name] | null; };
2991
2986
  type JSONSingle<T> = T extends Date ? string | Date : T extends Array<infer K> ? Array<JSONSingle<K>> : T extends Binary ? string : T extends object ? JSONEntity<T> : T extends string ? string | number | boolean | undefined : T extends boolean ? T | number | string : T extends number ? T | string : T;
2992
- type JSONEntity<T> = { [name in keyof T]: JSONSingle<T[name]> };
2987
+ type JSONEntity<T> = { [name in keyof T]: JSONSingle<T[name]>; };
2993
2988
  declare function regExpFromString(v: string): RegExp;
2994
2989
  declare type __ΩBinary = any[];
2995
2990
  declare type __ΩJSONPartial = any[];
@@ -3135,7 +3130,7 @@ type AutoId = number & PrimaryKey & AutoIncrement & Positive;
3135
3130
  declare type __ΩAutoId = any[];
3136
3131
  //#endregion
3137
3132
  //#region ../../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=17c60c07374c9da3514394a2d04fad4a83ac0ae8b88d5311f9e3af70_07f0fd87d125e88586cdd9a0713e08aa/node_modules/@deepkit/type/dist/cjs/src/validators.d.ts
3138
- declare const validators: { [name in string]?: (...args: any[]) => (value: any) => ValidatorError | undefined };
3133
+ declare const validators: { [name in string]?: (...args: any[]) => (value: any) => ValidatorError | undefined; };
3139
3134
  //#endregion
3140
3135
  //#region ../../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=17c60c07374c9da3514394a2d04fad4a83ac0ae8b88d5311f9e3af70_07f0fd87d125e88586cdd9a0713e08aa/node_modules/@deepkit/type/dist/cjs/src/reflection/extends.d.ts
3141
3136
  type AssignableType = Type | string | boolean | number | symbol | bigint | undefined | null;
@@ -6352,7 +6352,12 @@ var ReflectionClass = class ReflectionClass {
6352
6352
 
6353
6353
  //#endregion
6354
6354
  //#region ../../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=17c60c07374c9da3514394a2d04fad4a83ac0ae8b88d5311f9e3af70_07f0fd87d125e88586cdd9a0713e08aa/node_modules/@deepkit/type/dist/esm/src/reflection/type.js
6355
- var _a$1, _b$1, _c, _d, _e, _f;
6355
+ var _a$1;
6356
+ var _b$1;
6357
+ var _c;
6358
+ var _d;
6359
+ var _e;
6360
+ var _f;
6356
6361
  const __ΩPartial$3 = [
6357
6362
  "T",
6358
6363
  "Partial",
@@ -10583,7 +10588,8 @@ const validators = {
10583
10588
 
10584
10589
  //#endregion
10585
10590
  //#region ../../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=17c60c07374c9da3514394a2d04fad4a83ac0ae8b88d5311f9e3af70_07f0fd87d125e88586cdd9a0713e08aa/node_modules/@deepkit/type/dist/esm/src/serializer.js
10586
- var _a, _b;
10591
+ var _a;
10592
+ var _b;
10587
10593
  const __ΩPartial$2 = [
10588
10594
  "T",
10589
10595
  "Partial",
@@ -390,7 +390,7 @@ declare function rangeArray(startOrLength: number, stop?: number, step?: number)
390
390
  *
391
391
  * Works the same as python's zip function.
392
392
  */
393
- declare function zip<T extends (readonly unknown[])[]>(...args: T): { [K in keyof T]: T[K] extends (infer V)[] ? V : never }[];
393
+ declare function zip<T extends (readonly unknown[])[]>(...args: T): { [K in keyof T]: T[K] extends (infer V)[] ? V : never; }[];
394
394
  /**
395
395
  * Forwards the runtime type arguments from function x to function y.
396
396
  * This is necessary when a generic function is overridden and forwarded to something else.
@@ -508,4 +508,4 @@ declare type __ΩInjectMeta = any[];
508
508
  declare type __ΩInject = any[];
509
509
  //#endregion
510
510
  export { isClassInstance as $, ensureError as A, zip as At, getCurrentFileName as B, changeClass as C, range as Ct, createStack as D, sleep as Dt, createDynamicClass as E, size as Et, formatError as F, hasProperty as G, getObjectKeysSize as H, forwardTypeArguments as I, inDebugMode as J, humanBytes as K, getClassName as L, first as M, firstKey as N, deletePathValue as O, stringifyValueWithType as Ot, fixAsyncOperation as P, isClass as Q, getClassPropertyName as R, average as S, prettyPrintObject as St, copy as T, setPathValue as Tt, getParentClass as U, getInheritanceChain as V, getPathValue as W, isArray as X, indexOf as Y, isAsyncFunction as Z, appendObject as _, last as _t, __ΩInjectMeta as a, isNull as at, assertInstanceOf as b, mergeStack as bt, AbstractClassType as c, isObject as ct, CustomError as d, isPromise as dt, isConstructable as et, ExtractClassType as f, isPrototypeOfBase as ft, __ΩExtractClassType as g, iterableSize as gt, __ΩCustomError as h, isUndefined as ht, __ΩInject as i, isIterable as it, escapeRegExp as j, empty as k, time as kt, AsyncFunction as l, isObjectLiteral as lt, __ΩClassType as m, isString as mt, InjectMeta as n, isGlobalClass as nt, __ΩTypeAnnotation as o, isNumber as ot, __ΩAbstractClassType as p, isSet as pt, identifyType as q, TypeAnnotation as r, isInteger as rt, CompilerContext as s, isNumeric as st, Inject as t, isFunction as tt, ClassType as u, isPlainObject as ut, applyDefaults as v, lastKey as vt, collectForMicrotask as w, rangeArray as wt, asyncOperation as x, prependObjectKeys as xt, assertDefined as y, mergePromiseStack as yt, getClassTypeFromInstance as z };
511
- //# sourceMappingURL=types-Dh22x546.d.cts.map
511
+ //# sourceMappingURL=types-cfMYDjR6.d.cts.map
@@ -390,7 +390,7 @@ declare function rangeArray(startOrLength: number, stop?: number, step?: number)
390
390
  *
391
391
  * Works the same as python's zip function.
392
392
  */
393
- declare function zip<T extends (readonly unknown[])[]>(...args: T): { [K in keyof T]: T[K] extends (infer V)[] ? V : never }[];
393
+ declare function zip<T extends (readonly unknown[])[]>(...args: T): { [K in keyof T]: T[K] extends (infer V)[] ? V : never; }[];
394
394
  /**
395
395
  * Forwards the runtime type arguments from function x to function y.
396
396
  * This is necessary when a generic function is overridden and forwarded to something else.
@@ -508,4 +508,4 @@ declare type __ΩInjectMeta = any[];
508
508
  declare type __ΩInject = any[];
509
509
  //#endregion
510
510
  export { isClassInstance as $, ensureError as A, zip as At, getCurrentFileName as B, changeClass as C, range as Ct, createStack as D, sleep as Dt, createDynamicClass as E, size as Et, formatError as F, hasProperty as G, getObjectKeysSize as H, forwardTypeArguments as I, inDebugMode as J, humanBytes as K, getClassName as L, first as M, firstKey as N, deletePathValue as O, stringifyValueWithType as Ot, fixAsyncOperation as P, isClass as Q, getClassPropertyName as R, average as S, prettyPrintObject as St, copy as T, setPathValue as Tt, getParentClass as U, getInheritanceChain as V, getPathValue as W, isArray as X, indexOf as Y, isAsyncFunction as Z, appendObject as _, last as _t, __ΩInjectMeta as a, isNull as at, assertInstanceOf as b, mergeStack as bt, AbstractClassType as c, isObject as ct, CustomError as d, isPromise as dt, isConstructable as et, ExtractClassType as f, isPrototypeOfBase as ft, __ΩExtractClassType as g, iterableSize as gt, __ΩCustomError as h, isUndefined as ht, __ΩInject as i, isIterable as it, escapeRegExp as j, empty as k, time as kt, AsyncFunction as l, isObjectLiteral as lt, __ΩClassType as m, isString as mt, InjectMeta as n, isGlobalClass as nt, __ΩTypeAnnotation as o, isNumber as ot, __ΩAbstractClassType as p, isSet as pt, identifyType as q, TypeAnnotation as r, isInteger as rt, CompilerContext as s, isNumeric as st, Inject as t, isFunction as tt, ClassType as u, isPlainObject as ut, applyDefaults as v, lastKey as vt, collectForMicrotask as w, rangeArray as wt, asyncOperation as x, prependObjectKeys as xt, assertDefined as y, mergePromiseStack as yt, getClassTypeFromInstance as z };
511
- //# sourceMappingURL=types-Dh22x546.d.mts.map
511
+ //# sourceMappingURL=types-cfMYDjR6.d.mts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/deepkit",
3
- "version": "0.9.95",
3
+ "version": "0.9.97",
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.48.63",
118
- "@storm-software/config-tools": "^1.190.89",
117
+ "@powerlines/core": "^0.48.65",
118
+ "@storm-software/config-tools": "^1.190.107",
119
119
  "@stryke/capnp": "^0.12.122",
120
120
  "@stryke/fs": "^0.33.96",
121
121
  "@stryke/helpers": "^0.10.35",
@@ -133,9 +133,9 @@
133
133
  "@deepkit/type": "1.0.5",
134
134
  "@deepkit/type-compiler": "1.0.5",
135
135
  "@deepkit/type-spec": "1.0.1",
136
- "@types/node": "^25.9.4",
137
- "rolldown": "^1.1.4",
138
- "tsdown": "^0.22.3"
136
+ "@types/node": "^25.9.5",
137
+ "rolldown": "^1.2.0",
138
+ "tsdown": "^0.22.8"
139
139
  },
140
140
  "peerDependencies": { "esbuild": "*", "rolldown": "*" },
141
141
  "peerDependenciesMeta": {
@@ -143,5 +143,5 @@
143
143
  "rolldown": { "optional": true }
144
144
  },
145
145
  "publishConfig": { "access": "public" },
146
- "gitHead": "237e375dd938a17d2d363344b4d2c38c0173a76e"
146
+ "gitHead": "cf8953be1a53bac9ad8c227195a662cbb422d43c"
147
147
  }
@@ -1,5 +1,4 @@
1
1
  import * as $ from "@stryke/capnp";
2
-
3
2
  //#region schemas/reflection.d.ts
4
3
  declare const _capnpFileId: bigint;
5
4
  declare const ReflectionKind: {
@@ -170,9 +169,9 @@ declare class EntityOptions_EntityIndexOptions extends $.Struct {
170
169
  _initNames(length: number): $.List<string>;
171
170
  set names(value: $.List<string>);
172
171
  /**
173
- * JSON stringified options
174
- *
175
- */
172
+ * JSON stringified options
173
+ *
174
+ */
176
175
  get options(): string;
177
176
  set options(value: string);
178
177
  toString(): string;
@@ -1173,9 +1172,9 @@ declare class SerializedTypeLiteralSymbol extends $.Struct {
1173
1172
  size: $.ObjectSize;
1174
1173
  };
1175
1174
  /**
1176
- * "symbol"
1177
- *
1178
- */
1175
+ * "symbol"
1176
+ *
1177
+ */
1179
1178
  get type(): string;
1180
1179
  set type(value: string);
1181
1180
  get name(): string;
@@ -1189,9 +1188,9 @@ declare class SerializedTypeLiteralBigInt extends $.Struct {
1189
1188
  size: $.ObjectSize;
1190
1189
  };
1191
1190
  /**
1192
- * "bigint"
1193
- *
1194
- */
1191
+ * "bigint"
1192
+ *
1193
+ */
1195
1194
  get type(): string;
1196
1195
  set type(value: string);
1197
1196
  get value(): string;
@@ -1205,9 +1204,9 @@ declare class SerializedTypeLiteralRegex extends $.Struct {
1205
1204
  size: $.ObjectSize;
1206
1205
  };
1207
1206
  /**
1208
- * "regex"
1209
- *
1210
- */
1207
+ * "regex"
1208
+ *
1209
+ */
1211
1210
  get type(): string;
1212
1211
  set type(value: string);
1213
1212
  get regex(): string;
@@ -1377,9 +1376,9 @@ declare const SerializedType_Type_Which: {
1377
1376
  readonly TUPLE_MEMBER: 20;
1378
1377
  readonly REST: 21;
1379
1378
  /**
1380
- * For any other type that is not explicitly defined
1381
- *
1382
- */
1379
+ * For any other type that is not explicitly defined
1380
+ *
1381
+ */
1383
1382
  readonly OTHER: 22;
1384
1383
  };
1385
1384
  type SerializedType_Type_Which = (typeof SerializedType_Type_Which)[keyof typeof SerializedType_Type_Which];
@@ -1569,9 +1568,9 @@ declare class SerializedType_Type extends $.Struct {
1569
1568
  _adoptOther(value: $.Orphan<SerializedTypeOther>): void;
1570
1569
  _disownOther(): $.Orphan<SerializedTypeOther>;
1571
1570
  /**
1572
- * For any other type that is not explicitly defined
1573
- *
1574
- */
1571
+ * For any other type that is not explicitly defined
1572
+ *
1573
+ */
1575
1574
  get other(): SerializedTypeOther;
1576
1575
  _hasOther(): boolean;
1577
1576
  _initOther(): SerializedTypeOther;
@@ -1,5 +1,4 @@
1
1
  import * as $ from "@stryke/capnp";
2
-
3
2
  //#region schemas/reflection.d.ts
4
3
  declare const _capnpFileId: bigint;
5
4
  declare const ReflectionKind: {
@@ -170,9 +169,9 @@ declare class EntityOptions_EntityIndexOptions extends $.Struct {
170
169
  _initNames(length: number): $.List<string>;
171
170
  set names(value: $.List<string>);
172
171
  /**
173
- * JSON stringified options
174
- *
175
- */
172
+ * JSON stringified options
173
+ *
174
+ */
176
175
  get options(): string;
177
176
  set options(value: string);
178
177
  toString(): string;
@@ -1173,9 +1172,9 @@ declare class SerializedTypeLiteralSymbol extends $.Struct {
1173
1172
  size: $.ObjectSize;
1174
1173
  };
1175
1174
  /**
1176
- * "symbol"
1177
- *
1178
- */
1175
+ * "symbol"
1176
+ *
1177
+ */
1179
1178
  get type(): string;
1180
1179
  set type(value: string);
1181
1180
  get name(): string;
@@ -1189,9 +1188,9 @@ declare class SerializedTypeLiteralBigInt extends $.Struct {
1189
1188
  size: $.ObjectSize;
1190
1189
  };
1191
1190
  /**
1192
- * "bigint"
1193
- *
1194
- */
1191
+ * "bigint"
1192
+ *
1193
+ */
1195
1194
  get type(): string;
1196
1195
  set type(value: string);
1197
1196
  get value(): string;
@@ -1205,9 +1204,9 @@ declare class SerializedTypeLiteralRegex extends $.Struct {
1205
1204
  size: $.ObjectSize;
1206
1205
  };
1207
1206
  /**
1208
- * "regex"
1209
- *
1210
- */
1207
+ * "regex"
1208
+ *
1209
+ */
1211
1210
  get type(): string;
1212
1211
  set type(value: string);
1213
1212
  get regex(): string;
@@ -1377,9 +1376,9 @@ declare const SerializedType_Type_Which: {
1377
1376
  readonly TUPLE_MEMBER: 20;
1378
1377
  readonly REST: 21;
1379
1378
  /**
1380
- * For any other type that is not explicitly defined
1381
- *
1382
- */
1379
+ * For any other type that is not explicitly defined
1380
+ *
1381
+ */
1383
1382
  readonly OTHER: 22;
1384
1383
  };
1385
1384
  type SerializedType_Type_Which = (typeof SerializedType_Type_Which)[keyof typeof SerializedType_Type_Which];
@@ -1569,9 +1568,9 @@ declare class SerializedType_Type extends $.Struct {
1569
1568
  _adoptOther(value: $.Orphan<SerializedTypeOther>): void;
1570
1569
  _disownOther(): $.Orphan<SerializedTypeOther>;
1571
1570
  /**
1572
- * For any other type that is not explicitly defined
1573
- *
1574
- */
1571
+ * For any other type that is not explicitly defined
1572
+ *
1573
+ */
1575
1574
  get other(): SerializedTypeOther;
1576
1575
  _hasOther(): boolean;
1577
1576
  _initOther(): SerializedTypeOther;