chore: add deprecation warnings to event emitter style callbacks, closes #2280