Skip to content
This repository has been archived by the owner on Jul 30, 2018. It is now read-only.

Releases: dojo/widget-core

Release 0.3.0

20 Nov 16:29
Compare
Choose a tag to compare
Release 0.3.0 Pre-release
Pre-release

Breaking Changes

  • Remove Evented and Destroyable from WidgetBase (#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 and onDetach 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

20 Nov 16:36
Compare
Choose a tag to compare
Release 0.2.1 Pre-release
Pre-release

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

20 Nov 16:44
Compare
Choose a tag to compare
Release 0.2.0 Pre-release
Pre-release

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

21 Nov 14:08
Compare
Choose a tag to compare
Release 0.1.2 Pre-release
Pre-release

✅ 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

  • Add start position information for a drag event (#718)

    Details

    Fixes #715

Release 0.1.1

21 Nov 14:10
Compare
Choose a tag to compare
Release 0.1.1 Pre-release
Pre-release

✅ Fixes

  • Use external API for setting properties and children (#710)

Release 0.1.0

21 Nov 14:12
Compare
Choose a tag to compare
Release 0.1.0 Pre-release
Pre-release

✅ 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

21 Nov 14:14
Compare
Choose a tag to compare
Release 2.0.0 Beta3 2 Pre-release
Pre-release

✅ 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

21 Nov 14:21
Compare
Choose a tag to compare
Release 2.0.0 Beta3 1 Pre-release
Pre-release

⚠️ 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 for package-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

15 Aug 09:52
Compare
Choose a tag to compare
Release 2.0.0 Beta2 6 Pre-release
Pre-release
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/shim global (#629)

Release 2.0.0 Beta2 5

15 Aug 09:48
Compare
Choose a tag to compare
Release 2.0.0 Beta2 5 Pre-release
Pre-release
Breaking Changes
  • Upgrade to Typescript 2.4 (#575, #602)
  • Add reaction callback to custom diffProperty (#586)
  • Remove events for properties and children changes (#591)
  • Remove stateful mixin (#596)
Other changes
  • Cannot warn or use the previous dNodes when a supported DNode type of undefined is returned. (#598)
  • Support using Themeable injector pattern with registries & decorators (#507, #601)