You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(MAJOR) Postgres BIGINT arrays are returned as number[] instead of string[]
(MAJOR) Renamed ActionHandler to RequestHandler, Handler to Protocol, HttpHandler to HttpProtocol and WebsocketHandler to WebsocketProtocol. Old names are deprecated.
(MAJOR) Default for VSERVER_TLS is now false instead of true.
(MAJOR) Renamed config option VSERVER_RESTPORT to VSERVER_HTTPPORT. Old name is deprecated.
(MAJOR) Database.addListener(type) and ActionHandler.addUpdateHandler(listener) are no longer available, use ServerEventEmitter.get(type).subscribe(listener) instead.
(MAJOR) ActionHandlers are no longer created for each request, but for every version of the api. Session information should now be saved in message.session instead.
(MAJOR) ActionHandler.addTerminationHandler(listener) is no longer available. Use message.response.on("close",listener) instead.
(MAJOR) Responses default to 'application/json' content type instead of 'text/html'. Set message.requestHeaders["Content-Type"]='text/html' to change it back.
(MINOR) All methods added with addMessageHandler receive a second argument 'message' which can be used to set the response headers, status code and access more information about the request.
(MINOR) Added basic metrics gathering such as active connections, request per second and latency.
(MINOR) Added a simple cache that can be used. Turn it off by setting VSERVER_CACHING to false.
(MINOR) Can use websockets and http requests on the same port.
(MINOR) Makes use of a connection pool for the database instead of a single connection for significant performance improvements. Use VSERVER_DBMINCONNECTIONS and VSERVER_DBMAXCONNECTIONS to configure this.
(MINOR) Option to change log format.
(MINOR) Added an option for requesting (the status of) a list of transactions.
(MINOR) Can now wait for a transaction to be processed before receiving a response, rather than receiving a push message.
(MINOR) New option to set a maximum message size with VSERVER_MAXPAYLOADSIZE.
(MINOR) Added event emitters to many components to easily hook into them.
Request types made case insensitive
Uses postgres LISTEN to be notified of new blocks which reduces the duration for a processing transaction to receive a response.
Various other bugfixes and performance improvements.