@synnaxlabs/x 0.42.1 → 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 -649
- 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 +63 -28
- 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 +9 -5
- package/dist/src/color/gradient.d.ts.map +1 -1
- package/dist/src/color/palette.d.ts +14 -6
- 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 +16 -14
- 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 +121 -2
- package/src/color/color.ts +90 -54
- 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
|
@@ -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,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AW,CAAC,CAAC,CAAC,EACd,YAAY;CAAG;AAEnB,eAAO,MAAM,WAAW;;;iBAAmD,CAAC;AAE5E,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,GA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AAE,GAAG,CAAC,CAAC,CAAC;AAE7D,UAAU,aAAa,CAAC,CAAC,SAAS,UAAU,EAAE,EAAE,SAAS,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"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
2
|
export declare const numberCouple: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
3
3
|
export declare const bigNumberCouple: z.ZodTuple<[z.ZodBigInt, z.ZodBigInt], null>;
|
|
4
4
|
export type NumberCouple<T extends number | bigint = number> = [T, T];
|
|
5
5
|
export declare const dimensions: z.ZodObject<{
|
|
6
6
|
width: z.ZodNumber;
|
|
7
7
|
height: z.ZodNumber;
|
|
8
|
-
},
|
|
8
|
+
}, z.core.$strip>;
|
|
9
9
|
export type Dimensions = z.infer<typeof dimensions>;
|
|
10
10
|
export declare const signedDimensions: z.ZodObject<{
|
|
11
11
|
signedWidth: z.ZodNumber;
|
|
12
12
|
signedHeight: z.ZodNumber;
|
|
13
|
-
},
|
|
13
|
+
}, z.core.$strip>;
|
|
14
14
|
export declare const DIMENSIONS: readonly ["width", "height"];
|
|
15
15
|
export declare const dimension: z.ZodEnum<{
|
|
16
16
|
width: "width";
|
|
@@ -27,12 +27,12 @@ export type SignedDimension = (typeof SIGNED_DIMENSIONS)[number];
|
|
|
27
27
|
export declare const xy: z.ZodObject<{
|
|
28
28
|
x: z.ZodNumber;
|
|
29
29
|
y: z.ZodNumber;
|
|
30
|
-
},
|
|
30
|
+
}, z.core.$strip>;
|
|
31
31
|
export type XY = z.infer<typeof xy>;
|
|
32
32
|
export declare const clientXY: z.ZodObject<{
|
|
33
33
|
clientX: z.ZodNumber;
|
|
34
34
|
clientY: z.ZodNumber;
|
|
35
|
-
},
|
|
35
|
+
}, z.core.$strip>;
|
|
36
36
|
export type ClientXY = z.infer<typeof clientXY>;
|
|
37
37
|
export declare const DIRECTIONS: readonly ["x", "y"];
|
|
38
38
|
export declare const direction: z.ZodEnum<{
|
|
@@ -89,11 +89,11 @@ export type Order = (typeof ORDERS)[number];
|
|
|
89
89
|
export declare const bounds: z.ZodObject<{
|
|
90
90
|
lower: z.ZodNumber;
|
|
91
91
|
upper: z.ZodNumber;
|
|
92
|
-
},
|
|
92
|
+
}, z.core.$strip>;
|
|
93
93
|
export declare const bigBounds: z.ZodObject<{
|
|
94
94
|
lower: z.ZodBigInt;
|
|
95
95
|
upper: z.ZodBigInt;
|
|
96
|
-
},
|
|
96
|
+
}, z.core.$strip>;
|
|
97
97
|
export interface Bounds<T extends number | bigint = number> {
|
|
98
98
|
lower: T;
|
|
99
99
|
upper: T;
|
|
@@ -101,11 +101,11 @@ export interface Bounds<T extends number | bigint = number> {
|
|
|
101
101
|
export declare const crudeBounds: z.ZodUnion<readonly [z.ZodObject<{
|
|
102
102
|
lower: z.ZodNumber;
|
|
103
103
|
upper: z.ZodNumber;
|
|
104
|
-
},
|
|
104
|
+
}, z.core.$strip>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
|
|
105
105
|
export declare const bigCrudeBounds: z.ZodUnion<readonly [z.ZodObject<{
|
|
106
106
|
lower: z.ZodBigInt;
|
|
107
107
|
upper: z.ZodBigInt;
|
|
108
|
-
},
|
|
108
|
+
}, z.core.$strip>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
|
|
109
109
|
export type CrudeBounds<T extends number | bigint = number> = Bounds<T> | NumberCouple<T>;
|
|
110
110
|
export declare const crudeDirection: z.ZodEnum<{
|
|
111
111
|
center: "center";
|
|
@@ -126,6 +126,6 @@ export declare const crudeLocation: z.ZodUnion<readonly [z.ZodEnum<{
|
|
|
126
126
|
right: "right";
|
|
127
127
|
bottom: "bottom";
|
|
128
128
|
left: "left";
|
|
129
|
-
}>, z.ZodCustom<String,
|
|
129
|
+
}>, z.ZodCustom<String, String>]>;
|
|
130
130
|
export type CrudeLocation = z.infer<typeof crudeLocation>;
|
|
131
131
|
//# sourceMappingURL=base.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/spatial/base.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/spatial/base.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,eAAO,MAAM,YAAY,8CAAoC,CAAC;AAC9D,eAAO,MAAM,eAAe,8CAAoC,CAAC;AACjE,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAItE,eAAO,MAAM,UAAU;;;iBAAsD,CAAC;AAC9E,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AACpD,eAAO,MAAM,gBAAgB;;;iBAG3B,CAAC;AACH,eAAO,MAAM,UAAU,8BAA+B,CAAC;AACvD,eAAO,MAAM,SAAS;;;EAAqB,CAAC;AAC5C,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AACpD,eAAO,MAAM,UAAU,qCAAsC,CAAC;AAC9D,eAAO,MAAM,iBAAiB,0CAA2C,CAAC;AAC1E,eAAO,MAAM,eAAe;;;EAA4B,CAAC;AACzD,MAAM,MAAM,eAAe,GAAG,CAAC,OAA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QAAQ,CAAC,CAAC;AAIhD,eAAO,MAAM,SAAS;;;;EAAqB,CAAC;AAC5C,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AACpD,eAAO,MAAM,MAAM,4BAA6B,CAAC;AACjD,eAAO,MAAM,KAAK;;;EAAiB,CAAC;AACpC,MAAM,MAAM,KAAK,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;AAI5C,eAAO,MAAM,MAAM;;;iBAAqD,CAAC;AACzE,eAAO,MAAM,SAAS;;;iBAAqD,CAAC;AAC5E,MAAM,WAAW,MAAM,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM;IACxD,KAAK,EAAE,CAAC,CAAC;IACT,KAAK,EAAE,CAAC,CAAC;CACV;AAED,eAAO,MAAM,WAAW;;;iEAAkC,CAAC;AAC3D,eAAO,MAAM,cAAc;;;iEAAqC,CAAC;AACjE,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,IACtD,MAAM,CAAC,CAAC,CAAC,GACT,YAAY,CAAC,CAAC,CAAC,CAAC;AACpB,eAAO,MAAM,cAAc;;;;;;;;EAAsD,CAAC;AAClF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAC5D,eAAO,MAAM,aAAa;;;;;;;;;iCAAuD,CAAC;AAClF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
|
|
@@ -2,30 +2,96 @@ import { numeric } from '../../numeric';
|
|
|
2
2
|
import { Bounds, bounds, CrudeBounds } from '../base';
|
|
3
3
|
export { type Bounds, bounds };
|
|
4
4
|
export type Crude<T extends numeric.Value = number> = CrudeBounds<T>;
|
|
5
|
-
|
|
5
|
+
/** Options for the `construct` function. */
|
|
6
|
+
interface ConstructOptions {
|
|
6
7
|
/**
|
|
7
|
-
*
|
|
8
|
+
* If true (default), automatically swaps the lower and upper bounds if the lower bound
|
|
9
|
+
* is greater than the upper bound. This ensures the resulting bounds are valid.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* // With makeValid: true (default)
|
|
13
|
+
* construct(10, 0) // => { lower: 0, upper: 10 }
|
|
8
14
|
*
|
|
9
|
-
* @
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* swapped.
|
|
15
|
+
* @example
|
|
16
|
+
* // With makeValid: false
|
|
17
|
+
* construct(10, 0, { makeValid: false }) // => { lower: 10, upper: 0 }
|
|
13
18
|
*/
|
|
14
|
-
|
|
19
|
+
makeValid?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface Construct {
|
|
15
22
|
/**
|
|
16
|
-
* Constructs a bounds object from
|
|
17
|
-
*
|
|
18
|
-
*
|
|
23
|
+
* Constructs a bounds object from various input formats. The function supports multiple
|
|
24
|
+
* overloads to handle different input types:
|
|
25
|
+
*
|
|
26
|
+
* 1. From a crude bounds object or array:
|
|
27
|
+
* ```typescript
|
|
28
|
+
* construct({ lower: 0, upper: 10 }) // => { lower: 0, upper: 10 }
|
|
29
|
+
* construct([0, 10]) // => { lower: 0, upper: 10 }
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* 2. From separate lower and upper values:
|
|
33
|
+
* ```typescript
|
|
34
|
+
* construct(0, 10) // => { lower: 0, upper: 10 }
|
|
35
|
+
* construct(10) // => { lower: 0, upper: 10 }
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* The function supports both number and bigint types through the generic parameter T.
|
|
39
|
+
* By default, T is number.
|
|
40
|
+
*
|
|
41
|
+
* Options:
|
|
42
|
+
* - makeValid: If true (default), swaps lower and upper bounds if lower > upper
|
|
19
43
|
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
44
|
+
* @param bounds - The input bounds to construct from. Can be:
|
|
45
|
+
* - A bounds object with lower and upper properties
|
|
46
|
+
* - An array of length 2 [lower, upper]
|
|
47
|
+
* - A single number/bigint (treated as upper bound, with lower = 0)
|
|
48
|
+
* - Two numbers/bigints (lower and upper bounds)
|
|
49
|
+
* @param options - Optional configuration for bounds construction
|
|
50
|
+
* @returns A bounds object with lower and upper properties
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* // From bounds object
|
|
54
|
+
* construct({ lower: 0, upper: 10 })
|
|
55
|
+
* // => { lower: 0, upper: 10 }
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* // From array
|
|
59
|
+
* construct([0, 10])
|
|
60
|
+
* // => { lower: 0, upper: 10 }
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* // From separate values
|
|
64
|
+
* construct(0, 10)
|
|
65
|
+
* // => { lower: 0, upper: 10 }
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* // Single value (upper bound only)
|
|
69
|
+
* construct(10)
|
|
70
|
+
* // => { lower: 0, upper: 10 }
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* // With bigint
|
|
74
|
+
* construct(0n, 10n)
|
|
75
|
+
* // => { lower: 0n, upper: 10n }
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* // Invalid bounds (lower > upper)
|
|
79
|
+
* construct(10, 0)
|
|
80
|
+
* // => { lower: 0, upper: 10 } (bounds are swapped)
|
|
81
|
+
*/
|
|
82
|
+
<T extends numeric.Value = number>(bounds: Crude<T>, options?: ConstructOptions): Bounds<T>;
|
|
83
|
+
/**
|
|
84
|
+
* Constructs a bounds object from separate lower and upper values.
|
|
22
85
|
*
|
|
23
|
-
*
|
|
86
|
+
* @param lower - The lower bound value
|
|
87
|
+
* @param upper - The upper bound value. If omitted, lower is used as the upper bound
|
|
88
|
+
* and 0 is used as the lower bound
|
|
89
|
+
* @returns A bounds object with lower and upper properties
|
|
24
90
|
*/
|
|
25
|
-
<T extends numeric.Value = number>(lower: T, upper?: T): Bounds<T>;
|
|
26
|
-
<T extends numeric.Value = number>(lower: T | Crude, upper?: T): Bounds<T>;
|
|
91
|
+
<T extends numeric.Value = number>(lower: T, upper?: T | ConstructOptions): Bounds<T>;
|
|
92
|
+
<T extends numeric.Value = number>(lower: T | Crude, upper?: T | ConstructOptions, options?: ConstructOptions): Bounds<T>;
|
|
27
93
|
}
|
|
28
|
-
export declare const construct: <T extends numeric.Value>(lower: T | Crude<T>, upper?: T) => Bounds<T>;
|
|
94
|
+
export declare const construct: <T extends numeric.Value>(lower: T | Crude<T>, upper?: T | ConstructOptions, options?: ConstructOptions) => Bounds<T>;
|
|
29
95
|
/** A lower and upper bound of 0. */
|
|
30
96
|
export declare const ZERO: Bounds;
|
|
31
97
|
/** A lower bound of -Infinity and an upper bound of Infinity. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bounds.d.ts","sourceRoot":"","sources":["../../../../src/spatial/bounds/bounds.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAEvE,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,EAAE,CAAC;AAE/B,MAAM,MAAM,KAAK,CAAC,CAAC,SAAS,OAAO,CAAC,KAAK,GAAG,MAAM,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC;AAErE,MAAM,WAAW,SAAS;IACxB
|
|
1
|
+
{"version":3,"file":"bounds.d.ts","sourceRoot":"","sources":["../../../../src/spatial/bounds/bounds.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAEvE,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,EAAE,CAAC;AAE/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