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

feat: allow webhookCallback to infer adapter types #565

Merged
merged 37 commits into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
de90521
feat: allow `webhookCallback` to infer adapter types
winstxnhdw May 6, 2024
dfa8f07
Merge branch 'main' into typesafe-webhook-adapters
winstxnhdw May 6, 2024
d78ea3f
feat: replace `FrameworkAdapter` with typed adapter
winstxnhdw May 6, 2024
15e4b43
refactor: can finally drop this `any`
winstxnhdw May 6, 2024
1989bde
docs: deprecate redundant `webhookCallback` overload
winstxnhdw May 6, 2024
499bc57
refactor: use generics to automatically resolve return types
winstxnhdw May 6, 2024
a0e691a
chore: import as `type`
winstxnhdw May 6, 2024
82bcf80
refactor: abstract handlers into a single type
winstxnhdw May 6, 2024
794453c
Merge branch 'main' into typesafe-webhook-adapters
winstxnhdw May 7, 2024
97423e9
fix: `hono` context does not contain `statusText`
winstxnhdw May 7, 2024
fdf125b
fix: `handlerReturn` should not be optional
winstxnhdw May 7, 2024
5554d66
refactor: use a single overload to cover all adapters
winstxnhdw May 7, 2024
7f9fce6
fix: use correct types for `express`, `fastify` and `lambda`
winstxnhdw May 7, 2024
d3ee2df
fix: use correct types for `oak`
winstxnhdw May 7, 2024
0756902
style: follow naming conventions of respective frameworks
winstxnhdw May 7, 2024
9489402
Merge branch 'main' into typesafe-webhook-adapters
KnorpelSenf May 9, 2024
f263265
Merge branch 'main' into typesafe-webhook-adapters
winstxnhdw May 9, 2024
2903235
Merge branch 'main' into typesafe-webhook-adapters
KnorpelSenf May 9, 2024
14020bf
Merge branch 'main' into typesafe-webhook-adapters
winstxnhdw May 12, 2024
b9087ff
feat: add some tests first
winstxnhdw May 12, 2024
dbda025
refacotr: make default generic `void`
winstxnhdw May 12, 2024
e80370c
fix: `koa` has no `body` in `request`
winstxnhdw May 13, 2024
6f3a62b
feat: add test for `http`
winstxnhdw May 13, 2024
d92f58e
fix: add permission flags to overcome permission errors
winstxnhdw May 13, 2024
f3b67f0
feat: add remaining tests
winstxnhdw May 13, 2024
45e3198
fix: ignore deprecation warning
winstxnhdw May 13, 2024
aae3884
test: only test types of adapters
KnorpelSenf May 13, 2024
4a1967c
chore: remove unnecessary reference
winstxnhdw May 13, 2024
38de47d
abstract args over handler calls
KnorpelSenf May 13, 2024
7c6c5b5
refactor: use braces for easier maintenance
winstxnhdw May 14, 2024
4a37cff
chore: remove redundant `handlerReturn`
winstxnhdw May 14, 2024
3b4d2e2
chore: remove `SupportedFrameworks`
winstxnhdw May 14, 2024
3d976e2
Merge branch 'main' into typesafe-webhook-adapters
winstxnhdw May 14, 2024
f235b7d
fix(koa): get `body` from `ctx.request`
winstxnhdw May 14, 2024
50e38ef
fix: use `bodyParser` stub
winstxnhdw May 14, 2024
43624ec
fix: align version of `koa-bodyparser` with types
winstxnhdw May 14, 2024
a51f27a
refactor: import `bodyParser` type only
winstxnhdw May 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Loading