Skip to content

Releases: infernojs/inferno

Inferno v7.0.0

29 Nov 23:18
Compare
Choose a tag to compare

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

25 Nov 11:07
Compare
Choose a tag to compare

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

24 Nov 18:11
Compare
Choose a tag to compare

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

11 Nov 12:58
Compare
Choose a tag to compare

Inferno SSR

  • Fix error in SSR "Node is not defined" when JSDom is not available

Inferno v6.2.0

11 Nov 12:37
Compare
Choose a tag to compare

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 V8 Builtin:ArgumentsAdaptorTrampoline this comes with a cost of bundle size increase. Disabled by default

Inferno v6.1.5

07 Nov 13:52
Compare
Choose a tag to compare

Inferno core

Fixes an issue where setState callback was not called after queuing multiple setStates

Inferno v6.1.4

03 Nov 18:22
Compare
Choose a tag to compare

Inferno core

Fixes an issue where patching SVG properties failed when component was inside SVG dom. #1415

Inferno v6.1.3

01 Nov 22:43
Compare
Choose a tag to compare

Inferno core

Fixes an issue where Fragment children rendered to wrong place in DOM when fragments last children was component with another fragment root

Inferno v6.1.2

01 Nov 20:20
Compare
Choose a tag to compare

Inferno core

Fixes an issue where emptying Fragment root inside another Fragment caused its new children to be mounted outside its boundaries. #1412

Typescript

Adds back native event properties to following events: ClipboardEvent, CompositionEvent, DragEvent and FocusEvent #1411 a4b7b50

Inferno v6.1.1

29 Oct 17:56
Compare
Choose a tag to compare

Inferno-test-utils

  • Fixes an issue where text nodes were not correctly rendered using method renderVNodeToSnapshot #1404

Typescript

  • Fixes typescript compilation error in types.ts file #1407
  • Improves create-element typing #1408