Minor Changes
-
abdb685: Add the
report-input-mutationstransform. It reports, without rewriting, in-place writes toinputinsidefromPromise,fromCallback,createAsyncLogic, andcreateCallbackLogiclogic functions. v6 development builds deep-freeze context, so writing to input built from context throws aTypeErrorat runtime.// reported const decrypt = createAsyncLogic({ run: async ({ input }) => { input.note.text = await decryptText(input.note.text); return input.note; } }); // fix: return a new object const decrypt = createAsyncLogic({ run: async ({ input }) => ({ ...input.note, text: await decryptText(input.note.text) }) });
Patch Changes
- 733da5d: Inline supported named
assignactions as context patches. Report assignments that could change behavior after conversion, such asassign({ items: [] }), for manual migration. Correct thestateInmigration hint to use the current transition state. - Updated dependencies [733da5d]
- Updated dependencies [bdd5b7c]
- Updated dependencies [5adbadf]
- Updated dependencies [36ae907]
- Updated dependencies [022cf02]
- xstate@6.0.0-beta.7