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

Releases: composor/composi

Version 2.1.8

27 Apr 23:50

Choose a tag to compare

Update for handling keys.

1. Updated handling of keys. Now stored directly on vnode as property and removed from the props object.
2. Updated getKey to handle new location of key.
3. Updated test for new location of key on vnode.
4. Updated JSDocs for Component class.

Version 2.1.7

27 Apr 04:16

Choose a tag to compare

v2.1.7

Ran build again.

Version 2.1.6

18 Apr 17:41

Choose a tag to compare

Added Eslint to project.

Now using Eslint in build process on source files before passing to Babel.

Version 2.1.5

18 Apr 13:22

Choose a tag to compare

Added Prettier for consistent code formatting.

1. Using Prettier with options for no semi-colons and single quotes instead of double.

Version 2.1.0

08 Apr 15:11

Choose a tag to compare

Added lifecycle hooks for functional components.

1. Added support for function component lifecycle hook: onComponentDidMount. This allows functional components to do things, such as attaching events, the same as class components with the componentDidMount method. When this hook is executed, the callback is passed a reference to the functional component's root element.
2. Add support for functional component lifecycle hook: onComponentDidUpdate. This allows functional components to do things when the component is updated, same as with the class component method componentDidUpdate. The hook's callback gets passed three arguments: oldProps, newProps, element. oldProps are the props from the first mount. newProps are those being used during this update, element is the root element of the component's DOM tree.
3. Add support for functional component lifecycle hook: onComponentDidUnmount. This allows you to do something after a component's element is deleted. You can use this on the children of a component. This gets one argument passed: the parent of the element deleted.
4. Added tests for functional lifecycle hooks.
5. Refactored patch and createElement functions for readability.
6. Added pointer events to whitelist of events removed during unmounting of class component.

Version 2.0.9

29 Mar 12:02

Choose a tag to compare

Update for jsconfig.json file.

Removed unnecessary sub-folder reference.

Version 2.0.8

23 Mar 23:41

Choose a tag to compare

Updated creation of new projects to preserve user-provided name case.

Previously any project name with uppercase letters were converted to lowercase. This was to comply with requirements for NPM modules. However, we now updated the new project process to leave the name of the new directory for the project to match the case provided by the user, while still making the package name comply with NPM naming conventions. This means that if a user provides a name like so: composi -n "My Project", the package name would be "my-project", but the project folder would and html index title would remain "My Project".

Version 2.0.6

20 Mar 14:24

Choose a tag to compare

Update for setProp to handle falsy values.

1. Fixed setProp to handle true/false, 'yes'/'no' values for the prop 'translate'.
2. Fixed setProp to handle 'on'/'off' values for the prop 'autocomplete'.
3. Updated tests for these values.

Version 2.0.5

20 Mar 00:52

Choose a tag to compare

Update for setting boolean props with string value.

1. Updated setProps to allow setting a boolean property, such as "disabled" with a string for true and false. These will work the same as actual booleans.
2. Added tests for boolean properties.

Version 2.0.4

17 Mar 19:06

Choose a tag to compare

Removed all references to 'createElement'.

The function 'createElement' is no longer exposed to the user, but is replaced by 'mount'.
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载