Skip to content

Latest commit

 

History

History
774 lines (568 loc) · 23.5 KB

CHANGELOG.md

File metadata and controls

774 lines (568 loc) · 23.5 KB

Change Log

All notable changes to this project will be documented in this file.

[5.2.6] - 2023-09-10

  • Fixed props defined outside class constructor should work now

[5.2.5] - 2023-09-10

  • Fixed a problem with hydration system and injected component

[5.2.3] - 2023-09-10

  • Fixed a problem with spread props when a component is created by loop the props are undefined

[5.2.2] - 2023-09-09

  • Improved suspendContent

[5.2.1] - 2023-09-09

  • Added suspendContent a mechanism that suspends the creation of children nodes and saves them in a component property called suspendNodes. It is possible to use it via:
    • special prop <${MyComponent} suspendcontent/>
    • class property ...suspendContent = true...

[5.1.2] - 2023-09-08

  • Improved hydration system

[5.1.0] - 2023-09-07

  • Added support to hydration
  • Added component method: this.inject('<${MyComponent}>...</>'), a better alternative to this.mount('<${MyComponent}>...</>')
  • Added component method: this.enject(..), to remove injected template with this.inject

[5.0.0] - 2023-08-04

  • Breaking changes
    • Removed hook onMountAsync use instead onMount
    • Removed property autoCreateChildren use instead suspendcontent prop in markup
  • Added prop suspendcontent
  • Added spread operator props like <my-component ...${myObject}/>
  • Improved performance

[4.0.3] - 2022-09-22

  • Fixed component data attributes do not work

[4.0.2] - 2022-09-21

  • Improved component attributes now are removed at creation of the HTML element
  • Removed IE11 info

[4.0.1] - 2022-09-21

  • Fixed version script

[4.0.0] - 2022-09-21

  • Breaking changes
    • Drop UMD distribution
  • Added full support to ESM
  • Improved performance during the component creation

[3.22.1] - 2022-06-22

  • Fixed dozAttach can be undefined using data-follow

[3.22.0] - 2022-06-15

  • Added data-follow support

[3.21.1] - 2022-06-10

  • Fixed runMount fails if there are child components

[3.21.0] - 2022-05-23

  • Added app event elementAttributesAttach

[3.20.4] - 2022-05-12

  • Fixed if beforeCreate returns false the component will be not created

[3.20.2] - 2022-05-11

  • Fixed directives don't work on Parcel 2

[3.20.1] - 2022-05-08

  • Improvement

[3.20.0] - 2022-05-06

  • Added experimental loadingComponent and errorComponent for async components

[3.19.6] - 2022-05-04

  • Fixed propsPropagation error when a child component has propsPropagation set to true

[3.19.4] - 2022-05-03

  • Fixed wrong string using same component with props set to empty string

[3.19.2] - 2022-04-29

  • Revert before "Fixed wrong string using same component with props set to empty string"

[3.19.1] - 2022-04-28

  • Fixed issue when a component is passed via prop

[3.19.0] - 2022-04-20

  • Added support to promised components

[3.18.2] - 2022-04-19

  • Fixed directives now are excluded from propsPropagation

[3.18.1] - 2022-04-15

  • Added directive d:no-propagation;
  • Fixed propsPropagation does not work on add props;

[3.17.6] - 2022-04-14

  • Fixed propsPropagation does not work on set props;

[3.17.5] - 2022-04-08

  • Fixed wrong string using same component with props set to empty string;

[3.17.4] - 2022-04-08

  • Improvement expose createInstance;

[3.17.2] - 2022-04-08

  • Fixed plugins were loaded after app creation;

[3.17.1] - 2022-04-02

  • Fixed d:lazy initial check;

[3.17.0] - 2022-04-01

  • Added d:lazy component directive;

[3.16.0] - 2022-03-30

  • Added support to server side props;
  • Improvement appReady event, now supports waitMount;

[3.15.0] - 2022-03-29

  • Added deferred mount;

