drizzle-kit 0.19.13-ad1f24b → 0.19.13-c212aa4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. package/index.cjs +30671 -30644
  2. package/index.d.ts +14 -15
  3. package/package.json +3 -4
  4. package/utils.js +11724 -44481
  5. package/@types/utils.d.ts +0 -12
  6. package/cli/commands/migrate.d.ts +0 -141
  7. package/cli/commands/mysqlUp.d.ts +0 -4
  8. package/cli/commands/pgIntrospect.d.ts +0 -118
  9. package/cli/commands/pgPushUtils.d.ts +0 -14
  10. package/cli/commands/pgUp.d.ts +0 -4
  11. package/cli/commands/sqliteIntrospect.d.ts +0 -102
  12. package/cli/commands/sqliteUtils.d.ts +0 -162
  13. package/cli/commands/upFolders.d.ts +0 -27
  14. package/cli/commands/utils.d.ts +0 -265
  15. package/cli/selector-ui.d.ts +0 -13
  16. package/cli/validations/common.d.ts +0 -13
  17. package/cli/validations/mysql.d.ts +0 -414
  18. package/cli/validations/outputs.d.ts +0 -39
  19. package/cli/validations/pg.d.ts +0 -438
  20. package/cli/validations/sqlite.d.ts +0 -220
  21. package/cli/validations/studio.d.ts +0 -469
  22. package/cli/views.d.ts +0 -61
  23. package/drivers/index.d.ts +0 -26
  24. package/global.d.ts +0 -2
  25. package/introspect.d.ts +0 -4
  26. package/jsonDiffer.d.ts +0 -76
  27. package/jsonStatements.d.ts +0 -349
  28. package/migrationPreparator.d.ts +0 -35
  29. package/schemaValidator.d.ts +0 -1236
  30. package/serializer/index.d.ts +0 -9
  31. package/serializer/mysqlImports.d.ts +0 -6
  32. package/serializer/mysqlSchema.d.ts +0 -3833
  33. package/serializer/mysqlSerializer.d.ts +0 -7
  34. package/serializer/pgImports.d.ts +0 -11
  35. package/serializer/pgSchema.d.ts +0 -4000
  36. package/serializer/pgSerializer.d.ts +0 -7
  37. package/serializer/sqliteImports.d.ts +0 -5
  38. package/serializer/sqliteSchema.d.ts +0 -3162
  39. package/serializer/sqliteSerializer.d.ts +0 -8
  40. package/serializer/studioUtils.d.ts +0 -31
  41. package/snapshotsDiffer.d.ts +0 -2660
  42. package/sqlgenerator.d.ts +0 -33
  43. package/sqlite-introspect.d.ts +0 -5
  44. package/utils/words.d.ts +0 -7
  45. package/utils.d.ts +0 -32
  46. package/utilsR.d.ts +0 -209
package/index.d.ts CHANGED
@@ -1,4 +1,16 @@
1
- export type DbConnection = {
1
+ export type Config = {
2
+ out?: string | undefined;
3
+ breakpoints?: boolean | undefined;
4
+ tablesFilter?: string | string[] | undefined;
5
+ schemaFilter?: string | string[] | undefined;
6
+ schema?: string | string[];
7
+ verbose?: boolean | undefined;
8
+ strict?: boolean | undefined;
9
+ } & {
10
+ introspect?: {
11
+ casing: "camel" | "preserve";
12
+ };
13
+ } & ({
2
14
  driver: "turso";
3
15
  dbCredentials: {
4
16
  url: string;
@@ -37,17 +49,4 @@ export type DbConnection = {
37
49
  } | {
38
50
  connectionString: string;
39
51
  };
40
- };
41
- export type Config = {
42
- out?: string | undefined;
43
- breakpoints?: boolean | undefined;
44
- tablesFilter?: string | string[] | undefined;
45
- schemaFilter?: string | string[] | undefined;
46
- schema?: string | string[];
47
- verbose?: boolean | undefined;
48
- strict?: boolean | undefined;
49
- } & {
50
- introspect?: {
51
- casing: "camel" | "preserve";
52
- };
53
- } & (DbConnection | {});
52
+ } | {});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "0.19.13-ad1f24b",
3
+ "version": "0.19.13-c212aa4",
4
4
  "repository": "https://github.com/drizzle-team/drizzle-kit-mirror",
5
5
  "author": "Drizzle Team",
6
6
  "license": "MIT",
@@ -9,7 +9,6 @@
9
9
  },
10
10
  "scripts": {
11
11
  "test:pg:push": "drizzle-kit push:pg",
12
- "payload": "tsx ./dev/payload.ts",
13
12
  "migrate:old": "drizzle-kit generate:pg --out ./dev/migrations-pg --schema ./dev/migrations-pg/schema.ts",
14
13
  "push": "node -r esbuild-register ./src/cli/index.ts push:mysql",
15
14
  "push:sqlite": "node -r ./src/loader.mjs ./src/cli/index.ts push:sqlite",
@@ -37,7 +36,7 @@
37
36
  "test": "ava test --timeout=60s",
38
37
  "build": "rm -rf ./dist && tsx build.ts && tsc -p tsconfig.cli-types.json",
39
38
  "build:dev": "rm -rf ./dist && tsx build.dev.ts && tsc -p tsconfig.cli-types.json && chmod +x ./dist/index.cjs",
40
- "packit": "pnpm build && cp package.json dist/ && cd dist && pnpm pack",
39
+ "pack": "build && package",
41
40
  "tsc": "tsc -p tsconfig.build.json",
42
41
  "pub": "cp package.json readme.md dist/ && cd dist && npm publish",
43
42
  "studio": "./dist/index.cjs studio --verbose"
@@ -54,7 +53,7 @@
54
53
  ]
55
54
  },
56
55
  "dependencies": {
57
- "@drizzle-team/studio": "^0.0.5",
56
+ "@drizzle-team/studio": "^0.0.7",
58
57
  "@esbuild-kit/esm-loader": "^2.5.5",
59
58
  "camelcase": "^7.0.1",
60
59
  "chalk": "^5.2.0",