@prisma-next/family-mongo 0.4.1 → 0.5.0-dev.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.
Files changed (2) hide show
  1. package/README.md +4 -3
  2. package/package.json +17 -17
package/README.md CHANGED
@@ -99,15 +99,16 @@ The current `contract.ts` slice supports roots and collections, typed reference
99
99
  ### Migration authoring
100
100
 
101
101
  ```typescript
102
+ import { MigrationCLI } from "@prisma-next/cli/migration-cli"
102
103
  import { Migration, createIndex, createCollection }
103
104
  from "@prisma-next/family-mongo/migration"
104
105
 
105
106
  class AddUsersCollection extends Migration {
106
- describe() {
107
+ override describe() {
107
108
  return { from: "abc123", to: "def456", labels: ["add-users"] }
108
109
  }
109
110
 
110
- plan() {
111
+ override get operations() {
111
112
  return [
112
113
  createCollection("users", {
113
114
  validator: { $jsonSchema: { required: ["email"] } },
@@ -119,7 +120,7 @@ class AddUsersCollection extends Migration {
119
120
  }
120
121
 
121
122
  export default AddUsersCollection;
122
- Migration.run(import.meta.url, AddUsersCollection)
123
+ MigrationCLI.run(import.meta.url, AddUsersCollection);
123
124
  ```
124
125
 
125
126
  Run `node migration.ts` to produce `ops.json` and `migration.json`. Use `--dry-run` to preview without writing.
package/package.json CHANGED
@@ -1,33 +1,33 @@
1
1
  {
2
2
  "name": "@prisma-next/family-mongo",
3
- "version": "0.4.1",
3
+ "version": "0.5.0-dev.1",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "description": "Mongo family descriptor for Prisma Next",
7
7
  "dependencies": {
8
8
  "mongodb": "^6.16.0",
9
9
  "pathe": "^2.0.3",
10
- "@prisma-next/adapter-mongo": "0.4.1",
11
- "@prisma-next/emitter": "0.4.1",
12
- "@prisma-next/driver-mongo": "0.4.1",
13
- "@prisma-next/contract": "0.4.1",
14
- "@prisma-next/errors": "0.4.1",
15
- "@prisma-next/migration-tools": "0.4.1",
16
- "@prisma-next/mongo-contract": "0.4.1",
17
- "@prisma-next/framework-components": "0.4.1",
18
- "@prisma-next/mongo-emitter": "0.4.1",
19
- "@prisma-next/mongo-schema-ir": "0.4.1",
20
- "@prisma-next/target-mongo": "0.4.1",
21
- "@prisma-next/mongo-query-ast": "0.4.1",
22
- "@prisma-next/utils": "0.4.1"
10
+ "@prisma-next/adapter-mongo": "0.5.0-dev.1",
11
+ "@prisma-next/contract": "0.5.0-dev.1",
12
+ "@prisma-next/emitter": "0.5.0-dev.1",
13
+ "@prisma-next/driver-mongo": "0.5.0-dev.1",
14
+ "@prisma-next/errors": "0.5.0-dev.1",
15
+ "@prisma-next/framework-components": "0.5.0-dev.1",
16
+ "@prisma-next/migration-tools": "0.5.0-dev.1",
17
+ "@prisma-next/mongo-contract": "0.5.0-dev.1",
18
+ "@prisma-next/mongo-schema-ir": "0.5.0-dev.1",
19
+ "@prisma-next/mongo-emitter": "0.5.0-dev.1",
20
+ "@prisma-next/target-mongo": "0.5.0-dev.1",
21
+ "@prisma-next/utils": "0.5.0-dev.1",
22
+ "@prisma-next/mongo-query-ast": "0.5.0-dev.1"
23
23
  },
24
24
  "devDependencies": {
25
25
  "tsdown": "0.18.4",
26
26
  "typescript": "5.9.3",
27
27
  "vitest": "4.0.17",
28
- "@prisma-next/mongo-contract-ts": "0.4.1",
29
- "@prisma-next/tsconfig": "0.0.0",
30
- "@prisma-next/tsdown": "0.0.0"
28
+ "@prisma-next/mongo-contract-ts": "0.5.0-dev.1",
29
+ "@prisma-next/tsdown": "0.0.0",
30
+ "@prisma-next/tsconfig": "0.0.0"
31
31
  },
32
32
  "files": [
33
33
  "dist",