[3.14.1] - 2022-02-09

  • Fixed esm version;

[3.14.0] - 2022-02-09

  • Added app boolean option setAllAttributes
  • Added app callback option onVdomUpdateElement

[3.13.10] - 2022-02-08

  • Improvement optimize esm;

[3.13.9] - 2022-02-08

  • Fixed "Uncaught TypeError: Illegal invocation" in Chrome;

[3.13.8] - 2022-01-20

  • Fixed possible undefined this object in h method;

[3.13.6] - 2022-01-20

  • Updated dependencies;
  • Removed esm minification

[3.13.5] - 2022-01-20

  • Fixed in 'd-animate' directive instance.elementsWithAnimation could be "falsy" and therefore generate error on Tizen 6.0

[3.13.4] - 2021-08-22

  • Improvement esm size

[3.13.3] - 2021-08-22

  • Improvement set sideEffects to false on the package.json

[3.13.2] - 2021-08-20

  • Fixed issue using appCreate with doz-ssr

[3.13.1] - 2021-08-19

  • Fixed style does not work on web-component

[3.13.0] - 2021-08-17

  • Added new api called appCreate
  • Added event listener support to web-component
  • Fixed conflict between multiple apps in the same page

[3.12.1] - 2021-07-30

  • Changed Disable proxy error when proxy not found

[3.12.0] - 2021-07-30

  • Added ESM version

[3.10.0] - 2021-07-18

  • Added propsPropagation to component
  • Added listeners to Doz instance

[3.9.0] - 2021-05-20

  • Added exposeAttributes to component

[3.8.4] - 2021-05-14

  • Improvement property tag of a Doz component now is writable

[3.8.3] - 2021-05-11

  • Fixed double text node insert when props is an empty text

[3.8.1] - 2021-05-06

  • Fixed possible error using slot

[3.8.0] - 2021-04-03

  • Added exposed methods for web components

[3.7.0] - 2021-02-26

  • Added support to functions for the hooks directives

[3.6.1] - 2021-02-24

  • Fixed memory leak

[3.6.0] - 2021-02-17

  • Added support to empty closed tag like "<${FooBar}>...</>"
  • Fixed closed tag using a placeholder component

[3.5.2] - 2021-01-23

  • Improved mount method

[3.5.0] - 2021-01-09

  • Added setProps method
  • Added setPropsAsync method

[3.4.4] - 2021-01-08

  • Improved directives engine

[3.4.3] - 2020-08-26

  • Fixed remove cache when use forceupdate attribute

[3.4.2] - 2020-08-23

  • Fixed use ElementTraversal interface

[3.4.1] - 2020-08-15

  • Improved performance

[3.4.0] - 2020-08-05

  • Changed template compiler engine, it should be 2x times faster
  • Improved performance

[3.3.3] - 2020-07-23

  • Improved performance

[3.3.2] - 2020-06-24

  • Removed error when directive d-id already exists

[3.3.1] - 2020-06-13

  • Removed useless code

[3.3.0] - 2020-06-13

  • Added defineWebComponent
  • Added defineWebComponentFromGlobal
  • Added getWebComponentById
  • Added getWebComponentByTag

[3.2.1] - 2020-06-08

  • Fixed the pseudo selectors :host and :host-context are not modified

[3.2.0] - 2020-05-28

  • Added data-no-shadow attribute for DozWebComponent

[3.1.3] - 2020-05-28

  • Fixed attributes now are converted from dashcase to camelcase when use DozWebComponent

[3.1.1] - 2020-05-27

  • Fixed duplicate style when use DozWebComponent

[3.1.0] - 2020-05-27

  • Added data-soft-entrance attribute for DozWebComponent

[3.0.1] - 2020-05-20

  • Fixed possible duplicate elements during updating with keys
  • Fixed possible error when remove an element from keyed list

[3.0.0] - 2020-05-19

  • Breaking changes
    • Refactored method createExtWebComponent to createDozWebComponent
    • Refactored method getExtWebComponentById to getDozWebComponentById
    • Refactored method getExtWebComponentByTag to getDozWebComponentByTag
  • Removed app id suffix from tag name of local component
  • Improved performance when use keyed list

