Add hook_entity_build_defaults_alter event, cherry picked and updated from the 1.x branch
Update to latest drupal/coder and fix errors, thanks shaktik!
Bugfix: change EntityPresaveEvent::getOriginalEntity to be nullable
All events have their namespace changed and are moved to submodules. Migrating from version 1 requires some work. The submodule for the given event has to be enabled and the namespace of the used event has to be updated.