Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor!: use events api for utils with compatibility layer #75

Merged
merged 7 commits into from
Mar 29, 2022

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Mar 25, 2022

This utility allows interchangeable usage of passing either req, res or event to all built-in utilities as bridge to migrate to Events API. (#73)

Internally, toEventHandler upgrades any handlers that are still in a legacy format and promisify them for compatibility.

BREAKING CHANGE: All handle exports and properties are renamed to handler with some backward compatibilities.

BREAKING CHANGE: Legacy handlers are promisified by default

tests are almost untouched to ensure minimum breaking changes

@pi0 pi0 mentioned this pull request Mar 25, 2022
7 tasks
@pi0 pi0 marked this pull request as ready for review March 29, 2022 10:57
@pi0 pi0 merged commit 2cf0f4b into main Mar 29, 2022
@pi0 pi0 deleted the feat/utils-event branch March 29, 2022 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant