@prisma-next/emitter 0.3.0-pr.110.1 → 0.3.0-pr.111.2
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/package.json +4 -4
- package/test/emitter.test.ts +5 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma-next/emitter",
|
|
3
|
-
"version": "0.3.0-pr.
|
|
3
|
+
"version": "0.3.0-pr.111.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"files": [
|
|
@@ -10,15 +10,15 @@
|
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"arktype": "^2.0.0",
|
|
13
|
-
"@prisma-next/contract": "0.3.0-pr.
|
|
14
|
-
"@prisma-next/core-control-plane": "0.3.0-pr.
|
|
13
|
+
"@prisma-next/contract": "0.3.0-pr.111.2",
|
|
14
|
+
"@prisma-next/core-control-plane": "0.3.0-pr.111.2"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@types/node": "24.10.4",
|
|
18
18
|
"tsup": "8.5.1",
|
|
19
19
|
"typescript": "5.9.3",
|
|
20
20
|
"vitest": "4.0.16",
|
|
21
|
-
"@prisma-next/operations": "0.3.0-pr.
|
|
21
|
+
"@prisma-next/operations": "0.3.0-pr.111.2",
|
|
22
22
|
"@prisma-next/test-utils": "0.0.1",
|
|
23
23
|
"@prisma-next/tsconfig": "0.0.0"
|
|
24
24
|
},
|
package/test/emitter.test.ts
CHANGED
|
@@ -46,11 +46,12 @@ const mockSqlHook: TargetFamilyHook = {
|
|
|
46
46
|
throw new Error(`Expected targetFamily "sql", got "${ir.targetFamily}"`);
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
|
-
generateContractTypes: (ir: ContractIR, _codecTypeImports, _operationTypeImports) => {
|
|
49
|
+
generateContractTypes: (ir: ContractIR, _codecTypeImports, _operationTypeImports, _hashes) => {
|
|
50
50
|
// Access ir properties to satisfy lint rules, but we don't use them in the mock
|
|
51
51
|
void ir;
|
|
52
52
|
void _codecTypeImports;
|
|
53
53
|
void _operationTypeImports;
|
|
54
|
+
void _hashes;
|
|
54
55
|
return `// Generated contract types
|
|
55
56
|
export type CodecTypes = Record<string, never>;
|
|
56
57
|
export type LaneCodecTypes = CodecTypes;
|
|
@@ -624,9 +625,10 @@ describe('emitter', () => {
|
|
|
624
625
|
throw new Error(`Expected targetFamily "sql", got "${ir.targetFamily}"`);
|
|
625
626
|
}
|
|
626
627
|
},
|
|
627
|
-
generateContractTypes: (_ir, _codecTypeImports, _operationTypeImports) => {
|
|
628
|
+
generateContractTypes: (_ir, _codecTypeImports, _operationTypeImports, _hashes) => {
|
|
628
629
|
void _codecTypeImports;
|
|
629
630
|
void _operationTypeImports;
|
|
631
|
+
void _hashes;
|
|
630
632
|
return `// Generated contract types
|
|
631
633
|
export type CodecTypes = Record<string, never>;
|
|
632
634
|
export type LaneCodecTypes = CodecTypes;
|
|
@@ -662,7 +664,7 @@ export type Contract = unknown;
|
|
|
662
664
|
id: 'sql',
|
|
663
665
|
validateTypes: () => {},
|
|
664
666
|
validateStructure: () => {},
|
|
665
|
-
generateContractTypes: (_ir, _codecTypeImports, _operationTypeImports, options) => {
|
|
667
|
+
generateContractTypes: (_ir, _codecTypeImports, _operationTypeImports, _hashes, options) => {
|
|
666
668
|
receivedOptions = options;
|
|
667
669
|
return `// Generated contract types
|
|
668
670
|
export type CodecTypes = Record<string, never>;
|