@prisma-next-idb/target-idb 0.1.0

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.
@@ -0,0 +1,16 @@
1
+ import { n as idbCodecLookup, t as idbTargetDescriptorMeta } from "./descriptor-meta-CKLekROR.mjs";
2
+ import { i as writeMarker, n as openAndUpgrade, r as readMarker, t as applyOneDdlOp, u as isIdbDdlOp } from "./apply-ddl-op-LP-l0o4O.mjs";
3
+ //#region src/exports/runtime.ts
4
+ const idbRuntimeTargetDescriptor = {
5
+ ...idbTargetDescriptorMeta,
6
+ create() {
7
+ return {
8
+ familyId: "idb",
9
+ targetId: "idb"
10
+ };
11
+ }
12
+ };
13
+ //#endregion
14
+ export { applyOneDdlOp, idbRuntimeTargetDescriptor as default, idbCodecLookup, isIdbDdlOp, openAndUpgrade, readMarker, writeMarker };
15
+
16
+ //# sourceMappingURL=runtime.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime.mjs","names":[],"sources":["../src/exports/runtime.ts"],"sourcesContent":["import type { RuntimeTargetDescriptor, RuntimeTargetInstance } from \"@prisma-next/framework-components/execution\";\nimport { idbTargetDescriptorMeta } from \"../core/descriptor-meta\";\nexport { idbCodecLookup } from \"../core/codecs\";\n\n// ── Browser-safe DDL apply helpers ────────────────────────────────────────────\n// These are re-exported here (in addition to the CLI-only `./migration` subpath)\n// so browser-side code (e.g. auto-migrate.ts) can import them without pulling\n// `MigrationCLI` → `node:fs` into the client bundle.\nexport { applyOneDdlOp, openAndUpgrade, readMarker, writeMarker } from \"../core/apply-ddl-op\";\nexport type { IdbMarkerRecord, MarkerWriteInput } from \"../core/apply-ddl-op\";\nexport { isIdbDdlOp } from \"../core/migration-factories\";\nexport type {\n IdbDdlOp,\n CreateObjectStoreOp,\n DropObjectStoreOp,\n CreateIndexOp,\n DropIndexOp,\n} from \"../core/migration-factories\";\n\nexport type IdbRuntimeTargetInstance = RuntimeTargetInstance<\"idb\", \"idb\">;\n\nconst idbRuntimeTargetDescriptor: RuntimeTargetDescriptor<\"idb\", \"idb\", IdbRuntimeTargetInstance> = {\n ...idbTargetDescriptorMeta,\n create(): IdbRuntimeTargetInstance {\n return {\n familyId: \"idb\",\n targetId: \"idb\",\n };\n },\n};\n\nexport default idbRuntimeTargetDescriptor;\n"],"mappings":";;;AAqBA,MAAM,6BAA8F;CAClG,GAAG;CACH,SAAmC;EACjC,OAAO;GACL,UAAU;GACV,UAAU;EACZ;CACF;AACF"}
package/package.json ADDED
@@ -0,0 +1,57 @@
1
+ {
2
+ "name": "@prisma-next-idb/target-idb",
3
+ "version": "0.1.0",
4
+ "description": "Prisma Next IDB family — target pack (identity, migration runner, DDL op factories)",
5
+ "license": "MIT",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "keywords": [
10
+ "prisma",
11
+ "prisma-next",
12
+ "indexeddb",
13
+ "offline-first",
14
+ "idb"
15
+ ],
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/prisma-idb/idb-client-generator.git",
19
+ "directory": "packages/prisma-next/target-idb"
20
+ },
21
+ "homepage": "https://prisma-idb.dev/",
22
+ "bugs": {
23
+ "url": "https://github.com/prisma-idb/idb-client-generator/issues"
24
+ },
25
+ "type": "module",
26
+ "exports": {
27
+ ".": "./dist/pack.mjs",
28
+ "./pack": "./dist/pack.mjs",
29
+ "./control": "./dist/control.mjs",
30
+ "./runtime": "./dist/runtime.mjs",
31
+ "./migration": "./dist/migration.mjs",
32
+ "./package.json": "./package.json"
33
+ },
34
+ "main": "./dist/pack.mjs",
35
+ "module": "./dist/pack.mjs",
36
+ "dependencies": {
37
+ "@prisma-next/contract": "^0.14.0",
38
+ "@prisma-next/framework-components": "^0.14.0",
39
+ "@prisma-next/migration-tools": "^0.14.0",
40
+ "pathe": "^2.0.3"
41
+ },
42
+ "devDependencies": {
43
+ "@types/node": "^24.13.2",
44
+ "fake-indexeddb": "^6.2.5",
45
+ "tsdown": "^0.22.3",
46
+ "typescript": "^6.0.3",
47
+ "vitest": "^4.1.9"
48
+ },
49
+ "scripts": {
50
+ "build": "tsdown",
51
+ "dev": "tsdown --watch",
52
+ "check": "tsc --noEmit",
53
+ "test": "vitest run",
54
+ "lint": "prettier --check . && eslint .",
55
+ "format": "prettier --write ."
56
+ }
57
+ }