Skip to content

Commit 7984616

Browse files
Version Packages (#21)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent fcd2d86 commit 7984616

File tree

3 files changed

+36
-36
lines changed

3 files changed

+36
-36
lines changed

.changeset/old-bushes-hope.md

Lines changed: 0 additions & 35 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,40 @@
11
# fraci
22

3+
## 0.18.0
4+
5+
### Minor Changes
6+
7+
- 27bbb30: **BREAKING CHANGE**: Added support for Prisma client type definitions generated outside of node_modules.
8+
9+
The type definition for `PrismaClient` is no longer imported from `@prisma/client`. As a result, you must provide a type definition when instantiating fraci options or extensions. Please migrate as follows:
10+
11+
```diff
12+
import { definePrismaFraci, prismaFraci } from "fraci/prisma";
13+
import { PrismaClient } from "./path/to/your/prisma/client.js"; // Adjust the import path to your Prisma client
14+
15+
const baseClient = new PrismaClient();
16+
17+
- const definition = definePrismaFraci({
18+
+ const definition = definePrismaFraci(baseClient, { // or you can use `PrismaClient` instead of `baseClient`
19+
// your options here
20+
});
21+
22+
const client = baseClient.$extends(
23+
- prismaFraci(definition),
24+
+ prismaFraci(baseClient, definition), // or you can use `PrismaClient` instead of `baseClient`
25+
);
26+
```
27+
28+
Along with this, the `PrismaClient` type argument was added first to the following related public type definitions:
29+
- `prismaFraci`
30+
- `definePrismaFraci`
31+
- `FraciForPrisma`
32+
- `PrismaFraciExtension`
33+
- `PrismaFraciFieldOptionsRecord`
34+
- `PrismaFraciOptions`
35+
36+
Furthermore, we are anticipating future changes to Prisma's architecture and reducing imports from `@prisma/client`. As a result, the `PrismaClientConflictError` type no longer inherits from `PrismaClientKnownRequestError`.
37+
338
## 0.17.0
439

540
### Minor Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fraci",
3-
"version": "0.17.0",
3+
"version": "0.18.0",
44
"description": "Fractional indexing that's robust, performant, and secure, with first-class support for Drizzle ORM and Prisma ORM.",
55
"author": "SegaraRai",
66
"license": "MIT",

0 commit comments

Comments
 (0)