Releases: infernojs/inferno
Inferno v7.0.0
Inferno core
This release changes how inferno queues setState
calls. In earlier versions (v6 and before) Inferno used Component's instance to keep track of its updating state. However this pattern failed when child component called parent method or raised an event which lead parent to do setState
during child's update lifecycle.
This has been fixed by moving update detection outside Component instance. Because of this change, setState
calls will get more aggressively put into the micro task queue. This is a breaking change for applications which expected setState
to render synchronously.
If your application code depends on the changed state, you can use setState
callback to track when state has changed. Or if synchronous execution is necessary, you can call rerender()
method which flushes all pending setState
calls. This method should be generally avoided because it can cause infinite loops. It is useful for example in testing purposes to avoid setTimeout
.
Due to this change version has been increased to 7.
Inferno v6.3.1
Inferno core
- Fixes an issue where Fragment appended its content outside its boundary #1421
- Fixes an issue where optimized Fragments
$HasKeyedChildren
/$HasNonKeyedChildren
failed for empty content
Inferno v6.3.0
Inferno core
- Fixes an issue where setState function gets wrong state argument #1420
- Optimized rendering count when setState is called multiple times
Inferno v6.2.1
Inferno SSR
- Fix error in SSR "Node is not defined" when JSDom is not available
Inferno v6.2.0
Inferno core
This release does small improvement to runtime performance on V8 and code clean up
- Fixed v8 de-optimization "not enough type information..." in
patchChildren
method - Fixed issue where v8 was de-opting during event delegation handling reason "wrong map"
- Fixed issue where linkEvent methods were always re-attached
JSX plugin (babel-plugin-inferno v6.0.3)
- Added new option
defineAllArguments
it can be used to work around V8Builtin:ArgumentsAdaptorTrampoline
this comes with a cost of bundle size increase. Disabled by default
Inferno v6.1.5
Inferno core
Fixes an issue where setState
callback was not called after queuing multiple setStates
Inferno v6.1.4
Inferno core
Fixes an issue where patching SVG properties failed when component was inside SVG dom. #1415
Inferno v6.1.3
Inferno core
Fixes an issue where Fragment children rendered to wrong place in DOM when fragments last children was component with another fragment root