drizzle-kit 0.20.18 → 0.21.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. package/bin.cjs +104694 -56732
  2. package/index.d.mts +232 -68
  3. package/index.d.ts +232 -68
  4. package/index.js +1 -0
  5. package/package.json +44 -72
  6. package/payload.d.mts +1052 -18
  7. package/payload.d.ts +1052 -18
  8. package/payload.js +22129 -34534
  9. package/payload.mjs +22174 -34562
  10. package/utils-studio.js +4580 -805
  11. package/utils-studio.mjs +4556 -784
  12. package/utils.js +4410 -6940
  13. package/utils.mjs +4852 -7382
  14. package/@types/utils.d.ts +0 -12
  15. package/cli/commands/migrate.d.ts +0 -270
  16. package/cli/commands/mysqlIntrospect.d.ts +0 -119
  17. package/cli/commands/mysqlPushUtils.d.ts +0 -18
  18. package/cli/commands/mysqlUp.d.ts +0 -4
  19. package/cli/commands/pgConnect.d.ts +0 -5
  20. package/cli/commands/pgIntrospect.d.ts +0 -123
  21. package/cli/commands/pgPushUtils.d.ts +0 -14
  22. package/cli/commands/pgUp.d.ts +0 -4
  23. package/cli/commands/sqliteIntrospect.d.ts +0 -107
  24. package/cli/commands/sqlitePushUtils.d.ts +0 -21
  25. package/cli/commands/sqliteUtils.d.ts +0 -162
  26. package/cli/commands/upFolders.d.ts +0 -27
  27. package/cli/commands/utils.d.ts +0 -274
  28. package/cli/selector-ui.d.ts +0 -13
  29. package/cli/validations/common.d.ts +0 -13
  30. package/cli/validations/mysql.d.ts +0 -365
  31. package/cli/validations/outputs.d.ts +0 -40
  32. package/cli/validations/pg.d.ts +0 -438
  33. package/cli/views.d.ts +0 -61
  34. package/drivers/index.d.ts +0 -39
  35. package/global.d.ts +0 -4
  36. package/introspect-mysql.d.ts +0 -9
  37. package/introspect-pg.d.ts +0 -12
  38. package/introspect-sqlite.d.ts +0 -10
  39. package/jsonDiffer.d.ts +0 -76
  40. package/jsonStatements.d.ts +0 -349
  41. package/migrationPreparator.d.ts +0 -35
  42. package/schemaValidator.d.ts +0 -1313
  43. package/serializer/index.d.ts +0 -9
  44. package/serializer/mysqlImports.d.ts +0 -11
  45. package/serializer/mysqlSchema.d.ts +0 -3833
  46. package/serializer/mysqlSerializer.d.ts +0 -7
  47. package/serializer/pgImports.d.ts +0 -11
  48. package/serializer/pgSchema.d.ts +0 -4333
  49. package/serializer/pgSerializer.d.ts +0 -7
  50. package/serializer/schemaToDrizzle.d.ts +0 -7
  51. package/serializer/sqliteImports.d.ts +0 -9
  52. package/serializer/sqliteSchema.d.ts +0 -3227
  53. package/serializer/sqliteSerializer.d.ts +0 -6
  54. package/snapshotsDiffer.d.ts +0 -2660
  55. package/sqlgenerator.d.ts +0 -33
  56. package/utils/words.d.ts +0 -7
  57. package/utils-studio.d.mts +0 -5
  58. package/utils-studio.d.ts +0 -5
  59. package/utils.d.ts +0 -199
package/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  var __defProp = Object.defineProperty;
2
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "0.20.18",
3
+ "version": "0.21.0",
4
4
  "repository": "https://github.com/drizzle-team/drizzle-kit-mirror",
5
5
  "author": "Drizzle Team",
6
6
  "license": "MIT",
@@ -8,103 +8,82 @@
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",
39
- "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",
13
+ "cli": "tsx ./src/cli/index.ts",
14
+ "test": "vitest",
15
+ "build": "rm -rf ./dist && tsx build.ts && cp package.json dist/ && attw --pack dist",
40
16
  "build:dev": "rm -rf ./dist && tsx build.dev.ts && tsc -p tsconfig.cli-types.json && chmod +x ./dist/index.cjs",
41
17
  "packit": "pnpm build && cp package.json dist/ && cd dist && pnpm pack",
42
18
  "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
- ]
19
+ "pub": "cp package.json readme.md dist/ && cd dist && npm publish"
57
20
  },
58
21
  "dependencies": {
59
22
  "@esbuild-kit/esm-loader": "^2.5.5",
60
- "@hono/node-server": "^1.9.0",
61
- "@hono/zod-validator": "^0.2.0",
62
- "camelcase": "^7.0.1",
63
- "chalk": "^5.2.0",
64
23
  "commander": "^9.4.1",
65
24
  "env-paths": "^3.0.0",
66
25
  "esbuild": "^0.19.7",
67
26
  "esbuild-register": "^3.5.0",
68
27
  "glob": "^8.1.0",
69
28
  "hanji": "^0.0.5",
70
- "hono": "^4.1.4",
71
29
  "json-diff": "0.9.0",
72
- "minimatch": "^7.4.3",
73
- "semver": "^7.5.4",
74
- "superjson": "^2.2.1",
75
30
  "zod": "^3.20.2"
76
31
  },
