@solidrt/core 0.0.72 → 0.0.73

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/AGENTS.md CHANGED
@@ -116,7 +116,7 @@ tsconfig.json - the two load-bearing lines are jsx + jsxImportSource:
116
116
  ```
117
117
 
118
118
  Peer deps @solidjs/signals and @solidjs/universal must match (currently
119
- 2.0.0-rc.13); bun resolves them from peerDependencies. On a version bump,
119
+ 2.0.0-rc.14); bun resolves them from peerDependencies. On a version bump,
120
120
  `bun install` only warns ("incorrect peer dependency") and keeps the old
121
121
  ones, and `bun update solid-js @solidjs/signals @solidjs/universal` does
122
122
  not read the pin either: it adds all three to package.json at registry
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidrt/core",
3
- "version": "0.0.72",
3
+ "version": "0.0.73",
4
4
  "license": "MIT",
5
5
  "funding": "https://github.com/sponsors/wellawaretech",
6
6
  "author": "Antoine van Wel",
@@ -33,12 +33,12 @@
33
33
  "AGENTS.md"
34
34
  ],
35
35
  "devDependencies": {
36
- "@solidrt/flux-types": "0.0.72",
37
- "@solidrt/test": "0.0.72"
36
+ "@solidrt/flux-types": "0.0.73",
37
+ "@solidrt/test": "0.0.73"
38
38
  },
39
39
  "peerDependencies": {
40
- "@solidjs/signals": "2.0.0-rc.13",
41
- "@solidjs/universal": "2.0.0-rc.13",
42
- "solid-js": "2.0.0-rc.13"
40
+ "@solidjs/signals": "2.0.0-rc.14",
41
+ "@solidjs/universal": "2.0.0-rc.14",
42
+ "solid-js": "2.0.0-rc.14"
43
43
  }
44
44
  }
@@ -123,11 +123,14 @@ declare module "sol:dev" {
123
123
  * (the list_debug / call_debug MCP tools). `args` arrives JSON-parsed; the
124
124
  * return value must be JSON-serializable and synchronous (an async command's
125
125
  * Promise is not awaited - the call errors). Re-registering a name replaces
126
- * it; registrations reset on hot
127
- * reload, so register at module init. Callable in every build, but only dev
128
- * clients ever invoke commands.
126
+ * it; registrations reset on hot reload, so a command over app-wide state
127
+ * is registered at module init. Returns the unregister: a command that
128
+ * reads one screen's state is registered when the screen mounts and
129
+ * unregistered in its onCleanup, so a caller never reads a dead screen.
130
+ * A stale unregister (the name registered again since) removes nothing.
131
+ * Callable in every build, but only dev clients ever invoke commands.
129
132
  */
130
- export function registerDebug(name: string, fn: (args?: any) => unknown): void
133
+ export function registerDebug(name: string, fn: (args?: any) => unknown): () => void
131
134
  /**
132
135
  * Report where the app is, for tooling: a string naming the current
133
136
  * location (a router's path; an app routing by hand may report its own),
@@ -248,6 +251,13 @@ declare module "sol:render" {
248
251
  // anywhere else. App time there is frame / frameRate and nothing else: no
249
252
  // frame runs unless one is asked for.
250
253
  declare module "sol:test" {
254
+ /**
255
+ * Installs an RGBA8 image (`width` x `height`, tightly packed) as the
256
+ * camera: every camera the app opens from now on shows it, approved at
257
+ * once with no device, and an open one shows it from its next frame.
258
+ * Throws on a size that does not match the pixels.
259
+ */
260
+ export function camera(width: number, height: number, pixels: Uint8Array): void
251
261
  /**
252
262
  * Runs one frame: timers due by its time fire, then frame callbacks and
253
263
  * the flush, then the draw if anything demanded one. Fulfills once the