This repository was archived by the owner on Sep 3, 2022. It is now read-only.
Releases: composor/composi
Releases · composor/composi
Version 1.2.2
Added unit tests. 1. Added Mocha and Chai for unit tests. These are loaded from a CDN, so you need an internet connect to run the tests. 2. Run `npm test` in main folder. This will open a test navigation page in your browser. Choose one of the tests. Opening a test page starts the test. Nothing else to do. Available tests: * Composi h function * Composi patch function * Composi render function * Composi Component class Some errors might only show in browser console, so open it while running tests.
Version 1.2.1
Minor refactor the setProps function in patch function. 1. Added fix to convert 'className' into 'class' when used with JSX. Default is still 'class'. 2. setProps now tests to see if element is not SVG (with namespace) before setting property. SVG elements get their props set with setAttribute.
v1.1.1
v1.1.0
Updated Babel version and added CSS minification to new project build. 1. Updated Babel to babel-cli. 2. Moved uncompressed CSS into dev folder for new project. 3. Dev CSS gets compressed and gzipped at build time and output to root directory for index.html to load. 4. CSS sourcemaps included in build. 5. README update to show new project structure.
Version 1.0.7
Slight refactor for h and render. 1. Made it so args to h don't have to be reversed. 2. Removed unused watched.mounted property from render.
Version 1.0.2
Fixed bug where Component.update was not rendering value of 0. 1. If you passed component.update(0), the zero was getting treated as falsy boolean. Fixed. 2. Other booleans are ignored in Component.update(). 3. Order for Component.update() render is: first check data. If not boolean, use, else try to use component state.
Version 1.0.1
Fixed bug in patch (setProps) function. 1. Fixed bug in patch’s setProps function where falsy booleans were not getting processed in JSX properties. This affected checks such as: disabled={false} 2. Refactored patch params and variables to match Component API: parent > container.
Version 1.0.0
Composi is now only 3KB. It includes the Component class, the h function for hypersrcipt support and the render function for injecting plain, function components directly in the DOM with virtual dom support.
Composi 0.9.1
Last stable release before update to 1.0.0