The following is a curated list of changes in the Enact core module, newest changes on the top.
No significant changes.
No significant changes.
No significant changes.
core/util
functionsetDefaultProps
to set props that are missing orundefined
to default values
No significant changes.
core/util
functionsetDefaultProps
to set props that are missing orundefined
to default values
No significant changes.
No significant changes.
core/platform
memberwindowsPhone
,edge
,androidChrome
,android
,ie
,ios
,webos
,androidFirefox
,firefoxOS
,blackberry
, andtizen
core/platform
membergesture
,node
,platformName
, andunknown
core/platform
membertouch
andtouchscreen
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
core/platform
memberwindowsPhone
,edge
,androidChrome
,android
,ie
,ios
,webos
,androidFirefox
,firefoxOS
,blackberry
, andtizen
, to be removed in 5.0.0core/platform
membergesture
,node
,platformName
, andunknown
, to be removed in 5.0.0core/platform
membertouch
andtouchscreen
, to be removed in 5.0.0
core/platform
membertype
to detect a platform like 'desktop', 'mobile', 'webos', and 'node'core/platform
memberbrowserName
andbrowserVersion
to detect the compatible major browser name and versioncore/platform
membertouchEvent
andtouchScreen
replacing legacytouch
andtouchscreen
respectively
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
core/handle.forwardCustom
andcore/handle.forwardCustomWithPrevent
to bind an adapter function properly
No significant changes.
No significant changes.
No significant changes.
windowsPhone
platform incore/platform.platforms
to be removed in 5.0.0
No significant changes.
No significant changes.
core/dispatcher
to set the default target for event listeners properly when built with the snapshot option
No significant changes.
No significant changes.
No significant changes.
No significant changes.
core/handle.forwardCustom
handler to includepreventDefault
andstopPropagation
methods in the forwarded event payload
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
core/platform
to detect chromium version for webOS
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
core/util
functionmapAndFilterChildren
to safely iterate over Reactchildren
No significant changes.
No significant changes.
core/handle.forwardCustom
handler to simplify forwarding custom events from components
No significant changes.
No significant changes.
core/kind
optionfunctional
to return a functional component, suitable for use with React hooks, instead of a class component
No significant changes.
No significant changes.
core/handle.not
to return the logical complement of the value returned from the handler
No significant changes.
core/util.mergeClassNames
to mirror class names when used in unit tests
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
core/handle
documentation for even better Typescript output
core/kind
documentation ofhandlers
andcomputed
functions to support better Typescript definitions
core/platform
membertouchscreen
to detect the presence of a touchscreen separately from support for touch events
core/kind
andcore/handle
documentation to support better Typescript definitionscore/platform
touch event detection
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
core/kind
config propertycontextTypes
core/platform
logic for webOS detection
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
core/util.clamp
to safely clamp a value between min and max bounds
No significant changes.
No significant changes.
core/kind
to address warnings raised in React 16.8.6
No significant changes.
core/util.isRenderable
to treat values returned byReact.lazy()
,React.memo()
, andReact.forwardRef()
as renderablecore/hoc
to support wrapping components returned byReact.lazy()
,React.memo()
, andReact.forwardRef()
No significant changes.
core/kind
config propertycontextTypes
, to be removed in 3.0.
core/kind
config propertycontextType
replacing legacycontextTypes
property
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
core/util.Job
to cancel existing scheduledidle()
jobs before scheduling another
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
core/util.withContextFromProps
function
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
core/handle.handle
utilitybindAs
to facilitate debugging and binding handlers to component instances
No significant changes.
core/dispatcher.on
to not add duplicate event handlers
core/snapshot
module withisWindowReady
method to check the window state andonWindowReady
method to queue window-dependent callbacks for snapshot builds
core/util.memoize
to forward all args to memoized function
core/handle.adaptEvent
to adapt event payload before passing to subsequent handlercore/handle.call
to invoke a named method on a bound handler
No significant changes.
core/factory
module, replaced by thecss
override feature
core/util.childrenEquals
which was no longer supported by React 16
core/util.memoize
method to optimize the execution of expensive functions
core/kind
to always return a component rather than either a component or an SFC depending upon the configuration
No significant changes.
No significant changes.
No significant changes.
core/util/childrenEquals
, to be removed in 2.0.0
core/factory
, to be removed in 2.0.0
No significant changes.
core/kind
andcore/hoc
public documentation to be visible
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
core/util.Job
APIsidle
,idleUntil
,startRaf
andstartRafAfter
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
@core/handle.preventDefault
(and, subsequently,forwardWithPrevent
) to also callpreventDefault()
on the originating event
No significant changes.
No significant changes.
No significant changes.
core/platform
to support platform detection across multiple browsers
No significant changes.
No significant changes.
core/handle.oneOf
to support branching event handlers
core/util
documentation
core/util.childrenEquals
to work with mixed components and text
core/util.Job
to replacecore/jobs
with an API that reduced the chance of job name collisions
core/jobs
and replaced it withcore/util.Job
core/selection
, which was only used internally byui/GroupItem
kind
andhoc
named exports from root module. Should be directly imported via@enact/core/kind
and@enact/core/hoc
, respectively.core/fetch
which was no longer used by Enact
core/kind
support forcontextTypes
core/utils
functionextractAriaProps()
for redirecting ARIA props when the root node of a component isn't focusable
core/handle
to allow binding to components. This also introduces a breaking change in the return value of handle methods.
core/handle
functionforEventProp
to test properties on an event
- Support for a new
handlers
block for components created withcore/kind
to allow cached event handlers core/handle
handlerforKey
core/keymap
module to abstract keyboard key codes behind common names (e.g. 'up' and 'down')
core/handle.withArgs
helper function which is no longer needed with the addition of thehandlers
support inkind()
core/factory
which provides the means to support design-time customization of components
core/dispatcher
to support pre-rendering
No developer-facing changes.
core/dispatcher
- an event dispatcher for global events (e.g.window
anddocument
events) that fire outside of the React tree
This version includes a lot of refactoring from the previous release. Developers need to switch to the new enact-dev command-line tool.
stopImmediate
tocore/handle
- Many more unit tests
- Computed properties in
kind()
no longer mutate props. In other words, changing the value of a prop in one computed property does not affect the value of that prop in another computed property.
- Inline docs updated to be more consistent and comprehensive
Initial release