drizzle-kit 0.20.14-6ce9d1f → 0.20.14-730d763

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. package/bin.cjs +20593 -20020
  2. package/cli/commands/migrate.d.ts +114 -90
  3. package/cli/commands/mysqlIntrospect.d.ts +8 -14
  4. package/cli/commands/pgIntrospect.d.ts +17 -10
  5. package/cli/commands/sqliteIntrospect.d.ts +9 -9
  6. package/cli/commands/utils.d.ts +8 -261
  7. package/cli/validations/cli.d.ts +107 -0
  8. package/cli/validations/common.d.ts +205 -7
  9. package/cli/validations/mysql.d.ts +6 -1
  10. package/cli/validations/pg.d.ts +6 -1
  11. package/cli/validations/sqlite.d.ts +165 -3
  12. package/cli/views.d.ts +6 -4
  13. package/global.d.ts +3 -1
  14. package/index.js +1 -0
  15. package/introspect-mysql.d.ts +1 -1
  16. package/introspect-pg.d.ts +5 -2
  17. package/introspect-sqlite.d.ts +1 -1
  18. package/jsonDiffer.d.ts +14 -29
  19. package/jsonStatements.d.ts +38 -11
  20. package/package.json +18 -50
  21. package/payload.js +8130 -8617
  22. package/payload.mjs +8252 -8745
  23. package/schemaValidator.d.ts +72 -69
  24. package/serializer/mysqlImports.d.ts +3 -7
  25. package/serializer/mysqlSchema.d.ts +1624 -493
  26. package/serializer/mysqlSerializer.d.ts +2 -2
  27. package/serializer/pgImports.d.ts +2 -2
  28. package/serializer/pgSchema.d.ts +1260 -801
  29. package/serializer/sqliteImports.d.ts +2 -4
  30. package/serializer/sqliteSchema.d.ts +144 -570
  31. package/serializer/sqliteSerializer.d.ts +1 -1
  32. package/snapshotsDiffer.d.ts +1908 -1050
  33. package/utils/words.d.ts +1 -1
  34. package/utils-studio.js +4144 -85
  35. package/utils-studio.mjs +4144 -85
  36. package/utils.d.ts +6 -140
  37. package/utils.js +3906 -7081
  38. package/utils.mjs +3983 -7158
  39. package/cli/commands/check.d.ts +0 -2
  40. package/cli/commands/drop.d.ts +0 -4
  41. package/cli/commands/mysqlUp.d.ts +0 -4
  42. package/cli/commands/pgUp.d.ts +0 -4
  43. package/cli/commands/push.d.ts +0 -6
  44. package/cli/commands/sqliteUp.d.ts +0 -2
  45. package/cli/commands/sqliteUtils.d.ts +0 -162
  46. package/cli/commands/upFolders.d.ts +0 -27
  47. package/cli/index.d.ts +0 -71
  48. package/cli/utils.d.ts +0 -12
  49. package/cli/validations/studio.d.ts +0 -593
  50. package/orm-extenstions/d1-driver/driver.d.ts +0 -8
  51. package/orm-extenstions/d1-driver/session.d.ts +0 -51
  52. package/orm-extenstions/d1-driver/wrangler-client.d.ts +0 -3
  53. package/serializer/studioUtils.d.ts +0 -65
  54. package/utils/certs.d.ts +0 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "0.20.14-6ce9d1f",
3
+ "version": "0.20.14-730d763",
4
4
  "repository": "https://github.com/drizzle-team/drizzle-kit-mirror",
5
5
  "author": "Drizzle Team",
6
6
  "license": "MIT",
@@ -8,56 +8,21 @@
8
8
  "drizzle-kit": "./bin.cjs"
9
9
  },
