@prisma/internals 6.6.0-integration-feat-orm-693-d1-driver-create-migration-adapter-using-new-http-binding.5 → 6.6.0-integration-push-xmzqvqxpztks.13
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/dist/Generator.d.ts +23 -5
- package/dist/Generator.js +4 -2
- package/dist/{chunk-HZP4ATW5.js → chunk-2EXTOQXP.js} +5 -5
- package/dist/{chunk-Q3IVXLMC.js → chunk-2FBMMWHQ.js} +5 -5
- package/dist/{chunk-TV34NMBZ.js → chunk-2H6XXXKO.js} +15 -12
- package/dist/{chunk-HX2VLZFY.js → chunk-4K5HIRG5.js} +111 -287
- package/dist/{chunk-5UDIJ23I.js → chunk-62LU4TVK.js} +8 -8
- package/dist/{chunk-VVPSLVOR.js → chunk-67I7CEQJ.js} +6 -7
- package/dist/{chunk-BTWAF3S4.js → chunk-72C2UHFB.js} +7 -7
- package/dist/{chunk-GIOVJ5SL.js → chunk-77MKN3Q4.js} +8 -8
- package/dist/{chunk-244JZX3O.js → chunk-7FTMDG7L.js} +5 -5
- package/dist/{chunk-B2BBNLC5.js → chunk-ANMHSU5Y.js} +5 -5
- package/dist/{chunk-L2OMDDLG.js → chunk-BD2NGNRL.js} +111 -287
- package/dist/{chunk-DYVL6P7F.js → chunk-BPDMLM32.js} +46 -13
- package/dist/{chunk-XQSHUIJ5.js → chunk-BWPH7QBV.js} +8 -8
- package/dist/{chunk-M6JO5TM5.js → chunk-C2OWHVUP.js} +8 -8
- package/dist/{chunk-OIAO45HN.js → chunk-F6EDK6DL.js} +5 -6
- package/dist/{chunk-R57AYZIS.js → chunk-I5B3XJKO.js} +7 -7
- package/dist/{chunk-75AJJ2SV.js → chunk-LVXOY25I.js} +5 -5
- package/dist/{chunk-K5W6WZ6E.js → chunk-MJIP3FY5.js} +6 -238
- package/dist/{chunk-MSQTODVE.js → chunk-MVXDMOUP.js} +8 -8
- package/dist/{chunk-ABTIXQDX.js → chunk-P3WMSDK6.js} +4 -5
- package/dist/{chunk-LHESHKC2.js → chunk-R3ZRLDO2.js} +5 -5
- package/dist/{chunk-PQE76XRR.js → chunk-RTT3E5AL.js} +5 -5
- package/dist/{chunk-Z2MGSX7I.js → chunk-SFKNTHP6.js} +8 -8
- package/dist/{chunk-XKIMYV5V.js → chunk-XARFXSI5.js} +5 -5
- package/dist/cli/checkUnsupportedDataProxy.js +23 -29
- package/dist/cli/directoryConfig.d.ts +1 -1
- package/dist/cli/directoryConfig.js +2 -2
- package/dist/cli/getSchema.d.ts +3 -28
- package/dist/cli/getSchema.js +26 -33
- package/dist/cli/hashes.d.ts +1 -2
- package/dist/cli/hashes.js +23 -29
- package/dist/cli/schemaContext.d.ts +4 -3
- package/dist/cli/schemaContext.js +23 -29
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +22 -28
- package/dist/engine-commands/getConfig.js +10 -10
- package/dist/engine-commands/getDmmf.js +7 -7
- package/dist/engine-commands/index.js +31 -37
- package/dist/engine-commands/lintSchema.js +8 -8
- package/dist/engine-commands/mergeSchemas.js +7 -7
- package/dist/engine-commands/validate.js +7 -7
- package/dist/get-generators/getGenerators.d.ts +18 -9
- package/dist/get-generators/getGenerators.js +25 -31
- package/dist/getPackedPackage.js +3 -3
- package/dist/index.d.ts +3 -5
- package/dist/index.js +53 -60
- package/dist/resolvePkg.d.ts +7 -0
- package/dist/{get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.js → resolvePkg.js} +6 -6
- package/dist/utils/getEnvPaths.js +22 -28
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/loadEnvFile.js +22 -28
- package/dist/wasm.js +4 -4
- package/package.json +11 -12
- package/dist/chunk-72UZXEBG.js +0 -28
- package/dist/chunk-BWGDP6B5.js +0 -4948
- package/dist/chunk-EUTJYQDW.js +0 -46
- package/dist/chunk-EWWOTVR3.js +0 -52
- package/dist/chunk-GHHABGYW.js +0 -28
- package/dist/chunk-QGJH4P4N.js +0 -35
- package/dist/get-generators/generatorResolvers/generatorResolvers.d.ts +0 -15
- package/dist/get-generators/generatorResolvers/generatorResolvers.js +0 -138
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/findPrismaClientDir.d.ts +0 -6
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/findPrismaClientDir.js +0 -26
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/getPackageCmd.d.ts +0 -9
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/getPackageCmd.js +0 -26
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/runPackageCmd.d.ts +0 -8
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/runPackageCmd.js +0 -29
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.d.ts +0 -6
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +0 -138
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/isYarnUsed.d.ts +0 -1
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/isYarnUsed.js +0 -26
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/resolve.d.ts +0 -20
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/resolve.js +0 -26
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.d.ts +0 -7
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.test.d.ts +0 -1
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.test.js +0 -17
- package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.d.ts +0 -20
- package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +0 -139
package/dist/Generator.d.ts
CHANGED
@@ -1,13 +1,15 @@
|
|
1
|
-
import type { BinaryPaths, GeneratorConfig, GeneratorManifest, GeneratorOptions } from '@prisma/generator';
|
2
|
-
export declare class Generator {
|
3
|
-
private generatorProcess;
|
1
|
+
import type { BinaryPaths, Generator as IGenerator, GeneratorConfig, GeneratorManifest, GeneratorOptions } from '@prisma/generator';
|
2
|
+
export declare abstract class Generator {
|
4
3
|
manifest: GeneratorManifest | null;
|
5
4
|
config: GeneratorConfig;
|
6
5
|
options?: GeneratorOptions;
|
7
|
-
constructor(
|
6
|
+
constructor(config: GeneratorConfig);
|
8
7
|
init(): Promise<void>;
|
9
|
-
|
8
|
+
protected abstract initImpl(): Promise<void>;
|
9
|
+
protected abstract getManifest(): Promise<GeneratorManifest | null>;
|
10
|
+
abstract stop(): void;
|
10
11
|
generate(): Promise<void>;
|
12
|
+
protected abstract generateImpl(options: GeneratorOptions): Promise<void>;
|
11
13
|
setOptions(options: GeneratorOptions): void;
|
12
14
|
setBinaryPaths(binaryPaths: BinaryPaths): void;
|
13
15
|
/**
|
@@ -22,3 +24,19 @@ export declare class Generator {
|
|
22
24
|
*/
|
23
25
|
getProvider(): string;
|
24
26
|
}
|
27
|
+
export declare class JsonRpcGenerator extends Generator {
|
28
|
+
#private;
|
29
|
+
constructor(executablePath: string, config: GeneratorConfig, isNode?: boolean);
|
30
|
+
protected initImpl(): Promise<void>;
|
31
|
+
protected getManifest(): Promise<GeneratorManifest | null>;
|
32
|
+
protected generateImpl(options: GeneratorOptions): Promise<void>;
|
33
|
+
stop(): void;
|
34
|
+
}
|
35
|
+
export declare class InProcessGenerator extends Generator {
|
36
|
+
#private;
|
37
|
+
constructor(config: GeneratorConfig, generator: IGenerator);
|
38
|
+
protected initImpl(): Promise<void>;
|
39
|
+
protected getManifest(): Promise<GeneratorManifest | null>;
|
40
|
+
protected generateImpl(options: GeneratorOptions): Promise<void>;
|
41
|
+
stop(): void;
|
42
|
+
}
|
package/dist/Generator.js
CHANGED
@@ -18,10 +18,12 @@ var __copyProps = (to, from, except, desc) => {
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
19
|
var Generator_exports = {};
|
20
20
|
__export(Generator_exports, {
|
21
|
-
Generator: () =>
|
21
|
+
Generator: () => import_chunk_BPDMLM32.Generator,
|
22
|
+
InProcessGenerator: () => import_chunk_BPDMLM32.InProcessGenerator,
|
23
|
+
JsonRpcGenerator: () => import_chunk_BPDMLM32.JsonRpcGenerator
|
22
24
|
});
|
23
25
|
module.exports = __toCommonJS(Generator_exports);
|
24
|
-
var
|
26
|
+
var import_chunk_BPDMLM32 = require("./chunk-BPDMLM32.js");
|
25
27
|
var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
|
26
28
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
27
29
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
@@ -26,14 +26,14 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
26
26
|
mod
|
27
27
|
));
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
var
|
30
|
-
__export(
|
29
|
+
var chunk_2EXTOQXP_exports = {};
|
30
|
+
__export(chunk_2EXTOQXP_exports, {
|
31
31
|
prismaSchemaWasm: () => import_prisma_schema_wasm.default,
|
32
32
|
prismaSchemaWasmVersion: () => prismaSchemaWasmVersion,
|
33
33
|
wasm_exports: () => wasm_exports
|
34
34
|
});
|
35
|
-
module.exports = __toCommonJS(
|
36
|
-
var
|
35
|
+
module.exports = __toCommonJS(chunk_2EXTOQXP_exports);
|
36
|
+
var import_chunk_F6EDK6DL = require("./chunk-F6EDK6DL.js");
|
37
37
|
var import_chunk_WXRVYSYN = require("./chunk-WXRVYSYN.js");
|
38
38
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
39
39
|
var import_prisma_schema_wasm = __toESM(require("@prisma/prisma-schema-wasm"));
|
@@ -42,6 +42,6 @@ var wasm_exports = {};
|
|
42
42
|
prismaSchemaWasm: () => import_prisma_schema_wasm.default,
|
43
43
|
prismaSchemaWasmVersion: () => prismaSchemaWasmVersion
|
44
44
|
});
|
45
|
-
var { dependencies } = (0,
|
45
|
+
var { dependencies } = (0, import_chunk_F6EDK6DL.require_package)();
|
46
46
|
var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
|
47
47
|
globalThis.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_WXRVYSYN.WasmPanicRegistry();
|
@@ -16,20 +16,20 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
return to;
|
17
17
|
};
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
|
-
var
|
20
|
-
__export(
|
19
|
+
var chunk_2FBMMWHQ_exports = {};
|
20
|
+
__export(chunk_2FBMMWHQ_exports, {
|
21
21
|
getLintWarnings: () => getLintWarnings,
|
22
22
|
getLintWarningsAsText: () => getLintWarningsAsText,
|
23
23
|
handleLintPanic: () => handleLintPanic,
|
24
24
|
lintSchema: () => lintSchema,
|
25
25
|
warningToString: () => warningToString
|
26
26
|
});
|
27
|
-
module.exports = __toCommonJS(
|
28
|
-
var
|
27
|
+
module.exports = __toCommonJS(chunk_2FBMMWHQ_exports);
|
28
|
+
var import_chunk_2EXTOQXP = require("./chunk-2EXTOQXP.js");
|
29
29
|
var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
|
30
30
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
31
31
|
function lintSchema({ schemas }) {
|
32
|
-
const lintResult =
|
32
|
+
const lintResult = import_chunk_2EXTOQXP.prismaSchemaWasm.lint(JSON.stringify(schemas));
|
33
33
|
const lintDiagnostics = JSON.parse(lintResult);
|
34
34
|
return lintDiagnostics;
|
35
35
|
}
|
@@ -26,21 +26,24 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
26
26
|
mod
|
27
27
|
));
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
var
|
30
|
-
__export(
|
29
|
+
var chunk_2H6XXXKO_exports = {};
|
30
|
+
__export(chunk_2H6XXXKO_exports, {
|
31
31
|
inferDirectoryConfig: () => inferDirectoryConfig
|
32
32
|
});
|
33
|
-
module.exports = __toCommonJS(
|
33
|
+
module.exports = __toCommonJS(chunk_2H6XXXKO_exports);
|
34
34
|
var import_path = __toESM(require("path"));
|
35
|
-
function inferDirectoryConfig(schemaContext) {
|
36
|
-
const
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
35
|
+
function inferDirectoryConfig(schemaContext, cwd = process.cwd()) {
|
36
|
+
const baseDir = (
|
37
|
+
// All default paths are relative to the `schema.prisma` file that contains the primary datasource.
|
38
|
+
// That schema file should usually be the users "root" aka main schema file.
|
39
|
+
schemaContext?.primaryDatasourceDirectory ?? // If no primary datasource exists we use the schemaRootDir.
|
40
|
+
// `schemaRootDir` is either the directory the user supplied as schemaPath or the directory the single schema file is in.
|
41
|
+
schemaContext?.schemaRootDir ?? // Should also that not be defined because there is no schema yet we fallback to CWD + `/prisma`.
|
42
|
+
import_path.default.join(cwd, "prisma")
|
43
|
+
);
|
41
44
|
return {
|
42
|
-
viewsDirPath,
|
43
|
-
typedSqlDirPath: import_path.default.join(
|
44
|
-
migrationsDirPath
|
45
|
+
viewsDirPath: import_path.default.join(baseDir, "views"),
|
46
|
+
typedSqlDirPath: import_path.default.join(baseDir, "sql"),
|
47
|
+
migrationsDirPath: import_path.default.join(baseDir, "migrations")
|
45
48
|
};
|
46
49
|
}
|