Releases: AhmedElywa/prisma-tools
v9.0.0 - Prisma 7 Support
PalJS v9.0.0
Major release with Prisma 7 support and complete rewrite of the generator.
Breaking Changes
- Prisma 7 Required: This version requires Prisma 7.x
- Removed Packages:
@paljs/types,@paljs/utils,@paljs/schemahave been removed and their functionality inlined - New Generator: Complete rewrite as a native Prisma generator
- Configuration: New
paljs.config.tswithdefineConfig()helper
New Features
@paljs/generator@9.0.0
- Native Prisma generator using
@prisma/generator-helper - Configuration via
paljs.config.tswithdefineConfig() - Generates:
- DMMF (Prisma schema metadata)
- TypeScript types for PrismaSelect
- Nexus GraphQL types, queries, and mutations
- Client-side
.graphqlfiles with fragments - Admin UI pages and schema
- Per-model configuration for exclusions and customization
- Config file auto-detection in project root
@paljs/nexus@9.0.0
- Updated for Prisma 7 DMMF format
- PrismaSelect plugin for typed field selection
@paljs/plugins@9.0.0
- Typed PrismaSelect for query optimization
- Prisma 7 compatibility
@paljs/admin@9.0.0
- React 19 support
- Tailwind CSS 4
@tanstack/react-tablev8 (replaced react-table v7)@dnd-kit/sortable(replaced react-beautiful-dnd)- Improved TypeScript types
Installation
npm install @paljs/generator @paljs/nexus @paljs/plugins @paljs/adminConfiguration
Create paljs.config.ts in your project root:
import { defineConfig } from '@paljs/generator/config'
export default defineConfig({
generateGraphQL: {
nexus: true,
client: true,
},
generateAdmin: true,
})Add to your Prisma schema:
generator paljs {
provider = "paljs-generator"
}Migration Guide
See MIGRATION-v9.md for detailed migration instructions.
Full Changelog
PalJS v9.0.0 Beta
PalJS v9.0.0 Beta
PalJS v9 is a ground-up rewrite of the toolkit, built for Prisma 7 and modern React.
What's New
- Native Prisma Generator — PalJS now runs as part of
prisma generate. No separate CLI, no extra build step. Addgenerator paljsto your schema and you're done. - Typed PrismaSelect — The generator produces a
ModelsObjecttype soPrismaSelectcalls are fully typed. No moreas any. defineConfig()API — Type-safe configuration viapaljs.config.tswith autocomplete and validation.- React 19 Admin UI —
@paljs/adminrebuilt with Tailwind CSS 4, modern React patterns, and shadcn/ui components. - Unified Output — All generated code lands in one directory:
dmmf/,types/,nexus/,admin/,graphql/.
What's Removed
@paljs/cli— Replaced by the native Prisma generator@paljs/create— Usecreate-next-appand add PalJS packages manually@paljs/display— No longer needed- SDL and GraphQL Modules generators — Nexus code-first only
Install
# Generator (dev dependency)
npm install -D @paljs/generator@beta prisma
# Runtime packages
npm install @paljs/plugins@beta @paljs/nexus@beta @paljs/admin@betaQuick Start
- Add to your Prisma schema:
generator paljs {
provider = "paljs-generator"
output = "../generated/paljs"
}- Create
paljs.config.tsnext to your schema:
import { defineConfig } from '@paljs/generator/config';
export default defineConfig({
generateGraphQL: true,
generateTypes: true,
generateAdmin: { enabled: true, output: './admin', routerType: 'app' },
});- Generate:
npx prisma generateMigration from v8
See the full Migration Guide for step-by-step instructions.
Published Packages
| Package | Version |
|---|---|
@paljs/generator |
9.0.0-beta.2 |
@paljs/nexus |
9.0.0-beta.3 |
@paljs/plugins |
9.0.0-beta.3 |
@paljs/admin |
9.0.0-beta.3 |
@paljs/types |
9.0.0-beta.0 |
@paljs/utils |
9.0.0-beta.0 |
Feedback
This is a beta release. Please report issues at https://github.com/paljs/prisma-tools/issues with the v9-beta label.
v8.2.1
Full Changelog: v8.2.0...v8.2.1
v8.2.0
Full Changelog: v8.0.0...v8.2.0
v8.0.0
What's Changed
- Feature: improve prisma schema parsing by @lucasmezencio in #345
Full Changelog: v7.1.0...v8.0.0
v7.1.0
What's Changed
- Add more generic line separator in getting models and enums regexp by @theArina in #336
- Fix CreateManyAndReturn type by @f8k8 in #337
- Don't check error message due to platform path separator differences by @f8k8 in #339
- Feature: Extract default values by @lucasmezencio in #342
- fix: remove unnecessary double quotes by @lucasmezencio in #343
- feat: Improvements to get default value by @lucasmezencio in #344
New Contributors
- @theArina made their first contribution in #336
- @lucasmezencio made their first contribution in #342
Full Changelog: v7.0.0...v7.1.0
v7.0.0
Major Changes
-
We encourage you to update your applications to utilize the newest features and improvements.
Key Changes
- Prisma (5.14): We have upgraded Prisma to version 5.14 to leverage recent Prisma features and improvements.
- React (18): We have also upgraded React to version 18 to take advantage of the latest React features.
- ESLint (9): The project now uses ESLint version 9 for an improved and more effective linting process.
- Admin Taple: We broke changes if you use custom inputs. We updated the way we send react-hool form props by using
useContextanduseControler
Breaking Changes
We had to introduce some breaking changes while making these changes. As such, please exercise caution and test your applications thoroughly after the upgrade.
Fixes
We have fixed many issues and are optimizing our package to provide a smoother development experience.
Please update your applications with these new versions and let us know if you encounter any issues. We always strive to improve our products and appreciate your feedback!
(Note: Always back up your projects before applying any major updates to avoid unexpected data loss)
Stay tuned for more updates!
What's Changed
- Set PNPM as package manager for VS Code by @f8k8 in #327
- Fix path test for Windows by @f8k8 in #328
- Fix errors relating to exporting types by @f8k8 in #329
- Bump graphql from 16.6.0 to 16.8.1 by @dependabot in #315
- Bump postcss from 8.4.14 to 8.4.31 by @dependabot in #318
- Update the aggregate resolver return type by @f8k8 in #321
Full Changelog: v6.0.6...v7.0.0
v6.0.6
What's Changed
- Make findMany return a non-nullable array by @f8k8 in #312
- Bump @apollo/server from 4.5.0 to 4.9.3 by @dependabot in #313
New Contributors
- @dependabot made their first contribution in #313
Full Changelog: v6.0.3...v6.0.6
v6.0.3
What's Changed
Full Changelog: v6.0.2...v6.0.3
v6.0.2
What's Changed
- Fix many issues by @AhmedElywa in #309
- Enable building on Windows by @f8k8 in #310
Full Changelog: v6.0.0...v6.0.2