Skip to content
This repository was archived by the owner on Sep 3, 2022. It is now read-only.

Tags: composi/core

Tags

v2.7.5

Toggle v2.7.5's commit message
Destructed union test.

V2.5.8

Toggle V2.5.8's commit message
Update to vdom for onupdate hook.

1. Previous the onupdate hook always fired whether the props changed or not. Introduced a check to only fire onupdate when an element's props have changed.

V2.5.6

Toggle V2.5.6's commit message
Improved types for effects.js and union.js.

v2.5.0

Toggle v2.5.0's commit message
Update for changes to state in runtime.

1. Runtime init function now return state without square brackes.
2. Update actions now return state without square brackets.
3. Test updated for changes to runtime.

v2.0.0

Toggle v2.0.0's commit message
Updated runtime test.

1. Previous runtime tests were not passing due to changes in how subscriptions work. Updated them to pass.

v1.6.3

Toggle v1.6.3's commit message
Minor updates to h, createVNode and patch functions.

1. Simplified childNodes assignment in h function.
2. Removed unnecessary parameter in createVNode call.
3. createVNode now has default values of null for key and flag parameters.
4. Updated tests to reflect changes in h function.
5. Instead of assigning default value to createVNode function inside its body, moved assignment as default value in the call signature itself.
6. Marked flag parameter as optional.

v1.6.1

Toggle v1.6.1's commit message
Refined VNode comparison for better exists.

1. Created new property on container: previousVNode. This contains a clone of the previous VNode before patching. This means its element properties all have null values, same as a newly provided VNode would.
2. The patchElement function in vdom.js now check the container's previousVNode property to check with the provided VNode from render. If the two objects are identical, it exists. Before this didn't happen because the default vnode property on the container has references to DOM elements from the last patch.

v0.9.4

Toggle v0.9.4's commit message
Code cleanup.

1. General clean up.
2. Replaced for loops with while loops.

v0.9.3

Toggle v0.9.3's commit message
Minor update for readibility.

v0.9.2

Toggle v0.9.2's commit message
Added error checking for when user provides invalid container for ren…

…der function.

1. Composi will now log an error and bail when an invalid container argument is used with the render function.
2. Will output an error message detailing the reason for failure to render, along with the selector used.