@cratis/fundamentals 7.19.5 → 7.19.6

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 (67) hide show
  1. package/dist/cjs/ConceptAs.d.ts +1 -1
  2. package/dist/cjs/DateOnly.d.ts +1 -1
  3. package/dist/cjs/DerivedType.d.ts +2 -2
  4. package/dist/cjs/Field.d.ts +1 -1
  5. package/dist/cjs/Fields.d.ts +3 -3
  6. package/dist/cjs/Guid.d.ts +2 -2
  7. package/dist/cjs/JsonSerializer.d.ts +2 -2
  8. package/dist/cjs/PropertyAccessorDescriptor.d.ts +1 -1
  9. package/dist/cjs/StandardClassDecoratorContext.d.ts +1 -1
  10. package/dist/cjs/TimeOnly.d.ts +1 -1
  11. package/dist/cjs/TimeSpan.d.ts +1 -1
  12. package/dist/cjs/ValueMap.d.ts +1 -1
  13. package/dist/cjs/derivedTypeDecorator.d.ts +3 -3
  14. package/dist/cjs/fieldDecorator.d.ts +2 -2
  15. package/dist/cjs/fieldDecoratorMetadata.d.ts +3 -3
  16. package/dist/cjs/geospatial/LineString.d.ts +2 -2
  17. package/dist/cjs/geospatial/LinearRing.d.ts +1 -1
  18. package/dist/cjs/geospatial/Point.d.ts +1 -1
  19. package/dist/cjs/geospatial/Polygon.d.ts +2 -2
  20. package/dist/cjs/geospatial/index.d.ts +4 -4
  21. package/dist/cjs/index.d.ts +20 -20
  22. package/dist/cjs/json/DateJsonConverter.d.ts +2 -2
  23. package/dist/cjs/json/DateOnlyJsonConverter.d.ts +3 -3
  24. package/dist/cjs/json/GuidJsonConverter.d.ts +3 -3
  25. package/dist/cjs/json/JsonConverter.d.ts +1 -1
  26. package/dist/cjs/json/LineStringJsonConverter.d.ts +3 -3
  27. package/dist/cjs/json/PointJsonConverter.d.ts +3 -3
  28. package/dist/cjs/json/PolygonJsonConverter.d.ts +3 -3
  29. package/dist/cjs/json/TimeOnlyJsonConverter.d.ts +3 -3
  30. package/dist/cjs/json/TimeSpanJsonConverter.d.ts +3 -3
  31. package/dist/cjs/json/ValueMapJsonConverter.d.ts +3 -3
  32. package/dist/cjs/json/index.d.ts +10 -10
  33. package/dist/cjs/typeKey.d.ts +1 -1
  34. package/dist/esm/ConceptAs.d.ts +1 -1
  35. package/dist/esm/DateOnly.d.ts +1 -1
  36. package/dist/esm/DerivedType.d.ts +2 -2
  37. package/dist/esm/Field.d.ts +1 -1
  38. package/dist/esm/Fields.d.ts +3 -3
  39. package/dist/esm/Guid.d.ts +2 -2
  40. package/dist/esm/JsonSerializer.d.ts +2 -2
  41. package/dist/esm/PropertyAccessorDescriptor.d.ts +1 -1
  42. package/dist/esm/StandardClassDecoratorContext.d.ts +1 -1
  43. package/dist/esm/TimeOnly.d.ts +1 -1
  44. package/dist/esm/TimeSpan.d.ts +1 -1
  45. package/dist/esm/ValueMap.d.ts +1 -1
  46. package/dist/esm/derivedTypeDecorator.d.ts +3 -3
  47. package/dist/esm/fieldDecorator.d.ts +2 -2
  48. package/dist/esm/fieldDecoratorMetadata.d.ts +3 -3
  49. package/dist/esm/geospatial/LineString.d.ts +2 -2
  50. package/dist/esm/geospatial/LinearRing.d.ts +1 -1
  51. package/dist/esm/geospatial/Point.d.ts +1 -1
  52. package/dist/esm/geospatial/Polygon.d.ts +2 -2
  53. package/dist/esm/geospatial/index.d.ts +4 -4
  54. package/dist/esm/index.d.ts +20 -20
  55. package/dist/esm/json/DateJsonConverter.d.ts +2 -2
  56. package/dist/esm/json/DateOnlyJsonConverter.d.ts +3 -3
  57. package/dist/esm/json/GuidJsonConverter.d.ts +3 -3
  58. package/dist/esm/json/JsonConverter.d.ts +1 -1
  59. package/dist/esm/json/LineStringJsonConverter.d.ts +3 -3
  60. package/dist/esm/json/PointJsonConverter.d.ts +3 -3
  61. package/dist/esm/json/PolygonJsonConverter.d.ts +3 -3
  62. package/dist/esm/json/TimeOnlyJsonConverter.d.ts +3 -3
  63. package/dist/esm/json/TimeSpanJsonConverter.d.ts +3 -3
  64. package/dist/esm/json/ValueMapJsonConverter.d.ts +3 -3
  65. package/dist/esm/json/index.d.ts +10 -10
  66. package/dist/esm/typeKey.d.ts +1 -1
  67. package/package.json +37 -16
