@prisma-next/mongo 0.6.0-dev.3 → 0.6.0-dev.5

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.
@@ -0,0 +1,2 @@
1
+ import { Binary, Decimal128, Long, MongoClient, ObjectId, Timestamp } from "mongodb";
2
+ export { Binary, Decimal128, Long, MongoClient, ObjectId, Timestamp };
package/dist/index.mjs ADDED
@@ -0,0 +1,2 @@
1
+ import { Binary, Decimal128, Long, MongoClient, ObjectId, Timestamp } from "mongodb";
2
+ export { Binary, Decimal128, Long, MongoClient, ObjectId, Timestamp };
@@ -1,9 +1,9 @@
1
+ import * as _$mongodb from "mongodb";
2
+ import { MongoClient as MongoClient$1 } from "mongodb";
1
3
  import { MongoContract, MongoContractWithTypeMaps, MongoTypeMaps } from "@prisma-next/mongo-contract";
2
4
  import { MongoOrmClient } from "@prisma-next/mongo-orm";
3
5
  import { mongoQuery } from "@prisma-next/mongo-query-builder";
4
6
  import { MongoRuntime } from "@prisma-next/mongo-runtime";
5
- import * as _$mongodb from "mongodb";
6
- import { MongoClient as MongoClient$1 } from "mongodb";
7
7
 
8
8
  //#region src/runtime/binding.d.ts
9
9
  type MongoBinding = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma-next/mongo",
3
- "version": "0.6.0-dev.3",
3
+ "version": "0.6.0-dev.5",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -8,27 +8,27 @@
8
8
  "dependencies": {
9
9
  "mongodb": "^6.16.0",
10
10
  "pathe": "^2.0.3",
11
- "@prisma-next/adapter-mongo": "0.6.0-dev.3",
12
- "@prisma-next/contract": "0.6.0-dev.3",
13
- "@prisma-next/driver-mongo": "0.6.0-dev.3",
14
- "@prisma-next/framework-components": "0.6.0-dev.3",
15
- "@prisma-next/config": "0.6.0-dev.3",
16
- "@prisma-next/mongo-contract": "0.6.0-dev.3",
17
- "@prisma-next/mongo-query-builder": "0.6.0-dev.3",
18
- "@prisma-next/mongo-orm": "0.6.0-dev.3",
19
- "@prisma-next/family-mongo": "0.6.0-dev.3",
20
- "@prisma-next/mongo-contract-ts": "0.6.0-dev.3",
21
- "@prisma-next/mongo-runtime": "0.6.0-dev.3",
22
- "@prisma-next/target-mongo": "0.6.0-dev.3",
23
- "@prisma-next/mongo-contract-psl": "0.6.0-dev.3"
11
+ "@prisma-next/driver-mongo": "0.6.0-dev.5",
12
+ "@prisma-next/adapter-mongo": "0.6.0-dev.5",
13
+ "@prisma-next/config": "0.6.0-dev.5",
14
+ "@prisma-next/contract": "0.6.0-dev.5",
15
+ "@prisma-next/framework-components": "0.6.0-dev.5",
16
+ "@prisma-next/mongo-contract": "0.6.0-dev.5",
17
+ "@prisma-next/mongo-contract-psl": "0.6.0-dev.5",
18
+ "@prisma-next/mongo-contract-ts": "0.6.0-dev.5",
19
+ "@prisma-next/mongo-orm": "0.6.0-dev.5",
20
+ "@prisma-next/mongo-runtime": "0.6.0-dev.5",
21
+ "@prisma-next/target-mongo": "0.6.0-dev.5",
22
+ "@prisma-next/family-mongo": "0.6.0-dev.5",
23
+ "@prisma-next/mongo-query-builder": "0.6.0-dev.5"
24
24
  },
25
25
  "devDependencies": {
26
26
  "mongodb-memory-server": "11.0.1",
27
27
  "tsdown": "0.22.0",
28
28
  "typescript": "5.9.3",
29
29
  "vitest": "4.1.5",
30
- "@prisma-next/test-utils": "0.0.1",
31
30
  "@prisma-next/tsconfig": "0.0.0",
31
+ "@prisma-next/test-utils": "0.0.1",
32
32
  "@prisma-next/tsdown": "0.0.0"
33
33
  },
34
34
  "files": [
@@ -44,6 +44,7 @@
44
44
  "node": ">=20"
45
45
  },
46
46
  "exports": {
47
+ ".": "./dist/index.mjs",
47
48
  "./config": "./dist/config.mjs",
48
49
  "./contract-builder": "./dist/contract-builder.mjs",
49
50
  "./family": "./dist/family.mjs",
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Top-level entry for `@prisma-next/mongo`.
3
+ *
4
+ * Re-exports the BSON value constructors users reach for when authoring
5
+ * seed scripts, fixtures, or relational graphs that need to pre-allocate
6
+ * `_id`s before insert (e.g. wiring related rows in a single `createAll`
7
+ * call). Routing these through the facade keeps the user's `package.json`
8
+ * to a single `@prisma-next/mongo` pin and removes the version-drift risk
9
+ * of also declaring `mongodb` directly when the facade already bundles it.
10
+ */
11
+ export { Binary, Decimal128, Long, MongoClient, ObjectId, Timestamp } from 'mongodb';