prisma-effect-kysely 1.9.1 → 1.9.2

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/package.json +2 -4
package/CHANGELOG.md CHANGED
@@ -5,6 +5,70 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.9.2] - 2025-10-17
9
+
10
+ ### Fixed
11
+
12
+ #### Dependency Configuration
13
+ - **Fixed Effect as peer dependency** to prevent version conflicts and follow best practices
14
+ - **Problem**: `effect` was listed as a regular dependency, causing potential version conflicts in user projects
15
+ - **Solution**: Moved `effect` to `peerDependencies` (required, not optional)
16
+ - **Rationale**:
17
+ - Generated code imports from `effect` package
18
+ - Runtime helpers (`src/kysely/helpers.ts`) export Effect schemas
19
+ - Users need Effect in their projects anyway
20
+ - Follows same pattern as `zod-prisma-types` (Zod as peer dependency)
21
+ - **Impact**: Users must explicitly install `effect` in their projects (most already have it)
22
+
23
+ ### Removed
24
+
25
+ #### Unused Dependencies
26
+ - **Removed `@prisma/client` and `@prisma/dmmf`** from dependencies
27
+ - **Analysis**: Code analysis revealed these packages are never imported in the codebase
28
+ - **Impact**: Smaller package size, cleaner dependency tree
29
+
30
+ ### Changed
31
+
32
+ #### Package Structure
33
+ **Before:**
34
+ ```json
35
+ "dependencies": {
36
+ "@prisma/client": "6.16.3",
37
+ "@prisma/dmmf": "^6.17.0",
38
+ "@prisma/generator-helper": "^6.17.0",
39
+ "effect": "^3.18.4",
40
+ "prettier": "^3.6.2"
41
+ }
42
+ ```
43
+
44
+ **After:**
45
+ ```json
46
+ "dependencies": {
47
+ "@prisma/generator-helper": "^6.17.0",
48
+ "prettier": "^3.6.2"
49
+ },
50
+ "peerDependencies": {
51
+ "effect": "^3.18.4",
52
+ "kysely": "^0.28.0"
53
+ }
54
+ ```
55
+
56
+ ### Migration Guide
57
+
58
+ **For New Users:**
59
+ - Install Effect explicitly: `npm install effect` or `pnpm install effect`
60
+
61
+ **For Existing Users:**
62
+ - If you already have `effect` installed: No action needed
63
+ - If you don't have `effect`: Run `npm install effect` or `pnpm install effect`
64
+ - npm 7+ will automatically install peer dependencies
65
+
66
+ **Benefits:**
67
+ - ✅ Prevents Effect version conflicts between your project and the generator
68
+ - ✅ You control which Effect version to use
69
+ - ✅ Smaller package size (removed unused dependencies)
70
+ - ✅ Follows industry best practices for library dependencies
71
+
8
72
  ## [1.9.1] - 2025-10-17
9
73
 
10
74
  ### Fixed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prisma-effect-kysely",
3
- "version": "1.9.1",
3
+ "version": "1.9.2",
4
4
  "description": "Prisma generator that creates Effect Schema types from Prisma schema compatible with Kysely",
5
5
  "license": "MIT",
6
6
  "author": "Samuel Ho",
@@ -68,13 +68,11 @@
68
68
  ]
69
69
  },
70
70
  "dependencies": {
71
- "@prisma/client": "6.16.3",
72
- "@prisma/dmmf": "^6.17.0",
73
71
  "@prisma/generator-helper": "^6.17.0",
74
- "effect": "^3.18.4",
75
72
  "prettier": "^3.6.2"
76
73
  },
77
74
  "peerDependencies": {
75
+ "effect": "^3.18.4",
78
76
  "kysely": "^0.28.0"
79
77
  },
80
78
  "peerDependenciesMeta": {