This is a new and shiny first major release for `metarhia-jstp`.
Changes include API refactoring and improvements, implementations of
CLI, sessions, and application versions, native addon build optimizations,
lots of bug fixes, test coverage increase, and other, less notable changes.
This release also denotes the bump of the protocol version to v1.0.
The only difference from the previous version of the protocol is that
"old" heartbeat messages (`{}`) are now deprecated and `ping`/`pong`
messages must be used for this purpose instead.
Notable changes:
* src,build: improve the native module subsystem (Alexey Orlenko)
* build: compile in ISO C++11 mode (Alexey Orlenko)
* build: improve error handling (Alexey Orlenko)
* lib: refactor record-serialization.js (Alexey Orlenko)
* parser: fix a possible memory leak (Alexey Orlenko)
* protocol: change the format of handshake packets (Alexey Orlenko)
* parser: make parser single-pass (Mykola Bilochub)
* parser: remove special case for '\0' literal (Mykola Bilochub)
* parser: fix bug causing node to crash (Mykola Bilochub)
* client: drop redundant callback argument (Alexey Orlenko)
* client: handle errors in connectAndInspect (Alexey Orlenko)
* socket,ws: use socket.destroy() properly (Alexey Orlenko)
* cli: add basic implementation (Mykola Bilochub)
* connection: fix error handling in optional cbs (Alexey Orlenko)
* test: add JSON5 specs test suite (Alexey Orlenko)
* lib: change event signature (Denys Otrishko)
* lib: add address method to Server (Denys Otrishko)
* parser: implement NaN and Infinity parsing (Mykola Bilochub)
* parser: improve string parsing performance (Mykola Bilochub)
* lib: optimize connection events (Denys Otrishko)
* lib: refactor server and client API (Denys Otrishko)
* lib,src: rename term packet usages to message (Denys Otrishko)
* lib: emit events about connection messages (Denys Otrishko)
* lib: implement API versioning (Denys Otrishko)
* lib: allow to set event handlers in application (Denys Otrishko)
* lib: allow to broadcast events from server (Denys Otrishko)
* connection: make callback method private (Alexey Orlenko)
* lib: implement sessions (Mykola Bilochub)
* connection: use ping-pong instead of heartbeat (Dmytro Nechai)
PR-URL: https://github.com/metarhia/jstp/pull/311
Reviewed-By: Dmytro Nechai <nechaido@gmail.com>
Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com>
Reviewed-By: Timur Shemsedinov <timur.shemsedinov@gmail.com>
Reviewed-By: Denys Otrishko <shishugi@gmail.com>