@synnaxlabs/x 0.42.3 → 0.43.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.
- package/.turbo/turbo-build.log +93 -105
- package/.vscode/settings.json +4 -6
- package/README.md +1 -7
- package/dist/array.cjs +1 -0
- package/dist/array.js +7 -0
- package/dist/base-B5lQIJKc.js +38 -0
- package/dist/base-CTq-lhpU.cjs +1 -0
- package/dist/binary.cjs +1 -1
- package/dist/binary.js +1 -1
- package/dist/bounds.cjs +1 -1
- package/dist/bounds.js +2 -2
- package/dist/box.cjs +1 -1
- package/dist/box.js +1 -1
- package/dist/caseconv.cjs +1 -1
- package/dist/caseconv.js +2 -2
- package/dist/change.cjs +1 -1
- package/dist/change.js +10 -2
- package/dist/compare.cjs +1 -1
- package/dist/compare.js +1 -1
- package/dist/deep.cjs +1 -1
- package/dist/deep.js +92 -79
- package/dist/dimensions.cjs +1 -1
- package/dist/dimensions.js +41 -2
- package/dist/direction.cjs +1 -1
- package/dist/direction.js +1 -1
- package/dist/index-4GlOgZuh.js +99 -0
- package/dist/{direction-C-b6XTeU.cjs → index-B58dnYRu.cjs} +1 -1
- package/dist/index-BMGaoK93.cjs +1 -0
- package/dist/index-BTet04Hd.cjs +6 -0
- package/dist/{scale-DfJe9755.js → index-BUa-NXAX.js} +46 -46
- package/dist/{xy-D_LqxaGt.js → index-C-qYOegc.js} +62 -62
- package/dist/index-C07SBJhr.js +128 -0
- package/dist/{bounds-Bn5_l4Z3.js → index-C9EdKeu1.js} +77 -76
- package/dist/index-CM8ZDZ6s.cjs +1 -0
- package/dist/index-CV2JaHfw.cjs +1 -0
- package/dist/index-CeBvOwG8.cjs +3 -0
- package/dist/index-ClrGyGDp.js +205 -0
- package/dist/index-CqQXXeCI.cjs +1 -0
- package/dist/{location-C3aeu046.js → index-D6V-8SKw.js} +26 -26
- package/dist/index-DBGAIs_7.js +2492 -0
- package/dist/index-DEdq2tza.cjs +1 -0
- package/dist/index-DKMnHBGR.cjs +1 -0
- package/dist/index-Dql5FMcH.js +47 -0
- package/dist/{direction-BL0PhD1k.js → index-DxU1zwsd.js} +1 -1
- package/dist/index-WwMnwoLy.cjs +1 -0
- package/dist/index.cjs +5 -3
- package/dist/index.js +5372 -650
- package/dist/kv.cjs +1 -1
- package/dist/kv.js +45 -2
- package/dist/location.cjs +1 -1
- package/dist/location.js +1 -1
- package/dist/position.cjs +1 -1
- package/dist/position.js +83 -2
- package/dist/record.cjs +1 -1
- package/dist/record.js +8 -10
- package/dist/runtime.cjs +1 -1
- package/dist/runtime.js +27 -2
- package/dist/scale.cjs +1 -1
- package/dist/scale.js +1 -1
- package/dist/schemas-55Usj0Fg.js +3998 -0
- package/dist/schemas-DbXuI2Qr.cjs +27 -0
- package/dist/spatial.cjs +1 -1
- package/dist/spatial.js +25 -18
- package/dist/src/array/index.d.ts +2 -0
- package/dist/src/array/index.d.ts.map +1 -0
- package/dist/src/array/toArray.d.ts +19 -0
- package/dist/src/array/toArray.d.ts.map +1 -0
- package/dist/src/array/toArray.spec.d.ts +2 -0
- package/dist/src/array/toArray.spec.d.ts.map +1 -0
- package/dist/src/binary/codec.d.ts +8 -16
- package/dist/src/binary/codec.d.ts.map +1 -1
- package/dist/src/breaker/breaker.d.ts +6 -6
- package/dist/src/breaker/breaker.d.ts.map +1 -1
- package/dist/src/caseconv/caseconv.d.ts +1 -1
- package/dist/src/caseconv/caseconv.d.ts.map +1 -1
- package/dist/src/change/change.d.ts +3 -3
- package/dist/src/change/change.d.ts.map +1 -1
- package/dist/src/color/color.d.ts +61 -37
- package/dist/src/color/color.d.ts.map +1 -1
- package/dist/src/color/external.d.ts +0 -1
- package/dist/src/color/external.d.ts.map +1 -1
- package/dist/src/color/gradient.d.ts +7 -7
- package/dist/src/color/gradient.d.ts.map +1 -1
- package/dist/src/color/palette.d.ts +10 -10
- package/dist/src/color/palette.d.ts.map +1 -1
- package/dist/src/compare/compare.d.ts +4 -4
- package/dist/src/compare/compare.d.ts.map +1 -1
- package/dist/src/control/control.d.ts +32 -32
- package/dist/src/control/control.d.ts.map +1 -1
- package/dist/src/debounce/debounce.d.ts +1 -1
- package/dist/src/debounce/debounce.d.ts.map +1 -1
- package/dist/src/deep/delete.d.ts +1 -1
- package/dist/src/deep/delete.d.ts.map +1 -1
- package/dist/src/deep/difference.d.ts.map +1 -1
- package/dist/src/deep/equal.d.ts +4 -4
- package/dist/src/deep/equal.d.ts.map +1 -1
- package/dist/src/deep/merge.d.ts +1 -1
- package/dist/src/deep/merge.d.ts.map +1 -1
- package/dist/src/errors/errors.d.ts +62 -36
- package/dist/src/errors/errors.d.ts.map +1 -1
- package/dist/src/index.d.ts +4 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/instance/index.d.ts +2 -0
- package/dist/src/instance/index.d.ts.map +1 -0
- package/dist/src/instance/matcher.d.ts +79 -0
- package/dist/src/instance/matcher.d.ts.map +1 -0
- package/dist/src/instance/matcher.spec.d.ts +2 -0
- package/dist/src/instance/matcher.spec.d.ts.map +1 -0
- package/dist/src/jsonrpc/jsonrpc.d.ts +40 -9
- package/dist/src/jsonrpc/jsonrpc.d.ts.map +1 -1
- package/dist/src/kv/types.d.ts +2 -2
- package/dist/src/kv/types.d.ts.map +1 -1
- package/dist/src/migrate/migrate.d.ts +5 -5
- package/dist/src/migrate/migrate.d.ts.map +1 -1
- package/dist/src/notation/notation.d.ts +1 -1
- package/dist/src/notation/notation.d.ts.map +1 -1
- package/dist/src/primitive/index.d.ts +2 -0
- package/dist/src/primitive/index.d.ts.map +1 -0
- package/dist/src/primitive/primitive.d.ts +39 -0
- package/dist/src/primitive/primitive.d.ts.map +1 -0
- package/dist/src/primitive/primitive.spec.d.ts +2 -0
- package/dist/src/primitive/primitive.spec.d.ts.map +1 -0
- package/dist/src/record.d.ts +2 -2
- package/dist/src/record.d.ts.map +1 -1
- package/dist/src/renderable.d.ts +1 -1
- package/dist/src/renderable.d.ts.map +1 -1
- package/dist/src/replace.d.ts.map +1 -1
- package/dist/src/runtime/detect.d.ts.map +1 -1
- package/dist/src/runtime/os.d.ts +1 -1
- package/dist/src/runtime/os.d.ts.map +1 -1
- package/dist/src/spatial/base.d.ts +10 -10
- package/dist/src/spatial/base.d.ts.map +1 -1
- package/dist/src/spatial/bounds/bounds.d.ts +82 -16
- package/dist/src/spatial/bounds/bounds.d.ts.map +1 -1
- package/dist/src/spatial/box/box.d.ts +7 -7
- package/dist/src/spatial/box/box.d.ts.map +1 -1
- package/dist/src/spatial/dimensions/dimensions.d.ts +5 -5
- package/dist/src/spatial/dimensions/dimensions.d.ts.map +1 -1
- package/dist/src/spatial/direction/direction.d.ts +1 -1
- package/dist/src/spatial/location/location.d.ts +4 -4
- package/dist/src/spatial/location/location.d.ts.map +1 -1
- package/dist/src/spatial/scale/scale.d.ts +11 -11
- package/dist/src/spatial/scale/scale.d.ts.map +1 -1
- package/dist/src/spatial/xy/xy.d.ts +5 -5
- package/dist/src/spatial/xy/xy.d.ts.map +1 -1
- package/dist/src/status/index.d.ts +2 -0
- package/dist/src/status/index.d.ts.map +1 -0
- package/dist/src/status/types.d.ts +11 -0
- package/dist/src/status/types.d.ts.map +1 -0
- package/dist/src/sync/index.d.ts.map +1 -1
- package/dist/src/sync/mutex.d.ts +0 -1
- package/dist/src/sync/mutex.d.ts.map +1 -1
- package/dist/src/telem/gl.d.ts +1 -1
- package/dist/src/telem/gl.d.ts.map +1 -1
- package/dist/src/telem/series.d.ts +468 -62
- package/dist/src/telem/series.d.ts.map +1 -1
- package/dist/src/telem/telem.d.ts +243 -53
- package/dist/src/telem/telem.d.ts.map +1 -1
- package/dist/src/uuid/index.d.ts +2 -0
- package/dist/src/uuid/index.d.ts.map +1 -0
- package/dist/src/uuid/uuid.d.ts +35 -0
- package/dist/src/uuid/uuid.d.ts.map +1 -0
- package/dist/src/uuid/uuid.spec.d.ts +2 -0
- package/dist/src/uuid/uuid.spec.d.ts.map +1 -0
- package/dist/src/zod/external.d.ts +1 -1
- package/dist/src/zod/external.d.ts.map +1 -1
- package/dist/src/zod/nullToUndefined.d.ts +3 -0
- package/dist/src/zod/nullToUndefined.d.ts.map +1 -0
- package/dist/src/zod/nullToUndefined.spec.d.ts +2 -0
- package/dist/src/zod/nullToUndefined.spec.d.ts.map +1 -0
- package/dist/src/zod/util.d.ts +2 -2
- package/dist/src/zod/util.d.ts.map +1 -1
- package/dist/telem.cjs +1 -1
- package/dist/telem.js +1 -1
- package/dist/xy.cjs +1 -1
- package/dist/xy.js +1 -1
- package/dist/zod.cjs +1 -1
- package/dist/zod.js +19 -2
- package/eslint.config.js +1 -1
- package/package.json +17 -15
- package/src/{toArray.ts → array/index.ts} +1 -5
- package/src/array/toArray.spec.ts +56 -0
- package/src/array/toArray.ts +28 -0
- package/src/binary/codec.spec.ts +201 -278
- package/src/binary/codec.ts +20 -76
- package/src/breaker/breaker.ts +3 -3
- package/src/caseconv/caseconv.ts +6 -4
- package/src/change/change.ts +2 -2
- package/src/color/color.spec.ts +113 -2
- package/src/color/color.ts +89 -59
- package/src/color/external.ts +0 -1
- package/src/color/gradient.ts +20 -28
- package/src/color/palette.ts +1 -1
- package/src/compare/compare.ts +5 -5
- package/src/control/control.ts +22 -19
- package/src/debounce/debounce.ts +1 -1
- package/src/deep/delete.ts +5 -4
- package/src/deep/difference.ts +6 -2
- package/src/deep/equal.spec.ts +1 -1
- package/src/deep/equal.ts +5 -5
- package/src/deep/merge.spec.ts +13 -1
- package/src/deep/merge.ts +16 -7
- package/src/deep/path.ts +1 -1
- package/src/errors/errors.ts +65 -44
- package/src/index.ts +4 -1
- package/src/instance/index.ts +10 -0
- package/src/instance/matcher.spec.ts +78 -0
- package/src/instance/matcher.ts +98 -0
- package/src/jsonrpc/jsonrpc.spec.ts +2 -1
- package/src/jsonrpc/jsonrpc.ts +36 -7
- package/src/kv/types.ts +1 -1
- package/src/migrate/migrate.spec.ts +1 -1
- package/src/migrate/migrate.ts +7 -7
- package/src/notation/notation.ts +1 -1
- package/src/primitive/index.ts +10 -0
- package/src/primitive/primitive.spec.ts +126 -0
- package/src/primitive/primitive.ts +82 -0
- package/src/record.ts +3 -5
- package/src/renderable.ts +1 -1
- package/src/replace.ts +9 -0
- package/src/runtime/detect.ts +0 -2
- package/src/runtime/os.ts +1 -1
- package/src/spatial/base.ts +1 -1
- package/src/spatial/bounds/bounds.spec.ts +20 -0
- package/src/spatial/bounds/bounds.ts +101 -18
- package/src/spatial/box/box.ts +1 -1
- package/src/spatial/dimensions/dimensions.ts +3 -3
- package/src/spatial/location/location.ts +1 -1
- package/src/spatial/scale/scale.ts +1 -1
- package/src/spatial/xy/xy.ts +1 -1
- package/src/status/index.ts +10 -0
- package/src/status/types.ts +22 -0
- package/src/sync/index.ts +9 -0
- package/src/sync/mutex.ts +9 -4
- package/src/telem/gl.ts +1 -1
- package/src/telem/series.spec.ts +735 -68
- package/src/telem/series.ts +536 -195
- package/src/telem/telem.spec.ts +60 -7
- package/src/telem/telem.ts +287 -95
- package/src/uuid/index.ts +10 -0
- package/src/uuid/uuid.spec.ts +82 -0
- package/src/uuid/uuid.ts +48 -0
- package/src/zod/external.ts +1 -1
- package/src/zod/nullToUndefined.spec.ts +31 -0
- package/src/zod/nullToUndefined.ts +23 -0
- package/src/zod/util.spec.ts +1 -1
- package/src/zod/util.ts +6 -6
- package/tsconfig.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/vite.config.ts +1 -1
- package/dist/base-BAM2mqCy.cjs +0 -1
- package/dist/base-DFq0vvGn.js +0 -38
- package/dist/bounds-BQo7rvs9.cjs +0 -1
- package/dist/box-0YrQibkB.cjs +0 -1
- package/dist/box-Cc8IzcNo.js +0 -205
- package/dist/change-C-YELKx6.cjs +0 -1
- package/dist/change-DLl6DccR.js +0 -12
- package/dist/dimensions-CRgergMS.js +0 -43
- package/dist/dimensions-D2QGoNXO.cjs +0 -1
- package/dist/external-BPgtxa8d.js +0 -29
- package/dist/external-C-dNgNQw.cjs +0 -1
- package/dist/external-C8TFju8Q.js +0 -29
- package/dist/external-DWQITF5_.cjs +0 -1
- package/dist/external-DqPrWKvU.js +0 -47
- package/dist/external-uXk0Avrg.cjs +0 -1
- package/dist/index-BywOGO8U.js +0 -1074
- package/dist/index-CYYjI7Uf.cjs +0 -1
- package/dist/index-C_6NXBlg.cjs +0 -3
- package/dist/index-Dd8DLyMx.cjs +0 -1
- package/dist/index-DizUWH6z.js +0 -47
- package/dist/index-QGplUHuy.js +0 -98
- package/dist/location-BGl5Ddds.cjs +0 -1
- package/dist/position-Cai5-wi1.cjs +0 -1
- package/dist/position-DIglP1l2.js +0 -85
- package/dist/scale-BtZINJ-A.cjs +0 -1
- package/dist/series-B9JERcqi.js +0 -1977
- package/dist/series-DqJ6f97G.cjs +0 -11
- package/dist/spatial-BSWPzMkK.js +0 -11
- package/dist/spatial-DGpZ2sO3.cjs +0 -1
- package/dist/src/color/transformColorsToHex.d.ts +0 -6
- package/dist/src/color/transformColorsToHex.d.ts.map +0 -1
- package/dist/src/primitive.d.ts +0 -9
- package/dist/src/primitive.d.ts.map +0 -1
- package/dist/src/toArray.d.ts +0 -3
- package/dist/src/toArray.d.ts.map +0 -1
- package/dist/src/zod/integer.d.ts +0 -10
- package/dist/src/zod/integer.d.ts.map +0 -1
- package/dist/src/zod/integer.spec.d.ts +0 -2
- package/dist/src/zod/integer.spec.d.ts.map +0 -1
- package/dist/toArray.cjs +0 -1
- package/dist/toArray.js +0 -5
- package/dist/xy-B7065J2S.cjs +0 -1
- package/src/color/transformColorsToHex.ts +0 -30
- package/src/primitive.ts +0 -46
- package/src/zod/integer.spec.ts +0 -148
- package/src/zod/integer.ts +0 -38
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
declare const ERROR_DISCRIMINATOR = "sy_x_error";
|
|
2
3
|
/**
|
|
3
4
|
* @returns general function that returns true if an error matches a set of
|
|
4
5
|
* abstracted criteria
|
|
5
6
|
*/
|
|
6
|
-
export type Matcher = (e:
|
|
7
|
-
/**
|
|
7
|
+
export type Matcher = (e: unknown) => boolean;
|
|
8
|
+
/** an error type that can match against other errors. */
|
|
8
9
|
export interface Matchable {
|
|
9
10
|
/**
|
|
10
|
-
* @returns
|
|
11
|
-
* the provided instance of Error or a string message contains the provided error type.
|
|
11
|
+
* @returns true if the provided error matches the matchable.
|
|
12
12
|
*/
|
|
13
13
|
matches: Matcher;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
16
|
+
* An error that has a network-portable type, allowing it to be encoded/decoded into
|
|
17
|
+
* a JSON representation. Also allows for simpler matching using @method matches instead of using
|
|
18
|
+
* instanceof, which has a number of caveats.
|
|
19
19
|
*/
|
|
20
20
|
export interface Typed extends Error, Matchable {
|
|
21
|
-
discriminator:
|
|
21
|
+
discriminator: typeof ERROR_DISCRIMINATOR;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
24
|
-
*
|
|
23
|
+
* Returns a unique type identifier for the error. The errors package uses this to
|
|
24
|
+
* determine the correct decoder to use when encoding/decoding errors.
|
|
25
25
|
*/
|
|
26
26
|
type: string;
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
30
|
-
*
|
|
29
|
+
* a class that, when constructed, implements the TypedError interface. Also provides
|
|
30
|
+
* utilities for matching and creating subclasses.
|
|
31
31
|
*/
|
|
32
32
|
export interface TypedClass extends Matchable {
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* constructs a new TypedError. Identical to the Error constructor.
|
|
35
35
|
* @param message - the error message.
|
|
36
36
|
* @param options - the error options.
|
|
37
37
|
* @returns a new TypedError.
|
|
38
38
|
*/
|
|
39
39
|
new (message?: string, options?: ErrorOptions): Typed;
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* the type of the error.
|
|
42
42
|
*/
|
|
43
43
|
TYPE: string;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
45
|
+
* creates a new subclass of the error that extends its type. So if the type of this
|
|
46
|
+
* class is `dog` and subType is `labrador`, the type of the new class will be
|
|
47
|
+
* `dog.labrador`.
|
|
48
48
|
* @param subType - the type of the new error.
|
|
49
49
|
* @returns a new TypedErrorClass.
|
|
50
50
|
*/
|
|
@@ -61,27 +61,48 @@ export interface TypedClass extends Matchable {
|
|
|
61
61
|
*/
|
|
62
62
|
export declare const createTyped: (type: string) => TypedClass;
|
|
63
63
|
/**
|
|
64
|
-
*
|
|
64
|
+
* Function that decodes an encoded error payload back into an error object
|
|
65
65
|
* @param encoded - The encoded error payload to decode
|
|
66
|
-
* @returns The decoded error object or null if the decoder cannot handle this error
|
|
66
|
+
* @returns The decoded error object or null if the decoder cannot handle this error
|
|
67
|
+
* type
|
|
67
68
|
*/
|
|
68
69
|
export type Decoder = (encoded: Payload) => Error | null;
|
|
69
70
|
/**
|
|
70
|
-
*
|
|
71
|
+
* Function that encodes a typed error into a network-portable payload
|
|
71
72
|
* @param error - The typed error to encode
|
|
72
73
|
* @returns The encoded error payload or null if the encoder cannot handle this error type
|
|
73
74
|
*/
|
|
74
75
|
export type Encoder = (error: Typed) => Payload | null;
|
|
75
76
|
/**
|
|
76
|
-
*
|
|
77
|
+
* Checks if an unknown value is a TypedError
|
|
77
78
|
* @param error - The value to check
|
|
78
79
|
* @returns True if the value is a TypedError, false otherwise
|
|
79
80
|
*/
|
|
80
81
|
export declare const isTyped: (error: unknown) => error is Typed;
|
|
81
|
-
/**
|
|
82
|
+
/** Constant representing an unknown error type */
|
|
82
83
|
export declare const UNKNOWN = "unknown";
|
|
83
|
-
/**
|
|
84
|
+
/** Constant representing no error (null) */
|
|
84
85
|
export declare const NONE = "nil";
|
|
86
|
+
/**
|
|
87
|
+
* provides custom encoding/decoding mechanisms for specific error
|
|
88
|
+
* categories.
|
|
89
|
+
*/
|
|
90
|
+
interface Provider {
|
|
91
|
+
/**
|
|
92
|
+
* Encodes an error into a primitive payload that can be sent over the network or stored
|
|
93
|
+
* on disk.
|
|
94
|
+
* @param error - The error to encode.
|
|
95
|
+
* @returns The encoded error.
|
|
96
|
+
*/
|
|
97
|
+
encode: Encoder;
|
|
98
|
+
/**
|
|
99
|
+
* Decodes an error from a primitive payload that can be sent over the network or stored
|
|
100
|
+
* on disk.
|
|
101
|
+
* @param payload - The encoded error.
|
|
102
|
+
* @returns The decoded error.
|
|
103
|
+
*/
|
|
104
|
+
decode: Decoder;
|
|
105
|
+
}
|
|
85
106
|
/**
|
|
86
107
|
* Registers a custom error type with the error registry, which allows it to be
|
|
87
108
|
* encoded/decoded and sent over the network.
|
|
@@ -90,13 +111,10 @@ export declare const NONE = "nil";
|
|
|
90
111
|
* @param encode - A function that encodes the error into a string.
|
|
91
112
|
* @param decode - A function that decodes the error from a string.
|
|
92
113
|
*/
|
|
93
|
-
export declare const register: ({ encode, decode
|
|
94
|
-
encode: Encoder;
|
|
95
|
-
decode: Decoder;
|
|
96
|
-
}) => void;
|
|
114
|
+
export declare const register: ({ encode, decode }: Provider) => void;
|
|
97
115
|
/**
|
|
98
|
-
* Encodes an error into a payload that can be sent
|
|
99
|
-
*
|
|
116
|
+
* Encodes an error into a primitive payload that can be sent over the network or stored
|
|
117
|
+
* on disk.
|
|
100
118
|
* @param error - The error to encode.
|
|
101
119
|
* @returns The encoded error.
|
|
102
120
|
*/
|
|
@@ -112,21 +130,29 @@ export declare const encode: (error: unknown) => Payload;
|
|
|
112
130
|
export declare const decode: (payload?: Payload | null) => Error | null;
|
|
113
131
|
declare const Unknown_base: TypedClass;
|
|
114
132
|
/**
|
|
115
|
-
*
|
|
133
|
+
* Generic error for representing unknown errors
|
|
116
134
|
*/
|
|
117
135
|
export declare class Unknown extends Unknown_base {
|
|
118
136
|
}
|
|
119
|
-
/**
|
|
137
|
+
/** Zod schema for validating error payloads */
|
|
120
138
|
export declare const payloadZ: z.ZodObject<{
|
|
121
139
|
type: z.ZodString;
|
|
122
140
|
data: z.ZodString;
|
|
123
|
-
},
|
|
124
|
-
/**
|
|
141
|
+
}, z.core.$strip>;
|
|
142
|
+
/** Network-portable representation of an error */
|
|
125
143
|
export type Payload = z.infer<typeof payloadZ>;
|
|
126
144
|
declare const Canceled_base: TypedClass;
|
|
127
|
-
/**
|
|
145
|
+
/** Error for representing the cancellation of an operation */
|
|
128
146
|
export declare class Canceled extends Canceled_base {
|
|
129
147
|
}
|
|
130
|
-
|
|
148
|
+
/** A payload representing a native JavaScript Error */
|
|
149
|
+
export interface NativePayload {
|
|
150
|
+
/** The name of the error */
|
|
151
|
+
name: string;
|
|
152
|
+
/** The message of the error */
|
|
153
|
+
message: string;
|
|
154
|
+
/** The stack trace of the error */
|
|
155
|
+
stack?: string;
|
|
156
|
+
}
|
|
131
157
|
export {};
|
|
132
158
|
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/errors/errors.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/errors/errors.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAI3B,QAAA,MAAM,mBAAmB,eAAe,CAAC;AAEzC;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC;AAE9C,yDAAyD;AACzD,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;;;GAIG;AACH,MAAM,WAAW,KAAM,SAAQ,KAAK,EAAE,SAAS;IAC7C,aAAa,EAAE,OAAO,mBAAmB,CAAC;IAC1C;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;GAGG;AACH,MAAM,WAAW,UAAW,SAAQ,SAAS;IAC3C;;;;;OAKG;IACH,KAAK,O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C,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;;AAE/C,8DAA8D;AAC9D,qBAAa,QAAS,SAAQ,aAAuB;CAAG;AAExD,uDAAuD;AACvD,MAAM,WAAW,aAAa;IAC5B,4BAA4B;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,+BAA+B;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,mCAAmC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from './array';
|
|
1
2
|
export * from './binary';
|
|
2
3
|
export * from './breaker';
|
|
3
4
|
export * from './caseconv';
|
|
@@ -12,6 +13,7 @@ export * from './destructor';
|
|
|
12
13
|
export * from './errors';
|
|
13
14
|
export * from './id';
|
|
14
15
|
export * from './identity';
|
|
16
|
+
export * from './instance';
|
|
15
17
|
export * from './invert';
|
|
16
18
|
export * from './jsonrpc';
|
|
17
19
|
export * from './kv';
|
|
@@ -31,13 +33,14 @@ export * from './search';
|
|
|
31
33
|
export * from './shallowCopy';
|
|
32
34
|
export * from './sleep';
|
|
33
35
|
export * from './spatial';
|
|
36
|
+
export * from './status';
|
|
34
37
|
export * from './strings';
|
|
35
38
|
export * from './sync';
|
|
36
39
|
export * from './telem';
|
|
37
|
-
export * from './toArray';
|
|
38
40
|
export * from './transform';
|
|
39
41
|
export * from './unique';
|
|
40
42
|
export * from './url';
|
|
43
|
+
export * from './uuid';
|
|
41
44
|
export * from './worker';
|
|
42
45
|
export * from './zod';
|
|
43
46
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,c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AAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,MAAM,CAAC;AACrB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/instance/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interface for objects that can be discriminated by a string identifier.
|
|
3
|
+
* Classes or objects implementing this interface must have a discriminator property
|
|
4
|
+
* that uniquely identifies their type.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```typescript
|
|
8
|
+
* class User implements Discriminated {
|
|
9
|
+
* discriminator = "user";
|
|
10
|
+
* constructor(public name: string) {}
|
|
11
|
+
* }
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
export interface Discriminated {
|
|
15
|
+
discriminator: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Creates a type guard function that checks if a value is an instance of a class
|
|
19
|
+
* using a discriminator property. It is up to the caller to ensure that the
|
|
20
|
+
* discriminator property is unique, consistent across all instances of the class,
|
|
21
|
+
* and will not appear in objects that are not instances of the class.
|
|
22
|
+
*
|
|
23
|
+
* This is particularly useful when working with instances of classes that have
|
|
24
|
+
* been duplicated or mangled by a bundler.
|
|
25
|
+
*
|
|
26
|
+
* @typeParam T - The type that extends Discriminated
|
|
27
|
+
* @param discriminator - The string value to match against the object's discriminator property
|
|
28
|
+
* @param cls - The class constructor to check for instanceof
|
|
29
|
+
* @returns A type guard function that returns true if the value matches either condition
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```typescript
|
|
33
|
+
* class User implements Discriminated {
|
|
34
|
+
* discriminator = "user";
|
|
35
|
+
* constructor(public name: string) {}
|
|
36
|
+
* }
|
|
37
|
+
*
|
|
38
|
+
* const isUser = createMatcher("user", User);
|
|
39
|
+
*
|
|
40
|
+
* // Works with class instances
|
|
41
|
+
* const user = new User("John");
|
|
42
|
+
* if (isUser(user)) {
|
|
43
|
+
* console.log(user.name); // TypeScript knows user is a User
|
|
44
|
+
* }
|
|
45
|
+
*
|
|
46
|
+
* // Works with plain objects
|
|
47
|
+
* const obj = { discriminator: "user", name: "John" };
|
|
48
|
+
* if (isUser(obj)) {
|
|
49
|
+
* console.log(obj.name); // TypeScript knows obj is a User
|
|
50
|
+
* }
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```typescript
|
|
55
|
+
* // Working with multiple types
|
|
56
|
+
* class Admin implements Discriminated {
|
|
57
|
+
* discriminator = "admin";
|
|
58
|
+
* constructor(public name: string, public role: string) {}
|
|
59
|
+
* }
|
|
60
|
+
*
|
|
61
|
+
* class Guest implements Discriminated {
|
|
62
|
+
* discriminator = "guest";
|
|
63
|
+
* constructor(public name: string) {}
|
|
64
|
+
* }
|
|
65
|
+
*
|
|
66
|
+
* const isAdmin = createMatcher("admin", Admin);
|
|
67
|
+
* const isGuest = createMatcher("guest", Guest);
|
|
68
|
+
*
|
|
69
|
+
* function handleUser(user: unknown) {
|
|
70
|
+
* if (isAdmin(user)) {
|
|
71
|
+
* console.log(user.role); // TypeScript knows user is an Admin
|
|
72
|
+
* } else if (isGuest(user)) {
|
|
73
|
+
* console.log(user.name); // TypeScript knows user is a Guest
|
|
74
|
+
* }
|
|
75
|
+
* }
|
|
76
|
+
* ```
|
|
77
|
+
*/
|
|
78
|
+
export declare const createMatcher: <T extends Discriminated>(discriminator: string, cls: new (...args: any[]) => T) => ((value: unknown) => value is T);
|
|
79
|
+
//# sourceMappingURL=matcher.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"matcher.d.ts","sourceRoot":"","sources":["../../../src/instance/matcher.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,aAAa;IAC5B,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AACH,eAAO,MAAM,aAAa,GACvB,CAAC,SAAS,aAAa,EACtB,eAAe,MAAM,EACrB,KAAK,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,KAC7B,CAAC,CAAC,KAAK,EAAE,OAAO,KAAK,KAAK,IAAI,CAAC,CAMQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"matcher.spec.d.ts","sourceRoot":"","sources":["../../../src/instance/matcher.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,11 +1,43 @@
|
|
|
1
|
-
import { default as z } from 'zod';
|
|
2
|
-
declare const
|
|
3
|
-
jsonrpc: z.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { default as z } from 'zod/v4';
|
|
2
|
+
export declare const requestZ: z.ZodObject<{
|
|
3
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
4
|
+
method: z.ZodString;
|
|
5
|
+
params: z.ZodOptional<z.ZodAny>;
|
|
6
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export type Request = z.infer<typeof requestZ>;
|
|
9
|
+
export declare const responseZ: z.ZodUnion<readonly [z.ZodObject<{
|
|
10
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
11
|
+
id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>;
|
|
12
|
+
result: z.ZodJSONSchema;
|
|
13
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
14
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
15
|
+
id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>;
|
|
16
|
+
error: z.ZodObject<{
|
|
17
|
+
code: z.ZodNumber;
|
|
18
|
+
message: z.ZodOptional<z.ZodString>;
|
|
19
|
+
data: z.ZodOptional<z.ZodJSONSchema>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
}, z.core.$strip>]>;
|
|
22
|
+
export type Response = z.infer<typeof responseZ>;
|
|
23
|
+
export declare const messageZ: z.ZodUnion<readonly [z.ZodObject<{
|
|
24
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
25
|
+
method: z.ZodString;
|
|
26
|
+
params: z.ZodOptional<z.ZodAny>;
|
|
27
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>>;
|
|
28
|
+
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
|
|
29
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
30
|
+
id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>;
|
|
31
|
+
result: z.ZodJSONSchema;
|
|
32
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
33
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
34
|
+
id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>;
|
|
35
|
+
error: z.ZodObject<{
|
|
36
|
+
code: z.ZodNumber;
|
|
37
|
+
message: z.ZodOptional<z.ZodString>;
|
|
38
|
+
data: z.ZodOptional<z.ZodJSONSchema>;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
}, z.core.$strip>]>]>;
|
|
9
41
|
export type Message = z.infer<typeof messageZ>;
|
|
10
42
|
export interface ChunkParser {
|
|
11
43
|
(chunk: Uint8Array | ArrayBuffer | string): void;
|
|
@@ -35,5 +67,4 @@ export interface ChunkParser {
|
|
|
35
67
|
*/
|
|
36
68
|
export declare const streamDecodeChunks: (onMessage: (message: Message) => void) => ChunkParser;
|
|
37
69
|
export declare const encodeMessage: (message: Message) => string;
|
|
38
|
-
export {};
|
|
39
70
|
//# sourceMappingURL=jsonrpc.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsonrpc.d.ts","sourceRoot":"","sources":["../../../src/jsonrpc/jsonrpc.ts"],"names":[],"mappings":"AASA,OAAO,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"jsonrpc.d.ts","sourceRoot":"","sources":["../../../src/jsonrpc/jsonrpc.ts"],"names":[],"mappings":"AASA,OAAO,CAAC,MAAM,QAAQ,CAAC;AAIvB,eAAO,MAAM,QAAQ;;;;;iBAQnB,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;AAqB/C,eAAO,MAAM,SAAS;;;;;;;;;;;;mBAA8C,CAAC;AAErE,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC;AAEjD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;qBAAiC,CAAC;AAEvD,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;AAE/C,MAAM,WAAW,WAAW;IAC1B,CAAC,KAAK,EAAE,UAAU,GAAG,WAAW,GAAG,MAAM,GAAG,IAAI,CAAC;CAClD;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,kBAAkB,GAC7B,WAAW,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,KACpC,WAoCF,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,SAAS,OAAO,KAAG,MAKhD,CAAC"}
|
package/dist/src/kv/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
2
|
export interface Reader<V = unknown> {
|
|
3
3
|
/** @returns the value for a given key, or null if the key is not present. */
|
|
4
4
|
get: (key: string) => V | null;
|
|
@@ -34,7 +34,7 @@ export interface Async<R = unknown, W = R> extends AsyncReader<R>, AsyncWriter<W
|
|
|
34
34
|
export declare const stringPairZ: z.ZodObject<{
|
|
35
35
|
key: z.ZodString;
|
|
36
36
|
value: z.ZodString;
|
|
37
|
-
},
|
|
37
|
+
}, z.core.$strip>;
|
|
38
38
|
/** A general purpose key-value pair. */
|
|
39
39
|
export interface Pair<V = unknown> {
|
|
40
40
|
key: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/kv/types.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/kv/types.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,MAAM,WAAW,MAAM,CAAC,CAAC,GAAG,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,wCAAwC;AACxC,MAAM,WAAW,IAAI,CAAC,CAAC,GAAG,OAAO;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,CAAC,CAAC;CACV"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
2
|
import { Optional } from '../optional';
|
|
3
3
|
export declare const semVerZ: z.ZodString;
|
|
4
4
|
export type SemVer = z.infer<typeof semVerZ>;
|
|
@@ -59,19 +59,19 @@ export type Migratable<V extends string = string> = {
|
|
|
59
59
|
version: V;
|
|
60
60
|
};
|
|
61
61
|
export type Migration<I extends Migratable, O extends Migratable> = (input: I) => O;
|
|
62
|
-
export interface MigrationProps<I extends Migratable, O extends Migratable, ZI extends z.
|
|
62
|
+
export interface MigrationProps<I extends Migratable, O extends Migratable, ZI extends z.ZodType, ZO extends z.ZodType> {
|
|
63
63
|
name: string;
|
|
64
64
|
inputSchema?: ZI;
|
|
65
65
|
outputSchema?: ZO;
|
|
66
66
|
migrate: Migration<I, O>;
|
|
67
67
|
}
|
|
68
|
-
export declare const createMigration: <I extends Migratable, O extends Migratable, ZI extends z.
|
|
68
|
+
export declare const createMigration: <I extends Migratable, O extends Migratable, ZI extends z.ZodType = z.ZodType, ZO extends z.ZodType = z.ZodType>({ name, migrate, }: MigrationProps<I, O, ZI, ZO>) => Migration<I, O>;
|
|
69
69
|
/**
|
|
70
70
|
* A record of migrations to be applied, where the key of the record is the
|
|
71
71
|
* input version of the migration.
|
|
72
72
|
*/
|
|
73
73
|
export type Migrations = Record<string, Migration<any, any>>;
|
|
74
|
-
interface MigratorProps<O extends Migratable, ZO extends z.
|
|
74
|
+
interface MigratorProps<O extends Migratable, ZO extends z.ZodType = z.ZodType> {
|
|
75
75
|
name: string;
|
|
76
76
|
migrations: Migrations;
|
|
77
77
|
def: O;
|
|
@@ -79,6 +79,6 @@ interface MigratorProps<O extends Migratable, ZO extends z.ZodTypeAny = z.ZodTyp
|
|
|
79
79
|
targetSchema?: ZO;
|
|
80
80
|
}
|
|
81
81
|
export type Migrator = <I extends Optional<Migratable, "version">, O>(v: I) => O;
|
|
82
|
-
export declare const migrator: <I extends Optional<Migratable, "version">, O extends Migratable, ZO extends z.
|
|
82
|
+
export declare const migrator: <I extends Optional<Migratable, "version">, O extends Migratable, ZO extends z.ZodType = z.ZodType>({ name, migrations, targetSchema, defaultVersion, def, }: MigratorProps<O, ZO>) => ((v: I) => O);
|
|
83
83
|
export {};
|
|
84
84
|
//# sourceMappingURL=migrate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrate.d.ts","sourceRoot":"","sources":["../../../src/migrate/migrate.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"migrate.d.ts","sourceRoot":"","sources":["../../../src/migrate/migrate.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAG3B,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,eAAO,MAAM,OAAO,aAAsC,CAAC;AAE3D,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC;AAE7C,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa,MACrB,MAAM,KACN,MAAM,SACH,oBAAoB,eAsBS,CAAC;AAEtC;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,GACxB,GAAG,MAAM,EACT,GAAG,MAAM,EACT,OAAM,oBAAyB,KAC9B,OAAuD,CAAC;AAE3D;;;;;;GAMG;AACH,eAAO,MAAM,W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AS,CAAC,CAAC,OAAO,GAAG,CAAC,CAAC,OAAO;IAC5E,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,UAAU,CAAC;IACvB,GAAG,EAAE,CAAC,CAAC;IACP,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,EAAE,CAAC;CACnB;AAED,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,SAAS,QAAQ,CAAC,UAAU,EAAE,SAAS,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;AAEjF,eAAO,MAAM,QAAQ,GACnB,CAAC,SAAS,QAAQ,CAAC,UAAU,EAAE,SAAS,CAAC,EACzC,CAAC,SAAS,UAAU,EACpB,EAAE,SAAS,CAAC,CAAC,OAAO,GAAG,CAAC,CAAC,OAAO,EAChC,0DAMC,aAAa,CAAC,CAAC,EAAE,EAAE,CAAC,KAAG,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAoErC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notation.d.ts","sourceRoot":"","sources":["../../../src/notation/notation.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"notation.d.ts","sourceRoot":"","sources":["../../../src/notation/notation.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,eAAO,MAAM,SAAS,oDAAqD,CAAC;AAC5E,eAAO,MAAM,SAAS;;;;EAAoB,CAAC;AAC3C,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC;AAEjD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,eAAe,GAC1B,OAAO,MAAM,EACb,WAAW,MAAM,EACjB,UAAU,QAAQ,KACjB,MAcF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/primitive/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,SAAS,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/** Union of types that are primitive values or can be converted to primitive values */
|
|
2
|
+
export type Value = string | number | bigint | boolean | Stringer | null | undefined;
|
|
3
|
+
/**
|
|
4
|
+
* ValueExtension is a utility class that can be extended in order to implement objects
|
|
5
|
+
* that pseudo-extend a primitive value with additional functionality.
|
|
6
|
+
*/
|
|
7
|
+
export declare class ValueExtension<V extends NonNullable<Value>> {
|
|
8
|
+
/** The underlying primitive value */
|
|
9
|
+
protected readonly value: V;
|
|
10
|
+
constructor(value: V);
|
|
11
|
+
/** Overrides the JS default valueOf() function to return the primitive value. */
|
|
12
|
+
valueOf(): V;
|
|
13
|
+
/** toJSON ensures that only the primitive value gets encoded during JSON
|
|
14
|
+
* stringification. */
|
|
15
|
+
toJSON(): V;
|
|
16
|
+
/** @returns a string representation of the item. */
|
|
17
|
+
toString(): string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Stringer is a type that implements a toString() method in order to return a string
|
|
21
|
+
* representation of itself.
|
|
22
|
+
*/
|
|
23
|
+
export interface Stringer {
|
|
24
|
+
/** @returns a string representation of the item. */
|
|
25
|
+
toString: () => string;
|
|
26
|
+
}
|
|
27
|
+
/** @returns true if the value implements primitive.Stringer, otherwise returns false. */
|
|
28
|
+
export declare const isStringer: (value: unknown) => boolean;
|
|
29
|
+
/**
|
|
30
|
+
* @returns true if the given primitive is the zero value for its type.
|
|
31
|
+
* For strings value == ""
|
|
32
|
+
* For numbers value == 0
|
|
33
|
+
* For bigints value == 0n
|
|
34
|
+
* For booleans value == false
|
|
35
|
+
* For objects value == null
|
|
36
|
+
* For undefined returns true
|
|
37
|
+
*/
|
|
38
|
+
export declare const isZero: <V extends Value>(value: V) => boolean;
|
|
39
|
+
//# sourceMappingURL=primitive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primitive.d.ts","sourceRoot":"","sources":["../../../src/primitive/primitive.ts"],"names":[],"mappings":"AASA,uFAAuF;AACvF,MAAM,MAAM,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,IAAI,GAAG,SAAS,CAAC;AAErF;;;GAGG;AACH,qBAAa,cAAc,CAAC,CAAC,SAAS,WAAW,CAAC,KAAK,CAAC;IACtD,qCAAqC;IACrC,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC;gBAEhB,KAAK,EAAE,CAAC;IAIpB,iFAAiF;IACjF,OAAO,IAAI,CAAC;IAIZ;0BACsB;IACtB,MAAM,IAAI,CAAC;IAIX,oDAAoD;IACpD,QAAQ,IAAI,MAAM;CAGnB;AAED;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACvB,oDAAoD;IACpD,QAAQ,EAAE,MAAM,MAAM,CAAC;CACxB;AAED,yFAAyF;AACzF,eAAO,MAAM,UAAU,GAAI,OAAO,OAAO,KAAG,OACuB,CAAC;AAEpE;;;;;;;;GAQG;AACH,eAAO,MAAM,MAAM,GAAI,CAAC,SAAS,KAAK,EAAE,OAAO,CAAC,KAAG,OAkBlD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primitive.spec.d.ts","sourceRoot":"","sources":["../../../src/primitive/primitive.spec.ts"],"names":[],"mappings":""}
|
package/dist/src/record.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
2
|
export type Key = string | number;
|
|
3
3
|
export type UnknownRecord = Record<Key, unknown>;
|
|
4
4
|
export type UnknownStringRecord = Record<string, unknown>;
|
|
@@ -14,5 +14,5 @@ export type Entries<T> = Array<{
|
|
|
14
14
|
[K in keyof T]: [K, T[K]];
|
|
15
15
|
}[keyof T]>;
|
|
16
16
|
export declare const getEntries: <T extends Record<Key, unknown>>(obj: T) => Entries<T>;
|
|
17
|
-
export declare const mapValues: <T extends Record<Key, unknown>, U>(obj: T, fn: (value: T[keyof T], key:
|
|
17
|
+
export declare const mapValues: <T extends Record<Key, unknown>, U>(obj: T, fn: (value: T[keyof T], key: keyof T) => U) => Record<Key, U>;
|
|
18
18
|
//# sourceMappingURL=record.d.ts.map
|
package/dist/src/record.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../src/record.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../src/record.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,MAAM,MAAM,GAAG,GAAG,MAAM,GAAG,MAAM,CAAC;AAElC,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;AAEjD,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE1D,MAAM,WAAW,KAAK,CAAC,CAAC,SAAS,GAAG;IAClC,GAAG,EAAE,CAAC,CAAC;CACR;AAED,MAAM,WAAW,UAAU,CAAC,CAAC,SAAS,GAAG,GAAG,MAAM;IAChD,GAAG,EAAE,CAAC,CAAC;IACP,IAAI,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,cAAc,yFAG1B,CAAC;AAEF,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI,KAAK,CAC5B;KACG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;CAC1B,CAAC,MAAM,CAAC,CAAC,CACX,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,EAAE,KAAK,CAAC,KAAG,OAAO,CAAC,CAAC,CAC1C,CAAC;AAEpC,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,EAAE,CAAC,EACzD,KAAK,CAAC,EACN,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,KACzC,MAAM,CAAC,GAAG,EAAE,CAAC,CACkE,CAAC"}
|
package/dist/src/renderable.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Stringer } from './primitive';
|
|
1
|
+
import { Stringer } from './primitive/primitive';
|
|
2
2
|
export type PureRenderableValue = string | number | undefined;
|
|
3
3
|
export type RenderableValue = PureRenderableValue | Stringer;
|
|
4
4
|
export declare const convertRenderV: (value: RenderableValue) => string | number | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderable.d.ts","sourceRoot":"","sources":["../../src/renderable.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"renderable.d.ts","sourceRoot":"","sources":["../../src/renderable.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;AAC9D,MAAM,MAAM,eAAe,GAAG,mBAAmB,GAAG,QAAQ,CAAC;AAE7D,eAAO,MAAM,cAAc,GAAI,OAAO,eAAe,KAAG,MAAM,GAAG,MAAM,GAAG,SAKzE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replace.d.ts","sourceRoot":"","sources":["../../src/replace.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"replace.d.ts","sourceRoot":"","sources":["../../src/replace.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,OAAO,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detect.d.ts","sourceRoot":"","sources":["../../../src/runtime/detect.ts"],"names":[],"mappings":"AASA,uCAAuC;AACvC,MAAM,MAAM,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,WAAW,CAAC;AAEvD;;;;GAIG;AACH,eAAO,MAAM,MAAM,QAAO,
|
|
1
|
+
{"version":3,"file":"detect.d.ts","sourceRoot":"","sources":["../../../src/runtime/detect.ts"],"names":[],"mappings":"AASA,uCAAuC;AACvC,MAAM,MAAM,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,WAAW,CAAC;AAEvD;;;;GAIG;AACH,eAAO,MAAM,MAAM,QAAO,OAYzB,CAAC;AAEF,eAAO,MAAM,OAAO,SAAW,CAAC"}
|
package/dist/src/runtime/os.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"os.d.ts","sourceRoot":"","sources":["../../../src/runtime/os.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"os.d.ts","sourceRoot":"","sources":["../../../src/runtime/os.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,eAAO,MAAM,iBAAiB,wCAAyC,CAAC;AAWxE,eAAO,MAAM,GAAG;;;;;;;;mFAMb,CAAC;AACJ,MAAM,MAAM,EAAE,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAWpD,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE,EAAE,CAAC;IACX,OAAO,CAAC,EAAE,EAAE,CAAC;CACd;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE,EAAE,CAAC;IACX,OAAO,EAAE,EAAE,CAAC;CACb;AAED,MAAM,MAAM,UAAU,GAAG,kBAAkB,GAAG,kBAAkB,CAAC;AAIjE,MAAM,WAAW,KAAK;IACpB,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,EAAE,CAAC;IACjC,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,EAAE,GAAG,SAAS,CAAC;CAC9C;AAED,eAAO,MAAM,KAAK,EAAE,KAMT,CAAC"}
|