Skip to content

Commit

Permalink
Merge pull request #2033 from drizzle-team/fix-neon-http-types
Browse files Browse the repository at this point in the history
Fix Neon HTTP driver types, implement raw query support for batch, fix formatting
  • Loading branch information
dankochetov authored Mar 18, 2024
2 parents ab1cfdf + bf39e45 commit 91968c5
Show file tree
Hide file tree
Showing 133 changed files with 22,410 additions and 21,780 deletions.
2 changes: 2 additions & 0 deletions changelogs/drizzle-orm/0.30.3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- 🐛 Fixed `@neondatabase/serverless` HTTP driver types issue (#1945, neondatabase/serverless#66)
- 🎉 Added raw query support (`db.execute(...)`) to batch API in Neon HTTP driver
20 changes: 16 additions & 4 deletions dprint.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,25 @@
"arrowFunction.useParentheses": "force",
"jsx.quoteStyle": "preferSingle"
},
"json": {},
"json": {
"useTabs": true
},
"markdown": {},
"includes": ["**/*.{ts,tsx,js,jsx,cjs,mjs,json,md}"],
"excludes": ["**/node_modules", "**/*-lock.json"],
"includes": ["**/*.{ts,tsx,js,jsx,cjs,mjs,json}"],
"excludes": [
"**/node_modules",
"dist",
"dist-dts",
"dist.new",
"**/drizzle/**/meta",
"**/drizzle2/**/meta",
"**/*snapshot.json",
"**/_journal.json",
"**/tsup.config*.mjs"
],
"plugins": [
"https://plugins.dprint.dev/typescript-0.83.0.wasm",
"https://plugins.dprint.dev/json-0.17.0.wasm",
"https://plugins.dprint.dev/json-0.19.2.wasm",
"https://plugins.dprint.dev/markdown-0.15.2.wasm"
]
}
346 changes: 173 additions & 173 deletions drizzle-orm/package.json
Original file line number Diff line number Diff line change
@@ -1,175 +1,175 @@
{
"name": "drizzle-orm",
"version": "0.30.2",
"description": "Drizzle ORM package for SQL databases",
"type": "module",
"scripts": {
"build": "scripts/build.ts",
"b": "pnpm build",
"test:types": "cd type-tests && tsc",
"test": "vitest run",
"pack": "(cd dist && npm pack --pack-destination ..) && rm -f package.tgz && mv *.tgz package.tgz",
"publish": "npm publish package.tgz"
},
"main": "./index.cjs",
"module": "./index.js",
"types": "./index.d.ts",
"sideEffects": false,
"publishConfig": {
"provenance": true
},
"repository": {
"type": "git",
"url": "git+https://github.com/drizzle-team/drizzle-orm.git"
},
"homepage": "https://orm.drizzle.team",
"keywords": [
"drizzle",
"orm",
"pg",
"mysql",
"postgresql",
"postgres",
"sqlite",
"database",
"sql",
"typescript",
"ts",
"drizzle-orm"
],
"author": "Drizzle Team",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/drizzle-team/drizzle-orm/issues"
},
"peerDependencies": {
"@aws-sdk/client-rds-data": ">=3",
"@cloudflare/workers-types": ">=3",
"@libsql/client": "*",
"@neondatabase/serverless": ">=0.1",
"@op-engineering/op-sqlite": ">=2",
"@opentelemetry/api": "^1.4.1",
"@planetscale/database": ">=1",
"@types/better-sqlite3": "*",
"@types/pg": "*",
"@types/react": ">=18",
"@types/sql.js": "*",
"@vercel/postgres": "*",
"better-sqlite3": ">=7",
"bun-types": "*",
"expo-sqlite": ">=13.2.0",
"knex": "*",
"kysely": "*",
"mysql2": ">=2",
"pg": ">=8",
"postgres": ">=3",
"react": ">=18",
"sql.js": ">=1",
"sqlite3": ">=5"
},
"peerDependenciesMeta": {
"mysql2": {
"optional": true
},
"@vercel/postgres": {
"optional": true
},
"better-sqlite3": {
"optional": true
},
"@types/better-sqlite3": {
"optional": true
},
"sqlite3": {
"optional": true
},
"sql.js": {
"optional": true
},
"@types/sql.js": {
"optional": true
},
"@cloudflare/workers-types": {
"optional": true
},
"pg": {
"optional": true
},
"@types/pg": {
"optional": true
},
"postgres": {
"optional": true
},
"@neondatabase/serverless": {
"optional": true
},
"bun-types": {
"optional": true
},
"@aws-sdk/client-rds-data": {
"optional": true
},
"@planetscale/database": {
"optional": true
},
"knex": {
"optional": true
},
"kysely": {
"optional": true
},
"@libsql/client": {
"optional": true
},
"@opentelemetry/api": {
"optional": true
},
"expo-sqlite": {
"optional": true
},
"@op-engineering/op-sqlite": {
"optional": true
},
"react": {
"optional": true
},
"@types/react": {
"optional": true
}
},
"devDependencies": {
"@aws-sdk/client-rds-data": "^3.344.0",
"@cloudflare/workers-types": "^4.20230904.0",
"@libsql/client": "^0.5.6",
"@neondatabase/serverless": "^0.4.24",
"@op-engineering/op-sqlite": "^2.0.16",
"@opentelemetry/api": "^1.4.1",
"@originjs/vite-plugin-commonjs": "^1.0.3",
"@planetscale/database": "^1.16.0",
"@types/better-sqlite3": "^7.6.4",
"@types/node": "^20.2.5",
"@types/pg": "^8.10.1",
"@types/react": "^18.2.45",
"@types/sql.js": "^1.4.4",
"@vercel/postgres": "^0.3.0",
"better-sqlite3": "^8.4.0",
"bun-types": "^0.6.6",
"cpy": "^10.1.0",
"expo-sqlite": "^13.2.0",
"knex": "^2.4.2",
"kysely": "^0.25.0",
"mysql2": "^3.3.3",
"pg": "^8.11.0",
"postgres": "^3.3.5",
"react": "^18.2.0",
"sql.js": "^1.8.0",
"sqlite3": "^5.1.2",
"tslib": "^2.5.2",
"tsx": "^3.12.7",
"vite-tsconfig-paths": "^4.2.0",
"vitest": "^0.31.4",
"zod": "^3.20.2",
"zx": "^7.2.2"
}
"name": "drizzle-orm",
"version": "0.30.3",
"description": "Drizzle ORM package for SQL databases",
"type": "module",
"scripts": {
"build": "scripts/build.ts",
"b": "pnpm build",
"test:types": "cd type-tests && tsc",
"test": "vitest run",
"pack": "(cd dist && npm pack --pack-destination ..) && rm -f package.tgz && mv *.tgz package.tgz",
"publish": "npm publish package.tgz"
},
"main": "./index.cjs",
"module": "./index.js",
"types": "./index.d.ts",
"sideEffects": false,
"publishConfig": {
"provenance": true
},
"repository": {
"type": "git",
"url": "git+https://github.com/drizzle-team/drizzle-orm.git"
},
"homepage": "https://orm.drizzle.team",
"keywords": [
"drizzle",
"orm",
"pg",
"mysql",
"postgresql",
"postgres",
"sqlite",
"database",
"sql",
"typescript",
"ts",
"drizzle-orm"
],
"author": "Drizzle Team",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/drizzle-team/drizzle-orm/issues"
},
"peerDependencies": {
"@aws-sdk/client-rds-data": ">=3",
"@cloudflare/workers-types": ">=3",
"@libsql/client": "*",
"@neondatabase/serverless": ">=0.1",
"@op-engineering/op-sqlite": ">=2",
"@opentelemetry/api": "^1.4.1",
"@planetscale/database": ">=1",
"@types/better-sqlite3": "*",
"@types/pg": "*",
"@types/react": ">=18",
"@types/sql.js": "*",
"@vercel/postgres": "*",
"better-sqlite3": ">=7",
"bun-types": "*",
"expo-sqlite": ">=13.2.0",
"knex": "*",
"kysely": "*",
"mysql2": ">=2",
"pg": ">=8",
"postgres": ">=3",
"react": ">=18",
"sql.js": ">=1",
"sqlite3": ">=5"
},
"peerDependenciesMeta": {
"mysql2": {
"optional": true
},
"@vercel/postgres": {
"optional": true
},
"better-sqlite3": {
"optional": true
},
"@types/better-sqlite3": {
"optional": true
},
"sqlite3": {
"optional": true
},
"sql.js": {
"optional": true
},
"@types/sql.js": {
"optional": true
},
"@cloudflare/workers-types": {
"optional": true
},
"pg": {
"optional": true
},
"@types/pg": {
"optional": true
},
"postgres": {
"optional": true
},
"@neondatabase/serverless": {
"optional": true
},
"bun-types": {
"optional": true
},
"@aws-sdk/client-rds-data": {
"optional": true
},
"@planetscale/database": {
"optional": true
},
"knex": {
"optional": true
},
"kysely": {
"optional": true
},
"@libsql/client": {
"optional": true
},
"@opentelemetry/api": {
"optional": true
},
"expo-sqlite": {
"optional": true
},
"@op-engineering/op-sqlite": {
"optional": true
},
"react": {
"optional": true
},
"@types/react": {
"optional": true
}
},
"devDependencies": {
"@aws-sdk/client-rds-data": "^3.344.0",
"@cloudflare/workers-types": "^4.20230904.0",
"@libsql/client": "^0.5.6",
"@neondatabase/serverless": "^0.9.0",
"@op-engineering/op-sqlite": "^2.0.16",
"@opentelemetry/api": "^1.4.1",
"@originjs/vite-plugin-commonjs": "^1.0.3",
"@planetscale/database": "^1.16.0",
"@types/better-sqlite3": "^7.6.4",
"@types/node": "^20.2.5",
"@types/pg": "^8.10.1",
"@types/react": "^18.2.45",
"@types/sql.js": "^1.4.4",
"@vercel/postgres": "^0.3.0",
"better-sqlite3": "^8.4.0",
"bun-types": "^0.6.6",
"cpy": "^10.1.0",
"expo-sqlite": "^13.2.0",
"knex": "^2.4.2",
"kysely": "^0.25.0",
"mysql2": "^3.3.3",
"pg": "^8.11.0",
"postgres": "^3.3.5",
"react": "^18.2.0",
"sql.js": "^1.8.0",
"sqlite3": "^5.1.2",
"tslib": "^2.5.2",
"tsx": "^3.12.7",
"vite-tsconfig-paths": "^4.2.0",
"vitest": "^0.31.4",
"zod": "^3.20.2",
"zx": "^7.2.2"
}
}
Loading

0 comments on commit 91968c5

Please sign in to comment.