prisma-effect-kysely 1.14.0 → 1.14.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/CHANGELOG.md +12 -5
- package/README.md +48 -6
- package/dist/generator/index.d.ts.map +1 -1
- package/dist/generator/index.js +2 -1
- package/dist/generator/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,16 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 1.14.
|
|
3
|
+
## 1.14.1
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
- [`
|
|
7
|
+
- [`11d09a7`](https://github.com/samuelho-dev/prisma-effect-kysely/commit/11d09a71ed233549a3bd591793b3f423cad71950) Thanks [@samuelho-dev](https://github.com/samuelho-dev)! - Fix ESM/CJS interop for Prisma 7.x compatibility
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Node.js ESM cannot use named imports from CJS modules. Changed `@prisma/generator-helper` import to use default import pattern:
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
```typescript
|
|
12
|
+
// Before (broken in ESM)
|
|
13
|
+
import { generatorHandler } from '@prisma/generator-helper';
|
|
14
|
+
|
|
15
|
+
// After (works)
|
|
16
|
+
import pkg from '@prisma/generator-helper';
|
|
17
|
+
const { generatorHandler } = pkg;
|
|
18
|
+
```
|
|
12
19
|
|
|
13
|
-
|
|
20
|
+
Added ESM compatibility tests to prevent future regressions.
|
|
14
21
|
|
|
15
22
|
## 1.14.0
|
|
16
23
|
|
package/README.md
CHANGED
|
@@ -113,22 +113,64 @@ model User {
|
|
|
113
113
|
|
|
114
114
|
```bash
|
|
115
115
|
# Install dependencies
|
|
116
|
-
|
|
116
|
+
pnpm install
|
|
117
117
|
|
|
118
118
|
# Run tests
|
|
119
|
-
|
|
119
|
+
pnpm test
|
|
120
120
|
|
|
121
121
|
# Run tests in watch mode
|
|
122
|
-
|
|
122
|
+
pnpm run test:watch
|
|
123
123
|
|
|
124
124
|
# Run tests with coverage
|
|
125
|
-
|
|
125
|
+
pnpm run test:coverage
|
|
126
126
|
|
|
127
127
|
# Type check
|
|
128
|
-
|
|
128
|
+
pnpm run typecheck
|
|
129
129
|
|
|
130
130
|
# Build
|
|
131
|
-
|
|
131
|
+
pnpm run build
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
## Release Process
|
|
135
|
+
|
|
136
|
+
This project uses [Changesets](https://github.com/changesets/changesets) for automated versioning and publishing:
|
|
137
|
+
|
|
138
|
+
### Creating a Release
|
|
139
|
+
|
|
140
|
+
1. **Add a changeset** for your changes:
|
|
141
|
+
|
|
142
|
+
```bash
|
|
143
|
+
pnpm changeset
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
Follow the prompts to describe your changes (patch/minor/major).
|
|
147
|
+
|
|
148
|
+
2. **Commit the changeset**:
|
|
149
|
+
|
|
150
|
+
```bash
|
|
151
|
+
git add .changeset/
|
|
152
|
+
git commit -m "docs: add changeset for [feature/fix]"
|
|
153
|
+
git push
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
3. **Automated Release PR**: The CI will automatically:
|
|
157
|
+
- Create or update a "Version Packages" PR
|
|
158
|
+
- Update `package.json` version
|
|
159
|
+
- Update `CHANGELOG.md`
|
|
160
|
+
|
|
161
|
+
4. **Publish**: When you merge the "Version Packages" PR:
|
|
162
|
+
- CI automatically publishes to npm using Bun
|
|
163
|
+
- Creates a git tag (e.g., `v1.15.0`)
|
|
164
|
+
- Creates a GitHub release with auto-generated notes
|
|
165
|
+
|
|
166
|
+
### Manual Publishing (if needed)
|
|
167
|
+
|
|
168
|
+
```bash
|
|
169
|
+
# Build and run all checks
|
|
170
|
+
pnpm run prepublishOnly
|
|
171
|
+
|
|
172
|
+
# Publish with Bun (recommended)
|
|
173
|
+
bun publish --access public
|
|
132
174
|
```
|
|
133
175
|
|
|
134
176
|
## Releasing (CI/CD)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generator/index.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generator/index.ts"],"names":[],"mappings":";AAYA,YAAY,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE9D,OAAO,EACL,UAAU,EACV,SAAS,EACT,UAAU,EACV,UAAU,EACV,UAAU,EACV,UAAU,GACX,MAAM,sBAAsB,CAAC;AAE9B,eAAO,MAAM,SAAS,MAUpB,CAAC"}
|
package/dist/generator/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import
|
|
3
|
+
import pkg from '@prisma/generator-helper';
|
|
4
4
|
import { GeneratorOrchestrator } from './orchestrator.js';
|
|
5
|
+
const { generatorHandler } = pkg;
|
|
5
6
|
const require = createRequire(import.meta.url);
|
|
6
7
|
const packageJson = require('../../package.json');
|
|
7
8
|
// Re-export kysely helpers for generated code
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generator/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generator/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,GAAG,MAAM,0BAA0B,CAAC;AAE3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,MAAM,EAAE,gBAAgB,EAAE,GAAG,GAAG,CAAC;AAEjC,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC/C,MAAM,WAAW,GAAG,OAAO,CAAC,oBAAoB,CAAwB,CAAC;AAGzE,8CAA8C;AAC9C,OAAO,EACL,UAAU,EACV,SAAS,EACT,UAAU,EACV,UAAU,EACV,UAAU,EACV,UAAU,GACX,MAAM,sBAAsB,CAAC;AAE9B,MAAM,CAAC,MAAM,SAAS,GAAG,gBAAgB,CAAC;IACxC,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC;QACjB,OAAO,EAAE,WAAW,CAAC,OAAO;QAC5B,aAAa,EAAE,aAAa;QAC5B,UAAU,EAAE,gCAAgC;KAC7C,CAAC;IACF,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;QAC5B,MAAM,YAAY,GAAG,IAAI,qBAAqB,CAAC,OAAO,CAAC,CAAC;QACxD,MAAM,YAAY,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IACvC,CAAC;CACF,CAAC,CAAC"}
|