chore: update dependency inferno to v8 #135
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
5.6.x
->8.2.x
~5.6.2
->~8.2.0
Release Notes
infernojs/inferno (inferno)
v8.2.3
Compare Source
Inferno-core
Inferno-router
Switch
component where single route does not get resolved in resolveLoaders method https://github.com/infernojs/inferno/pull/1657/filesv8.2.2
Compare Source
Inferno-Router
Uncaught TypeError: e is not a function call
error in<Prompt/>
component by adapting to a new history blocking API infernojs/inferno@68213f0Internal
v8.2.1
Compare Source
Inferno v8.2.1
Inferno core
ComponenType<P>
was not assignable to parameter"type"
ofcreateComponentVNode
method infernojs/inferno@4bc0268v8.2.0
Compare Source
Inferno v8.2.0
Inferno router
Internal
v8.1.1
Compare Source
Typescript
indeterminate
andfor
native attributesInternal
v8.1.0
: Inferno v8.1.0Compare Source
Typescript
Inferno.JSX.Element
type has been removed in favor of more correct automatic typingInfernoNode
andInfernoNodeSingle
has been added as top level exports toinferno
package.InfernoNode
can be used as a replacement forInferno.JSX.Element
for type checking "any" JSX entryInfernoNodeSingle
can be used to restrict Component children to a single JSX node ( excluding arrays )This fixeshttps://github.com/infernojs/inferno/issues/1630ues/1630
select
attributesKey
has been unified and moved as top level export ofinferno
packageInferno-vnode-flags
Internal
v8.0.6
: Inferno v8.0.6Compare Source
Typescript
Inferno
v8.0.5
: Inferno v8.0.5Compare Source
Typescript
Inferno router
v8.0.4
Compare Source
Typescript
AnimatedMoveComponent
,PureComponent
andComponent
are now abstract classes to indicate they must be extendednull
value infernojs/inferno@eb88122Ref
s now acceptnull
value infernojs/inferno@12be729Internal
v8.0.3
: Inferno v8.0.3Compare Source
Inferno-core
Typescript
Dependencies
inferno-shared
moved to devDependencies in all packages infernojs/inferno@231d717v8.0.2
: Inferno v8.0.2Compare Source
Typescript
inferno-router
typings improvedIComponentConstructor
removed it was not needed for anythingv8.0.1
: Inferno v8.0.1Compare Source
Typescript
v8.0.0
: Inferno v8.0.0Compare Source
Inferno
componentWillMove
,componentDidAppear
andcomponentWillDisappear
javascript:
URLs infernojs/inferno@7bc3763String.prototype.substring
instead of deprecatedString.prototype.substr
infernojs/inferno@06195ad https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substrTypescript
Inferno-animation
inferno-animation
is a new package that eases animation work using inferno v8componentDidAppear
andcomponentWillDisappear
hooks to coordinate animations and reduce number of repaints browsers have to do https://github.com/infernojs/inferno/tree/master/packages/inferno-animation https://github.com/infernojs/inferno/pull/1583Special thanks for improving inferno animations to @jhsware
Inferno-router
history
package has been updated to version 5Inferno-mobx
Special thanks for improving inferno-mobx to @Gwenio
Build system and internal changes
Breaking changes
VNodeFlags.Void
has been removed infernojs/inferno@c658a41, use null or undefined vNode insteadinferno-component
package has been removed. Component is available in "inferno" main packageinferno-devtools
is discontinued infernojs/inferno@537cb2dv7.4.11
: Inferno v7.4.11Compare Source
v7.4.10
: Inferno v7.4.10Compare Source
All packages
This release fixes a possible supply chain attack by adding repository link to all packages https://github.com/infernojs/inferno/pull/1574
v7.4.9
: Inferno v7.4.9Compare Source
Inferno-core
Inferno-router
v7.4.8
: Inferno v7.4.8Compare Source
Inferno core
Fixes an issue where shouldComponentUpdate gets called after forceUpdate if there were pending state changes on the given component https://github.com/infernojs/inferno/issues/1534 https://github.com/infernojs/inferno/pull/1535
Inernal dependencies updated
v7.4.7
: Inferno v7.4.7Compare Source
Inferno-core
This release fixes wrong "latest" tag in npm registry after v5 hotfix
Internal dependencies updated infernojs/inferno@90e2daa
License year updated infernojs/inferno@1f06cdd
v7.4.6
: Inferno v7.4.6Compare Source
Inferno all packages
This release fixes broken UMD bundle header in all packages https://github.com/infernojs/inferno/issues/1527
v7.4.5
: Inferno v7.4.5Compare Source
Inferno-core
Improved createRef() type
Inferno-server
Fixes a bug where rendering forwardRef component server side failed to exception. https://github.com/infernojs/inferno/issues/1523
v7.4.4
: Inferno v7.4.4Compare Source
Inferno-router
Navlink component typescript typings have been improved and it does not require all properties to be set anymore. This fixes Github issue https://github.com/infernojs/inferno/issues/1518
Internal dependencies were updated
v7.4.3
: Inferno v7.4.3Compare Source
Inferno core
Optimized rendering functional component infernojs/inferno@1af165f
Optimized cloneFragment method infernojs/inferno@85eba12
Internal development dependencies have been upgraded
v7.4.2
: Inferno v7.4.2Compare Source
Inferno core
Fixes an issue introduced in v7.4.1 where setState callback was called even if component got unmounted infernojs/inferno@0e6b243
v7.4.1
: Inferno v7.4.1Compare Source
Inferno core
Fixes an issue where all
setState
callbacks were not called after chaining multiple setStates during asynchronous flowInferno router
Fixes typings of IRouteProps component infernojs/inferno@078b323
v7.4.0
: Inferno v7.4.0Compare Source
Inferno-server
Inferno-compat
Children
methods infernojs/inferno@fb9d5fev7.3.3
: Inferno v7.3.3Compare Source
Inferno Router
Inferno Redux
All internal dependencies updated
v7.3.2
: Inferno v7.3.2Compare Source
Inferno core
v7.3.1
: Inferno v7.3.1Compare Source
Inferno-hydration
forwardRef
Component crashed https://github.com/infernojs/inferno/issues/1486 infernojs/inferno@646753cv7.3.0
: Inferno v7.3.0Compare Source
Inferno-core
createPortal
v7.2.1
: Inferno v7.2.1Compare Source
Inferno-core
v7.2.0
: Inferno v7.2.0Compare Source
Inferno-core
General
v7.1.13
: Inferno v7.1.13Compare Source
Inferno-core
Inferno-devtools
v7.1.12
: Inferno 7.1.12Compare Source
Inferno core
Inferno.createRef()
did not update correctly https://github.com/infernojs/inferno/issues/1465 https://github.com/infernojs/inferno/pull/1466<select>
elementselectIndex
attribute was rendered to DOM https://github.com/infernojs/inferno/pull/1468v7.1.11
: Inferno v7.1.11Compare Source
Inferno-core
Example:
v7.1.10
: Inferno v7.1.10Compare Source
Inferno-test-utils
Removed
props.children
from snapshot when using inferno-compat. Fixes https://github.com/infernojs/inferno/issues/1451v7.1.9
: Inferno v7.1.9Compare Source
Inferno core
opencollective-postinstall
package to reduce inferno package size https://github.com/infernojs/inferno/issues/1450v7.1.8
: Inferno v7.1.8Compare Source
Inferno core
v7.1.7
: Inferno v7.1.7Compare Source
All packages
Fixes an issue where not all typing information was published to npm
v7.1.6
Compare Source
v7.1.5
Compare Source
v7.1.4
Compare Source
v7.1.3
Compare Source
v7.1.2
: Inferno v7.1.2Compare Source
Inferno core
isPropagationStopped
&isDefaultPrevented
methods frominferno-compat
toinferno-core
synthetic events only. This fixes compatibility issue betweeninferno-compat
and video.js - infernojs/inferno@e6666bdInferno router
v7.1.1
: Inferno v7.1.1Compare Source
Inferno core
v7.1.0
: Inferno v7.1.0Compare Source
Inferno core
addEventListener
API instead of directly assigning event callbacks to html node. This adds support for events which have non standard inline API for example:transitionend
https://developer.mozilla.org/en-US/docs/Web/Events/transitionend
ref
parmeter during patch. https://github.com/infernojs/inferno/issues/1436selectIndex
-property forselect
elements. https://github.com/infernojs/inferno/pull/1425v7.0.5
: Inferno v7.0.5Compare Source
Typescript
Internal
v7.0.4
: Inferno v7.0.4Compare Source
Inferno core
v7.0.2
: Inferno v7.0.2Compare Source
Inferno core
v7.0.1
: Inferno v7.0.1Compare Source
Inferno core
v7.0.0
: Inferno v7.0.0Compare Source
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 dosetState
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 expectedsetState
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 callrerender()
method which flushes all pendingsetState
calls. This method should be generally avoided because it can cause infinite loops. It is useful for example in testing purposes to avoidsetTimeout
.Due to this change version has been increased to 7.
v6.3.1
: Inferno v6.3.1Compare Source
Inferno core
$HasKeyedChildren
/$HasNonKeyedChildren
failed for empty contentv6.3.0
: Inferno v6.3.0Compare Source
Inferno core
v6.2.1
: Inferno v6.2.1Compare Source
Inferno SSR
v6.2.0
: Inferno v6.2.0Compare Source
Inferno core
This release does small improvement to runtime performance on V8 and code clean up
patchChildren
methodJSX plugin (babel-plugin-inferno v6.0.3)
defineAllArguments
it can be used to work around V8Builtin:ArgumentsAdaptorTrampoline
this comes with a cost of bundle size increase. Disabled by defaultv6.1.5
: Inferno v6.1.5Compare Source
Inferno core
Fixes an issue where
setState
callback was not called after queuing multiple setStatesv6.1.4
: Inferno v6.1.4Compare Source
Inferno core
Fixes an issue where patching SVG properties failed when component was inside SVG dom. https://github.com/infernojs/inferno/issues/1415
v6.1.3
: Inferno v6.1.3Compare Source
Inferno core
Fixes an issue where Fragment children rendered to wrong place in DOM when fragments last children was component with another fragment root
v6.1.2
: Inferno v6.1.2Compare Source
Inferno core
Fixes an issue where emptying Fragment root inside another Fragment caused its new children to be mounted outside its boundaries. https://github.com/infernojs/inferno/issues/1412
Typescript
Adds back native event properties to following events:
ClipboardEvent
,CompositionEvent
,DragEvent
andFocusEvent
https://github.com/infernojs/inferno/issues/1411 infernojs/inferno@a4b7b50v6.1.1
: Inferno v6.1.1Compare Source
Inferno-test-utils
renderVNodeToSnapshot
https://github.com/infernojs/inferno/issues/1404Typescript
create-element
typing https://github.com/infernojs/inferno/pull/1408v6.1.0
: Inferno v6.1.0Compare Source
Inferno core
Fixes bug where multiple calls to
setState
caused setState callbacks to trigger wrong timeInferno-test-utils
Fixes issue where
renderToSnapshot
did not correctly render root level Fragments https://github.com/infernojs/inferno/issues/1404Typescript
Fixes type information in
inferno-create-element
method, children parameter infernojs/inferno@d7abde6v6.0.3
: Inferno v6.0.3Compare Source
Inferno core
v6.0.2
: Inferno v6.0.2Compare Source
Inferno core
v6.0.1
: Inferno v6.0.1Compare Source
Fixes error in environments where document is not available
v6.0.0
: Inferno v6.0.0Compare Source
InfernoJS v6.0.0
Breaking changes
hydrate
moved toinferno-hydrate
packagebackgroundColor
=>background-color
For complete list see Migration guide
New features
getDerivedStateFromProps
andgetSnapshotBeforeUpdate
$HasTextChildren
new JSX compilation time optimization flag addedFragments
Fragment support means you can return array from Component render creating an invisible layer that ties its content together
but will not render any container to actual DOM. The examples below need v6 babel-plugin-inferno
Short syntax example
<> ... </>
Long syntax allows you to specify keys for Fragments. This is useful if there are many Fragments or if array is built dynamically.
You can create fragment:
createFragment(children: any, childFlags: ChildFlags, key?: string | number | null)
<> ... </>
,<Fragment> .... </Fragment>
or<Inferno.Fragment> ... </Inferno.Fragment>
createElement(Inferno.Fragment, {key: 'test'}, ...children)
h(Inferno.Fragment, {key: 'test'}, children)
React documentation: https://reactjs.org/docs/fragments.html
CreateRef API
createRef method allows nicer syntax, and reduces code when no callback to DOM creation is needed.
The below example creates ref object and stores it to Component property
element
.This object is then assigned to the element where you want to create reference. In the example below we want to reference "span".
After render has gone, span element is available in
this.element.current
property.React documentation: https://reactjs.org/docs/refs-and-the-dom.html
ForwardRef API
forwardRef is a new mechanism to "forward" ref inside a functional Component.
It can be useful if you have simple functional Components and you want to create reference to a specific element inside it.
React documentation: https://reactjs.org/docs/forwarding-refs.html
New lifecycle
Like in React when new lifecycle methods
getDerivedStateFromProps
orgetSnapshotBeforeUpdate
are used old lifecycle methods will not be called (componentWillMount
,componentWillReceiveProps
componentWillUpdate
).There will not be
UNSAFE_
methods in Inferno. Just use the normal names.TextChildren
New optimization paths have been added for text. JSX users can force this optimization by adding
$HasTextChildren
tag to any vNode element.This makes given element always render text. Normalization will also default into text children when only single text element is detected as children.
This flag also simplifies an old version of:
New version:
rerender
rerender is a new method that will flush all pending setState calls and render immediately.
It can be used when render timing is important, or to simplify tests.
Top level context
Inferno.render now takes fourth parameter which is initial context.
This removes the need of wrapping application with Class component.
Common
Runtime memory usage has been improved.
dom
properties are no longer stored to component vNode.Various properties have been removed from ES6 Component as well.
parentVNode
hack has been removed removing circularreferences from vNode tree. Normalization
array['$'] = true
hack has been removed.Core
Typescript
Inferno-router
Route
component can now have multiple childrenInferno-compat
options.reactStyles
option added, setting it false removes runtime transformation of style propertiesList of Github issues can be found using this link: https://github.com/infernojs/inferno/issues?utf8=%E2%9C%93\&q=label%3A%22Fixed+in+v6.0.0%22+
Configuration
📅 Schedule: Branch creation - "after 10pm,before 5:00am" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.