@prisma-next/target-mongo 0.5.0-dev.60 → 0.5.0-dev.62

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.
@@ -4,12 +4,7 @@ import { RuntimeTargetDescriptor, RuntimeTargetInstance } from "@prisma-next/fra
4
4
  //#region src/exports/runtime.d.ts
5
5
  interface MongoRuntimeTargetInstance extends RuntimeTargetInstance<'mongo', 'mongo'> {}
6
6
  /**
7
- * Target-mongo deliberately does NOT import `MongoRuntimeTargetDescriptor`
8
- * from `@prisma-next/mongo-runtime`. The target package is a control-plane
9
- * residence and must not pull the Mongo execution-plane package into its
10
- * dependency closure. The runtime descriptor here is shaped to satisfy the
11
- * framework's `RuntimeTargetDescriptor` plus the structural
12
- * `MongoStaticContributions` (`codecs`) that `@prisma-next/mongo-runtime`
7
+ * Target-mongo deliberately does NOT import `MongoRuntimeTargetDescriptor` from `@prisma-next/mongo-runtime`. The target package is a control-plane residence and must not pull the Mongo execution-plane package into its dependency closure. The runtime descriptor here is shaped to satisfy the framework's `RuntimeTargetDescriptor` plus the structural `MongoStaticContributions` (`codecs`) that `@prisma-next/mongo-runtime`
13
8
  * consumers narrow to at composition time.
14
9
  */
