@synnaxlabs/x 0.15.3 → 0.15.4

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.3 build /home/runner/work/synnax/synnax/x/ts
2
+ > @synnaxlabs/x@0.15.4 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
- ✓ 123 modules transformed.
8
+ ✓ 125 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 179.71 kB │ gzip: 39.89 kB │ map: 522.48 kB
14
- [vite:dts] Declaration files built in 3306ms.
13
+ dist/x.js 180.57 kB │ gzip: 40.17 kB │ map: 525.53 kB
14
+ [vite:dts] Declaration files built in 3225ms.
15
15
  
16
- dist/x.cjs 119.01 kB │ gzip: 31.61 kB │ map: 504.10 kB
17
- ✓ built in 4.20s
16
+ dist/x.cjs 119.65 kB │ gzip: 31.87 kB │ map: 507.09 kB
17
+ ✓ built in 3.99s
@@ -37,3 +37,6 @@ export declare const EQUAL = 0;
37
37
  export declare const LESS_THAN = -1;
38
38
  /** The greater than return value of a compare function. */
39
39
  export declare const GREATER_THAN = 1;
40
+ export declare const isLessThan: (n: number) => boolean;
41
+ export declare const isGreaterThan: (n: number) => boolean;
42
+ export declare const isGreaterThanEqual: (n: number) => boolean;
package/dist/index.d.ts CHANGED
@@ -25,3 +25,4 @@ export * from './observe';
25
25
  export * from './change';
26
26
  export * from './shallowCopy';
27
27
  export * from './invert';
28
+ export * from './migrate';
@@ -0,0 +1 @@
1
+ export * as migrate from './migrate';
@@ -0,0 +1,15 @@
1
+ import { z } from "zod";
2
+ export declare const semVerZ: z.ZodString;
3
+ export type SemVer = z.infer<typeof semVerZ>;
4
+ export declare const migratable: z.ZodObject<{
5
+ version: z.ZodString;
6
+ }, "strip", z.ZodTypeAny, {
7
+ version: string;
8
+ }, {
9
+ version: string;
10
+ }>;
11
+ export interface Migratable extends z.infer<typeof migratable> {
12
+ }
13
+ export type Migration<I = unknown, O = unknown> = (migratable: Migratable & I) => Migratable & O;
14
+ export type Migrations = Record<string, Migration<any, any>>;
15
+ export declare const migrator: <I = unknown, O = unknown>(migrations: Migrations) => Migration<I, O>;
@@ -0,0 +1 @@
1
+ export {};