effect 3.2.5 → 3.2.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.
@@ -1204,6 +1204,7 @@ const provideSomeRuntime = dual<
1204
1204
  const patchFlags = runtimeFlags.diff(runtime.defaultRuntime.runtimeFlags, rt.runtimeFlags)
1205
1205
  return core.uninterruptibleMask((restore) =>
1206
1206
  core.withFiberRuntime((fiber) => {
1207
+ const oldContext = fiber.getFiberRef(core.currentContext)
1207
1208
  const oldRefs = fiber.getFiberRefs()
1208
1209
  const newRefs = FiberRefsPatch.patch(fiber.id(), oldRefs)(patchRefs)
1209
1210
  const oldFlags = fiber._runtimeFlags
@@ -1213,7 +1214,7 @@ const provideSomeRuntime = dual<
1213
1214
  fiber.setFiberRefs(newRefs)
1214
1215
  fiber._runtimeFlags = newFlags
1215
1216
  return fiberRuntime.ensuring(
1216
- core.provideSomeContext(restore(self), rt.context),
1217
+ core.provideSomeContext(restore(self), Context.merge(oldContext, rt.context)),
1217
1218
  core.withFiberRuntime((fiber) => {
1218
1219
  fiber.setFiberRefs(FiberRefsPatch.patch(fiber.id(), fiber.getFiberRefs())(rollbackRefs))
1219
1220
  fiber._runtimeFlags = runtimeFlags.patch(rollbackFlags)(fiber._runtimeFlags)
@@ -1,4 +1,4 @@
1
- let moduleVersion = "3.2.5"
1
+ let moduleVersion = "3.2.7"
2
2
 
3
3
  export const getCurrentVersion = () => moduleVersion
4
4