Releases: hellotext/hellotext.js
Releases · hellotext/hellotext.js
v1.2.0
Major additions
Adds support for "preview" mode when the page where the client is activated is opened by the Google previewer. Events tracked in this state will not reach the API.
Other changes
- Adds an internal
Query
class that is responsible for appending our prefix to the queries. - Converts
Response#data
to a getter, now, you can simply get the response withResponse#data
instead ofResponse#data()
.
v1.1.3
Events
Allow clients to subscribe to events emitted by the Hellotext
class. Adds Hellotext.on
and Hellotext.removeEventListener
to subscribe and unsubscribe an event listener.
Full Changelog: v1.1.1...v1.1.3
v1.1.1
What's Changed
- Adds the ability for clients to opt-in and out of en event via the event emitter. Exposes
Hellotext.on
to subscribe events andHellotext.disconnect
. - Wraps response from the API in a dedicated
Response
class that exposes methods to check the boolean state of the response. - Improves README.
- Revision by @rockwellll in #1
- return an instance of
Response
object by @rockwellll in #4
Full Changelog: https://github.com/hellotext/hellotext.js/commits/v1.1.1