[2.5.5] - 2020-05-17

  • Fixed style update doesn't work fine

[2.5.4] - 2020-05-16

  • Fixed possible wrong position of last two items when re-assign array, using keys

[2.5.2] - 2020-05-16

  • Fixed update of attributes doesn't work
  • Improved all styles now are placed inside shadowRoot
  • Improved added observedAttributes array property to webcomponent function

[2.5.1] - 2020-05-15

  • Updated types definitions

[2.5.0] - 2020-05-15

  • Added Ext Web Component
  • Improved styles, now without tag script
  • Fixed issue using key during sorting list

[2.4.7] - 2020-04-25

  • Improved animation directive

[2.4.5] - 2020-04-22

  • Fixed issue using a class with constructor in production with doz-cli

[2.4.4] - 2020-04-21

  • Fixed "Cannot call a class as a function" in production with doz-cli

[2.4.3] - 2020-04-21

  • Fixed HTML5 booleans attributes without value

[2.4.2] - 2020-04-19

  • Fixed conflict between directives d-show and d-animate
  • Removed for the moment "support to attributes without quotes" :(, so many problems

[2.4.1] - 2020-04-18

  • Fixed SVG elements are malformed

[2.4.0] - 2020-04-18

  • Fixed several issues using keyed elements
  • Fixed possible delay when use style inside component
  • Improved performance about 2x
  • Added prepareCommit method to component instance
  • Added commit method to component instance
  • Added support to attributes without quotes

[2.3.18] - 2020-03-26

  • Fixed reflow issue using script tag instead style tag

[2.3.17] - 2020-02-24

  • Added DOZ_APP_ID global variable

[2.3.16] - 2020-02-12

  • Removed empty methods show and hide from directive d-show

[2.3.14] - 2020-01-02

  • Fixed issue on Edge when using d-ref and d-show together

[2.3.11] - 2019-12-28

  • Fixed style reset error when removing a component

[2.3.10] - 2019-12-28

  • Changed now exposed param withStyle for toStyle method

[2.3.9] - 2019-12-28

  • Improved class recognition

[2.3.8] - 2019-12-27

  • Fixed double app rendering in SSR

[2.3.7] - 2019-12-25

  • Fixed possible "max cycle exceeded" warning when using d-animate

[2.3.6] - 2019-12-24

  • Added appId property to Doz instance
  • Improved d-bind directive
  • Changed uId format, now also includes appId

[2.3.5] - 2019-12-24

  • Fixed multiple Doz apps can coexist

[2.3.4] - 2019-12-22

  • Added max id safer for vdom mapper

[2.3.3] - 2019-12-17

  • Removed auto-cast of d-bind directive

[2.3.2] - 2019-12-16

  • Fixed when an attribute is empty it is removed

[2.3.0] - 2019-12-14

  • Added d-animate directive for animation
  • Added animate helper to Component
  • Added support for animation to d-show
  • Improved HTML boolean attribute support
  • Improved directive attributes, now supports also object

[2.2.2] - 2019-11-25

  • Removed console log in directive d-show

[2.2.1] - 2019-11-24

  • Added support handler as function to d-on directive
  • Improved catch logic handler into template

[2.2.0] - 2019-11-24

  • Added support handler as function instead string for html element
  • Fixed memory leak using element handler
  • Improved performance

[2.1.3] - 2019-11-19

  • Fixed 'Cannot call a class as a function' with mount method

[2.1.2] - 2019-11-19

  • Fixed issue when before a slot there are a text child

[2.1.1] - 2019-11-16

  • Updated readme example

[2.1.0] - 2019-11-15

  • Added tag decorator

[2.0.8] - 2019-11-14

  • Fixed issue when each method returns empty array
  • Improved style manager

[2.0.7] - 2019-11-12

  • Fixed possible issue of style with pseudo classes

[2.0.6] - 2019-11-11

  • Changed installation method, using npx instead npm, this solves issue on Mac.

[2.0.5] - 2019-11-09

  • Added project built with Doz

[2.0.4] - 2019-11-08

  • Added support to components created by object

[2.0.2] - 2019-11-08

  • Fixed possible undefined style element

[2.0.1] - 2019-11-07

  • Fixed style issues

[2.0.0] - 2019-11-07

  • Added support to new local components with class
  • Added key attribute for keyed loops
  • Changed now props in template preserves the type
  • Removed directive d-key
  • Fixed Keyed loops

[1.26.0] - 2019-10-17

  • Added attribute scoped to tag style
  • Improved sanitization input values

[1.25.0] - 2019-10-12

  • Added directive 'd-show'
  • Added 'props' as second argument to template function
  • Improved directive 'd-key', now works also with no component elements
  • Improved directives organization
  • Fixed issue with comments into scoped style #9
  • Fixed data-uid is undefined #10
  • Fixed attributes with dash (-) are "duplicated" without dash #13

[1.24.0] - 2019-08-24

  • Changed attributes "style" and "class" will not be removed from the component tag during render

[1.23.1] - 2019-08-20

  • Fixed onDrawByParent was not called when there is a slot

[1.23.0] - 2019-08-19

  • Added support to slots
  • Added onDrawByParent event to component, useful for nested component
  • Added magic word "scope" for listener referred to manipulation of v-dom inside onDrawByParent event

[1.22.2] - 2019-08-15

  • Fixed last dynamic component created into a list does not work fine

[1.22.1] - 2019-08-15

  • Added alias pseudo element :component
  • Fixed minors
  • Changed logo header

[1.22.0] - 2019-08-14

  • Added mainComponent property to Doz instance
  • Improved nested component system
  • Deprecated into style system the pseudo element ":root" in favor of ":wrapper"

[1.21.1] - 2019-08-13

  • Fixed an issue relative to nested component system. If last node is a dz-root, the new element created must be insert before it.

[1.21.0] - 2019-08-12

  • Improved nested component system
  • Changed template parser, now removes all spaces after new line and tab
  • Fixed possible wrong parent component
  • Fixed when bind value is 0 don't work
  • Removed specials attributes from compiled code

[1.20.2] - 2019-07-09

  • Fixed "Cannot call a class as a function" during development

[1.20.1] - 2019-07-08

  • Fixed another possible error "Cannot call a class as a function" when using a component built with class pattern or single function

[1.20.0] - 2019-06-08

  • Added propsType object config, now it is possible define a type for each prop.
  • Improved auto-cast

[1.19.0] - 2019-05-29

  • Added directive d-key for loops
  • Added uId property
  • Fixed possible wrong destroy components
  • Improved scoped style, now creates a style for each component instance

[1.18.3] - 2019-05-23

  • Fixed empty initial input when use d-bind

[1.18.2] - 2019-05-22

  • Fixed possible error "Cannot call a class as a function" when using a component built with class pattern or single function

[1.18.1] - 2019-05-13

  • Fixed undefined ref

[1.18.0] - 2019-05-12

  • Improved virtual-dom logic now is better organized with new class named DOMManipulation
  • Changes minor refactoring of some stuff

[1.17.1] - 2019-04-24

  • Fixed multiple :global style in same line

[1.17.0] - 2019-04-23

  • Added renderPause method to component
  • Added renderResume method to component
  • Added isRenderPause property to component
  • Improved IE11 support

[1.16.9] - 2019-04-11

  • Fixed possible issues during attributes changes

[1.16.8] - 2019-04-11

  • Fixed error when the virtual-dom does not match (removeAttribute)

[1.16.6] - 2019-04-09

  • Fixed error when the virtual-dom does not match

[1.16.5] - 2019-04-08

  • Fixed possible null error when a component is destroyed

[1.16.4] - 2019-04-07

  • Fixed possible memory leak when a component is destroyed

[1.16.3] - 2019-04-03

  • Fixed layout issues during mount, unmount and remount

[1.16.2] - 2019-03-27

  • Fixed the defined store is not deleted after destroying the component
  • Fixed the defined id is not deleted after destroying the component

[1.16.0] - 2019-03-17

  • Added loadProps method
  • Added new hook onLoadProps
  • Added directive instance hook d:onloadprops
  • Added app hook componentLoadProps

[1.15.0] - 2019-03-09

  • Added propsListenerAsync
  • Added directive instance hooks
    • d:oncreate
    • d:onconfigcreate
    • d:onmount
    • d:onmountasync
    • d:onupdate
    • d:onunmount
    • d:ondestroy
  • Added new hooks of app
    • componentCreate
    • componentConfigCreate
    • componentMount
    • componentMountAsync
    • componentUpdate
    • componentUnmount
    • componentDestroy
  • Changed now propsConvert and propsComputed are called on beforeMount event
  • Fixed auto-cast when bind an input

[1.14.0] - 2019-02-10

  • Added delayUpdate

[1.13.0] - 2019-02-02

  • Added propsComputedOnFly
  • Added propsConvertOnFly
  • Improved minor things

[1.12.4] - 2019-02-01

  • Fixed apply propsConvert and propsComputed to initial props

[1.12.3] - 2019-02-01

  • Fixed possible issues of propsConvert and propsComputed

[1.12.2] - 2019-02-01

  • Fixed drawDynamics which may not work
  • Changed remove new line space from attributes during the compiling

[1.12.1] - 2018-12-24

  • Fixed cache issue for propsComputed

[1.12.0] - 2018-12-23

  • Added propsConvert api for props manipulation without cache
  • Improved performance

[1.11.1] - 2018-12-15

  • Fixed SFC issue when create a bundle with ParcelJS

[1.11.0] - 2018-12-15

  • Added support to Single Function Component (SFC)

[1.10.0] - 2018-12-08

  • Removed style object, deprecated since 1.8.0
  • Removed onRender hooks in favor of onMount, deprecated since 1.0.0
  • Improved bundle size

[1.9.0] - 2018-11-29

  • Added propsComputed api for props manipulation
  • Fixed parentNode is null when using scoped style without others tags

[1.8.4] - 2018-11-22

  • Fixed scoped style issue when using animation

[1.8.3] - 2018-11-20

  • Fixed possible issue when using style tag inside h tagged function

[1.8.2] - 2018-11-20

  • Added support to propsListener for value as function

[1.8.1] - 2018-11-18

  • Fixed this argument for propsListener

[1.8.0] - 2018-11-17

  • Added support for scoped style into template function
  • Added shared api for sharing things between component
  • Added propsListener api for props changes
  • Fixed when function "drawnDynamic" is called, parent property is set to wrong parent
  • Deprecated style object in favor of tag style inside template function

[1.7.2] - 2018-11-01

  • Updated README

[1.7.1] - 2018-10-28

  • Fixed double component during initial rendering when use mount method

[1.7.0] - 2018-10-27

  • Added new hook onAfterRender
  • Added mixin warning message
  • Improved onUpdate performance
  • Fixed router example

[1.6.10] - 2018-10-25

  • Fixed with d-is directive the dashed attributes are not transformed into camelcase

[1.6.9] - 2018-10-25

  • Fixed call render method only if rendered to DOM

[1.6.8] - 2018-10-13

  • Improved types definition

[1.6.6] - 2018-10-11

  • Fixed text is not decoded when reuse textnode element

[1.6.5] - 2018-10-10

  • Improved 2x rendering performance
  • Fixed issue when props is passed as function

[1.6.4] - 2018-10-04

  • Improved rendering performance
  • Improved IE11 compatibility

[1.6.3] - 2018-10-02

  • Improved W3C standard

[1.6.2] - 2018-09-29

  • Added basic types definition
  • Removed src folder from npm distribution

[1.6.1] - 2018-09-18

  • Added directive d-is
  • Removed unused dev libraries

[1.6.0] - 2018-09-17

  • Added use to module, a method for define plugins :)
  • Added app instance events
    • on adds a listener given an event name
    • emit call an event
  • Added autoDraw property to Doz constructor, by default it's false
  • Added draw method to Doz instance
  • Added "$this", a special placeholder for indicate "this" of DOM element in listener context
  • Exposed compile function