10
10
  "scripts": {
11
- "test:pg:push": "drizzle-kit push:pg",
12
11
  "payload": "tsx ./dev/payload.ts",
13
12
  "migrate:old": "drizzle-kit generate:mysql",
14
- "push": "node -r esbuild-register ./src/cli/index.ts push:mysql",
15
- "push:sqlite": "node -r ./src/loader.mjs ./src/cli/index.ts push:sqlite",
16
- "try1": "tsx ./src/t.ts",
17
- "migrate:old:mysql": "drizzle-kit generate:mysql --out ./dev/migrations-mysql --schema ./dev/migrations-mysql/schema.ts",
18
- "start:pg": "node -r esbuild-register ./src/cli/index.ts generate:pg",
19
- "start:sqlite": "node -r esbuild-register ./src/cli/index.ts generate:sqlite",
20
- "start:mysql": "node -r esbuild-register ./src/cli/index.ts generate:mysql",
21
- "check:pg": "node -r esbuild-register ./src/cli/index.ts check --out ./dev/migrations --dialect pg",
22
- "introspect:mysql": "node -r esbuild-register ./src/cli/index.ts introspect:mysql --config drizzle.config2.ts",
23
- "introspect:sqlite": "node -r esbuild-register ./src/cli/index.ts introspect:sqlite --driver=sqlite",
24
- "introspect:pg": "node -r esbuild-register ./src/cli/index.ts introspect:pg --out ./dev/introspect-pg --connectionString=postgresql://postgres@localhost:5432/introspect",
25
- "drop": "node -r esbuild-register ./src/cli/index.ts drop",
26
- "up:pg": "node -r esbuild-register ./src/cli/index.ts up:pg --out ./dev/migrations-pg",
27
- "up:mysql": "node -r esbuild-register ./src/cli/index.ts up:mysql --out ./dev/migrations-mysql",
28
- "check:equedi": "node -r esbuild-register ./src/cli/index.ts check --out ./dev/equedi --dialect pg",
29
- "run": "node -r esbuild-register index.ts",
30
- "watch": "esbuild ./src/clie/index.ts --bundle --platform=node --target=node10.4 --outfile=./dist/index.js --external:esbuild --external:pg-native --sourcemap --watch",
31
- "diff": "esbuild ./src/clie/index.ts ./dev/diff.ts",
32
- "prepare:mysql": "node -r esbuild-register dev/mysql/index.ts",
33
- "prepare:pg": "node -r esbuild-register dev/index.ts",
34
- "prepare-snapshot": "node -r esbuild-register ./dev/prepare-snapshot prepare ./dev/data",
35
- "sim": "node -r esbuild-register ./dev/simulate.ts",
36
- "sim:sqlite": "node -r esbuild-register ./dev/sqlite/index.ts",
37
- "test": "ava test --timeout=60s",
38
- "build": "rm -rf ./dist && tsc -p tsconfig.cli-types.json && pnpm mts && tsx build.ts",
13
+ "cli": "tsx ./src/cli/index.ts",
14
+ "test": "vitest",
39
15
  "mts": "cp dist/index.d.ts dist/index.d.mts && cp dist/utils-studio.d.ts dist/utils-studio.d.mts && cp dist/payload.d.ts dist/payload.d.mts",
16
+ "build": "rm -rf ./dist && tsc -p tsconfig.cli-types.json && pnpm mts && tsx build.ts",
40
17
  "build:dev": "rm -rf ./dist && tsx build.dev.ts && tsc -p tsconfig.cli-types.json && chmod +x ./dist/index.cjs",
41
18
  "packit": "pnpm build && cp package.json dist/ && cd dist && pnpm pack",
42
19
  "tsc": "tsc -p tsconfig.build.json",
43
- "pub": "cp package.json readme.md dist/ && cd dist && npm publish",
44
- "studio": "tsx ./src/cli/index.ts studio --verbose --port=3000",
45
- "studio:dev": "tsx ./src/cli/index.ts studio --verbose"
46
- },
47
- "ava": {
48
- "files": [
49
- "test/**/*.ts"
50
- ],
51
- "extensions": {
52
- "ts": "module"
53
- },
54
- "nodeArguments": [
55
- "--loader=tsx"
56
- ]
20
+ "pub": "cp package.json readme.md dist/ && cd dist && npm publish"
57
21
  },
58
22
  "dependencies": {
59
23
  "@drizzle-team/studio": "^0.0.39",
60
24
  "@esbuild-kit/esm-loader": "^2.5.5",
25
+ "@types/json-diff": "^1.0.3",
61
26
  "camelcase": "^7.0.1",
62
27
  "chalk": "^5.2.0",
63
28
  "commander": "^9.4.1",
@@ -68,39 +33,42 @@
68
33
  "hanji": "^0.0.5",
69
34
  "json-diff": "0.9.0",
70
35
  "minimatch": "^7.4.3",
36
+ "pluralize": "^8.0.0",
71
37
  "semver": "^7.5.4",
72
38
  "zod": "^3.20.2"
73
39
  },
74
40
  "devDependencies": {
75
41
  "@cloudflare/workers-types": "^4.20230518.0",
76
42
  "@libsql/client": "^0.4.2",
43
+ "@originjs/vite-plugin-commonjs": "^1.0.3",
77
44
  "@types/better-sqlite3": "^7.6.4",
78
45
  "@types/dockerode": "^3.3.14",
79
46
  "@types/glob": "^8.1.0",
80
47
  "@types/minimatch": "^5.1.2",
81
48
  "@types/node": "^18.11.15",
82
49
  "@types/pg": "^8.10.7",
50
+ "@types/pluralize": "^0.0.33",
83
51
  "@types/semver": "^7.5.5",
84
- "@typescript-eslint/eslint-plugin": "^5.46.1",
85
- "@typescript-eslint/parser": "^5.46.1",
86
- "ava": "^5.1.0",
52
+ "@typescript-eslint/eslint-plugin": "^7.2.0",
53
+ "@typescript-eslint/parser": "^7.2.0",
87
54
  "better-sqlite3": "^8.4.0",
88
55
  "dockerode": "^3.3.4",
89
56
  "dotenv": "^16.0.3",
90
57
  "drizzle-kit": "0.19.13",
91
- "drizzle-orm": "0.29.3",
58
+ "drizzle-orm": "0.30.5-ab9feb7",
92
59
  "esbuild-node-externals": "^1.9.0",
93
- "eslint": "^8.29.0",
94
- "eslint-config-prettier": "^8.5.0",
95
- "eslint-plugin-prettier": "^4.2.1",
60
+ "eslint": "^8.57.0",
61
+ "eslint-config-prettier": "^9.1.0",
62
+ "eslint-plugin-prettier": "^5.1.3",
96
63
  "get-port": "^6.1.2",
97
64
  "mysql2": "2.3.3",
98
65
  "pg": "^8.11.3",
99
66
  "postgres": "^3.3.5",
100
67
  "prettier": "^2.8.1",
101
68
  "tsx": "^3.12.1",
102
- "typescript": "^4.9.4",
103
- "uvu": "^0.5.6",
69
+ "typescript": "^5.4.3",
70
+ "vite-tsconfig-paths": "^4.3.2",
71
+ "vitest": "^1.4.0",
104
72
  "wrangler": "^3.22.1",
105
73
  "zx": "^7.2.2"
106
74
  },