| 1 | "effect/TestClock#adjustWith": |
| 2 | replacement: "Effect.zipWith(effect, TestClock.adjust(duration), (result) => result, { concurrent: true })" |
| 3 | note: "V4 removed adjustWith. Run the tested effect and clock adjustment concurrently and retain the tested effect's result." |
| 4 | "effect/TestClock#currentTimeMillis": |
| 5 | replacement: "Clock.currentTimeMillis" |
| 6 | note: "Read time from the active Clock reference; under it.effect or TestClock.layer() this is virtual time." |
| 7 | "effect/TestClock#Data": |
| 8 | replacement: "TestClock.TestClock.State" |
| 9 | note: "The nearest state model is State, with timestamp and a private latch-based sleep queue. V4 exposes no full state getter or setter." |
| 10 | "effect/TestClock#defaultTestClock": |
| 11 | replacement: "TestClock.layer()" |
| 12 | note: "The v4 layer creates an epoch-based test clock and captures the surrounding live Clock automatically; it no longer needs TestAnnotations or TestLive." |
| 13 | "effect/TestClock#makeData": |
| 14 | replacement: "TestClock.layer() + TestClock.setTime(instant)" |
| 15 | note: "State injection was removed. Build the layer, then set initial time; seeded pending sleeps cannot migrate because the queue is private." |
| 16 | "effect/TestClock#save": |
| 17 | replacement: "none" |
| 18 | note: "Full clock snapshots including pending sleeps are no longer public. For timestamp-only restoration, read Clock.currentTimeMillis and later call TestClock.setTime(savedMillis)." |
| 19 | "effect/TestClock#sleeps": |
| 20 | replacement: "none" |
| 21 | note: "The pending-sleep queue is private. Test observable behavior by forking sleepers, adjusting time, and joining or asserting the fibers." |
| 22 | "effect/TestClock#testClock": |
| 23 | replacement: "TestClock.testClockWith(Effect.succeed)" |
| 24 | note: "V4 exposes callback-based access to the active test clock; use testClockWith directly when possible." |