Skip to content

Releases: williamtroup/Observe.js

Observe.js v0.8.1 - General improvements!

19 Mar 14:32
fe26dc5
Compare
Choose a tag to compare
  • The "unload" window event has been replaced with "pagehide" (due to "unload" being deprecated).
  • The public function "setConfiguration()" will now only update the configuration if something in the configuration has been changed.
  • All public functions now only accept the right variable types for data (to prevent issues from occurring).
  • Added "use strict" support internally and updated all public functions to use the new scope.

Observe.js v0.8.0 - New options! New configuration! Improvements!

14 Mar 17:44
1849eae
Compare
Choose a tag to compare

Binding Options:

  • Added a new binding option called "removeAttribute", which states if the binding attribute should be removed (defaults to true).

Configuration Options:

  • Added a new configuration option called "objectErrorText", which states the error text that should be shown when an object error is detected (defaults to "Errors in object: {{error_1}}, {{error_2}}").
  • Added a new configuration option called "attributeNotValidErrorText", which states the error text that should be shown when a binding object isn't valid (defaults to "The attribute '{{attribute_name}}' is not a valid object.").
  • Added a new configuration option called "attributeNotSetErrorText", which states the error text that should be shown when a binding attribute isn't set (defaults to "The attribute '{{attribute_name}}' has not been set correctly.").

General Improvements:

  • All console error logging now goes through the correct method.
  • Objects are now checked and defaulted properly when invalid values are passed.
  • Updated the formatting used in the "package.json" file so that it can always be parsed.

Documentation:

  • Minor tweaks to the documentation.

Observe.js v0.7.1 - Fix!

20 Feb 10:35
53eb28e
Compare
Choose a tag to compare
  • Fixed a fault that caused clearTimeout() to be called instead of clearInterval().

Observe.js v0.7.0 - New custom trigger, improvements, and documentation updates!

07 Feb 14:24
2ee9388
Compare
Choose a tag to compare

Rules:

  • Watches will now only start if an object can be found (is not null, or the DOM element exists).

Binding Options / Function Options - Custom Triggers:

  • Added a new binding/option custom trigger called "onStart", which states an event that should be triggered when a watch is started.

General Improvements:

  • Added Math injection directly into the main instance.
  • Added JSON injection directly into the main instance.
  • Improved keywords in the package files.

Documentation:

  • Added install instructions into the main README files.
  • Added documentation that states how issues and new feature requests should be raised.

Fixes:

  • Fixed the "observe.js.nuspec" file including the ".github" folder when NuGet PACK is called.

Observe.js v0.6.1 - Fixes!

17 Jan 19:32
e49ed58
Compare
Choose a tag to compare
  • Updated project homepage URL.
  • Fixed the binding property "allowPausing" defaulting to "null" instead of "true" when not manually set.

Observe.js v0.6.0 - New custom bindings/options and public functions!

08 Jan 17:02
6260263
Compare
Choose a tag to compare

Binding Options / Function Options:

  • Added a new binding/option called "allowCanceling", which states the watch can be cancelled (defaults to true).
  • Added a new binding/option called "allowPausing", which states the watch can be paused (defaults to true).

Public Functions:

  • Added new public function "pauseWatches()", which is used to pause all the watches for a specific number of milliseconds.
  • Added new public function "resumeWatches()", which is used to resume all the watches currently paused.

General Improvements:

  • Minor internal refactoring to make things a little clearer.

Fixes:

  • Fixed some errors in HTML files when calling the public functions.

Observe.js v0.5.1 - Fixes and Array support!

05 Jan 22:31
46d5757
Compare
Choose a tag to compare
  • Project description update.
  • Minor documentation updates.
  • Fixed a small fault that prevented the total changes from being handled correctly when a watch was stopped.
  • Added support to watch array objects for changes.

Observe.js v0.5.0 - Specific properties watching! New triggers! Fixes!

05 Jan 12:20
ef6983b
Compare
Choose a tag to compare

New Features:

  • Added specific properties watch support! This will only watch for changes in specific properties on an object, instead of all of them by default.

Binding Options / Function Options:

  • Added a new binding/option called "propertyNames", which states the property names that should be watched for changes (defaults to all).

Binding Options / Function Options - Custom Triggers:

  • Added a new binding/option custom trigger called "onRemove", which states an event that should be triggered when a DOM element is removed.

Public Functions:

  • Added new public function "resumeWatch()", which is used to resume a watch that has been paused.

Fixes:

  • Fixed a fault that allowed comparisons between arrays and objects (was causing some script errors).

Documentation:

  • Fixed some of the documentation mistakes.

Observe.js v0.4.0 - Lookup new DOM elements! Fixes and renames!

03 Jan 21:03
9f4f03c
Compare
Choose a tag to compare

Public Functions:

  • Added new public function "searchDomForNewWatches()", which is used to search the DOM for new elements to watch, then adds them.

BREAKING CHANGES:

  • Renamed the DOM attribute "data-observe-options" to "data-observe-watch-options".
  • Renamed the public function "watchObject()" to "watch()".

General Improvements:

  • Minor internal refactoring to make things a little clearer.

Fixes:

  • Fixed a fault that prevented the binding attribute from being removed from the DOM elements.
  • Fixed a fault that prevented changes from being detected when a DOM element is removed from the DOM.
  • Fixed some properties being assigned to internal watches when not required.

Observe.js v0.3.0 - Pausing watches support!

03 Jan 13:21
857f6ac
Compare
Choose a tag to compare

New Features:

  • Added "Pause Timeout On Change" support, which will force the watch to wait a specific number of milliseconds before detecting changes again when a change is detected.

Binding Options / Function Options:

  • Added a new binding/option called "pauseTimeoutOnChange", which states the milliseconds to wait for new changes to be detected when a change is detected (defaults to 0, which is off).

Public Functions:

  • Added new public function "cancelWatches()", which is used to cancel all the watches currently running, or paused.
  • Added new public function "getWatches()", which is used to return all the watches currently running, or paused.
  • Added new public function "pauseWatch()", which is used to pause a running watch for a specific number of milliseconds.

General Improvements:

  • When the page is unloaded, all active watches are now cancelled.

Documentation:

  • Fixed some of the documentation spelling/grammar mistakes.