@smithers-orchestrator/react-reconciler 0.16.5 → 0.16.7

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/package.json +5 -5
  2. package/src/reconciler.js +50 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithers-orchestrator/react-reconciler",
3
- "version": "0.16.5",
3
+ "version": "0.16.7",
4
4
  "description": "Custom React reconciler that renders Smithers host trees",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -47,10 +47,10 @@
47
47
  "bippy": "^0.5.39",
48
48
  "react": "^19.2.5",
49
49
  "react-reconciler": "^0.33.0",
50
- "@smithers-orchestrator/devtools": "0.16.5",
51
- "@smithers-orchestrator/driver": "0.16.5",
52
- "@smithers-orchestrator/errors": "0.16.5",
53
- "@smithers-orchestrator/graph": "0.16.5"
50
+ "@smithers-orchestrator/devtools": "0.16.7",
51
+ "@smithers-orchestrator/errors": "0.16.7",
52
+ "@smithers-orchestrator/driver": "0.16.7",
53
+ "@smithers-orchestrator/graph": "0.16.7"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/bun": "latest",
package/src/reconciler.js CHANGED
@@ -317,6 +317,56 @@ const hostConfig = {
317
317
  return currentUpdatePriority;
318
318
  },
319
319
  /**
320
+ * The remaining methods below are required by react-reconciler >=0.33's
321
+ * host config — the compiled reconciler reads each directly off `$$$config`
322
+ * with no defaults, so missing methods surface as `TypeError: X is not a
323
+ * function` the first time `render` triggers `startUpdateTimerByLane`
324
+ * (which is every commit). Headless host → event timing is "no event"
325
+ * (-1.1 sentinel), event type is null, no suspense, no scheduler telemetry.
326
+ * @returns {number}
327
+ */
328
+ resolveEventTimeStamp() {
329
+ return -1.1;
330
+ },
331
+ /**
332
+ * @returns {string | null}
333
+ */
334
+ resolveEventType() {
335
+ return null;
336
+ },
337
+ /**
338
+ * @returns {void}
339
+ */
340
+ trackSchedulerEvent() { },
341
+ /**
342
+ * @returns {boolean}
343
+ */
344
+ maySuspendCommitOnUpdate() {
345
+ return false;
346
+ },
347
+ /**
348
+ * @returns {boolean}
349
+ */
350
+ maySuspendCommitInSyncRender() {
351
+ return false;
352
+ },
353
+ /**
354
+ * @returns {null}
355
+ */
356
+ getSuspendedCommitReason() {
357
+ return null;
358
+ },
359
+ /**
360
+ * @returns {void}
361
+ */
362
+ requestPostPaintCallback() { },
363
+ /**
364
+ * @returns {boolean}
365
+ */
366
+ suspendOnActiveViewTransition() {
367
+ return false;
368
+ },
369
+ /**
320
370
  * @param {(...args: unknown[]) => void} fn
321
371
  * @param {number} [delay]
322
372
  * @returns {ReturnType<typeof setTimeout>}