This repository was archived by the owner on Sep 3, 2022. It is now read-only.
Releases: composor/composi
Releases · composor/composi
Version 2.0.3
Fixed bug where removing text nodes could throw an error sometimes. 1. Fixed issue where trying to delete text nodes when patch could sometime throw error. 2. Minor update for patch function for better handling of element. 3. Removed unnecessary assignment in patchElement function. 4. Added new function, removeChildren, specifically to remove children from a node during patching. Fixes issue where removing child text nodes could sometimes throw and error. 5. Update removeElement to use new removeChildren function. 6. Refactored setProps for better parsing or props and values.
Version 2.0.2
v2.0.2 Missed checkin for mount update.
Version 2.0.0
Major refactor. Breaking changes. See commit details. 1. Refactored patch algorithm. This simplifies patch call signature to two arguments: tag and element. 2. Updated Component to use new patch algorithm. 3. Added new mount function to mount functional components in DOM. This takes two arguments: tag and container. It defaults to document.body. It always appends result to DOM. 4. Refactored render function to to use new patch algorithm. It takes tag and reference to element in DOM to update. Render is now exclusively for updating a mounted functional components. 5. Improved hydration of SSR elements with functional components. Query DOM for element to be updated and pass it as second argument of render function. 6. Dropped the following deprecated property and lifecycle hooks: 1. root property in Component intialization -- use container 2. beforeCreateComponent -- use componentWillMount 3. componentWasCreated -- use componentDidMount
Version 1.5.1
Fixed bug affecting componentWillUpdate and componentDidUpdate. 1. The testIfVNodesDiffer function was not testing correct oldNode. It was grabbing a reference after patching already occured. Now it test with the an oldNode reference from before patch.
Version 1.5.0
Added support for JSX fragments and exposed createElement. 1. Added Fragment Tag. This allows you to return multiple siblings that become the children of the element in which the Fragment tag is inserted. 2. Added tests for Fragment Tag. 3. Updated documentation in /docs for Fragment tag. 4. Improved guards in createNode to enable general purpose use outside of patch. 5. Exposed createElement as createNodes for import into projects. This enables converting vNodes into DOM nodes without using render function. 6. Added tests for createElement.
Version 1.4.10
Reverted changes to getKey. Reverted getKey function to former format. Was causing render bugs in edge cases.
Version 1.4.9
Added touch events to whitelist for remove by component.unmount. 1. Removed unnecessary argument from command line tool 2. Added touch events to whitelist for automatic removal when using unmount() 3. Updated new project index.html to use absolute paths for loading resources. 4. Code formatting for legibility.
Version 1.4.8
v1.4.8 Removed test from build.
Version 1.4.7
Quick fix to solve installation problem. package-lock.json was out of sync with package.json, causing NPM to install older version.
Version 1.4.6
Fixed bug in deployment script and replaced 5 modules with one. 1. Removed cp-file dependency. Replaced with fs-extras. 2. Removed fs-cp dependency. Replaced with fs-extras. 3. Removed mkdirp dependency. Replaced wtih fs-extras. 4. Removed ncp dependency. Replaced with fs-extras. 5. Removed writefile dependency. Replaced with fs-extras. 6. Fixed bug were deployment was not working when executed in folder on desktop. 7. Fixed bug were deployment was not working when no path was provided.