[1.5.0] - 2018-09-09

  • Added class pattern, now it's possible create component with class ES6 syntax
  • Added new property config to component class, available only with class ES6
  • Added new method define to module, alias of component
  • Added h an helper that improve virtual dom performance
  • Added mixin for global component to module, now it's possible add external functions to global
  • Added mixin for local component as component property, now it's possible add external functions to local
  • Removed global namespace __DOZ_GLOBAL_COMPONENT__

[1.4.4] - 2018-08-12

  • Improvement template engine

[1.4.3] - 2018-08-02

  • Fixed scoped style issue with hmr

[1.4.2] - 2018-08-01

  • Added compatibility with Parcel HMR (Hot module replacement)

[1.4.1] - 2018-07-21

  • Improvement proxy performance

[1.4.0] - 2018-07-12

  • Breaking changes
    • Refactored method style to toStyle
  • Added property appRoot to component instance
  • Added property style to component instance
  • Added method getCmp shorthand reference to getComponentById

[1.3.5] - 2018-07-11

  • Fixed attributes was removed with falsy value, now only if empty

[1.3.4] - 2018-07-06

  • Added new method style to component instance

[1.3.3] - 2018-07-05

  • Fixed possible root instance issue

[1.3.2] - 2018-07-04

  • Improvement event handler, now supports inline logic
  • Fixed props update issue in constructor

