Skip to content

Releases: infernojs/inferno

v9.0.1

25 Jan 07:05
v9.0.1
61f772a
Compare
Choose a tag to compare

inferno-core

  • Fixes an issue where TS typings could not be resolved through exports entry #1673 b46181c

v9.0.0

24 Jan 10:13
v9.0.0
60f4d03
Compare
Choose a tag to compare

Inferno v9.0.0

This is maintenance release. it drops support for old browser versions including IE and removes old coding patterns.
InfernoJs source code has been modernized to support latest versions of tooling.

Breaking changes

inferno-create-class has been removed, use createComponentVNode, createElement APIs instead.
If you were using createClass to wrap the class into observable you can do the same by extending inferno component.

observer(
  class MyCom extends Component {
    componentWillReact() {
      willReactCount++;
    }

    render() {
      return (
        <div id="x">
          {[foo.a.get(), foo.b.get(), foo.c.get()].join(',')}
        </div>
      );
    }
  },
);

Inferno v9 requires following features to be present in the executing runtime:

  • Promise
  • String.prototype.includes()
  • String.prototype.startsWith()
  • Array.prototype.includes()
  • Object.spread()

options.componentComparator has been removed
options.renderComplete has been removed, same result can be achieved by calling own function after render

ES module bundle extension is now .mjs

inferno.esnext.js bundle has been removed and replaced with inferno.mjs bundle.
The following bundles have been renamed:

inferno.esm.js is now inferno.mjs

inferno.dev.esm.js is now inferno.dev.mjs

You may need to change how you are loading inferno dev & production bundles.
for example Webpack config:

...
    resolve : {
        alias: {
            'inferno': isProduction ? 'inferno/dist/index.mjs' : 'inferno/dist/index.dev.mjs',
        }
    },
....

Inferno-core

  • Reworked development mode related inferno warnings #1666
  • Removed click event propagation hack for FireFox 8d0afbe
  • Dependency to hoist-non-inferno-statics removed
  • Multiple typescript type improvements

Inferno-router

  • path-to-regexp-es6 changed to path-to-regexp to include recent bugfixes and address security vulnerability

Inferno-server

  • Fixes an issue where inferno server renders empty style attribute 192a650

Announcing swc-plugin-inferno

swc-plugin-inferno plugin can compile JSX and TSX syntax for inferno specific virtual nodes. It offers improved compilation time compared to existing plugins. In addition it has access to typescript type information which can be used in future for optimizations and new features.

Below chart compares compilation time of inferno repository tests using different compilers.

image

Inferno now supports Eslint v9

Starter template update

The following repository has been updated to create a reference how to use inferno with latest tech including:

Inferno v9
Webpack v5
Typescript v5
SWC v1 see [swc-plugin-inferno](https://github.com/infernojs/swc-plugin-inferno)
Tailwind v4
PostCSS v8
Eslint v9

https://github.com/infernojs/inferno-swc-example

v9.0.0-alpha.4

23 Jan 22:25
v9.0.0-alpha.4
d45ab32
Compare
Choose a tag to compare
v9.0.0-alpha.4 Pre-release
Pre-release
  • inferno-animations timeout handling fixed

v9.0.0-alpha.3

22 Jan 22:43
v9.0.0-alpha.3
b242af5
Compare
Choose a tag to compare
v9.0.0-alpha.3 Pre-release
Pre-release

v9.0.0-alpha.3

  • Updated to eslint v9
  • named dev & prod exports added to all packages ba4c02e

v9.0.0-alpha.1

26 Nov 20:42
Compare
Choose a tag to compare

v5.6.3

20 Jul 18:44
Compare
Choose a tag to compare

Inferno-core

  • Fixes an issue where events are not registered to shadow dom #1669 2753856
  • Backported newer build system to v5 9a3770f

v8.2.3

10 Dec 19:30
Compare
Choose a tag to compare

Inferno-core

  • FormEvent event.target has been explicitly defined for this event type c337fdd

Inferno-router

v8.2.2

30 Jun 09:36
Compare
Choose a tag to compare

Inferno-Router

  • Fixes Uncaught TypeError: e is not a function call error in <Prompt/> component by adapting to a new history blocking API 68213f0

Internal

  • Internal dependencies have been updated

v8.2.1

28 May 08:50
Compare
Choose a tag to compare

Inferno v8.2.1

Inferno core

  • Fixes an issue where type ComponenType<P> was not assignable to parameter "type" of createComponentVNode method 4bc0268

v8.2.0

25 May 13:58
Compare
Choose a tag to compare

Inferno v8.2.0

Inferno router

  • Async prefetch support! 🚀 #1621

Internal

  • Internal dependencies have been updated
  • Jasmine updated to v5 and lowest testing target of FireFox browser is now v91 due to limited browser support in latest version of jasmine