Releases: isaacgr/jaysonic
v3.6.0
Bugfix/#123/reconnect after receiving server disconnected (#124)
- Call serverDisconnected only if connection was closed without error
- it should otherwise be handled by the .on('error') event
- Refs #123
- Reset the remainingRetries after a successful connection
Bugfix/#125/ci tests fail node 18 20 (#126)
-
Add nodejs 18.x and 20.x to CI workflow
-
Update tests to use the Connection: close header for the http clients
-
use 127.0.0.1 instead of 'localhost' for chai httprequest client
-
Add the 'close' and 'error' event handlers on the http client protocol connector
before the request is written to the server.
v3.5.1
v3.5.0
v3.4.0
Release Notes
- Add 'this.protocol' attribute to factory classes 62e6781
-
Update README for http ssl option
-
Add sslOptions attribute and spread that for the https server options
-
Update https test server to use ssl option
-
Add new emptyBuffer method to dump the contents of the message buffer
-
Push request chunks to message buffer and validate entire buffer
- no delimiter used since one is not typically sent for large json data
-
Add test for emptyBuffer
-
Register 'end' event for http listener to emptyBuffer on response complete
-
Call on('end') listener outside of data listener and check if buffer is empty
- prevents maxEventListeners warning
- dont try to parse empty buffer string
-
Add generic _removeFromArray method
- used to remove clients from this.clients
- used to remove pendingRequests from this.pendingRequests
- Return false from _maybeHandleRequest if notification received
- Dont send a response to a batch request if the respnse is empty
- Only attempt to get results for batch request messages if they are not notifications
Changes
v3.3.2
Release Notes
Use setResponseStatus to overwrite response status code
- rename from setResponseHeaders
- add class attribute for headers and status code
- if status code is set, then dont use the one generated from the message
(this allows a user to overwrite the status if its not one of the ones in errorToStatus) - send response for notification in gotNotification
- Fix gotNotification doc
Use .end() to send body data in response.write() and writeHead()
Fix doc for gotError
Add tests for setResponseStatus and overrides
Call messageBuffer and _waitForData when client request comes in
Update doc for clientConnected
Fix typo with jsdoc for ERR_MSGS
Changes
v3.3.1
v3.3.0
Release Notes
Task/fix ws server connection handling (#101)
-
Update .end() method for ws client factory to include code and reson
- update docs for ws client protocol
-
Update ws server protocol to listen for "close" event
-
Add tests for clientConnected and clientDisconnected
-
Register the event listener for clientDisconnected within buildProtocol
- 'close' for ws and http
- 'end' for tcp
-
Update doc for buildProtocol
Changes
v3.2.0
Release Notes
-
Add newly connected clients to this.clients list
- update all previous instances to use this.clients
- clear this.client list when _removeClients is called
- update existing tests to use this.clients
- add tests to verify that the list is cleared on close
-
Call _removeClients on server close
-
Setup listeners for ws server and clear this.clients when _removeClients called
-
Remove all factory listener events
- call clientConnected and clientDisconnected on the factory directly
- remove .on('error') handler for factory since this seems unnecessary
-
Call 'reject' on server.listen() if server receives 'error' event
-
Add tests for rejecting listen() based on 'error' event
-
Add 'error' event listener test
-
Pass protocol instance to clientConnected
-
Overwrite clientConnected and clientDisconnected methods
- http protocol instance is based on the request, not on the connected client
-
Use JsonRpcServerProtocol instance in clientConnected and clientDisconnected methods
-
Update babel and jsdoc
-
Add tests for clientConnected and clientDisconnected methods
-
Update docs for clientConnected and clientDisconnected
Differences
v3.1.1
v3.1.0
Release Notes
- Bugfix/#94/indefinite retry attempts (#95) cbb2820
- Close websocket client connections after use in test. 8233f50
- Use httpbin for notification test 49acacf
- Bump ws from 7.3.1 to 7.4.6 (#90) 35a7fc5
- Bump lodash from 4.17.20 to 4.17.21 (#87) 50a3584
- Bump hosted-git-info from 2.8.8 to 2.8.9 (#88) e37bee5
- Bump postcss from 7.0.35 to 7.0.36 (#91) a089d99
- Bump path-parse from 1.0.6 to 1.0.7 (#92) 10fce85
- Bump browserslist from 4.14.5 to 4.16.8 (#96) d247e4f
- Bump y18n from 4.0.0 to 4.0.3 (#97) 663f013
- Update README.md 38617a2