Skip to content

Latest commit

 

History

History
116 lines (70 loc) · 3.67 KB

History.md

File metadata and controls

116 lines (70 loc) · 3.67 KB

vNEXT

v0.6.0

  • Code Format Refactor
  • Changed Deps to Tracker (#49)
  • Only show log output if running in development
  • Added _timeSync Meteor Method for doing timesync over DDP instead of HTTP
  • Auto switch to DDP after initial HTTP timesync to improve subsequent round trip times
  • Added option TimeSync.forceDDP to always use DDP, even for first sync (which may be slow!)
  • Shortened resync interval from 1 minute to 30 seconds when using DDP.
  • Added tests for DDP and HTTP sync
  • Added option to set the timesync URL using TimeSync.setSyncUrl
  • Removed IE8 compat function

v0.5.5

  • Added compatibility for Meteor 3.0-beta.7

v0.5.4

  • Adding CORS compatibility for Ionic capacitorjs

v0.5.3

  • Bump minimum Meteor version to 1.12
  • Take into account ROOT_URL environment variable if set

v0.5.2

  • Travis CI NodeJS environment updated to use Node 12 and 14
  • Updated package resolution to work for Meteor 2.3

v0.5.1

  • Fix an issue where TimeSync.ServerTime returned NaN when executed in meteor-desktop.

v0.5.0

  • guess new offset instead of unsetting if the client time has changed. This prevents that TimeSync.serverTime returns undefined after the time has changed and the client isn't in sync with the server.

v0.4.0

  • Update CORS headers to support Meteor 1.3. (#37, #41)
  • Support Meteor apps running in sub-paths instead of at root level. (#36, #40)

v0.3.4

  • Explicitly pull in client-side check for Meteor 1.2 apps.

v0.3.3

  • Be more robust with sync url when outside of Cordova. (#30)

v0.3.2

  • Fix issue when used in Cordova. (#22, #26, #27)

v0.3.1

  • Fix an issue where TimeSync.serverTime returned an erroneous value when passed a Date (instead of an epoch). (#23)

v0.3.0

  • TimeSync.serverTime now supports an optional second updateInterval argument, causing the reactive value to update less frequently. (#10)
  • TimeSync.loggingEnabled can be now set to false to suppress client log output. (#21)
  • Explicitly set MIME type on timesync endpoint. (#17, #18)

v0.2.2

  • Updated for Meteor 0.9.
  • Further adjust clock watching tolerance to be less sensitive to CPU.

v0.2.1

  • Re-sync automatically after a reconnection.
  • Adjust clock watching tolerance so as to be less sensitive to heavy client CPU usage.

v0.2.0

  • Clock change watching is now on by default (it's very lightweight and only involves grabbing and checking a Date).
  • Invalidate offset value and dependent time computations when we detect a clock change.
  • Added a Date.now shim for earlier versions of IE.
  • Reorganized code for testing and added some basic tests.

v0.1.6

  • Added the optional TimeSync.watchClockChanges which can resync if a client's clock is detected to have significantly changed.
  • Added retry attempts to syncing, making it more robust over a hot code reload among other situations.

v0.1.5

  • Use WebApp.rawConnectHandlers as a less janky way of getting our date request handled first.
  • Fixed an issue where a cached reload could result in a wacky time offset due to the server time being cached.

v0.1.4

  • Switch to JS at the request of @raix and @arunoda ;-)
  • Use a middleware handler, spliced into the top of the connect stack, instead of a Meteor method to avoid arbitrary method blocking delay. This improves accuracy significantly.
  • Compute a RTT value in TimeSync.roundTripTime as well as a time offset.

v0.1.3

  • Ensure that the computed offset is always an integer number of milliseconds.

v0.1.2

  • Added the TimeSync.resync function that triggers a resync with the server.

v0.1.1

  • Added the reactive function TimeSync.isSynced to determine if an initial sync has taken place.

v0.1.0

  • First release.