Skip to content

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

Merged
pi0 merged 7 commits intomainfrom
feat/utils-event
Mar 29, 2022
Merged

refactor!: use events api for utils with compatibility layer#75
pi0 merged 7 commits intomainfrom
feat/utils-event

Conversation

@pi0
Copy link
Copy Markdown
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 force-pushed the feat/utils-event branch from 02182c3 to 7ad1367 Compare March 29, 2022 10:56
@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