Update child emulator and improve manifest dataset download
Contents (#668)
IMPORTANT: There are 2 breaking changes.
Enhancements
- 💥 BREAKING CHANGE: Update
ChildEmulatorto useEventReplayer, support schema-compliant events and attributes, and support heartbeats and delivery acknowledgement events. This significantly simplifies the emulator - 💥 BREAKING CHANGE: Remove
ChildEmulator.from_file - Download manifest datasets to same directory by default
Refactoring
- Move
ServicePatcherinto its own module
Upgrade instructions
💥 Update `ChildEmulator` to use `EventReplayer` and full events
Give events (including attributes) that satisfy the service communication schema to child emulators.
💥 Remove `ChildEmulator.from_file`
Load the JSON file separately and pass the events into the ChildEmulator constructor.