[1.3.1] - 2018-07-03

  • Fixed possible undefined target property

[1.3.0] - 2018-06-30

  • Added new hook onMountAsync
  • Fixed possible issue on nested update

[1.2.0] - 2018-06-28

  • Added new method getHTMLElement to component instance

[1.1.2] - 2018-06-27

  • Improvement for constructor, now supports all component events

[1.1.1] - 2018-06-19

  • Fixed auto-cast issue for numeric argument passed to custom function

[1.1.0] - 2018-06-18

  • Added support to local components for components

[1.0.1] - 2018-06-10

  • Fixed issue on beforeDestroy and destroy that are not called in the child component when parent is destroyed
  • Added version method Doz.version

[1.0.0] - 2018-06-06

  • Added new option property autoCreateChildren to component definition
  • Added new property rawChildren to component
  • Added new hook onBeforeMount
  • Added new hook onMount
  • Added new hook onBeforeUnmount
  • Added new hook onUnmount
  • Deprecated hooks onRender in favor of onMount

[0.2.0] - 2018-05-23

  • Added "changes" param to onBeforeUpdate and onUpdate

[0.1.0] - 2018-05-22

  • Added new event onAppReady
  • Fixed update children problem

[0.0.28] - 2018-05-21

  • Fixed bind problem on radio input. The initial value was not considered

[0.0.27] - 2018-05-20

  • Improvement binding for checkbox and select

[0.0.26] - 2018-05-18

  • Improvement dash-case attributes to camel-case props

[0.0.25] - 2018-05-17

  • Fixed deep state updating issue
  • Fixed svg animation start issue

[0.0.24] - 2018-05-16

  • Improvement deep state updating
  • Improvement "d-bind"

[0.0.23] - 2018-05-13

  • Added support to SVG element
  • Fixed issue when inside the template there are no tag element like comment for example

[0.0.22] - 2018-05-11

  • Cleanup
  • Added proxy polyfill

[0.0.21] - 2018-05-11

  • Improvement security
  • Fixed observer issue

[0.0.20] - 2018-05-09

  • Fixed xss vulnerability
  • Fixed infinite loop issue when props are updated inside onBeforeChange

[0.0.19] - 2018-05-06

  • First release