Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

Update filter type to allow synchronous filters - #100

Merged
shuhei merged 2 commits into
zalando-incubator:masterfrom
shuhei:sync-filter
Jan 28, 2020
Merged

Update filter type to allow synchronous filters#100
shuhei merged 2 commits into
zalando-incubator:masterfrom
shuhei:sync-filter

Conversation

@shuhei

@shuhei shuhei commented Jan 27, 2020

Copy link
Copy Markdown
Contributor

Updating ServiceClientRequestFilter type to allow synchronous filter methods. In the implementation, they can return a non-promise value as written in README and tested in the unit tests.

@shuhei

shuhei commented Jan 27, 2020

Copy link
Copy Markdown
Contributor Author

Is this a breaking change? It might be a breaking change only for users who use filters outside of the filters option.

@ruiaraujo

Copy link
Copy Markdown
Contributor

This is just a type fix.The current code already converts everything to promise during the filter chain handling.

@ruiaraujo

Copy link
Copy Markdown
Contributor

👍

@ruiaraujo

Copy link
Copy Markdown
Contributor

We should refactor that part of the code with async await and skip useless promise posting as an optimization.

@shuhei

shuhei commented Jan 28, 2020

Copy link
Copy Markdown
Contributor Author

👍

@shuhei
shuhei merged commit 29822c5 into zalando-incubator:master Jan 28, 2020
@grassator

Copy link
Copy Markdown
Contributor

It think this relates to this never ending discussion about Awaited type

@shuhei

shuhei commented Feb 5, 2020

Copy link
Copy Markdown
Contributor Author

Published as 0.11.3.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants