@prisma-next/sql-operations 0.3.0-pr.103.9 → 0.3.0-pr.104.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/dist/index.d.mts CHANGED
@@ -9,7 +9,7 @@ interface SqlLoweringSpec {
9
9
  interface SqlOperationSignature extends OperationSignature {
10
10
  readonly lowering: SqlLoweringSpec;
11
11
  }
12
- type SqlOperationRegistry = OperationRegistry;
12
+ type SqlOperationRegistry = OperationRegistry<SqlOperationSignature>;
13
13
  declare function createSqlOperationRegistry(): SqlOperationRegistry;
14
14
  declare function register(registry: SqlOperationRegistry, signature: SqlOperationSignature): void;
15
15
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;UAMiB,eAAA;;EAAA,SAAA,QAAA,EAAe,OAAA,GAAA,UAAA;EAMf,SAAA,QAAA,EAAA,MAAsB;AAIvC;AAEgB,UANC,qBAAA,SAA8B,kBAMmB,CAAA;EAIlD,SAAA,QAAQ,EATH,eASc;;KANvB,oBAAA,GAAuB;iBAEnB,0BAAA,CAAA,GAA8B;iBAI9B,QAAA,WAAmB,iCAAiC"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;UAMiB,eAAA;;EAAA,SAAA,QAAA,EAAe,OAAA,GAAA,UAAA;EAMf,SAAA,QAAA,EAAA,MAAsB;AAIvC;AAEgB,UANC,qBAAA,SAA8B,kBAMmB,CAAA;EAIlD,SAAA,QAAQ,EATH,eASc;;KANvB,oBAAA,GAAuB,kBAAkB;iBAErC,0BAAA,CAAA,GAA8B;iBAI9B,QAAA,WAAmB,iCAAiC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["import type {\n OperationSignature as CoreOperationSignature,\n OperationRegistry,\n} from '@prisma-next/operations';\nimport { createOperationRegistry } from '@prisma-next/operations';\n\nexport interface SqlLoweringSpec {\n readonly targetFamily: 'sql';\n readonly strategy: 'infix' | 'function';\n readonly template: string;\n}\n\nexport interface SqlOperationSignature extends CoreOperationSignature {\n readonly lowering: SqlLoweringSpec;\n}\n\nexport type SqlOperationRegistry = OperationRegistry;\n\nexport function createSqlOperationRegistry(): SqlOperationRegistry {\n return createOperationRegistry() as SqlOperationRegistry;\n}\n\nexport function register(registry: SqlOperationRegistry, signature: SqlOperationSignature): void {\n registry.register(signature);\n}\n"],"mappings":";;;AAkBA,SAAgB,6BAAmD;AACjE,QAAO,yBAAyB;;AAGlC,SAAgB,SAAS,UAAgC,WAAwC;AAC/F,UAAS,SAAS,UAAU"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["import type {\n OperationSignature as CoreOperationSignature,\n OperationRegistry,\n} from '@prisma-next/operations';\nimport { createOperationRegistry } from '@prisma-next/operations';\n\nexport interface SqlLoweringSpec {\n readonly targetFamily: 'sql';\n readonly strategy: 'infix' | 'function';\n readonly template: string;\n}\n\nexport interface SqlOperationSignature extends CoreOperationSignature {\n readonly lowering: SqlLoweringSpec;\n}\n\nexport type SqlOperationRegistry = OperationRegistry<SqlOperationSignature>;\n\nexport function createSqlOperationRegistry(): SqlOperationRegistry {\n return createOperationRegistry<SqlOperationSignature>();\n}\n\nexport function register(registry: SqlOperationRegistry, signature: SqlOperationSignature): void {\n registry.register(signature);\n}\n"],"mappings":";;;AAkBA,SAAgB,6BAAmD;AACjE,QAAO,yBAAgD;;AAGzD,SAAgB,SAAS,UAAgC,WAAwC;AAC/F,UAAS,SAAS,UAAU"}
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@prisma-next/sql-operations",
3
- "version": "0.3.0-pr.103.9",
3
+ "version": "0.3.0-pr.104.2",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "description": "SQL-specific operations for Prisma Next",
7
7
  "dependencies": {
8
8
  "arktype": "^2.1.26",
9
- "@prisma-next/operations": "0.3.0-pr.103.9"
9
+ "@prisma-next/operations": "0.3.0-pr.104.2"
10
10
  },
11
11
  "devDependencies": {
12
12
  "tsdown": "0.18.4",
13
13
  "typescript": "5.9.3",
14
14
  "vitest": "4.0.16",
15
- "@prisma-next/emitter": "0.3.0-pr.103.9",
15
+ "@prisma-next/emitter": "0.3.0-pr.104.2",
16
16
  "@prisma-next/test-utils": "0.0.1",
17
17
  "@prisma-next/tsconfig": "0.0.0",
18
18
  "@prisma-next/tsdown": "0.0.0"
package/src/index.ts CHANGED
@@ -14,10 +14,10 @@ export interface SqlOperationSignature extends CoreOperationSignature {
14
14
  readonly lowering: SqlLoweringSpec;
15
15
  }
16
16
 
17
- export type SqlOperationRegistry = OperationRegistry;
17
+ export type SqlOperationRegistry = OperationRegistry<SqlOperationSignature>;
18
18
 
19
19
  export function createSqlOperationRegistry(): SqlOperationRegistry {
20
- return createOperationRegistry() as SqlOperationRegistry;
20
+ return createOperationRegistry<SqlOperationSignature>();
21
21
  }
22
22
 
23
23
  export function register(registry: SqlOperationRegistry, signature: SqlOperationSignature): void {