@prisma/orm-mongo 8.0.1-dev.3 → 8.0.1-dev.30
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 +6 -5
- package/dist/contract-builder.d.mts +10 -12
- package/dist/contract-builder.d.mts.map +1 -1
- package/dist/contract-types.d.mts +3 -3
- package/dist/{mongo-static-BV3j1fN5-TbRr6qQe.mjs → mongo-static-mpUQsCV6-Djox0d1n.mjs} +4 -4
- package/dist/mongo-static-mpUQsCV6-Djox0d1n.mjs.map +1 -0
- package/dist/runtime.d.mts +2 -1
- package/dist/runtime.d.mts.map +1 -1
- package/dist/runtime.mjs +6 -6
- package/dist/runtime.mjs.map +1 -1
- package/dist/static.mjs +1 -1
- package/package.json +12 -81
- package/skills/prisma-8/SKILL.md +7 -7
- package/skills/prisma-8/references/contract.md +1 -1
- package/skills/prisma-8/references/debug.md +11 -11
- package/skills/prisma-8/references/migration-model.md +17 -17
- package/skills/prisma-8/references/migration-review.md +21 -21
- package/skills/prisma-8/references/migrations.md +58 -42
- package/skills/prisma-8/references/queries-postgres.md +7 -7
- package/skills/prisma-8/references/quickstart.md +11 -11
- package/skills/prisma-8/references/runtime.md +3 -3
- package/skills/prisma-8/references/upgrade-app.md +55 -17
- package/skills/prisma-8/references/upgrade-extension.md +34 -11
- package/skills/prisma-8/upgrading/extension/upgrades/0.11-to-0.12/instructions.md +1 -1
- package/skills/prisma-8/upgrading/extension/upgrades/0.8-to-0.9/instructions.md +1 -1
- package/skills/prisma-8/upgrading/extension/upgrades/0.9-to-0.10/instructions.md +1 -1
- package/dist/adapter.d.mts +0 -1
- package/dist/adapter.mjs +0 -2
- package/dist/adapter__control.d.mts +0 -3
- package/dist/adapter__control.mjs +0 -3
- package/dist/adapter__runtime.d.mts +0 -3
- package/dist/adapter__runtime.mjs +0 -3
- package/dist/components.d.mts +0 -1
- package/dist/components.mjs +0 -2
- package/dist/components__authoring.d.mts +0 -1
- package/dist/components__authoring.mjs +0 -2
- package/dist/components__codec.d.mts +0 -1
- package/dist/components__codec.mjs +0 -2
- package/dist/components__components.d.mts +0 -1
- package/dist/components__components.mjs +0 -2
- package/dist/components__control.d.mts +0 -1
- package/dist/components__control.mjs +0 -2
- package/dist/components__emission.d.mts +0 -1
- package/dist/components__emission.mjs +0 -2
- package/dist/components__execution.d.mts +0 -1
- package/dist/components__execution.mjs +0 -2
- package/dist/components__ir.d.mts +0 -1
- package/dist/components__ir.mjs +0 -2
- package/dist/components__psl-ast.d.mts +0 -1
- package/dist/components__psl-ast.mjs +0 -2
- package/dist/components__utils.d.mts +0 -1
- package/dist/components__utils.mjs +0 -2
- package/dist/contract.d.mts +0 -1
- package/dist/contract.mjs +0 -2
- package/dist/contract__apply-specifier-default-control-policy.d.mts +0 -1
- package/dist/contract__apply-specifier-default-control-policy.mjs +0 -2
- package/dist/contract__contract-validation-error.d.mts +0 -1
- package/dist/contract__contract-validation-error.mjs +0 -2
- package/dist/contract__default-namespace.d.mts +0 -1
- package/dist/contract__default-namespace.mjs +0 -2
- package/dist/contract__enum-accessor.d.mts +0 -1
- package/dist/contract__enum-accessor.mjs +0 -2
- package/dist/contract__format-version.d.mts +0 -1
- package/dist/contract__format-version.mjs +0 -2
- package/dist/contract__hashing-utils.d.mts +0 -1
- package/dist/contract__hashing-utils.mjs +0 -2
- package/dist/contract__hashing.d.mts +0 -1
- package/dist/contract__hashing.mjs +0 -2
- package/dist/contract__internal__format-version.d.mts +0 -1
- package/dist/contract__internal__format-version.mjs +0 -2
- package/dist/contract__is-plain-record.d.mts +0 -1
- package/dist/contract__is-plain-record.mjs +0 -2
- package/dist/contract__resolve-domain-model.d.mts +0 -1
- package/dist/contract__resolve-domain-model.mjs +0 -2
- package/dist/contract__validate-domain.d.mts +0 -1
- package/dist/contract__validate-domain.mjs +0 -2
- package/dist/contract__validate-once.d.mts +0 -1
- package/dist/contract__validate-once.mjs +0 -2
- package/dist/contract__validate-storage.d.mts +0 -1
- package/dist/contract__validate-storage.mjs +0 -2
- package/dist/driver.d.mts +0 -1
- package/dist/driver.mjs +0 -2
- package/dist/driver__control.d.mts +0 -3
- package/dist/driver__control.mjs +0 -3
- package/dist/driver__runtime.d.mts +0 -3
- package/dist/driver__runtime.mjs +0 -3
- package/dist/family-contract__canonicalization-hooks.d.mts +0 -1
- package/dist/family-contract__canonicalization-hooks.mjs +0 -2
- package/dist/family-contract__data-type.d.mts +0 -1
- package/dist/family-contract__data-type.mjs +0 -2
- package/dist/family-contract__entity-kinds.d.mts +0 -1
- package/dist/family-contract__entity-kinds.mjs +0 -2
- package/dist/family__control-adapter.d.mts +0 -1
- package/dist/family__control-adapter.mjs +0 -2
- package/dist/family__ir.d.mts +0 -1
- package/dist/family__ir.mjs +0 -2
- package/dist/family__migration.d.mts +0 -1
- package/dist/family__migration.mjs +0 -2
- package/dist/family__pack.d.mts +0 -3
- package/dist/family__pack.mjs +0 -3
- package/dist/family__runtime.d.mts +0 -1
- package/dist/family__runtime.mjs +0 -2
- package/dist/family__schema-verify.d.mts +0 -1
- package/dist/family__schema-verify.mjs +0 -2
- package/dist/migration-tools__contract-snapshot-store.d.mts +0 -1
- package/dist/migration-tools__contract-snapshot-store.mjs +0 -2
- package/dist/mongo-static-BV3j1fN5-TbRr6qQe.mjs.map +0 -1
- package/dist/query-ast.d.mts +0 -1
- package/dist/query-ast.mjs +0 -2
- package/dist/query-ast__control.d.mts +0 -1
- package/dist/query-ast__control.mjs +0 -2
- package/dist/query-builder__contract-free.d.mts +0 -1
- package/dist/query-builder__contract-free.mjs +0 -2
- package/dist/target__codecs.d.mts +0 -1
- package/dist/target__codecs.mjs +0 -2
- package/dist/target__control.d.mts +0 -1
- package/dist/target__control.mjs +0 -2
- package/dist/target__data-types.d.mts +0 -1
- package/dist/target__data-types.mjs +0 -2
- package/dist/target__pack.d.mts +0 -3
- package/dist/target__pack.mjs +0 -3
- package/dist/target__server-version.d.mts +0 -1
- package/dist/target__server-version.mjs +0 -2
- package/dist/utils.d.mts +0 -1
- package/dist/utils.mjs +0 -2
- package/dist/utils__abortable.d.mts +0 -1
- package/dist/utils__abortable.mjs +0 -2
- package/dist/utils__array-equal.d.mts +0 -1
- package/dist/utils__array-equal.mjs +0 -2
- package/dist/utils__assertions.d.mts +0 -1
- package/dist/utils__assertions.mjs +0 -2
- package/dist/utils__canonical-stringify.d.mts +0 -1
- package/dist/utils__canonical-stringify.mjs +0 -2
- package/dist/utils__casts.d.mts +0 -1
- package/dist/utils__casts.mjs +0 -2
- package/dist/utils__defined.d.mts +0 -1
- package/dist/utils__defined.mjs +0 -2
- package/dist/utils__guards.d.mts +0 -1
- package/dist/utils__guards.mjs +0 -2
- package/dist/utils__hash-content.d.mts +0 -1
- package/dist/utils__hash-content.mjs +0 -2
- package/dist/utils__internal-error.d.mts +0 -1
- package/dist/utils__internal-error.mjs +0 -2
- package/dist/utils__json.d.mts +0 -1
- package/dist/utils__json.mjs +0 -2
- package/dist/utils__promise.d.mts +0 -1
- package/dist/utils__promise.mjs +0 -2
- package/dist/utils__redact-db-url.d.mts +0 -1
- package/dist/utils__redact-db-url.mjs +0 -2
- package/dist/utils__result.d.mts +0 -1
- package/dist/utils__result.mjs +0 -2
- package/dist/utils__simplify-deep.d.mts +0 -1
- package/dist/utils__simplify-deep.mjs +0 -2
- package/dist/utils__structured-error.d.mts +0 -1
- package/dist/utils__structured-error.mjs +0 -2
- package/dist/utils__suppress-idle-connection-errors.d.mts +0 -1
- package/dist/utils__suppress-idle-connection-errors.mjs +0 -2
- package/dist/utils__text.d.mts +0 -1
- package/dist/utils__text.mjs +0 -2
- package/dist/utils__types.d.mts +0 -1
- package/dist/utils__types.mjs +0 -2
- package/dist/utils__upgrade-guides.d.mts +0 -1
- package/dist/utils__upgrade-guides.mjs +0 -2
- package/dist/value__mongodb-types.d.mts +0 -1
- package/dist/value__mongodb-types.mjs +0 -2
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@prisma/orm-family-mongo/contract/data-type";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@prisma/orm-family-mongo/contract/entity-kinds";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@prisma/orm-family-mongo/family/control-adapter";
|
package/dist/family__ir.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@prisma/orm-family-mongo/family/ir";
|
package/dist/family__ir.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@prisma/orm-family-mongo/family/migration";
|
package/dist/family__pack.d.mts
DELETED
package/dist/family__pack.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@prisma/orm-family-mongo/family/runtime";
|
package/dist/family__runtime.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@prisma/orm-family-mongo/family/schema-verify";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@prisma/orm-toolchain/migration-tools/contract-snapshot-store";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mongo-static-BV3j1fN5-TbRr6qQe.mjs","names":[],"sources":["../../../../3-targets/mongo/9-facade/dist/mongo-static-BV3j1fN5.mjs"],"sourcesContent":["import mongoRuntimeAdapter from \"@internal/adapter-mongo/runtime\";\nimport { mongoRaw } from \"@internal/mongo-orm\";\nimport { createMongoExecutionContext, createMongoExecutionStack, enumMemberCodecFor } from \"@internal/mongo-runtime\";\nimport mongoRuntimeTarget from \"@internal/target-mongo/runtime\";\nimport { isContractBuiltInMemory } from \"@internal/contract/internal/format-version\";\nimport { validateContractOnce } from \"@internal/contract/validate-once\";\nimport { MongoContractSerializer } from \"@internal/family-mongo/ir\";\nimport { buildNamespacedEnums } from \"@internal/contract/enum-accessor\";\nimport { UNBOUND_NAMESPACE_ID } from \"@internal/framework-components/ir\";\nimport { mongoQuery } from \"@internal/mongo-query-builder\";\nimport { assertDefined } from \"@internal/utils/assertions\";\n//#region package.json\nvar version = \"8.0.1-dev.3\";\n//#endregion\n//#region src/static/contract-from-json.ts\nconst serializer = new MongoContractSerializer();\nconst validator = `${mongoRuntimeTarget.targetId}@${version}`;\n/**\n* Validates an emitted Mongo `contract.json` and returns it as the contract type the application\n* names, ready to pass to `mongo({ contract })` and `mongoStatic({ contract })`. Clients built from\n* the result do not validate it again.\n*\n* The returned value's top level is frozen; its nested objects are not. Do not change `json` or the\n* returned value after the call: clients built from the value later do not validate it again.\n*\n* @example\n* ```ts\n* import type { Contract } from './contract.d';\n* import contractJson from './contract.json' with { type: 'json' };\n*\n* export const contract = contractFromJson<Contract>(contractJson);\n* ```\n*/\nfunction contractFromJson(json) {\n\treturn validateContractOnce(json, validator, (input) => serializer.deserializeContract(input));\n}\n/** Validates a contract value for a Mongo client, once per value. */\nfunction validateMongoContract(contract) {\n\treturn validateContractOnce(contract, validator, () => serializer.deserializeContract(isContractBuiltInMemory(contract) ? serializer.serializeContract(contract) : contract));\n}\n//#endregion\n//#region src/static/mongo-static.ts\nfunction buildMongoStaticContext(contract, stack) {\n\tconst context = createMongoExecutionContext({\n\t\tcontract,\n\t\tstack\n\t});\n\tconst enums = Object.freeze(buildNamespacedEnums(context.contract.domain, enumMemberCodecFor(context.codecs)))[UNBOUND_NAMESPACE_ID];\n\tassertDefined(enums, \"the unbound namespace always exists on a mongo builder output\");\n\treturn {\n\t\tcontext,\n\t\tcontract,\n\t\tenums,\n\t\tquery: mongoQuery({ context }),\n\t\traw: mongoRaw({ context })\n\t};\n}\n/**\n* The query surfaces of a Mongo client without a driver: `query`, `raw` and `enums`. Use it where\n* loading `mongodb` is not wanted.\n*\n* @example\n* ```ts\n* const { enums } = mongoStatic({ contract: contractFromJson<Contract>(contractJson) });\n* ```\n*/\nfunction mongoStatic(options) {\n\tconst stack = createMongoExecutionStack({\n\t\ttarget: mongoRuntimeTarget,\n\t\tadapter: mongoRuntimeAdapter,\n\t\textensions: options.extensions ?? []\n\t});\n\treturn buildMongoStaticContext(validateMongoContract(options.contract), stack);\n}\n//#endregion\nexport { validateMongoContract as i, mongoStatic as n, contractFromJson as r, buildMongoStaticContext as t };\n\n//# sourceMappingURL=mongo-static-BV3j1fN5.mjs.map"],"mappings":";;;;;;;;;;;;AAYA,IAAI,UAAU;AAGd,MAAM,aAAa,IAAI,wBAAwB;AAC/C,MAAM,YAAY,GAAG,mBAAmB,SAAS,GAAG;;;;;;;;;;;;;;;;;AAiBpD,SAAS,iBAAiB,MAAM;CAC/B,OAAO,qBAAqB,MAAM,YAAY,UAAU,WAAW,oBAAoB,KAAK,CAAC;AAC9F;;AAEA,SAAS,sBAAsB,UAAU;CACxC,OAAO,qBAAqB,UAAU,iBAAiB,WAAW,oBAAoB,wBAAwB,QAAQ,IAAI,WAAW,kBAAkB,QAAQ,IAAI,QAAQ,CAAC;AAC7K;AAGA,SAAS,wBAAwB,UAAU,OAAO;CACjD,MAAM,UAAU,4BAA4B;EAC3C;EACA;CACD,CAAC;CACD,MAAM,QAAQ,OAAO,OAAO,qBAAqB,QAAQ,SAAS,QAAQ,mBAAmB,QAAQ,MAAM,CAAC,CAAC,CAAC,CAAC;CAC/G,cAAc,OAAO,+DAA+D;CACpF,OAAO;EACN;EACA;EACA;EACA,OAAO,WAAW,EAAE,QAAQ,CAAC;EAC7B,KAAK,SAAS,EAAE,QAAQ,CAAC;CAC1B;AACD;;;;;;;;;;AAUA,SAAS,YAAY,SAAS;CAC7B,MAAM,QAAQ,0BAA0B;EACvC,QAAQ;EACR,SAAS;EACT,YAAY,QAAQ,cAAc,CAAC;CACpC,CAAC;CACD,OAAO,wBAAwB,sBAAsB,QAAQ,QAAQ,GAAG,KAAK;AAC9E"}
|
package/dist/query-ast.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@prisma/orm-family-mongo/query-ast";
|
package/dist/query-ast.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@prisma/orm-family-mongo/query-ast/control";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@prisma/orm-family-mongo/query-builder/contract-free";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@prisma/orm-target-mongo/target/codecs";
|
package/dist/target__codecs.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@prisma/orm-target-mongo/target/control";
|
package/dist/target__control.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@prisma/orm-target-mongo/target/data-types";
|
package/dist/target__pack.d.mts
DELETED
package/dist/target__pack.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@prisma/orm-target-mongo/target/server-version";
|
package/dist/utils.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@prisma/orm-framework/utils";
|
package/dist/utils.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@prisma/orm-framework/utils/abortable";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@prisma/orm-framework/utils/array-equal";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@prisma/orm-framework/utils/assertions";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@prisma/orm-framework/utils/canonical-stringify";
|
package/dist/utils__casts.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@prisma/orm-framework/utils/casts";
|
package/dist/utils__casts.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@prisma/orm-framework/utils/defined";
|
package/dist/utils__defined.mjs
DELETED
package/dist/utils__guards.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@prisma/orm-framework/utils/guards";
|
package/dist/utils__guards.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@prisma/orm-framework/utils/hash-content";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@prisma/orm-framework/utils/internal-error";
|
package/dist/utils__json.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@prisma/orm-framework/utils/json";
|
package/dist/utils__json.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@prisma/orm-framework/utils/promise";
|
package/dist/utils__promise.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@prisma/orm-framework/utils/redact-db-url";
|
package/dist/utils__result.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@prisma/orm-framework/utils/result";
|
package/dist/utils__result.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@prisma/orm-framework/utils/simplify-deep";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@prisma/orm-framework/utils/structured-error";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@prisma/orm-framework/utils/suppress-idle-connection-errors";
|
package/dist/utils__text.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@prisma/orm-framework/utils/text";
|
package/dist/utils__text.mjs
DELETED
package/dist/utils__types.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@prisma/orm-framework/utils/types";
|
package/dist/utils__types.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@prisma/orm-framework/utils/upgrade-guides";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@prisma/orm-family-mongo/value/mongodb-types";
|