@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.
@@ -1,17 +1,17 @@
1
1
 
2
- > @synnaxlabs/x@0.15.0 build /home/runner/work/synnax/synnax/x/ts
2
+ > @synnaxlabs/x@0.15.2 build /home/runner/work/synnax/synnax/x/ts
3
3
  > tsc --noEmit && vite build
4
4
 
5
5
  vite v5.1.2 building for production...
6
6
  transforming...
7
7
  [plugin:vite:resolve] Module "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.
8
- ✓ 127 modules transformed.
8
+ ✓ 123 modules transformed.
9
9
  rendering chunks...
10
10
  
11
11
  [vite:dts] Start generate declaration files...
12
12
  computing gzip size...
13
- dist/x.js 217.59 kB │ gzip: 50.60 kB │ map: 651.51 kB
14
- [vite:dts] Declaration files built in 3123ms.
13
+ dist/x.js 179.71 kB │ gzip: 39.89 kB │ map: 522.48 kB
14
+ [vite:dts] Declaration files built in 3195ms.
15
15
  
16
- dist/x.cjs 143.43 kB │ gzip: 40.54 kB │ map: 630.60 kB
17
- ✓ built in 4.05s
16
+ dist/x.cjs 119.01 kB │ gzip: 31.61 kB │ map: 504.10 kB
17
+ ✓ built in 4.01s
@@ -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;
@@ -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(dataType: "string"): Series<string>;
136
- as(dataType: "number"): Series<number>;
137
- as(dataType: "bigint"): Series<bigint>;
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(dataType: "string"): MultiSeries<string>;
153
- as(dataType: "number"): MultiSeries<number>;
154
- as(dataType: "bigint"): MultiSeries<bigint>;
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;
@@ -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.