All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
0.8.0 - 2019-04-05
AbstractRendererLeaf#archiver
setter, for the private#_archiver
property.AbstractRendererLeaf#_renderArchiverRequests
method; this method encapsulates code previously called in#postHandshake
, opening it up to be overridden by child classes.AbstractRendererLeaf#_getArchiverRequestsToRender
method; this method encapsulates code previously called in#postHandshake
(& then#_renderArchiverRequests
), opening it up to be overridden by child classes.
ConversationDataIncluderLeaf
now supports persisting viasessionStorage.
This is enabled by default, but can be disabled with a constructor parameter.
0.7.0 - 2018-08-14
This release adds a couple of new abstract leafs for persisting & rendering messages,
as well as fixes a bug that was causing an error to be thrown in Safari when using the TalkingLeaf
,
that'd result in the whole client (and usually surrounding app, depending on usage & implementation) to stop working.
AbstractArchiverLeaf
- Abstract class for archiving leafs, that provide a means to store & retrieve messages of types.SessionStorageArchiverLeaf
- an archiving leaf that stores messages using thesessionStorage
api.AbstractRendererLeaf
- Abstract class for rendering leafs, that provide a means of rendering messages, and optionally take anArchiver
as their first parameter, that they can use to display previously sent messages.DebugRendererLeaf
- a rendering leaf that 'renders' all messages to the console viadebug
.
TalkingLeaf
no longer instances a newAudioContext
as the default value for it'saudioContext
constructor parameter.ClientMouth
already does this, but checks ifAudioContext
is actually supported first, meaning we can just remove the default parameter, rather than perform the check twice.
0.6.2 - 2018-08-02
- Fixed
ConversationDataIncluderLeaf
using the wrong property for setting the context (wasconversationContext
and now correctly usescontext
).
0.6.1 - 2018-07-25
- Fixed
ConversationDataIncluderLeaf
attempting to call a method that isn't defined on it's class.
0.6.0 - 2018-07-25
- New Leaf:
ConversationDataIncluderLeaf
, which allows easy including of the store & context of a conversation in every sent message.
0.5.0 - 2018-07-24
SendInputQueryOnFormSubmitLeaf
export toindex.js
.ToggleDisabledOnConnectLeaf
export toindex.js
.ScrollToPositionOnLetterLeaf
export toindex.js
.SessionStorageUserIdLeaf
export toindex.js
.e:status.handshake
event toEmitStatusMessageEventsLeaf
, which is emitted wheneverpostHandshake
is called.
0.4.0 - 2018-07-24
- New Leaf:
SessionStorageUserIdLeaf
, which usessessionStorage
to persist auserId
.
CookieUserIdLeaf
now takes a time in milliseconds as it's second constructor parameter to use as the expiration time for the cookie it sets. This defaults to a value of 7 days.
0.3.0 - 2018-07-23
- Replaced calls to
console
with calls todebug
. Namespaces are<package-name>:<class-name>
- Replaced usage of object spread operator in
SendEventOnHandshakeLeaf
withObject.assign
, as it just makes life easier when usebabel
(since it's technically still a proposal). SendEventOnHandshakeLeaf
now takes an object as it's third constructor parameter:data
.CompositeBSClient
ssendQuery
&sendEvent
methods now use theirdata
parameter properly.
0.2.0 - 2018-06-19
Some minor cleanup, automation, and fixes. Also added some warnings in the userId
leafs
when the userId
is set to a value that's not of type string
or null
.
This release removes the whole .idea folder, which might mess-up this project in JetBrains IDEs.
You can fix this by just copying the deleted files from v0.1.1 to your .idea folder, or by just deleting the project & re-checking it out again from source.
Sorry in advance - it's easier to rip the bandage off now, vs later down the line.
npm version
script to help automate bits and bobs, making it easier & quicker to release. (73bc733)
AbstractUserIdLeaf
(& by inheritance child leafs) will now print a warning to the console when a supplement method encounters auserId
value that's notnull
or of typestring
. (66c7846)StaticUserIdLeaf
&CookieUserIdLeaf
leafs will now print a warning to the console when their setters are provided a value that's notnull
or of typestring
. (f76b871)- Made some minor grammatical corrections to, and removed trailing whitespace from,
both the
README.md
andCHANGELOG.md
files. (a28b471, f45b923)
@stampit/stamp
optional dependency, as it screws overnpm
despite being optional. Once this package is released publicly, it'll be added back. You can fix unresolved typings by adding the package in your IDE orpackage.json
.
0.1.1 - 2018-06-12
private
&engines
fields topackage.json
, with a node engine requirement of +8. (8376e73)
- Fixed package names in requires in code example in
README.md
. (8825631)
- Initial commit