Skip to content

Releases: canjs/can-view-callbacks

Avoiding use of Object.setPrototypeOf

13 Jun 02:58
Compare
Choose a tag to compare

v4.1.1

04 Jun 16:07
Compare
Choose a tag to compare

Removes the stringified regex from the warning message #85

v4.1.0

04 Jun 16:03
Compare
Choose a tag to compare

Remove can-util as dependency 51d39f5

v4.0.1

04 Jun 16:02
Compare
Choose a tag to compare

Clean up markdown sample code #82

Automount tags

27 Jan 02:09
Compare
Choose a tag to compare

v3.2.5

26 Jan 22:18
Compare
Choose a tag to compare

Clean up the docs #70

v3.2.4

21 Dec 17:37
Compare
Choose a tag to compare

Docs updates: #68 #69

Fixed a bug, updated the docs, added cycle detection

01 Nov 02:50
Compare
Choose a tag to compare
  • Add a cycle detection script to test process #63
  • Don’t warn about registered native custom elements #64
  • Update docs with new @parent & @collection #66

v3.2.2...v3.2.3

v3.2.2

03 Oct 01:17
Compare
Choose a tag to compare
  • Fix bug preventing registered callback from being returned #61

v3.2.1...v3.2.2

Improved development warnings, better tag method response

29 Sep 15:00
Compare
Choose a tag to compare

Improved Tag response

When attempting to retrieve the handle for a given tag that has not been registered, like tag('hello-world'), the tag method would return a noop. In some cases, this made it difficult to determine if a tag exists or not since a tag that exists returns a function as well.

Now, can-view-callbacks exports a default noop function, defaultCallback so a comparison can be made to the result of the tag method.

import callbacks from 'can-view-callbacks';
const tagHandler = tag('hello-world');
const tagNotRegistered = callbacks.defaultCallback === tagHandler;

Improved development warnings

A custom element attribute must be registered before it is rendered on an element. Previously, rendering an element with a custom attribute would not log a warning. A warning was added with a reminder that the attribute must be defined before it is used.