Skip to content
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
12 changes: 12 additions & 0 deletions .changeset/icy-coins-laugh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
"prisma-kysely": major
---

Support Prisma 7.0.0+

To upgrade:

- Ensure you are using Bun, or Node.js >=22.x
- Update your Prisma dependency to 7.0.0 or later
- Review the [Prisma 7.0.0 upgrade guide](https://www.prisma.io/docs/orm/more/upgrade-guides/upgrading-versions/upgrading-to-prisma-7)
- Move your database url to the prisma.config.ts file
2 changes: 1 addition & 1 deletion .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@ jobs:
name: 🧹 Check all files are formatted correctly
conclusion: failure
output: |
{"summary": "Hrm, seems like you don't have prettier set up properly. Make sure your editor is configured to format code automatically, and that it respects the project's prettier config. [Click here](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) to view the Prettier extension for VS Code.\n\n> _**💡 Tip:**_ \n> \n> In the meantime you can run `npm run fix` and commit the changes."}
{"summary": "Hrm, seems like you don't have prettier set up properly. Make sure your editor is configured to format code automatically, and that it respects the project's prettier config. [Click here](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) to view the Prettier extension for VS Code.\n\n> _**💡 Tip:**_ \n> \n> In the meantime you can run `bun run fix` and commit the changes."}
6 changes: 1 addition & 5 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
{
"importOrder": ["^\\./env$", "<THIRD_PARTY_MODULES>", "^~/.*$", "^[./]"],
"importOrderSeparation": true,
"importOrderSortSpecifiers": true,
"trailingComma": "es5",
"plugins": ["@trivago/prettier-plugin-sort-imports"]
"trailingComma": "es5"
}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
520 changes: 211 additions & 309 deletions bun.lock

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions bunfig.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[test]
concurrentTestGlob = ["**/*.test.ts"]
44 changes: 28 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,16 @@
"repository": {
"url": "git+https://github.com/valtyr/prisma-kysely.git"
},
"type": "module",
"license": "MIT",
"keywords": [
"prisma",
"kysely",
"generator",
"typescript",
"codegen",
"sql"
],
"author": {
"name": "Valtyr Orn Kjartansson",
"url": "http://valtyr.is"
Expand All @@ -20,54 +29,57 @@
"url": "https://arthur.place"
}
],
"main": "dist/generator.js",
"exports": {
".": "./dist/generator.js",
"./generator": "./dist/generator.js",
"./bin": "./dist/bin.js"
},
"bin": {
"prisma-kysely": "dist/bin.js"
},
"files": [
"dist"
"dist",
"README.md",
"LICENSE",
"package.json"
],
"scripts": {
"build": "tspc",
"dev": "tspc --watch",
"build": "bunup src/bin.ts src/generator.ts --packages external --format esm --splitting",
"dev": "bun run build --watch",
"fix": "prettier --write .",
"lint": "eslint ./src",
"prepack": "bun run build",
"release": "bun run build && bun changeset publish",
"start": "node dist/bin.js",
"test": "bun run build && vitest --passWithNoTests --coverage",
"typecheck": "tspc --noemit"
"test": "bun run build && bun test",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@mrleebo/prisma-ast": "^0.13.1",
"@prisma/generator-helper": "^6.2.0",
"@prisma/internals": "^6.2.0",
"@prisma/generator-helper": "^7.0.0",
"@prisma/internals": "^7.0.0",
"typescript": "^5.9.3",
"zod": "^4.3.5"
},
"devDependencies": {
"@changesets/cli": "^2.29.8",
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
"@types/bun": "^1.3.5",
"@types/node": "24.10.1",
"@types/pg": "^8.16.0",
"@types/prettier": "3.0.0",
"@typescript-eslint/eslint-plugin": "^8.52.0",
"@typescript-eslint/parser": "^8.52.0",
"@typescript-eslint/typescript-estree": "^8.52.0",
"@vitest/coverage-v8": "^3.2.4",
"bunup": "^0.16.17",
"eslint": "^9.39.2",
"kysely": "^0.28.9",
"mysql2": "^3.16.0",
"pg": "^8.16.3",
"prettier": "^3.7.4",
"prisma": "^6.19.0",
"ts-patch": "^3.3.0",
"typescript-transform-paths": "^3.5.6",
"vite-tsconfig-paths": "^5.1.4",
"vitest": "^3.2.4"
"prisma": "^7.2.0"
},
"peerDependencies": {
"prisma": ">=6.2.0 <7.0.0"
"prisma": ">=7.0.0"
},
"packageManager": "bun@1.3.5"
}
Loading