- Store all dates as native
Date
objects in the database (#20). Most usage will be unaffected due to many libraries supporting the interchangeable use ofDate
objects or integer timestamps, but some behavior may change when using operations with automatic type coercion, such as addition.
- Add some shim code for better compatibility with fast-render. (#24)
- Fix an issue with properly recording the user's latest idle time across a reconnection.
- Ignore actions generated while the window is blurred with
idleOnBlur
enabled.
- Refactored server-side code so that it was more testable, and added multiplexing tests.
- Fixed an issue where idle state would not be maintained if a connection was interrupted.
- Fixed an issue where stopping the idle monitor could leave the client in an idle state.
- Added multiplexing of idle status to
Meteor.users
as requested by @timhaines.
- Added opt-in automatic idle monitoring on the client, which is reported to the server. See the demo app.
- Export a single
UserStatus
variable on the server and the client, that contains all operations. Breaks compatibility with previous usage: the previousUserStatus
variable is nowUserStatus.events
. - The
sessionLogin
andsessionLogout
events have been renamedconnectionLogin
andconnectionLogout
along with the newconnectionIdle
andconnectionActive
events. Breaks compatibility with previous usage. - In callbacks,
sessionId
has also been renamedconnectionId
as per the Meteor change.
- Exported
UserStatus
andUserSessions
using the new API. - Moved the user status information into the
status
field instead of theprofile
field, which is user editable by default. NOTE: this introduces a breaking change. (#8) - Introduced a last login time for each session, and a combined time for the status field. (#8)
- Added some basic tests.
- Fixed a nuanced bug with the use of
upsert
.
- Changed
find
/insert
/update
to a single upsert instead (#3, #6).