Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Neon HTTP driver types, implement raw query support for batch, fix formatting #2033

Merged
merged 4 commits into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading