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

Releases: composor/composi

Version 1.2.2

24 Dec 04:50
Compare
Choose a tag to compare
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

22 Dec 16:10
Compare
Choose a tag to compare
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

16 Nov 19:20
Compare
Choose a tag to compare
Fixed new project gulpfile for watching CSS.

1. Updated new project gulp file to rebuild project when dev/css changes.

v1.1.0

16 Nov 19:06
Compare
Choose a tag to compare
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

15 Nov 16:13
Compare
Choose a tag to compare
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

05 Nov 15:43
Compare
Choose a tag to compare
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

05 Nov 15:42
Compare
Choose a tag to compare
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

29 Oct 17:44
Compare
Choose a tag to compare

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

21 Oct 12:24
Compare
Choose a tag to compare

Last stable release before update to 1.0.0

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载