@@ -1,4 +1,4 @@
1
- import { typeKey } from './typeKey';
1
+ import { typeKey } from './typeKey.js';
2
2
  export declare abstract class ConceptAs<T> {
3
3
  readonly value: T;
4
4
  static readonly [typeKey] = "ConceptAs";
@@ -1,4 +1,4 @@
1
- import { typeKey } from './typeKey';
1
+ import { typeKey } from './typeKey.js';
2
2
  export declare class DateOnly {
3
3
  static readonly [typeKey] = "DateOnly";
4
4
  year: number;
@@ -1,5 +1,5 @@
1
- import './reflection';
2
- import { Constructor } from './Constructor';
1
+ import './reflection.js';
2
+ import { Constructor } from './Constructor.js';
3
3
  export declare class DerivedType {
4
4
  static set(target: Constructor, identifier: string, targetType?: Constructor): void;
5
5
  static get(target: Constructor): string;
@@ -1,4 +1,4 @@
1
- import { Constructor } from './Constructor';
1
+ import { Constructor } from './Constructor.js';
2
2
  export declare class Field {
3
3
  readonly name: string;
4
4
  readonly type: Constructor;
@@ -1,6 +1,6 @@
1
- import './reflection';
2
- import { Constructor } from './Constructor';
3
- import { Field } from './Field';
1
+ import './reflection.js';
2
+ import { Constructor } from './Constructor.js';
3
+ import { Field } from './Field.js';
4
4
  export declare class Fields {
5
5
  static addFieldToType(target: Constructor, field: string, fieldType: Constructor, enumerable: boolean, derivatives: Constructor[], genericArguments: Constructor[]): void;
6
6
  static getFieldsForType(target: Constructor): Field[];
@@ -1,5 +1,5 @@
1
- import { IEquatable } from './IEquatable';
2
- import { typeKey } from './typeKey';
1
+ import { IEquatable } from './IEquatable.js';
2
+ import { typeKey } from './typeKey.js';
3
3
  export declare class Guid implements IEquatable {
4
4
  readonly bytes: number[] | Uint8Array | undefined;
5
5
  static readonly [typeKey] = "Guid";
@@ -1,5 +1,5 @@
1
- import { Constructor } from './Constructor';
2
- import { JsonConverter } from './json';
1
+ import { Constructor } from './Constructor.js';
2
+ import { JsonConverter } from './json/index.js';
3
3
  export declare class JsonSerializer {
4
4
  static readonly DerivedTypeIdProperty: string;
5
5
  static registerConverter(converter: JsonConverter): void;
@@ -1,4 +1,4 @@
1
- import { PropertyAccessor } from './PropertyAccessor';
1
+ import { PropertyAccessor } from './PropertyAccessor.js';
2
2
  export declare class PropertyAccessorDescriptor {
3
3
  private readonly _accessor;
4
4
  private readonly _segments;
@@ -1,4 +1,4 @@
1
- import { Constructor } from './Constructor';
1
+ import { Constructor } from './Constructor.js';
2
2
  export type StandardClassDecoratorContext<Target extends Constructor> = {
3
3
  readonly kind: 'class';
4
4
  readonly name: string | undefined;
@@ -1,4 +1,4 @@
1
- import { typeKey } from './typeKey';
1
+ import { typeKey } from './typeKey.js';
2
2
  export declare class TimeOnly {
3
3
  static readonly [typeKey] = "TimeOnly";
4
4
  hour: number;
@@ -1,4 +1,4 @@
1
- import { typeKey } from './typeKey';
1
+ import { typeKey } from './typeKey.js';
2
2
  export declare class TimeSpan {
3
3
  static readonly [typeKey] = "TimeSpan";
4
4
  ticks: number;
@@ -1,4 +1,4 @@
1
- import { typeKey } from './typeKey';
1
+ import { typeKey } from './typeKey.js';
2
2
  export declare class ValueMap<TKey, TValue> {
3
3
  static readonly [typeKey] = "ValueMap";
4
4
  private readonly _entries;
@@ -1,6 +1,6 @@
1
- import './reflection';
2
- import { Constructor } from './Constructor';
3
- import { StandardClassDecoratorContext } from './StandardClassDecoratorContext';
1
+ import './reflection.js';
2
+ import { Constructor } from './Constructor.js';
3
+ import { StandardClassDecoratorContext } from './StandardClassDecoratorContext.js';
4
4
  export declare function derivedType(identifier: string, targetType?: Constructor): {
5
5
  <Target extends Constructor>(target: Target): void;
6
6
  <Target extends Constructor>(target: Target, context: StandardClassDecoratorContext<Target>): void;
@@ -1,5 +1,5 @@
1
- import { Constructor } from './Constructor';
2
- import { StandardFieldDecoratorContext } from './StandardFieldDecoratorContext';
1
+ import { Constructor } from './Constructor.js';
2
+ import { StandardFieldDecoratorContext } from './StandardFieldDecoratorContext.js';
3
3
  type fieldOptions = {
4
4
  enumerable?: boolean;
5
5
  derivatives?: Constructor[];
@@ -1,6 +1,6 @@
1
- import './reflection';
2
- import { Constructor } from './Constructor';
3
- import { Field } from './Field';
1
+ import './reflection.js';
2
+ import { Constructor } from './Constructor.js';
3
+ import { Field } from './Field.js';
4
4
  export declare function addFieldToDecoratorMetadata(metadata: Record<PropertyKey, unknown>, field: Field): void;
5
5
  export declare function getOwnDecoratorFieldsForType(target: Constructor): Field[];
6
6
  //# sourceMappingURL=fieldDecoratorMetadata.d.ts.map
@@ -1,5 +1,5 @@
1
- import { Point } from './Point';
2
- import { typeKey } from '../typeKey';
1
+ import { Point } from './Point.js';
2
+ import { typeKey } from '../typeKey.js';
3
3
  export declare class LineString {
4
4
  static readonly [typeKey] = "LineString";
5
5
  coordinates: Point[];
@@ -1,4 +1,4 @@
1
- import { Point } from './Point';
1
+ import { Point } from './Point.js';
2
2
  export declare class LinearRing {
3
3
  coordinates: Point[];
4
4
  constructor(coordinates: Point[]);
@@ -1,4 +1,4 @@
1
- import { typeKey } from '../typeKey';
1
+ import { typeKey } from '../typeKey.js';
2
2
  export declare class Point {
3
3
  static readonly [typeKey] = "Point";
4
4
  longitude: number;
@@ -1,5 +1,5 @@
1
- import { LinearRing } from './LinearRing';
2
- import { typeKey } from '../typeKey';
1
+ import { LinearRing } from './LinearRing.js';
2
+ import { typeKey } from '../typeKey.js';
3
3
  export declare class Polygon {
4
4
  static readonly [typeKey] = "Polygon";
5
5
  shell: LinearRing;
@@ -1,5 +1,5 @@
1
- export * from './Point';
2
- export * from './LinearRing';
3
- export * from './LineString';
4
- export * from './Polygon';
1
+ export * from './Point.js';
2
+ export * from './LinearRing.js';
3
+ export * from './LineString.js';
4
+ export * from './Polygon.js';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1,21 +1,21 @@
1
- export * from './ConceptAs';
2
- export * from './Constructor';
3
- export * from './geospatial';
4
- export * from './json';
5
- export * from './Field';
6
- export * from './Fields';
7
- export * from './DateOnly';
8
- export * from './Guid';
9
- export * from './IEquatable';
10
- export * from './PropertyAccessor';
11
- export * from './PropertyAccessorDescriptor';
12
- export * from './PropertyPathResolverProxyHandler';
13
- export * from './TimeOnly';
14
- export * from './TimeSpan';
15
- export * from './ValueMap';
16
- export * from './typeKey';
17
- export * from './fieldDecorator';
18
- export * from './derivedTypeDecorator';
19
- export * from './JsonSerializer';
20
- export * from './DerivedType';
1
+ export * from './ConceptAs.js';
2
+ export * from './Constructor.js';
3
+ export * from './geospatial/index.js';
4
+ export * from './json/index.js';
5
+ export * from './Field.js';
6
+ export * from './Fields.js';
7
+ export * from './DateOnly.js';
8
+ export * from './Guid.js';
9
+ export * from './IEquatable.js';
10
+ export * from './PropertyAccessor.js';
11
+ export * from './PropertyAccessorDescriptor.js';
12
+ export * from './PropertyPathResolverProxyHandler.js';
13
+ export * from './TimeOnly.js';
14
+ export * from './TimeSpan.js';
15
+ export * from './ValueMap.js';
16
+ export * from './typeKey.js';
17
+ export * from './fieldDecorator.js';
18
+ export * from './derivedTypeDecorator.js';
19
+ export * from './JsonSerializer.js';
20
+ export * from './DerivedType.js';
21
21
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
- import { Constructor } from '../Constructor';
2
- import { JsonConverter } from './JsonConverter';
1
+ import { Constructor } from '../Constructor.js';
2
+ import { JsonConverter } from './JsonConverter.js';
3
3
  export declare class DateJsonConverter extends JsonConverter<Date> {
4
4
  get type(): Constructor<Date>;
5
5
  read(value: any): Date;
@@ -1,6 +1,6 @@
1
- import { Constructor } from '../Constructor';
2
- import { DateOnly } from '../DateOnly';
3
- import { JsonConverter } from './JsonConverter';
1
+ import { Constructor } from '../Constructor.js';
2
+ import { DateOnly } from '../DateOnly.js';
3
+ import { JsonConverter } from './JsonConverter.js';
4
4
  export declare class DateOnlyJsonConverter extends JsonConverter<DateOnly> {
5
5
  get type(): Constructor<DateOnly>;
6
6
  read(value: any): DateOnly;
@@ -1,6 +1,6 @@
1
- import { Constructor } from '../Constructor';
2
- import { Guid } from '../Guid';
3
- import { JsonConverter } from './JsonConverter';
1
+ import { Constructor } from '../Constructor.js';
2
+ import { Guid } from '../Guid.js';
3
+ import { JsonConverter } from './JsonConverter.js';
4
4
  export declare class GuidJsonConverter extends JsonConverter<Guid> {
5
5
  get type(): Constructor<Guid>;
6
6
  read(value: any): Guid;
@@ -1,4 +1,4 @@
1
- import { Constructor } from '../Constructor';
1
+ import { Constructor } from '../Constructor.js';
2
2
  export declare abstract class JsonConverter<T = any> {
3
3
  abstract get type(): Constructor<T>;
4
4
  canConvert(typeToConvert: Constructor): boolean;
@@ -1,6 +1,6 @@
1
- import { Constructor } from '../Constructor';
2
- import { LineString } from '../geospatial';
3
- import { JsonConverter } from './JsonConverter';
1
+ import { Constructor } from '../Constructor.js';
2
+ import { LineString } from '../geospatial/index.js';
3
+ import { JsonConverter } from './JsonConverter.js';
4
4
  export declare class LineStringJsonConverter extends JsonConverter<LineString> {
5
5
  get type(): Constructor<LineString>;
6
6
  read(value: any): LineString;
@@ -1,6 +1,6 @@
1
- import { Constructor } from '../Constructor';
2
- import { Point } from '../geospatial';
3
- import { JsonConverter } from './JsonConverter';
1
+ import { Constructor } from '../Constructor.js';
2
+ import { Point } from '../geospatial/index.js';
3
+ import { JsonConverter } from './JsonConverter.js';
4
4
  export declare class PointJsonConverter extends JsonConverter<Point> {
5
5
  get type(): Constructor<Point>;
6
6
  read(value: any): Point;
@@ -1,6 +1,6 @@
1
- import { Constructor } from '../Constructor';
2
- import { Polygon } from '../geospatial';
3
- import { JsonConverter } from './JsonConverter';
1
+ import { Constructor } from '../Constructor.js';
2
+ import { Polygon } from '../geospatial/index.js';
3
+ import { JsonConverter } from './JsonConverter.js';
4
4
  export declare class PolygonJsonConverter extends JsonConverter<Polygon> {
5
5
  get type(): Constructor<Polygon>;
6
6
  read(value: any): Polygon;
@@ -1,6 +1,6 @@
1
- import { Constructor } from '../Constructor';
2
- import { TimeOnly } from '../TimeOnly';
3
- import { JsonConverter } from './JsonConverter';
1
+ import { Constructor } from '../Constructor.js';
2
+ import { TimeOnly } from '../TimeOnly.js';
3
+ import { JsonConverter } from './JsonConverter.js';
4
4
  export declare class TimeOnlyJsonConverter extends JsonConverter<TimeOnly> {
5
5
  get type(): Constructor<TimeOnly>;
6
6
  read(value: any): TimeOnly;
@@ -1,6 +1,6 @@
1
- import { Constructor } from '../Constructor';
2
- import { TimeSpan } from '../TimeSpan';
3
- import { JsonConverter } from './JsonConverter';
1
+ import { Constructor } from '../Constructor.js';
2
+ import { TimeSpan } from '../TimeSpan.js';
3
+ import { JsonConverter } from './JsonConverter.js';
4
4
  export declare class TimeSpanJsonConverter extends JsonConverter<TimeSpan> {
5
5
  get type(): Constructor<TimeSpan>;
6
6
  read(value: any): TimeSpan;
@@ -1,6 +1,6 @@
1
- import { Constructor } from '../Constructor';
2
- import { ValueMap } from '../ValueMap';
3
- import { JsonConverter } from './JsonConverter';
1
+ import { Constructor } from '../Constructor.js';
2
+ import { ValueMap } from '../ValueMap.js';
3
+ import { JsonConverter } from './JsonConverter.js';
4
4
  export declare class ValueMapJsonConverter extends JsonConverter<ValueMap<any, any>> {
5
5
  private static serializeMapKey;
6
6
  private static convertTypesOnInstance;
@@ -1,11 +1,11 @@
1
- export * from './JsonConverter';
2
- export * from './DateJsonConverter';
3
- export * from './DateOnlyJsonConverter';
4
- export * from './GuidJsonConverter';
5
- export * from './TimeOnlyJsonConverter';
6
- export * from './TimeSpanJsonConverter';
7
- export * from './PointJsonConverter';
8
- export * from './LineStringJsonConverter';
9
- export * from './PolygonJsonConverter';
10
- export * from './ValueMapJsonConverter';
1
+ export * from './JsonConverter.js';
2
+ export * from './DateJsonConverter.js';
3
+ export * from './DateOnlyJsonConverter.js';
4
+ export * from './GuidJsonConverter.js';
5
+ export * from './TimeOnlyJsonConverter.js';
6
+ export * from './TimeSpanJsonConverter.js';
7
+ export * from './PointJsonConverter.js';
8
+ export * from './LineStringJsonConverter.js';
9
+ export * from './PolygonJsonConverter.js';
10
+ export * from './ValueMapJsonConverter.js';
11
11
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- import { Constructor } from './Constructor';
1
+ import { Constructor } from './Constructor.js';
2
2
  export declare const typeKey: unique symbol;
3
3
  export declare const declaredTypeKey: (type: Constructor | undefined) => string | undefined;
4
4
  export declare const typeKeyOf: (type: Constructor | undefined) => string | undefined;
@@ -1,4 +1,4 @@
1
- import { typeKey } from './typeKey';
1
+ import { typeKey } from './typeKey.js';
2
2
  export declare abstract class ConceptAs<T> {
3
3
  readonly value: T;
4
4
  static readonly [typeKey] = "ConceptAs";
@@ -1,4 +1,4 @@
1
- import { typeKey } from './typeKey';
1
+ import { typeKey } from './typeKey.js';
2
2
  export declare class DateOnly {
3
3
  static readonly [typeKey] = "DateOnly";
4
4
  year: number;
@@ -1,5 +1,5 @@
1
- import './reflection';
2
- import { Constructor } from './Constructor';
1
+ import './reflection.js';
2
+ import { Constructor } from './Constructor.js';
3
3
  export declare class DerivedType {
4
4
  static set(target: Constructor, identifier: string, targetType?: Constructor): void;
5
5
  static get(target: Constructor): string;
@@ -1,4 +1,4 @@
1
- import { Constructor } from './Constructor';
1
+ import { Constructor } from './Constructor.js';
2
2
  export declare class Field {
3
3
  readonly name: string;
4
4
  readonly type: Constructor;
@@ -1,6 +1,6 @@
1
- import './reflection';
2
- import { Constructor } from './Constructor';
3
- import { Field } from './Field';
1
+ import './reflection.js';
2
+ import { Constructor } from './Constructor.js';
3
+ import { Field } from './Field.js';
4
4
  export declare class Fields {
5
5
  static addFieldToType(target: Constructor, field: string, fieldType: Constructor, enumerable: boolean, derivatives: Constructor[], genericArguments: Constructor[]): void;
6
6
  static getFieldsForType(target: Constructor): Field[];
@@ -1,5 +1,5 @@
1
- import { IEquatable } from './IEquatable';
2
- import { typeKey } from './typeKey';
1
+ import { IEquatable } from './IEquatable.js';
2
+ import { typeKey } from './typeKey.js';
3
3
  export declare class Guid implements IEquatable {
4
4
  readonly bytes: number[] | Uint8Array | undefined;
5
5
  static readonly [typeKey] = "Guid";
@@ -1,5 +1,5 @@
1
- import { Constructor } from './Constructor';
2
- import { JsonConverter } from './json';
1
+ import { Constructor } from './Constructor.js';
2
+ import { JsonConverter } from './json/index.js';
3
3
  export declare class JsonSerializer {
4
4
  static readonly DerivedTypeIdProperty: string;
5
5
  static registerConverter(converter: JsonConverter): void;
@@ -1,4 +1,4 @@
1
- import { PropertyAccessor } from './PropertyAccessor';
1
+ import { PropertyAccessor } from './PropertyAccessor.js';
2
2
  export declare class PropertyAccessorDescriptor {
3
3
  private readonly _accessor;
4
4
  private readonly _segments;
@@ -1,4 +1,4 @@
1
- import { Constructor } from './Constructor';
1
+ import { Constructor } from './Constructor.js';
2
2
  export type StandardClassDecoratorContext<Target extends Constructor> = {
3
3
  readonly kind: 'class';
4
4
  readonly name: string | undefined;
@@ -1,4 +1,4 @@
1
- import { typeKey } from './typeKey';
1
+ import { typeKey } from './typeKey.js';
2
2
  export declare class TimeOnly {
3
3
  static readonly [typeKey] = "TimeOnly";
4
4
  hour: number;
@@ -1,4 +1,4 @@
1
- import { typeKey } from './typeKey';
1
+ import { typeKey } from './typeKey.js';
2
2
  export declare class TimeSpan {
3
3
  static readonly [typeKey] = "TimeSpan";
4
4
  ticks: number;
@@ -1,4 +1,4 @@
1
- import { typeKey } from './typeKey';
1
+ import { typeKey } from './typeKey.js';
2
2
  export declare class ValueMap<TKey, TValue> {
3
3
  static readonly [typeKey] = "ValueMap";
4
4
  private readonly _entries;
@@ -1,6 +1,6 @@
1
- import './reflection';
2
- import { Constructor } from './Constructor';
3
- import { StandardClassDecoratorContext } from './StandardClassDecoratorContext';
1
+ import './reflection.js';
2
+ import { Constructor } from './Constructor.js';
3
+ import { StandardClassDecoratorContext } from './StandardClassDecoratorContext.js';
4
4
  export declare function derivedType(identifier: string, targetType?: Constructor): {
5
5
  <Target extends Constructor>(target: Target): void;
6
6
  <Target extends Constructor>(target: Target, context: StandardClassDecoratorContext<Target>): void;
@@ -1,5 +1,5 @@
1
- import { Constructor } from './Constructor';
2
- import { StandardFieldDecoratorContext } from './StandardFieldDecoratorContext';
1
+ import { Constructor } from './Constructor.js';
2
+ import { StandardFieldDecoratorContext } from './StandardFieldDecoratorContext.js';
3
3
  type fieldOptions = {
4
4
  enumerable?: boolean;
5
5
  derivatives?: Constructor[];
@@ -1,6 +1,6 @@
1
- import './reflection';
2
- import { Constructor } from './Constructor';
3
- import { Field } from './Field';
1
+ import './reflection.js';
2
+ import { Constructor } from './Constructor.js';
3
+ import { Field } from './Field.js';
4
4
  export declare function addFieldToDecoratorMetadata(metadata: Record<PropertyKey, unknown>, field: Field): void;
5
5
  export declare function getOwnDecoratorFieldsForType(target: Constructor): Field[];
6
6
  //# sourceMappingURL=fieldDecoratorMetadata.d.ts.map
@@ -1,5 +1,5 @@
1
- import { Point } from './Point';
2
- import { typeKey } from '../typeKey';
1
+ import { Point } from './Point.js';
2
+ import { typeKey } from '../typeKey.js';
3
3
  export declare class LineString {
4
4
  static readonly [typeKey] = "LineString";
5
5
  coordinates: Point[];
@@ -1,4 +1,4 @@
1
- import { Point } from './Point';
1
+ import { Point } from './Point.js';
2
2
  export declare class LinearRing {
3
3
  coordinates: Point[];
4
4
  constructor(coordinates: Point[]);
@@ -1,4 +1,4 @@
1
- import { typeKey } from '../typeKey';
1
+ import { typeKey } from '../typeKey.js';
2
2
  export declare class Point {
3
3
  static readonly [typeKey] = "Point";
4
4
  longitude: number;
@@ -1,5 +1,5 @@
1
- import { LinearRing } from './LinearRing';
2
- import { typeKey } from '../typeKey';
1
+ import { LinearRing } from './LinearRing.js';
2
+ import { typeKey } from '../typeKey.js';
3
3
  export declare class Polygon {
4
4
  static readonly [typeKey] = "Polygon";
5
5
  shell: LinearRing;
@@ -1,5 +1,5 @@
1
- export * from './Point';
2
- export * from './LinearRing';
3
- export * from './LineString';
4
- export * from './Polygon';
1
+ export * from './Point.js';
2
+ export * from './LinearRing.js';
3
+ export * from './LineString.js';
4
+ export * from './Polygon.js';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1,21 +1,21 @@
1
- export * from './ConceptAs';
2
- export * from './Constructor';
3
- export * from './geospatial';
4
- export * from './json';
5
- export * from './Field';
6
- export * from './Fields';
7
- export * from './DateOnly';
8
- export * from './Guid';
9
- export * from './IEquatable';
10
- export * from './PropertyAccessor';
11
- export * from './PropertyAccessorDescriptor';
12
- export * from './PropertyPathResolverProxyHandler';
13
- export * from './TimeOnly';
14
- export * from './TimeSpan';
15
- export * from './ValueMap';
16
- export * from './typeKey';
17
- export * from './fieldDecorator';
18
- export * from './derivedTypeDecorator';
19
- export * from './JsonSerializer';
20
- export * from './DerivedType';
1
+ export * from './ConceptAs.js';
2
+ export * from './Constructor.js';
3
+ export * from './geospatial/index.js';
4
+ export * from './json/index.js';
5
+ export * from './Field.js';
6
+ export * from './Fields.js';
7
+ export * from './DateOnly.js';
8
+ export * from './Guid.js';
9
+ export * from './IEquatable.js';
10
+ export * from './PropertyAccessor.js';
11
+ export * from './PropertyAccessorDescriptor.js';
12
+ export * from './PropertyPathResolverProxyHandler.js';
13
+ export * from './TimeOnly.js';
14
+ export * from './TimeSpan.js';
15
+ export * from './ValueMap.js';
16
+ export * from './typeKey.js';
17
+ export * from './fieldDecorator.js';
18
+ export * from './derivedTypeDecorator.js';
19
+ export * from './JsonSerializer.js';
20
+ export * from './DerivedType.js';
21
21
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
- import { Constructor } from '../Constructor';
2
- import { JsonConverter } from './JsonConverter';
1
+ import { Constructor } from '../Constructor.js';
2
+ import { JsonConverter } from './JsonConverter.js';
3
3
  export declare class DateJsonConverter extends JsonConverter<Date> {
4
4
  get type(): Constructor<Date>;
5
5
  read(value: any): Date;
@@ -1,6 +1,6 @@
1
- import { Constructor } from '../Constructor';
2
- import { DateOnly } from '../DateOnly';
3
- import { JsonConverter } from './JsonConverter';
1
+ import { Constructor } from '../Constructor.js';
2
+ import { DateOnly } from '../DateOnly.js';
3
+ import { JsonConverter } from './JsonConverter.js';
4
4
  export declare class DateOnlyJsonConverter extends JsonConverter<DateOnly> {
5
5
  get type(): Constructor<DateOnly>;
6
6
  read(value: any): DateOnly;
@@ -1,6 +1,6 @@
1
- import { Constructor } from '../Constructor';
2
- import { Guid } from '../Guid';
3
- import { JsonConverter } from './JsonConverter';
1
+ import { Constructor } from '../Constructor.js';
2
+ import { Guid } from '../Guid.js';
3
+ import { JsonConverter } from './JsonConverter.js';
4
4
  export declare class GuidJsonConverter extends JsonConverter<Guid> {
5
5
  get type(): Constructor<Guid>;
6
6
  read(value: any): Guid;
@@ -1,4 +1,4 @@
1
- import { Constructor } from '../Constructor';
1
+ import { Constructor } from '../Constructor.js';
2
2
  export declare abstract class JsonConverter<T = any> {
3
3
  abstract get type(): Constructor<T>;
4
4
  canConvert(typeToConvert: Constructor): boolean;
@@ -1,6 +1,6 @@
1
- import { Constructor } from '../Constructor';
2
- import { LineString } from '../geospatial';
3
- import { JsonConverter } from './JsonConverter';
1
+ import { Constructor } from '../Constructor.js';
2
+ import { LineString } from '../geospatial/index.js';
3
+ import { JsonConverter } from './JsonConverter.js';
4
4
  export declare class LineStringJsonConverter extends JsonConverter<LineString> {
5
5
  get type(): Constructor<LineString>;
6
6
  read(value: any): LineString;
@@ -1,6 +1,6 @@
1
- import { Constructor } from '../Constructor';
2
- import { Point } from '../geospatial';
3
- import { JsonConverter } from './JsonConverter';
1
+ import { Constructor } from '../Constructor.js';
2
+ import { Point } from '../geospatial/index.js';
3
+ import { JsonConverter } from './JsonConverter.js';
4
4
  export declare class PointJsonConverter extends JsonConverter<Point> {
5
5
  get type(): Constructor<Point>;
6
6
  read(value: any): Point;
@@ -1,6 +1,6 @@
1
- import { Constructor } from '../Constructor';
2
- import { Polygon } from '../geospatial';
3
- import { JsonConverter } from './JsonConverter';
1
+ import { Constructor } from '../Constructor.js';
2
+ import { Polygon } from '../geospatial/index.js';
3
+ import { JsonConverter } from './JsonConverter.js';
4
4
  export declare class PolygonJsonConverter extends JsonConverter<Polygon> {
5
5
  get type(): Constructor<Polygon>;
6
6
  read(value: any): Polygon;
@@ -1,6 +1,6 @@
1
- import { Constructor } from '../Constructor';
2
- import { TimeOnly } from '../TimeOnly';
3
- import { JsonConverter } from './JsonConverter';
1
+ import { Constructor } from '../Constructor.js';
2
+ import { TimeOnly } from '../TimeOnly.js';
3
+ import { JsonConverter } from './JsonConverter.js';
4
4
  export declare class TimeOnlyJsonConverter extends JsonConverter<TimeOnly> {
5
5
  get type(): Constructor<TimeOnly>;
6
6
  read(value: any): TimeOnly;
@@ -1,6 +1,6 @@
1
- import { Constructor } from '../Constructor';
2
- import { TimeSpan } from '../TimeSpan';
3
- import { JsonConverter } from './JsonConverter';
1
+ import { Constructor } from '../Constructor.js';
2
+ import { TimeSpan } from '../TimeSpan.js';
3
+ import { JsonConverter } from './JsonConverter.js';
4
4
  export declare class TimeSpanJsonConverter extends JsonConverter<TimeSpan> {
5
5
  get type(): Constructor<TimeSpan>;
6
6
  read(value: any): TimeSpan;
@@ -1,6 +1,6 @@
1
- import { Constructor } from '../Constructor';
2
- import { ValueMap } from '../ValueMap';
3
- import { JsonConverter } from './JsonConverter';
1
+ import { Constructor } from '../Constructor.js';
2
+ import { ValueMap } from '../ValueMap.js';
3
+ import { JsonConverter } from './JsonConverter.js';
4
4
  export declare class ValueMapJsonConverter extends JsonConverter<ValueMap<any, any>> {
5
5
  private static serializeMapKey;
6
6
  private static convertTypesOnInstance;
@@ -1,11 +1,11 @@
1
- export * from './JsonConverter';
2
- export * from './DateJsonConverter';
3
- export * from './DateOnlyJsonConverter';
4
- export * from './GuidJsonConverter';
5
- export * from './TimeOnlyJsonConverter';
6
- export * from './TimeSpanJsonConverter';
7
- export * from './PointJsonConverter';
8
- export * from './LineStringJsonConverter';
9
- export * from './PolygonJsonConverter';
10
- export * from './ValueMapJsonConverter';
1
+ export * from './JsonConverter.js';
2
+ export * from './DateJsonConverter.js';
3
+ export * from './DateOnlyJsonConverter.js';
4
+ export * from './GuidJsonConverter.js';
5
+ export * from './TimeOnlyJsonConverter.js';
6
+ export * from './TimeSpanJsonConverter.js';
7
+ export * from './PointJsonConverter.js';
8
+ export * from './LineStringJsonConverter.js';
9
+ export * from './PolygonJsonConverter.js';
10
+ export * from './ValueMapJsonConverter.js';
11
11
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- import { Constructor } from './Constructor';
1
+ import { Constructor } from './Constructor.js';
2
2
  export declare const typeKey: unique symbol;
3
3
  export declare const declaredTypeKey: (type: Constructor | undefined) => string | undefined;
4
4
  export declare const typeKeyOf: (type: Constructor | undefined) => string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cratis/fundamentals",
3
- "version": "7.19.5",
3
+ "version": "7.19.6",
4
4
  "description": "The shared building blocks beneath the Cratis stack — GUIDs, concepts, derived-type serialization, property-path proxies, and decorators for TypeScript",
5
5
  "keywords": [
6
6
  "cratis",
@@ -31,24 +31,44 @@
31
31
  "exports": {
32
32
  "./package.json": "./package.json",
33
33
  ".": {
34
- "types": "./dist/esm/index.d.ts",
35
- "require": "./dist/cjs/index.js",
36
- "import": "./dist/esm/index.js"
34
+ "import": {
35
+ "types": "./dist/esm/index.d.ts",
36
+ "default": "./dist/esm/index.js"
37
+ },
38
+ "require": {
39
+ "types": "./dist/cjs/index.d.ts",
40
+ "default": "./dist/cjs/index.js"
41
+ }
37
42
  },
38
43
  "./geospatial": {
39
- "types": "./dist/esm/geospatial/index.d.ts",
40
- "import": "./dist/esm/geospatial/index.js",
41
- "require": "./dist/cjs/geospatial/index.js"
44
+ "import": {
45
+ "types": "./dist/esm/geospatial/index.d.ts",
46
+ "default": "./dist/esm/geospatial/index.js"
47
+ },
48
+ "require": {
49
+ "types": "./dist/cjs/geospatial/index.d.ts",
50
+ "default": "./dist/cjs/geospatial/index.js"
51
+ }
42
52
  },
43
53
  "./json": {
44
- "types": "./dist/esm/json/index.d.ts",
45
- "import": "./dist/esm/json/index.js",
46
- "require": "./dist/cjs/json/index.js"
54
+ "import": {
55
+ "types": "./dist/esm/json/index.d.ts",
56
+ "default": "./dist/esm/json/index.js"
57
+ },
58
+ "require": {
59
+ "types": "./dist/cjs/json/index.d.ts",
60
+ "default": "./dist/cjs/json/index.js"
61
+ }
47
62
  },
48
63
  "./reflection": {
49
- "types": "./dist/esm/reflection.d.ts",
50
- "import": "./dist/esm/reflection.js",
51
- "require": "./dist/cjs/reflection.js"
64
+ "import": {
65
+ "types": "./dist/esm/reflection.d.ts",
66
+ "default": "./dist/esm/reflection.js"
67
+ },
68
+ "require": {
69
+ "types": "./dist/cjs/reflection.d.ts",
70
+ "default": "./dist/cjs/reflection.js"
71
+ }
52
72
  }
53
73
  },
54
74
  "installConfig": {
@@ -62,14 +82,15 @@
62
82
  "typescript-programmatic-api": "npm:@typescript/typescript6@^6.0.2"
63
83
  },
64
84
  "scripts": {
65
- "prepare": "yarn g:build",
85
+ "prepare": "yarn build",
66
86
  "clean": "yarn g:clean",
67
- "build": "yarn g:build",
87
+ "build": "yarn g:build && node scripts/fix-declarations.mjs",
68
88
  "lint": "yarn g:lint",
69
89
  "lint:ci": "yarn g:lint:ci",
70
90
  "test": "yarn g:test",
71
91
  "test:watch": "yarn g:test:watch",
72
- "ci": "yarn g:ci",
92
+ "ci": "yarn clean && yarn lint:ci && yarn build && yarn test:consumers && yarn test",
93
+ "test:consumers": "node scripts/check-consumers.mjs",
73
94
  "up": "yarn g:up"
74
95
  }
75
96
  }