@synnaxlabs/x 0.15.0 → 0.15.2
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 +6 -6
- package/dist/binary/encoder.d.ts +0 -6
- package/dist/telem/series.d.ts +6 -8
- package/dist/telem/telem.d.ts +4 -6
- package/dist/x.cjs +7 -7
- package/dist/x.cjs.map +1 -1
- package/dist/x.js +2106 -3165
- package/dist/x.js.map +1 -1
- package/package.json +3 -4
- package/src/binary/encoder.ts +1 -22
- package/src/telem/series.spec.ts +43 -0
- package/src/telem/series.ts +31 -16
- package/src/telem/telem.spec.ts +9 -0
- package/src/telem/telem.ts +25 -4
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
|
|
2
|
-
> @synnaxlabs/x@0.15.
|
|
2
|
+
> @synnaxlabs/x@0.15.2 build /home/runner/work/synnax/synnax/x/ts
|
|
3
3
|
> tsc --noEmit && vite build
|
|
4
4
|
|
|
5
5
|
[36mvite v5.1.2 [32mbuilding for production...[36m[39m
|
|
6
6
|
transforming...
|
|
7
7
|
[1m[33m[plugin:vite:resolve][39m[22m [33mModule "crypto" has been externalized for browser compatibility, imported by "/home/runner/work/synnax/synnax/node_modules/.pnpm/nanoid@3.0.0/node_modules/nanoid/index.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.[39m
|
|
8
|
-
[32m✓[39m
|
|
8
|
+
[32m✓[39m 123 modules transformed.
|
|
9
9
|
rendering chunks...
|
|
10
10
|
[32m
|
|
11
11
|
[36m[vite:dts][32m Start generate declaration files...[39m
|
|
12
12
|
computing gzip size...
|
|
13
|
-
[2mdist/[22m[36mx.js [39m[1m[
|
|
14
|
-
[32m[36m[vite:dts][32m Declaration files built in
|
|
13
|
+
[2mdist/[22m[36mx.js [39m[1m[2m179.71 kB[22m[1m[22m[2m │ gzip: 39.89 kB[22m[2m │ map: 522.48 kB[22m
|
|
14
|
+
[32m[36m[vite:dts][32m Declaration files built in 3195ms.
|
|
15
15
|
[39m
|
|
16
|
-
[2mdist/[22m[36mx.cjs [39m[1m[
|
|
17
|
-
[32m✓ built in 4.
|
|
16
|
+
[2mdist/[22m[36mx.cjs [39m[1m[2m119.01 kB[22m[1m[22m[2m │ gzip: 31.61 kB[22m[2m │ map: 504.10 kB[22m
|
|
17
|
+
[32m✓ built in 4.01s[39m
|
package/dist/binary/encoder.d.ts
CHANGED
|
@@ -21,12 +21,6 @@ export interface EncoderDecoder {
|
|
|
21
21
|
*/
|
|
22
22
|
decode: <P>(data: Uint8Array | ArrayBuffer, schema?: ZodSchema<P>) => P;
|
|
23
23
|
}
|
|
24
|
-
/** MsgpackEncoderDecoder is a msgpack implementation of EncoderDecoder. */
|
|
25
|
-
export declare class MsgpackEncoderDecoder implements EncoderDecoder {
|
|
26
|
-
contentType: string;
|
|
27
|
-
encode(payload: unknown): ArrayBuffer;
|
|
28
|
-
decode<P extends z.ZodTypeAny>(data: Uint8Array | ArrayBuffer, schema?: P): z.output<P>;
|
|
29
|
-
}
|
|
30
24
|
/** JSONEncoderDecoder is a JSON implementation of EncoderDecoder. */
|
|
31
25
|
export declare class JSONEncoderDecoder implements EncoderDecoder {
|
|
32
26
|
contentType: string;
|
package/dist/telem/series.d.ts
CHANGED
|
@@ -132,10 +132,9 @@ export declare class Series<T extends TelemValue = TelemValue> {
|
|
|
132
132
|
*/
|
|
133
133
|
binarySearch(value: NumericTelemValue): number;
|
|
134
134
|
updateGLBuffer(gl: GLBufferController): void;
|
|
135
|
-
as(
|
|
136
|
-
as(
|
|
137
|
-
as(
|
|
138
|
-
as(dataType: "numeric"): Series<NumericTelemValue>;
|
|
135
|
+
as(jsType: "string"): Series<string>;
|
|
136
|
+
as(jsType: "number"): Series<number>;
|
|
137
|
+
as(jsType: "bigint"): Series<bigint>;
|
|
139
138
|
get digest(): SeriesDigest;
|
|
140
139
|
get memInfo(): SeriesMemInfo;
|
|
141
140
|
get alignmentBounds(): bounds.Bounds;
|
|
@@ -149,10 +148,9 @@ export declare const addSamples: (a: NumericTelemValue, b: NumericTelemValue) =>
|
|
|
149
148
|
export declare class MultiSeries<T extends TelemValue = TelemValue> implements Iterable<T> {
|
|
150
149
|
readonly series: Array<Series<T>>;
|
|
151
150
|
constructor(series: Array<Series<T>>);
|
|
152
|
-
as(
|
|
153
|
-
as(
|
|
154
|
-
as(
|
|
155
|
-
as(dataType: "numeric"): MultiSeries<NumericTelemValue>;
|
|
151
|
+
as(jsType: "string"): MultiSeries<string>;
|
|
152
|
+
as(jsType: "number"): MultiSeries<number>;
|
|
153
|
+
as(jsType: "bigint"): MultiSeries<bigint>;
|
|
156
154
|
get dataType(): DataType;
|
|
157
155
|
get timeRange(): TimeRange;
|
|
158
156
|
push(series: Series<T>): void;
|
package/dist/telem/telem.d.ts
CHANGED
|
@@ -452,12 +452,7 @@ export declare class TimeRange implements Stringer {
|
|
|
452
452
|
* In most cases, operations should treat end as exclusive.
|
|
453
453
|
*/
|
|
454
454
|
end: TimeStamp;
|
|
455
|
-
|
|
456
|
-
* Creates a TimeRange from the given start and end TimeStamps.
|
|
457
|
-
*
|
|
458
|
-
* @param start - A TimeStamp representing the start of the range.
|
|
459
|
-
* @param end - A TimeStamp representing the end of the range.
|
|
460
|
-
*/
|
|
455
|
+
constructor(tr: CrudeTimeRange);
|
|
461
456
|
constructor(start: CrudeTimeStamp, end: CrudeTimeStamp);
|
|
462
457
|
/** @returns The TimeSpan occupied by the TimeRange. */
|
|
463
458
|
get span(): TimeSpan;
|
|
@@ -570,6 +565,9 @@ export declare class DataType extends String implements Stringer {
|
|
|
570
565
|
/** @returns a string representation of the DataType. */
|
|
571
566
|
toString(): string;
|
|
572
567
|
get isVariable(): boolean;
|
|
568
|
+
get isNumeric(): boolean;
|
|
569
|
+
get isInteger(): boolean;
|
|
570
|
+
get isFloat(): boolean;
|
|
573
571
|
get density(): Density;
|
|
574
572
|
/**
|
|
575
573
|
* Checks whether the given TypedArray is of the same type as the DataType.
|