@pikku/kysely-sqlite 0.12.7 → 0.12.8

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/package.json +5 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @pikku/kysely-sqlite
2
2
 
3
+ ## 0.12.8
4
+
5
+ ### Patch Changes
6
+
7
+ - 66f3dae: Move `@pikku/core` from `dependencies` to `peerDependencies` in the last packages that still declared it as a regular dependency.
8
+
9
+ `@pikku/core` holds a single `pikkuState` registry and must resolve to exactly one copy at runtime — every wiring (workflows, RPCs, queue workers, middleware) registers into the copy it imports, and the runner reads the copy it imports. 35 packages already declare core as a peer for this reason; these six were the stragglers. Because they carried a regular `@pikku/core` dependency, bumping any one of them could leave a second, older core locked in a consumer's tree, splitting the registry so wirings silently fail to resolve (surfaced as `[PKU717] Multiple @pikku/core versions installed`).
10
+
11
+ Making core a peer everywhere means the consuming app provides the one copy (the react/react-dom singleton pattern), so duplication is structurally impossible. `@pikku/core` is also kept as a devDependency in each package so it still builds/typechecks standalone.
12
+
13
+ Backward-compatible for consumers that already list `@pikku/core` directly (every template does). A consumer that only pulled core transitively now gets a loud install-time peer warning instead of a silent runtime split — strictly better.
14
+
15
+ - Updated dependencies [ded4f90]
16
+ - @pikku/core@0.12.54
17
+
3
18
  ## 0.12.7
4
19
 
5
20
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pikku/kysely-sqlite",
3
- "version": "0.12.7",
3
+ "version": "0.12.8",
4
4
  "author": "yasser.fadl@gmail.com",
5
5
  "license": "MIT",
6
6
  "module": "dist/src/index.js",
@@ -13,11 +13,14 @@
13
13
  "prepublishOnly": "yarn build"
14
14
  },
15
15
  "dependencies": {
16
- "@pikku/core": "^0.12.44",
17
16
  "@pikku/kysely": "^0.13.0",
18
17
  "kysely": "^0.29.0"
19
18
  },
19
+ "peerDependencies": {
20
+ "@pikku/core": "^0.12.54"
21
+ },
20
22
  "devDependencies": {
23
+ "@pikku/core": "^0.12.54",
21
24
  "typescript": "^6.0.3"
22
25
  },
23
26
  "exports": {