77
32
  "devDependencies": {
33
+ "@arethetypeswrong/cli": "^0.15.3",
34
+ "@aws-sdk/client-rds-data": "^3.556.0",
78
35
  "@cloudflare/workers-types": "^4.20230518.0",
36
+ "@electric-sql/pglite": "^0.1.3",
37
+ "@hono/node-server": "^1.9.0",
38
+ "@hono/zod-validator": "^0.2.1",
79
39
  "@libsql/client": "^0.4.2",
40
+ "@neondatabase/serverless": "^0.9.1",
41
+ "@originjs/vite-plugin-commonjs": "^1.0.3",
42
+ "@planetscale/database": "^1.16.0",
80
43
  "@types/better-sqlite3": "^7.6.4",
81
- "@types/dockerode": "^3.3.14",
44
+ "@types/dockerode": "^3.3.28",
82
45
  "@types/glob": "^8.1.0",
46
+ "@types/json-diff": "^1.0.3",
83
47
  "@types/minimatch": "^5.1.2",
84
48
  "@types/node": "^18.11.15",
85
49
  "@types/pg": "^8.10.7",
50
+ "@types/pluralize": "^0.0.33",
86
51
  "@types/semver": "^7.5.5",
87
- "@typescript-eslint/eslint-plugin": "^5.46.1",
88
- "@typescript-eslint/parser": "^5.46.1",
52
+ "@types/uuid": "^9.0.8",
53
+ "@types/ws": "^8.5.10",
54
+ "@typescript-eslint/eslint-plugin": "^7.2.0",
55
+ "@typescript-eslint/parser": "^7.2.0",
56
+ "@vercel/postgres": "^0.8.0",
89
57
  "ava": "^5.1.0",
90
58
  "better-sqlite3": "^9.4.3",
59
+ "camelcase": "^7.0.1",
60
+ "chalk": "^5.2.0",
91
61
  "dockerode": "^3.3.4",
92
62
  "dotenv": "^16.0.3",
93
63
  "drizzle-kit": "0.20.14",
94
- "drizzle-orm": "0.30.5",
64
+ "drizzle-orm": "0.30.9-f9be0ab",
95
65
  "esbuild-node-externals": "^1.9.0",
96
- "eslint": "^8.29.0",
97
- "eslint-config-prettier": "^8.5.0",
98
- "eslint-plugin-prettier": "^4.2.1",
66
+ "eslint": "^8.57.0",
67
+ "eslint-config-prettier": "^9.1.0",
68
+ "eslint-plugin-prettier": "^5.1.3",
99
69
  "get-port": "^6.1.2",
70
+ "hono": "^4.1.5",
71
+ "minimatch": "^7.4.3",
100
72
  "mysql2": "2.3.3",
101
73
  "pg": "^8.11.3",
102
- "postgres": "^3.3.5",
74
+ "pluralize": "^8.0.0",
75
+ "postgres": "^3.4.4",
103
76
  "prettier": "^2.8.1",
77
+ "semver": "^7.5.4",
78
+ "superjson": "^2.2.1",
79
+ "tsup": "^8.0.2",
104
80
  "tsx": "^3.12.1",
105
- "typescript": "^4.9.4",
106
- "uvu": "^0.5.6",
81
+ "typescript": "^5.4.3",
82
+ "uuid": "^9.0.1",
83
+ "vite-tsconfig-paths": "^4.3.2",
84
+ "vitest": "^1.4.0",
107
85
  "wrangler": "^3.22.1",
86
+ "ws": "^8.16.0",
108
87
  "zx": "^7.2.2"
109
88
  },
110
89
  "exports": {
@@ -120,18 +99,6 @@
120
99
  "types": "./index.d.mts",
121
100
  "default": "./index.mjs"
122
101
  },
123
- "./utils-studio": {
124
- "import": {
125
- "types": "./utils-studio.d.mts",
126
- "default": "./utils-studio.mjs"
127
- },
128
- "require": {
129
- "types": "./utils-studio.d.ts",
130
- "default": "./utils-studio.js"
131
- },
132
- "types": "./utils-studio.d.mts",
133
- "default": "./utils-studio.mjs"
134
- },
135
102
  "./payload": {
136
103
  "import": {
137
104
  "types": "./payload.d.mts",
@@ -144,5 +111,10 @@
144
111
  "types": "./payload.d.mts",
145
112
  "default": "./payload.mjs"
146
113
  }
114
+ },
115
+ "pnpm": {
116
+ "patchedDependencies": {
117
+ "difflib@0.2.4": "patches/difflib@0.2.4.patch"
118
+ }
147
119
  }
148
120
  }