@baeta/plugin-prisma 1.0.11 → 2.0.0-next.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 +32 -0
- package/package.json +8 -8
- package/dist/index.d.ts +0 -39
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# @baeta/plugin-prisma
|
|
2
2
|
|
|
3
|
+
## 2.0.0-next.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix release version
|
|
8
|
+
|
|
9
|
+
- Updated dependencies []:
|
|
10
|
+
- @baeta/generator-sdk@2.0.0-next.1
|
|
11
|
+
- @baeta/plugin-exec@2.0.0-next.1
|
|
12
|
+
- @baeta/util-path@2.0.0-next.1
|
|
13
|
+
|
|
14
|
+
## 2.0.0-next.0
|
|
15
|
+
|
|
16
|
+
### Major Changes
|
|
17
|
+
|
|
18
|
+
- [#214](https://github.com/andreisergiu98/baeta/pull/214) [`31d1a50`](https://github.com/andreisergiu98/baeta/commit/31d1a509f96535b43ae85d19c770eb1a5f09dc94) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - Baeta v2 – major refactor
|
|
19
|
+
- **Side-effect-free type generation & resolver definitions.**
|
|
20
|
+
The types generator and resolver definitions were reworked to be side-effect free, improving type safety.
|
|
21
|
+
- **Stricter type safety.**
|
|
22
|
+
You must now **explicitly define resolvers for every field** during development—breakages that used to surface at runtime are now caught at compile time.
|
|
23
|
+
- **Removed `@baeta/compiler`.**
|
|
24
|
+
Since modern runtimes can execute TypeScript natively, the separate compiler package is no longer needed. Use your runtime’s native TS support or your existing build setup.
|
|
25
|
+
- **Subscriptions update.**
|
|
26
|
+
`@baeta/subscriptions-pubsub` now targets **`graphql-subscriptions` v3**.
|
|
27
|
+
|
|
28
|
+
### Patch Changes
|
|
29
|
+
|
|
30
|
+
- Updated dependencies [[`31d1a50`](https://github.com/andreisergiu98/baeta/commit/31d1a509f96535b43ae85d19c770eb1a5f09dc94)]:
|
|
31
|
+
- @baeta/generator-sdk@2.0.0-next.0
|
|
32
|
+
- @baeta/plugin-exec@2.0.0-next.0
|
|
33
|
+
- @baeta/util-path@2.0.0-next.0
|
|
34
|
+
|
|
3
35
|
## 1.0.11
|
|
4
36
|
|
|
5
37
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baeta/plugin-prisma",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-next.1",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"baeta",
|
|
6
6
|
"graphql",
|
|
@@ -43,19 +43,19 @@
|
|
|
43
43
|
"types": "tsc --noEmit"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@baeta/generator-sdk": "^
|
|
47
|
-
"@baeta/plugin-exec": "^
|
|
48
|
-
"@baeta/util-path": "^
|
|
49
|
-
"execa": "^9.
|
|
46
|
+
"@baeta/generator-sdk": "^2.0.0-next.1",
|
|
47
|
+
"@baeta/plugin-exec": "^2.0.0-next.1",
|
|
48
|
+
"@baeta/util-path": "^2.0.0-next.1",
|
|
49
|
+
"execa": "^9.6.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@baeta/builder": "^0.0.0",
|
|
53
53
|
"@baeta/tsconfig": "^0.0.0",
|
|
54
|
-
"@types/node": "^22.
|
|
55
|
-
"typescript": "^5.
|
|
54
|
+
"@types/node": "^22.18.11",
|
|
55
|
+
"typescript": "^5.9.3"
|
|
56
56
|
},
|
|
57
57
|
"engines": {
|
|
58
|
-
"node": ">=22.
|
|
58
|
+
"node": ">=22.20.0"
|
|
59
59
|
},
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"access": "public",
|
package/dist/index.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import * as _baeta_generator_sdk from '@baeta/generator-sdk';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Configuration options for the Prisma plugin
|
|
5
|
-
*/
|
|
6
|
-
interface PrismaPluginOptions {
|
|
7
|
-
/**
|
|
8
|
-
* Whether to generate the Prisma client
|
|
9
|
-
* @defaultValue true
|
|
10
|
-
*/
|
|
11
|
-
generateClient?: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* Custom command to generate Prisma client
|
|
14
|
-
* @defaultValue 'prisma generate'
|
|
15
|
-
*/
|
|
16
|
-
generateCommand?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Path to the Prisma schema file
|
|
19
|
-
* @example 'prisma/schema.prisma'
|
|
20
|
-
*/
|
|
21
|
-
prismaSchema: string;
|
|
22
|
-
/**
|
|
23
|
-
* Path to the generated schema file for comparison
|
|
24
|
-
* Used to avoid unnecessary regeneration
|
|
25
|
-
* @example 'node_modules/@prisma/client/schema.prisma'
|
|
26
|
-
*/
|
|
27
|
-
generatedSchemaPath: string;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* A plugin that manages Prisma client generation in your Baeta project.
|
|
32
|
-
* See https://baeta.io/docs/plugins/prisma
|
|
33
|
-
*
|
|
34
|
-
* @param options - Configuration options for the pagination plugin
|
|
35
|
-
* @returns A Baeta generator plugin
|
|
36
|
-
*/
|
|
37
|
-
declare function prismaPlugin(options: PrismaPluginOptions): _baeta_generator_sdk.GeneratorPluginV1<unknown>[];
|
|
38
|
-
|
|
39
|
-
export { type PrismaPluginOptions, prismaPlugin as default, prismaPlugin };
|