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(handler): Server and environment agnostic handler #37

Merged
merged 93 commits into from
Dec 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
ed27c22
wait wot
enisdenjo Oct 26, 2022
9fcc4e3
just async
enisdenjo Oct 27, 2022
e2c1cf5
better authenticate
enisdenjo Oct 27, 2022
4d30e7e
flush all pending on next
enisdenjo Oct 27, 2022
d91eb6b
cleanup?
enisdenjo Oct 27, 2022
458bc93
onConnect
enisdenjo Oct 27, 2022
885be45
better context
enisdenjo Oct 27, 2022
8a66a50
event from msg
enisdenjo Oct 31, 2022
3191dcf
abs imports
enisdenjo Oct 31, 2022
42b08e4
getHeader
enisdenjo Oct 31, 2022
5d69a56
export handler-fetch
enisdenjo Oct 31, 2022
5ed368b
raw json parse error
enisdenjo Oct 31, 2022
54b0f9d
flatten raw errors for parsing
enisdenjo Oct 31, 2022
5828db3
full error for now
enisdenjo Oct 31, 2022
fe2fc32
no name doe
enisdenjo Oct 31, 2022
bb8ff9f
actually ping
enisdenjo Nov 1, 2022
280a713
cleanup and messages dispatch fix
enisdenjo Nov 1, 2022
615e432
handler
enisdenjo Nov 1, 2022
241a0ac
use/fetch
enisdenjo Nov 1, 2022
559da78
use fetch
enisdenjo Nov 1, 2022
99b3359
while !done
enisdenjo Nov 1, 2022
28d65b9
no complete var
enisdenjo Nov 1, 2022
2835bdc
mutable deferred
enisdenjo Nov 1, 2022
308aeee
adjust generic order
enisdenjo Nov 5, 2022
0266a1b
response body can be just a string
enisdenjo Dec 2, 2022
b83ca5b
request generics have defaults
enisdenjo Dec 2, 2022
b4bd7c2
error stack might be sensitive
enisdenjo Dec 2, 2022
16e5d16
application/graphql+json is not a request content-type

enisdenjo Dec 2, 2022
e3b8321
begin with handler tests
enisdenjo Dec 2, 2022
18f70b5
expect content-type to be application/json
enisdenjo Dec 2, 2022
75adba9
improved thandler
enisdenjo Dec 2, 2022
10bb252
begin testing distinct connections mode and fix stream iterator
enisdenjo Dec 2, 2022
3e88889
more tests
enisdenjo Dec 2, 2022
928db9c
testing ping pong needs a key
enisdenjo Dec 2, 2022
ae519c6
implement throw and return
enisdenjo Dec 2, 2022
97d370c
test error bubbling
enisdenjo Dec 2, 2022
014cfc0
await complete and improvements
enisdenjo Dec 2, 2022
2dee4d7
as context instead of assertion
enisdenjo Dec 2, 2022
d26db7b
expect application/json
enisdenjo Dec 2, 2022
9cf2436
comments
enisdenjo Dec 2, 2022
72317ad
use default test runner
enisdenjo Dec 4, 2022
1be46ff
single connection mode tests, refactor and fixes
enisdenjo Dec 4, 2022
995e50b
reorder
enisdenjo Dec 4, 2022
466bf47
slim down and start client tests
enisdenjo Dec 4, 2022
7a01fad
return after done
enisdenjo Dec 4, 2022
35bd4b0
fixes and refactors
enisdenjo Dec 4, 2022
ff77580
fixes and refactor
enisdenjo Dec 4, 2022
1805c2e
tsubscribe resolves results
enisdenjo Dec 4, 2022
99613d1
iterator in for loop
enisdenjo Dec 4, 2022
7e2075b
make sure abort completes the response
enisdenjo Dec 4, 2022
e516c32
expect in sync
enisdenjo Dec 4, 2022
6ae5872
no async
enisdenjo Dec 4, 2022
dba3503
tfetch can dispose
enisdenjo Dec 4, 2022
69a7684
simplify tsubscribe
enisdenjo Dec 4, 2022
2dfc0a5
throw on error
enisdenjo Dec 4, 2022
f68bf42
more client tests
enisdenjo Dec 4, 2022
644f2e6
dispose in next tick
enisdenjo Dec 4, 2022
9d4368c
more tests
enisdenjo Dec 4, 2022
6c1d864
begin single connection mode tests
enisdenjo Dec 4, 2022
29b537e
upgrade jest and migrate
enisdenjo Dec 5, 2022
f354643
onOperation
enisdenjo Dec 6, 2022
ab4b5d5
testkit
enisdenjo Dec 6, 2022
a15614f
lazy client test
enisdenjo Dec 6, 2022
88636b8
use sleep instead of wait
enisdenjo Dec 6, 2022
2e349f5
more client tests
enisdenjo Dec 6, 2022
cabf410
non-lazy client tests
enisdenjo Dec 16, 2022
7c4629d
signal can be aborted before handler resolves and dont double cancel
enisdenjo Dec 16, 2022
e9f0694
more tests
enisdenjo Dec 16, 2022
c874d2d
stream needs to be aborted
enisdenjo Dec 17, 2022
e4ca13f
detect open handles in ci and timeout
enisdenjo Dec 17, 2022
9ab7f36
stream when stream
enisdenjo Dec 17, 2022
1bb9ec4
complete lla connections when client disposes
enisdenjo Dec 17, 2022
d630268
wait for operation to make sure it succeeded
enisdenjo Dec 17, 2022
149e1d1
one tick skip, second tick dispose and third tick resolve
enisdenjo Dec 17, 2022
00aa850
retry tests
enisdenjo Dec 17, 2022
333a46a
request context
enisdenjo Dec 18, 2022
1e8d076
more headers for safe sse
enisdenjo Dec 18, 2022
a9d4bc8
eslint comments
enisdenjo Dec 18, 2022
bf1506d
use http
enisdenjo Dec 18, 2022
5b1bcb5
entry point expand typedoc
enisdenjo Dec 18, 2022
fe1f93a
use http2
enisdenjo Dec 18, 2022
65d185c
http docs
enisdenjo Dec 18, 2022
bf64dac
fetch docs
enisdenjo Dec 18, 2022
74ec93b
request headers must have get
enisdenjo Dec 19, 2022
c84c032
update readme
enisdenjo Dec 19, 2022
b83eee6
adjust recommends
enisdenjo Dec 19, 2022
4e14fed
use express
enisdenjo Dec 19, 2022
354e7b1
update docs
enisdenjo Dec 19, 2022
95906c9
use fastify
enisdenjo Dec 19, 2022
2feb239
comment on how to install express
enisdenjo Dec 19, 2022
efc36f5
await handler
enisdenjo Dec 20, 2022
7ece585
simplify, errors should be handled by users
enisdenjo Dec 20, 2022
03b3545
bun simplification too
enisdenjo Dec 20, 2022
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
3 changes: 2 additions & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,5 @@ jobs:
- name: Install
run: yarn install --immutable
- name: Test
run: yarn test --forceExit
timeout-minutes: 1 # detectOpenHandles will probably hang if leaking
run: yarn test --detectOpenHandles
Loading