Releases: dojo/widget-core
Release 0.3.0
Breaking Changes
-
Remove
Evented
andDestroyable
fromWidgetBase
(#761)Details
-
Removes Evented and Destroyable from WidgetBase
-
pass schedule render as parent invalidate for top level mechanism
-
New Features
-
Custom element wrapper (#768)
Details
-
Support DOJO widget custom element children
-
split the custom element wrapper logic in the custom element initialisation
-
add jsdoc
-
Fixes
-
Fix behavior for multiple nodes with the same root in intersection meta (#750)
Details
Resolves #727
-
Add
onAttach
andonDetach
lifecycle hooks (#771)Details
-
Add onAttach and onDetach widget hooks
-
add readme for onAttach and onDetach
-
Enhance tests and call detach outside of nodeToRemove
-
no longer need parent instance
-
add w() child to v() for destroy test
-
readme updates
-
readme updates
-
Improve unit test
-
-
Skip the main set properties logic for the initial properties set (#764)
-
Invalidator Fixes: Inject invalidator via setter and reset renderState in scheduleRender (#765)
-
Convert WidgetBase to create resources lazily (#763)
-
Use widget instance weakmap to share internals with vdom (#769)
-
Updating to use intern loader from grunt-dojo2 and tslib/polyfills fr… (#752)
-
Bug: Ensure correct
insertBefore
is correctly calculated (#776)Details
-
failing unit test for finding node to insert before when previous WNode doesn't have previous rendered
-
Ensure that the correct inserBefore location is used when a previous WNode returned null
-
Prevent getting into the a loop if the next child doesn't have rendered children
-
Enhance test for guard against infinate loop
-
-
Correct run.html path (#746)
-
Upgrade dojo dependencies (#777)
Release 0.2.1
Fixes
-
Move child creation logic for custom elements to attach callback (#744)
Details
Resolves #531
-
Remove eventHandlerInterceptor (#755)
Details
-
initial
-
remove apply default projection options and the default options in favour of a function and object spread
-
remove superflous if
-
lift if statements for on check
-
-
Add connected event for custom elements (#758)
-
Support Adding and Removing Multiple class in IE11 (#756)
Details
-
Add IE11 browser stack configuration and specific test for adding and removing multiple classes
-
Add and remove classes individually
-
package-lock.json
-
make test compatible with JSDom and IE11
-
getBoundingClientRect throws an 'Unspecified Error' when the element is not appended to the DOM in IE11
-
upgrade to intern 4.1.0
-
extract addClasses and removeClasses logic to dedicated functions
-
Use IE11 friendly event dispatching
-
Release 0.2.0
Breaking Changes
-
Integrate VDOM system into widget-core (#728)
-
Accept array of string classes in
v()
& implicitly remove classes that are not passed on subsequent renders (#734)Details
-
Refactor vdom classes support
-
enhance the unit tests
-
package-lock file
-
change theme API to accept string | string[] and do not split resulting classnames
-
support string classname and class name splitting in vdom
-
test for when 'null' is passed to classes on first render
-
package-lock.json
-
Rename Themeable to Themed
-
Update Themeable references to Themed
-
New Features
-
Support deferred properties (#736)
Details
-
update package-lock.json
-
add deferred property callback
-
add tests, add inserted
-
more tests
-
-
Support returning top level widget, top level arrays and changing top level tag name (#737)
Details
-
failing unit test for returning a top level widget from the render
-
Support returning a top level widget from the render function in vdom
-
Support merging when returning a widget from the render function
-
remove commented code
-
Support top level arrays for create and append and allow changing top level tagname
-
tests for error scenario using an array of node with replace and merge
-
update deferred tests
-
Add RenderResult type
-
-
WebAnimations Meta (#713)
Fixes
-
Intern 4 conversion (#733)
-
Update README for Themed changes (#735)
-
tidy up class typings and logic for undefined and null (#740)
-
Only break early by node equality in
updateDom
for HNodes (#743)Details
-
failing unit test for breaking early on a WNode
-
Only break early for HNodes
-
-
Only merge on initial render (#739)
Details
-
Failing test for only merging on all renders not just initial
-
set merge to false for subsequent updates
-
access the childNode from the projection domNode
-
-
Make sure vdom after callbacks run sync when in sync mode (#748)
Details
-
sync aftercallbacks
-
add tests
-
-
Do not own child widgets (#747)
Release 0.1.2
✅ Fixes
-
Meta providers accept number or string keys (#721)
Details
Fixes #720
-
Fix Drag meta to properly model non-primary button or pointers (#719)
Details
Resolves #717
-
Ensure the functions are bound to the parent widget not containing widget (#724)
Details
-
Failing unit test
-
only set core properties if they haven't already been set
-
-
Updates for TypeScript 2.5 (#651)
Details
Refs: dojo/meta#197
-
do not ignore package-lock (#711)
👍 Enhancements
Release 0.1.1
✅ Fixes
- Use external API for setting properties and children (#710)
Release 0.1.0
✅ Fixes
-
Only schedule a Projector render when properties or children are set explicitly (#705)
Details
-
expose _dirty property with getter and do not reset properties / children when explicitly set by the projector API
-
do not need to expose dirty using specific flags for resetting properties and children
-
-
Remove the stacked theme reversal (#703)
👍 Enhancements
-
Drag Meta Provider (#637)
Details
Resolves #571 (in part)
-
Update tag for
@dojo
dependencies -
Update README Content (#701)
Details
-
Add some readme content for missing sections, registries, containers, injectors
-
typo
-
remove superfluous types and close code block
-
few small changes [skip ci]
-
Address feedback
-
typo
-
Release 2.0.0 Beta3 2
✅ Fixes
-
Adding afterCreate/afterUpdate for all nodes expect root nodes (#695)
Details
-
Unit tests for decorating HNode and WNode
-
Fix logic for adding after functions to a hnode
-
return vnodes directly
-
👍 Enhancements
-
Intersection Observer Meta (#696)
Details
-
Intersection observer meta
-
refine intersection meta
-
use getDetails
-
add intersection observer polyfill
-
ensure the actual rootNode is passed as intersection observer options
-
address feedback
-
unused import
-
Release 2.0.0 Beta3 1
⚠️ Breaking Changes
-
Rename WidgetRegistry to Registry (#667)
-
Support Injector instances in Registry and add inject decorator (#668)
Details
-
Support Injector instances in Registry and add inject decorator
-
Support generic typing for injector
-
add jsdoc
-
ensure test is covering the specified scenario
-
remove runtime warns
-
rename context to injector
-
use the private attribute, as per other uses in WidgetBase
-
rename context to payload
-
-
move decorators out of WidgetBase (#688)
✅ Fixes
-
Ensure a user defined registry takes precedence when there is no explicit default registry (#674)
-
Fix Edge failures (#680)
Details
-
change to stubs
-
comment out async
-
fixed timing for tests
-
resolve raf
-
make tests sync
-
remove comments
-
fix assertions
-
-
WidgetProperties interface updates (#681)
-
Fix
tsx
Integration Tests (#678)Details
-
run tsx integrations
-
rename
-
-
Use the global precedence when checking to invalidate (#687)
-
Exclude tsx test files (#691)
-
Remove depracated warnings (#693)
-
Do not call schedule render every invalidate, only on setting properties and children (#692)
Details
-
Do not call schedule render every invalidate, only on setting properties and children
-
add test for not calling scheduleRender on invalidate
-
add void
-
ensure that schedule is not called
-
use setProperties for custom element
-
-
Remove unused import (#694)
👍 Enhancements
-
Add evented Node handler to meta (#666)
Details
-
th progress
-
dimensions tests
-
fixed tests
-
fixed interface comments
-
fixed Matches
-
comments
-
remove beforeRender
-
pr comments
-
fix typings
-
add nodeEvent typing
-
rename Type enum
-
rename Type enum
-
pr comments, changed dimensions implementation
-
added getnode function
-
updated tests
-
adding integration test
-
integration tests
-
uncomment tests
-
fix test after changed functionality
-
remove cancel raf
-
pr nits
-
pr alignment
-
change to weakmaps
-
uncomment tests
-
move projector emit, remove event typing, revert maps
-
pr comments
-
pr comments
-
-
Exposed changed property keys from WidgetBase (#690)
-
Add grunt dist to travis.yml (#656)
-
.gitignore
forpackage-lock.json
(#655) -
Add support for core properties (#659)
Details
-
move defaultRegistry, registry and bind to special property bag
-
set render state and invalidate if base properties are considered different
-
not assign properties for no reason
-
coreProperties > baseProperties & some other renaming
-
ignore registry from main diff
-
add double underscore to 'getCoreProperties'
-
-
add beforeProperties lifecycle hook (#663)
Details
-
add beforeProperties lifecycle hook
-
doc
-
-
Add Matches meta provider (#638)
-
Simplify Widget Registries (#686)
Details
-
first set of changes to only support base and local registry
-
update registries to registry
-
move logic into projector
-
improve get logic in handler
-
try and make registry handler a little cleaner
-
Add defineInjector to registry handler
-
Unit tests for registry handler
-
Unit tests for projector
-
refactor to use tuple for registries and remove destory management logic
-
emit the item and check before invalidating
-
tests for for the extra invalidates
-
util _get for both get and getHandler
-
do not default projector properties
-
use as for cast
-
Add generic for getInjector and correct define type
-
-
Update dojo dependencies
Release 2.0.0 Beta2 6
Breaking Changes
- Performance Improvements (#619)
Other changes
- Support property type guards for 'setProperties' on the ProjectorMixin (#614)
- Type theme property (#612)
- Support typings for ThemeableMixin extraClasses (#604)
- Filter all
falsy
values from 'this.classes' (#625) - Ensure _decoratorCache uses class-level decorators (#623)
- Loosen typings on context for a Injector (#631)
- Replace @dojo/core
global
with @dojo/shimglobal
(#629)