prisma-zod-generator 1.0.0 โ 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -29
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
<img src="https://raw.githubusercontent.com/omar-dulaimi/prisma-zod-generator/master/logo.png" alt="Prisma Zod Generator" width="100" height="100">
|
|
3
2
|
|
|
4
3
|
# โก Prisma Zod Generator
|
|
5
4
|
|
|
@@ -57,24 +56,24 @@
|
|
|
57
56
|
|
|
58
57
|
<div align="center">
|
|
59
58
|
|
|
60
|
-
## ๐ **Version 0.
|
|
59
|
+
## ๐ **Version 1.0.0** - Stable Release with New Generator Support!
|
|
61
60
|
|
|
62
61
|
<table>
|
|
63
62
|
<tr>
|
|
64
63
|
<td align="center">
|
|
65
|
-
<img src="https://img.shields.io/badge
|
|
64
|
+
<img src="https://img.shields.io/badge/๐_STABLE_RELEASE-green?style=for-the-badge&logo=checkmark" alt="Stable Release">
|
|
66
65
|
</td>
|
|
67
66
|
</tr>
|
|
68
67
|
<tr>
|
|
69
68
|
<td align="center">
|
|
70
|
-
<strong>๐ New Prisma Client Generator Support
|
|
69
|
+
<strong>๐ Production Ready with New Prisma Client Generator Support!</strong>
|
|
71
70
|
</td>
|
|
72
71
|
</tr>
|
|
73
72
|
</table>
|
|
74
73
|
|
|
75
74
|
</div>
|
|
76
75
|
|
|
77
|
-
### โจ **What's New in
|
|
76
|
+
### โจ **What's New in v1.0.0**
|
|
78
77
|
|
|
79
78
|
<div align="center">
|
|
80
79
|
|
|
@@ -92,21 +91,24 @@
|
|
|
92
91
|
|
|
93
92
|
<div align="center">
|
|
94
93
|
|
|
95
|
-
### ๐ฆ **
|
|
94
|
+
### ๐ฆ **Installation**
|
|
96
95
|
|
|
97
96
|
</div>
|
|
98
97
|
|
|
99
98
|
```bash
|
|
100
|
-
# ๐ Install the
|
|
101
|
-
npm install prisma-zod-generator@
|
|
99
|
+
# ๐ Install the stable release (recommended)
|
|
100
|
+
npm install prisma-zod-generator@latest
|
|
102
101
|
|
|
103
102
|
# ๐ฏ Or lock to specific version
|
|
104
|
-
npm install prisma-zod-generator@0.
|
|
103
|
+
npm install prisma-zod-generator@1.0.0
|
|
104
|
+
|
|
105
|
+
# ๐งช Install beta versions (for testing)
|
|
106
|
+
npm install prisma-zod-generator@beta
|
|
105
107
|
```
|
|
106
108
|
|
|
107
|
-
### ๐ Migration from
|
|
109
|
+
### ๐ Migration from Previous Versions
|
|
108
110
|
|
|
109
|
-
|
|
111
|
+
Version 1.0.0 maintains API compatibility but requires:
|
|
110
112
|
- **Node.js 18+** (upgraded from 16+)
|
|
111
113
|
- **Prisma 6.12.0+** (upgraded from 4.8+)
|
|
112
114
|
- **Zod 4.0.5+** (upgraded from 3.20+)
|
|
@@ -243,9 +245,9 @@ generator zod {
|
|
|
243
245
|
npx prisma generate
|
|
244
246
|
```
|
|
245
247
|
|
|
246
|
-
## ๐
|
|
248
|
+
## ๐ Prisma Client Generator Support
|
|
247
249
|
|
|
248
|
-
**
|
|
250
|
+
**v1.0.0** includes full support for both the legacy and new ESM-compatible `prisma-client` generator introduced in Prisma 6.12.0!
|
|
249
251
|
|
|
250
252
|
### Generator Compatibility
|
|
251
253
|
|
|
@@ -342,11 +344,11 @@ The generator creates:
|
|
|
342
344
|
|
|
343
345
|
| Version | Prisma | Zod | TypeScript | Node.js | Status |
|
|
344
346
|
|---------|--------|-----|------------|---------|--------|
|
|
345
|
-
| **
|
|
346
|
-
| v0.8.
|
|
347
|
-
| v0.8.13
|
|
347
|
+
| **v1.0.0** | 6.12.0+ | 4.0.5+ | 5.8+ | 18+ | โ
**Latest Stable** - New Generator Support |
|
|
348
|
+
| v0.8.15-beta | 6.12.0+ | 4.0.5+ | 5.8+ | 18+ | ๐งช **Beta** |
|
|
349
|
+
| v0.8.13 | 4.8.0+ | 3.20+ | 4.9+ | 16+ | ๐ฆ **Legacy** |
|
|
348
350
|
|
|
349
|
-
> **Recommendation**: Use the
|
|
351
|
+
> **Recommendation**: Use the stable v1.0.0 release for production applications. It includes full support for the new Prisma client generator and all latest features.
|
|
350
352
|
|
|
351
353
|
## โ๏ธ Configuration Options
|
|
352
354
|
|
|
@@ -538,21 +540,21 @@ Examples:
|
|
|
538
540
|
|
|
539
541
|
## ๐ Troubleshooting
|
|
540
542
|
|
|
541
|
-
###
|
|
543
|
+
### Version 1.0.0 Information
|
|
542
544
|
|
|
543
|
-
**New Generator Support (
|
|
544
|
-
- Both `prisma-client-js` and `prisma-client` generators are supported
|
|
545
|
+
**New Generator Support (v1.0.0)**
|
|
546
|
+
- Both `prisma-client-js` and `prisma-client` generators are fully supported
|
|
545
547
|
- If using the new generator, ensure Prisma 6.12.0+ is installed
|
|
546
548
|
- Clear error messages guide you if no compatible generator is found
|
|
547
549
|
|
|
548
|
-
**Dependency compatibility
|
|
549
|
-
-
|
|
550
|
-
-
|
|
551
|
-
-
|
|
550
|
+
**Dependency compatibility with v1.0.0**
|
|
551
|
+
- Requires Node.js 18+ (upgraded from 16+)
|
|
552
|
+
- Requires Prisma 6.12.0+ and Zod 4.0.5+
|
|
553
|
+
- All peer dependencies must be compatible
|
|
552
554
|
|
|
553
|
-
**Migration
|
|
555
|
+
**Migration to v1.0.0**
|
|
554
556
|
- Backup your project before upgrading
|
|
555
|
-
- Update all related dependencies (Prisma, Zod)
|
|
557
|
+
- Update all related dependencies (Prisma, Zod, TypeScript)
|
|
556
558
|
- Re-run `npx prisma generate` after upgrading
|
|
557
559
|
- Test thoroughly in development environment
|
|
558
560
|
|
|
@@ -727,12 +729,12 @@ This project is licensed under the [MIT License](LICENSE).
|
|
|
727
729
|
<td align="center">
|
|
728
730
|
<img src="https://img.shields.io/badge/๐-Latest_Stable-success?style=for-the-badge&logo=npm" alt="Stable">
|
|
729
731
|
<br>
|
|
730
|
-
<code>
|
|
732
|
+
<code>v1.0.0</code>
|
|
731
733
|
</td>
|
|
732
734
|
<td align="center">
|
|
733
|
-
<img src="https://img.shields.io/badge
|
|
735
|
+
<img src="https://img.shields.io/badge/๐ฆ-Legacy_Version-lightgrey?style=for-the-badge&logo=archive" alt="Legacy">
|
|
734
736
|
<br>
|
|
735
|
-
<code>v0.8.
|
|
737
|
+
<code>v0.8.13</code>
|
|
736
738
|
</td>
|
|
737
739
|
</tr>
|
|
738
740
|
</table>
|
package/package.json
CHANGED