This repository was archived by the owner on Sep 3, 2022. It is now read-only.
Releases: composor/composi
Releases · composor/composi
Version 1.4.5
Removed try/catch statements. 1. Removed try/catch statement by implementing better guards. 2. Removed unused guards from render function. 3. Added 'prepare' script to packages. This will build and, in the case of a new project, launch the newly created project in the browser when the user runs `npm i`. 4. Removed extra comma in new project package.json, which was throwing error on npm install.
Version 1.4.4
v1.4.4 Added missing dependency: yargs
Version 1.4.3
v1.4.3 Added missing dependency: yargs
Version 1.4.2
v1.4.2 Added missing dependency: yargs
v1.4.1: Fixed some bugs in tests and in Component.update.
1. Fixed bug where had to use try/catch when comparing oldNodes during component update. 2. Fixed unit test for dangerouslySetInnerHTML to render properly. 3. Added unit test for h function to test that it accepted a function component with props and children. 4. Fixed problem where running tests from gulpfile was trying to start browserSync twice.
v1.4.0: Fixed setState bug and added dangerouslySetInnerHTML.
1. Put patch function parts into separate files for easier maintenance. They're all in lib/utils folder. 2. Fixed bug in Component.setState where passing a function caused the component to update twice. 3. Added ability to use `dangerouslySetInnerHTML` as a property to enable inserting markup into a node using innerHTML. 4. Added new tag - Fragment - to enable inserting sibling selectors into target element. createElement function converts it into a document fragment and returns it. 5. Updated Component class to use same mixin as patch. 6. Updated test to include dangerouslySetInnerHTML and Fragment tag. 7. Improved jsdoc comments for better intellisense. 8. Added jsconfig.json file for new projects. This will help text editors understand new project and enable better intellisense.
Version 1.3.0
Updated patch to accept string value. 1. Patch can now handle a style property with an object defining styles or a simple string of CSS values. 2. Updated new project package.json file to enable running `npm start` to build and launch project instead of `npm run build`. Less typing.
Version 1.2.5
Minor update. 1. Fixed patch method to convert React-style camel case events to lowercase . 2. Added default favicons to new projects. 3. Renamed node to newNode in patch function.
Version 1.2.4
Fixed bug affect Browsersync launch. 1. The gulpfile for new projects was not launching Browsersync correctly causing the base dir to open showing project file structure. Fixed.
Version 1.2.3
Updated new projects to support using stage-2 class fields. Class fields mean you can skip constructors when extending Component class and still add container and state: class List extends Component { container: 'section' state: ['Apple', 'Orange', 'Banana'] render(data) {// JSX here.} }