- New
Client#matches
method accepts platform queries likeClientList#filter
, returning a boolean of whether it matches.
- Several breaking changes in
panic-client
v1.0, reference their changelog for differences.
.len()
has been permanently removed (was previously under deprecation notice).
- Each client object held within a
ClientList
is capable of dispatching it's own jobs, independently of a list.
- Method
.atLeast
, useful for pausing until a minimum number of clients join.
- Upgraded to panic-client
v0.3
(brings.get
and.set
client methods).
- position of the
done
changed to the first parameter.this
context is no longer passed. export vars
is no longer enabled by default, but opt-in using the{ '@scope': true }
property.
.len()
has been deprecated in favor of.length
.
- Lazily loads the panic-client bundle through
panic.client
property. - Subclassing support by chains instantiating
this.constructor
. - Added
.chain
method which ensures the proper class is called.
- Set the
constructor
property on the ClientList prototype.
- Removed the
Function.prototype.toJSON
extension.
.excluding()
did not listen for remove events on exclusion lists. If a client was removed yet still connected, it wouldn't make it into the exclusion set.- The "add" event would fire each time you add the same client, even though it was already contained.
- New
clients.pluck(Number)
method will create a new list constrained to a maximum number of clients.
- The
ClientList
constructor to thepanic
object. - The
ClientList
constructor now accepts an array of smaller lists to pull from.
panic.serve
has been renamed topanic.server
.panic.server
accepts anhttp.Server
instance instead of an options object.- The server no longer automatically listens on a port.
panic.server
returns the server, not the options object.panic.js
is no longer served on the root route, only from/panic.js
.
First minor release.