@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.
- package/.turbo/turbo-build.log +6 -6
- package/dist/compare/compare.d.ts +3 -0
- package/dist/index.d.ts +1 -0
- package/dist/migrate/index.d.ts +1 -0
- package/dist/migrate/migrate.d.ts +15 -0
- package/dist/migrate/migrate.spec.d.ts +1 -0
- package/dist/x.cjs +2 -2
- package/dist/x.cjs.map +1 -1
- package/dist/x.js +674 -652
- package/dist/x.js.map +1 -1
- package/package.json +3 -3
- package/src/compare/compare.ts +6 -0
- package/src/index.ts +1 -0
- package/src/migrate/index.ts +1 -0
- package/src/migrate/migrate.spec.ts +79 -0
- package/src/migrate/migrate.ts +47 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
|
|
2
|
-
> @synnaxlabs/x@0.15.
|
|
2
|
+
> @synnaxlabs/x@0.15.4 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 125 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[2m180.57 kB[22m[1m[22m[2m │ gzip: 40.17 kB[22m[2m │ map: 525.53 kB[22m
|
|
14
|
+
[32m[36m[vite:dts][32m Declaration files built in 3225ms.
|
|
15
15
|
[39m
|
|
16
|
-
[2mdist/[22m[36mx.cjs [39m[1m[2m119.
|
|
17
|
-
[32m✓ built in
|
|
16
|
+
[2mdist/[22m[36mx.cjs [39m[1m[2m119.65 kB[22m[1m[22m[2m │ gzip: 31.87 kB[22m[2m │ map: 507.09 kB[22m
|
|
17
|
+
[32m✓ built in 3.99s[39m
|
|
@@ -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
|
@@ -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 {};
|