effect-cf 0.44.0 → 0.44.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # effect-cf
2
2
 
3
+ ## 0.44.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#180](https://github.com/danieljvdm/effect-cf/pull/180) [`c94adc5`](https://github.com/danieljvdm/effect-cf/commit/c94adc506142d5d30095e9a05d449fe407c568b3) Thanks [@danieljvdm](https://github.com/danieljvdm)! - Keep Durable Object native callbacks on microtask scheduling through completion so restoring the caller context cannot leave an input gate waiting on a blocked timer.
8
+
3
9
  ## 0.44.0
4
10
 
5
11
  ### Minor Changes
@@ -23,7 +23,7 @@ const runNativeCallback = Effect.fnUntraced(function* (operation) {
23
23
  const runPromise = yield* FiberSet.makeRuntimePromise();
24
24
  return yield* Effect.callback((resume) => {
25
25
  try {
26
- nativePromise = operation((effect) => runPromise(Effect.provideContext(Effect.exit(effect), callbackContext)));
26
+ nativePromise = operation((effect) => runPromise(Effect.provideContext(Effect.exit(effect), callbackContext), { scheduler: callbackScheduler }));
27
27
  } catch (cause) {
28
28
  resume(Effect.fail(cause));
29
29
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "effect-cf",
3
- "version": "0.44.0",
3
+ "version": "0.44.1",
4
4
  "description": "Effect-native primitives for Cloudflare Workers and bindings.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -50,7 +50,9 @@ export const runNativeCallback = Effect.fnUntraced(function* <A, E, R, B>(
50
50
  return yield* Effect.callback<B, unknown>((resume) => {
51
51
  try {
52
52
  nativePromise = operation((effect) =>
53
- runPromise(Effect.provideContext(Effect.exit(effect), callbackContext)),
53
+ runPromise(Effect.provideContext(Effect.exit(effect), callbackContext), {
54
+ scheduler: callbackScheduler,
55
+ }),
54
56
  );
55
57
  } catch (cause) {
56
58
  resume(Effect.fail(cause));