15
10
  declare const mongoRuntimeTargetDescriptor: RuntimeTargetDescriptor<'mongo', 'mongo', MongoRuntimeTargetInstance> & {
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.d.mts","names":[],"sources":["../src/exports/runtime.ts"],"sourcesContent":[],"mappings":";;;;UAOiB,0BAAA,SAAmC;AAApD;AAA8F;;;;;;;;cAWxF,8BAA8B,0CAGlC;yBAEuB"}
1
+ {"version":3,"file":"runtime.d.mts","names":[],"sources":["../src/exports/runtime.ts"],"sourcesContent":[],"mappings":";;;;UAOiB,0BAAA,SAAmC;AAApD;AAA8F;;;cAMxF,4BAKmB,EALW,uBAKX,CAAA,OAAA,EAAA,OAAA,EAFvB,0BAEuB,CAAA,GAAA;EAAkB,SAAA,MAAA,EAAA,GAAA,GAAlB,kBAAkB"}
package/dist/runtime.mjs CHANGED
@@ -1,19 +1,14 @@
1
1
  import { t as mongoTargetDescriptorMeta } from "./descriptor-meta-D9_5quQi.mjs";
2
- import { createMongoCodecRegistry } from "@prisma-next/mongo-codec";
2
+ import { newMongoCodecRegistry } from "@prisma-next/mongo-codec";
3
3
 
4
4
  //#region src/exports/runtime.ts
5
5
  /**
6
- * Target-mongo deliberately does NOT import `MongoRuntimeTargetDescriptor`
7
- * from `@prisma-next/mongo-runtime`. The target package is a control-plane
8
- * residence and must not pull the Mongo execution-plane package into its
9
- * dependency closure. The runtime descriptor here is shaped to satisfy the
10
- * framework's `RuntimeTargetDescriptor` plus the structural
11
- * `MongoStaticContributions` (`codecs`) that `@prisma-next/mongo-runtime`
6
+ * Target-mongo deliberately does NOT import `MongoRuntimeTargetDescriptor` from `@prisma-next/mongo-runtime`. The target package is a control-plane residence and must not pull the Mongo execution-plane package into its dependency closure. The runtime descriptor here is shaped to satisfy the framework's `RuntimeTargetDescriptor` plus the structural `MongoStaticContributions` (`codecs`) that `@prisma-next/mongo-runtime`
12
7
  * consumers narrow to at composition time.
13
8
  */
14
9
  const mongoRuntimeTargetDescriptor = {
15
10
  ...mongoTargetDescriptorMeta,
16
- codecs: () => createMongoCodecRegistry(),
11
+ codecs: () => newMongoCodecRegistry(),
17
12
  create() {
18
13
  return {
19
14
  familyId: "mongo",
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.mjs","names":["mongoRuntimeTargetDescriptor: RuntimeTargetDescriptor<\n 'mongo',\n 'mongo',\n MongoRuntimeTargetInstance\n> & {\n readonly codecs: () => MongoCodecRegistry;\n}"],"sources":["../src/exports/runtime.ts"],"sourcesContent":["import type {\n RuntimeTargetDescriptor,\n RuntimeTargetInstance,\n} from '@prisma-next/framework-components/execution';\nimport { createMongoCodecRegistry, type MongoCodecRegistry } from '@prisma-next/mongo-codec';\nimport { mongoTargetDescriptorMeta } from '../core/descriptor-meta';\n\nexport interface MongoRuntimeTargetInstance extends RuntimeTargetInstance<'mongo', 'mongo'> {}\n\n/**\n * Target-mongo deliberately does NOT import `MongoRuntimeTargetDescriptor`\n * from `@prisma-next/mongo-runtime`. The target package is a control-plane\n * residence and must not pull the Mongo execution-plane package into its\n * dependency closure. The runtime descriptor here is shaped to satisfy the\n * framework's `RuntimeTargetDescriptor` plus the structural\n * `MongoStaticContributions` (`codecs`) that `@prisma-next/mongo-runtime`\n * consumers narrow to at composition time.\n */\nconst mongoRuntimeTargetDescriptor: RuntimeTargetDescriptor<\n 'mongo',\n 'mongo',\n MongoRuntimeTargetInstance\n> & {\n readonly codecs: () => MongoCodecRegistry;\n} = {\n ...mongoTargetDescriptorMeta,\n // The target descriptor itself contributes no codecs — the standard set\n // lives on the adapter descriptor (see `@prisma-next/adapter-mongo/runtime`).\n codecs: () => createMongoCodecRegistry(),\n create(): MongoRuntimeTargetInstance {\n return {\n familyId: 'mongo',\n targetId: 'mongo',\n };\n },\n};\n\nexport default mongoRuntimeTargetDescriptor;\n"],"mappings":";;;;;;;;;;;;;AAkBA,MAAMA,+BAMF;CACF,GAAG;CAGH,cAAc,0BAA0B;CACxC,SAAqC;AACnC,SAAO;GACL,UAAU;GACV,UAAU;GACX;;CAEJ;AAED,sBAAe"}
1
+ {"version":3,"file":"runtime.mjs","names":["mongoRuntimeTargetDescriptor: RuntimeTargetDescriptor<\n 'mongo',\n 'mongo',\n MongoRuntimeTargetInstance\n> & {\n readonly codecs: () => MongoCodecRegistry;\n}"],"sources":["../src/exports/runtime.ts"],"sourcesContent":["import type {\n RuntimeTargetDescriptor,\n RuntimeTargetInstance,\n} from '@prisma-next/framework-components/execution';\nimport { type MongoCodecRegistry, newMongoCodecRegistry } from '@prisma-next/mongo-codec';\nimport { mongoTargetDescriptorMeta } from '../core/descriptor-meta';\n\nexport interface MongoRuntimeTargetInstance extends RuntimeTargetInstance<'mongo', 'mongo'> {}\n\n/**\n * Target-mongo deliberately does NOT import `MongoRuntimeTargetDescriptor` from `@prisma-next/mongo-runtime`. The target package is a control-plane residence and must not pull the Mongo execution-plane package into its dependency closure. The runtime descriptor here is shaped to satisfy the framework's `RuntimeTargetDescriptor` plus the structural `MongoStaticContributions` (`codecs`) that `@prisma-next/mongo-runtime`\n * consumers narrow to at composition time.\n */\nconst mongoRuntimeTargetDescriptor: RuntimeTargetDescriptor<\n 'mongo',\n 'mongo',\n MongoRuntimeTargetInstance\n> & {\n readonly codecs: () => MongoCodecRegistry;\n} = {\n ...mongoTargetDescriptorMeta,\n // The target descriptor itself contributes no codecs — the standard set lives on the adapter descriptor (see `@prisma-next/adapter-mongo/runtime`).\n codecs: () => newMongoCodecRegistry(),\n create(): MongoRuntimeTargetInstance {\n return {\n familyId: 'mongo',\n targetId: 'mongo',\n };\n },\n};\n\nexport default mongoRuntimeTargetDescriptor;\n"],"mappings":";;;;;;;;AAaA,MAAMA,+BAMF;CACF,GAAG;CAEH,cAAc,uBAAuB;CACrC,SAAqC;AACnC,SAAO;GACL,UAAU;GACV,UAAU;GACX;;CAEJ;AAED,sBAAe"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma-next/target-mongo",
3
- "version": "0.5.0-dev.60",
3
+ "version": "0.5.0-dev.62",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -8,18 +8,18 @@
8
8
  "dependencies": {
9
9
  "arktype": "^2.1.29",
10
10
  "mongodb": "^6.16.0",
11
- "@prisma-next/errors": "0.5.0-dev.60",
12
- "@prisma-next/framework-components": "0.5.0-dev.60",
13
- "@prisma-next/contract": "0.5.0-dev.60",
14
- "@prisma-next/ts-render": "0.5.0-dev.60",
15
- "@prisma-next/mongo-codec": "0.5.0-dev.60",
16
- "@prisma-next/migration-tools": "0.5.0-dev.60",
17
- "@prisma-next/mongo-contract": "0.5.0-dev.60",
18
- "@prisma-next/mongo-lowering": "0.5.0-dev.60",
19
- "@prisma-next/mongo-schema-ir": "0.5.0-dev.60",
20
- "@prisma-next/mongo-query-ast": "0.5.0-dev.60",
21
- "@prisma-next/mongo-value": "0.5.0-dev.60",
22
- "@prisma-next/utils": "0.5.0-dev.60"
11
+ "@prisma-next/contract": "0.5.0-dev.62",
12
+ "@prisma-next/errors": "0.5.0-dev.62",
13
+ "@prisma-next/framework-components": "0.5.0-dev.62",
14
+ "@prisma-next/mongo-codec": "0.5.0-dev.62",
15
+ "@prisma-next/mongo-contract": "0.5.0-dev.62",
16
+ "@prisma-next/ts-render": "0.5.0-dev.62",
17
+ "@prisma-next/migration-tools": "0.5.0-dev.62",
18
+ "@prisma-next/mongo-query-ast": "0.5.0-dev.62",
19
+ "@prisma-next/mongo-schema-ir": "0.5.0-dev.62",
20
+ "@prisma-next/mongo-lowering": "0.5.0-dev.62",
21
+ "@prisma-next/mongo-value": "0.5.0-dev.62",
22
+ "@prisma-next/utils": "0.5.0-dev.62"
23
23
  },
24
24
  "devDependencies": {
25
25
  "mongodb-memory-server": "10.4.3",
@@ -2,18 +2,13 @@ import type {
2
2
  RuntimeTargetDescriptor,
3
3
  RuntimeTargetInstance,
4
4
  } from '@prisma-next/framework-components/execution';
5
- import { createMongoCodecRegistry, type MongoCodecRegistry } from '@prisma-next/mongo-codec';
5
+ import { type MongoCodecRegistry, newMongoCodecRegistry } from '@prisma-next/mongo-codec';
6
6
  import { mongoTargetDescriptorMeta } from '../core/descriptor-meta';
7
7
 
8
8
  export interface MongoRuntimeTargetInstance extends RuntimeTargetInstance<'mongo', 'mongo'> {}
9
9
 
10
10
  /**
11
- * Target-mongo deliberately does NOT import `MongoRuntimeTargetDescriptor`
12
- * from `@prisma-next/mongo-runtime`. The target package is a control-plane
13
- * residence and must not pull the Mongo execution-plane package into its
14
- * dependency closure. The runtime descriptor here is shaped to satisfy the
15
- * framework's `RuntimeTargetDescriptor` plus the structural
16
- * `MongoStaticContributions` (`codecs`) that `@prisma-next/mongo-runtime`
11
+ * Target-mongo deliberately does NOT import `MongoRuntimeTargetDescriptor` from `@prisma-next/mongo-runtime`. The target package is a control-plane residence and must not pull the Mongo execution-plane package into its dependency closure. The runtime descriptor here is shaped to satisfy the framework's `RuntimeTargetDescriptor` plus the structural `MongoStaticContributions` (`codecs`) that `@prisma-next/mongo-runtime`
17
12
  * consumers narrow to at composition time.
18
13
  */
19
14
  const mongoRuntimeTargetDescriptor: RuntimeTargetDescriptor<
@@ -24,9 +19,8 @@ const mongoRuntimeTargetDescriptor: RuntimeTargetDescriptor<
24
19
  readonly codecs: () => MongoCodecRegistry;
25
20
  } = {
26
21
  ...mongoTargetDescriptorMeta,
27
- // The target descriptor itself contributes no codecs — the standard set
28
- // lives on the adapter descriptor (see `@prisma-next/adapter-mongo/runtime`).
29
- codecs: () => createMongoCodecRegistry(),
22
+ // The target descriptor itself contributes no codecs — the standard set lives on the adapter descriptor (see `@prisma-next/adapter-mongo/runtime`).
23
+ codecs: () => newMongoCodecRegistry(),
30
24
  create(): MongoRuntimeTargetInstance {
31
25
  return {
32
26
  familyId: 'mongo',