@prisma/extension-optimize 0.0.0-dev.202502111457 → 0.0.0-dev.202502111531

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/README.md +20 -0
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -32,6 +32,26 @@ You can explore Optimize with the following resources:
32
32
 
33
33
  ##### 2.1. Update Your schema.prisma file
34
34
 
35
+ If you're using Prisma version 5 or earlier, run the following command in your terminal to install compatible packages, else use version 6:
36
+
37
+ **Version 5:**
38
+
39
+ ```shell
40
+ npm install @prisma/client@^5 @prisma/instrumentation@^5
41
+ @prisma/extension-optimize
42
+ npm install --save-dev prisma@^5
43
+ ```
44
+
45
+ **Version 6:**
46
+
47
+ ```shell
48
+ npm install @prisma/client@^6
49
+ @prisma/extension-optimize @prisma/instrumentation@^6
50
+ npm install --save-dev prisma@^6
51
+ ```
52
+
53
+ ##### 2.2. Update Your schema.prisma file
54
+
35
55
  Prisma Optimize uses [Prisma ORM's OpenTelemetry tracing functionality](https://www.prisma.io/docs/orm/prisma-client/observability-and-logging/opentelemetry-tracing). In the `generator` block of your Prisma schema, add the tracing preview feature:
36
56
 
37
57
  ```diff
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/extension-optimize",
3
- "version": "0.0.0-dev.202502111457",
3
+ "version": "0.0.0-dev.202502111531",
4
4
  "sideEffects": false,
5
5
  "description": "",
6
6
  "main": "./dist/index.js",
@@ -31,7 +31,7 @@
31
31
  "typescript": "5.5.4",
32
32
  "vitest": "1.5.3",
33
33
  "wrangler": "3.105.1",
34
- "optimize-common": "0.0.0-dev.202502111457"
34
+ "optimize-common": "0.0.0-dev.202502111531"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "@prisma/client": "5.x || 6.x"