@prisma-next/mongo 0.5.0-dev.85 → 0.5.0-dev.87

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/README.md CHANGED
@@ -30,6 +30,18 @@ Simplified `defineConfig` that pre-wires all MongoDB internals (family, target,
30
30
 
31
31
  Re-exports `createMongoRuntime` from `@prisma-next/mongo-runtime` for composing the MongoDB execution pipeline.
32
32
 
33
+ ### `@prisma-next/mongo/contract-builder`
34
+
35
+ Re-exports the TypeScript contract authoring DSL (`defineContract`, `field`, `model`, `rel`, ...) so a generated `prisma/contract.ts` can author its contract using only this facade package.
36
+
37
+ ### `@prisma-next/mongo/family`
38
+
39
+ Re-exports the MongoDB family pack (the value passed as `family:` to `defineContract`).
40
+
41
+ ### `@prisma-next/mongo/target`
42
+
43
+ Re-exports the MongoDB target pack (the value passed as `target:` to `defineContract`).
44
+
33
45
  ## Dependencies
34
46
 
35
47
  This package bundles all the transitive dependencies needed for a MongoDB Prisma Next project, including those referenced in the emitted `contract.d.ts`:
@@ -0,0 +1,2 @@
1
+ import { ContractDefinition, ContractFactory, ContractScaffold, FieldBuilder, FieldReference, ModelBuilder, MongoContractResult, RelationBuilder, ValueObjectBuilder, defineContract, field, index, model, rel, valueObject } from "@prisma-next/mongo-contract-ts/contract-builder";
2
+ export { type ContractDefinition, type ContractFactory, type ContractScaffold, type FieldBuilder, type FieldReference, type ModelBuilder, type MongoContractResult, type RelationBuilder, type ValueObjectBuilder, defineContract, field, index, model, rel, valueObject };
@@ -0,0 +1,2 @@
1
+ import { defineContract, field, index, model, rel, valueObject } from "@prisma-next/mongo-contract-ts/contract-builder";
2
+ export { defineContract, field, index, model, rel, valueObject };
@@ -0,0 +1,2 @@
1
+ import pack_default from "@prisma-next/family-mongo/pack";
2
+ export { pack_default as default };
@@ -0,0 +1,2 @@
1
+ import pack_default from "@prisma-next/family-mongo/pack";
2
+ export { pack_default as default };
@@ -0,0 +1,2 @@
1
+ import pack_default from "@prisma-next/target-mongo/pack";
2
+ export { pack_default as default };
@@ -0,0 +1,2 @@
1
+ import pack_default from "@prisma-next/target-mongo/pack";
2
+ export { pack_default as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma-next/mongo",
3
- "version": "0.5.0-dev.85",
3
+ "version": "0.5.0-dev.87",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -8,19 +8,19 @@
8
8
  "dependencies": {
9
9
  "mongodb": "^6.16.0",
10
10
  "pathe": "^2.0.3",
11
- "@prisma-next/adapter-mongo": "0.5.0-dev.85",
12
- "@prisma-next/config": "0.5.0-dev.85",
13
- "@prisma-next/contract": "0.5.0-dev.85",
14
- "@prisma-next/driver-mongo": "0.5.0-dev.85",
15
- "@prisma-next/family-mongo": "0.5.0-dev.85",
16
- "@prisma-next/mongo-contract": "0.5.0-dev.85",
17
- "@prisma-next/framework-components": "0.5.0-dev.85",
18
- "@prisma-next/mongo-contract-ts": "0.5.0-dev.85",
19
- "@prisma-next/mongo-orm": "0.5.0-dev.85",
20
- "@prisma-next/mongo-query-builder": "0.5.0-dev.85",
21
- "@prisma-next/target-mongo": "0.5.0-dev.85",
22
- "@prisma-next/mongo-contract-psl": "0.5.0-dev.85",
23
- "@prisma-next/mongo-runtime": "0.5.0-dev.85"
11
+ "@prisma-next/adapter-mongo": "0.5.0-dev.87",
12
+ "@prisma-next/contract": "0.5.0-dev.87",
13
+ "@prisma-next/driver-mongo": "0.5.0-dev.87",
14
+ "@prisma-next/family-mongo": "0.5.0-dev.87",
15
+ "@prisma-next/framework-components": "0.5.0-dev.87",
16
+ "@prisma-next/config": "0.5.0-dev.87",
17
+ "@prisma-next/mongo-contract": "0.5.0-dev.87",
18
+ "@prisma-next/mongo-contract-psl": "0.5.0-dev.87",
19
+ "@prisma-next/mongo-contract-ts": "0.5.0-dev.87",
20
+ "@prisma-next/mongo-query-builder": "0.5.0-dev.87",
21
+ "@prisma-next/target-mongo": "0.5.0-dev.87",
22
+ "@prisma-next/mongo-runtime": "0.5.0-dev.87",
23
+ "@prisma-next/mongo-orm": "0.5.0-dev.87"
24
24
  },
25
25
  "devDependencies": {
26
26
  "mongodb-memory-server": "11.0.1",
@@ -45,7 +45,10 @@
45
45
  },
46
46
  "exports": {
47
47
  "./config": "./dist/config.mjs",
48
+ "./contract-builder": "./dist/contract-builder.mjs",
49
+ "./family": "./dist/family.mjs",
48
50
  "./runtime": "./dist/runtime.mjs",
51
+ "./target": "./dist/target.mjs",
49
52
  "./package.json": "./package.json"
50
53
  },
51
54
  "scripts": {
@@ -0,0 +1,19 @@
1
+ export type {
2
+ ContractDefinition,
3
+ ContractFactory,
4
+ ContractScaffold,
5
+ FieldBuilder,
6
+ FieldReference,
7
+ ModelBuilder,
8
+ MongoContractResult,
9
+ RelationBuilder,
10
+ ValueObjectBuilder,
11
+ } from '@prisma-next/mongo-contract-ts/contract-builder';
12
+ export {
13
+ defineContract,
14
+ field,
15
+ index,
16
+ model,
17
+ rel,
18
+ valueObject,
19
+ } from '@prisma-next/mongo-contract-ts/contract-builder';
@@ -0,0 +1 @@
1
+ export { default } from '@prisma-next/family-mongo/pack';
@@ -0,0 +1 @@
1
+ export { default } from '@prisma-next/target-mongo/pack';