Releases: studiometa/js-toolkit
Releases · studiometa/js-toolkit
v2.4.2
Fixed
- withScrolledInView
- Use damping on the current value instead of the progress (dd51924, #270)
- Fix a bug where damped values were not updated on destroy (ba93c1b, #270)
- transition
- Fix
transition
utility waiting too long between updates (74db79a)
Changed
- Types
- Improve types definition for components (#271)
- Add service props types to the main entrypoint (23b6fe2)
- Update NPM dependencies (1e5fdfa, f6b0e52)
v2.4.0
Added
- Add a
getDirectChildren(parentInstance, parentName, childrenName)
helper function (#253, c89e123)
- Add a
isDirectChild(parentInstance, parentName, childInstance, childName)
helper function (#253, 04693b0)
Fixed
- Revert "Change build target to ES2022" (c51f580)
v2.3.0
Added
- Add a
tween
utility function (#249)
- Add support for native event methods on child components (fix #248, #247, 3b6026d)
- Add
is...
utility functions: isObject
, isBoolean
, isString
, isNumber
, isArray
and hasWindow
(#247)
- Add an export of the
isDev
constant (#247)
Changed
- Limit errors and warnings to dev environements (presence of a
__DEV__
global var) (#247)
- Refactor
is...
and has...
test functions (#247)
- Change build target to
ES2022
(fa4ebd6)
Fixed
- Add missing support for access to the
event.detail
data when working with CustomEvent
with the event hooks (#250)
- Only bind event methods to the root element for defined or native events (#247, 0e202c4)
v2.2.3
Changed
- Refactor services (#244)
- Export
noop
, noopValue
and useService
internal functions (#244)
- Reduce log messages lengths (#244, 8492038)
v2.2.2
Fixed
Documentation
- Add example on how to pass a component option as a prop
withVue2
decorator (#238)
v2.2.1
Fixed
- Fix
ease
export to contain only easing functions (#239, d6720f9)
v2.2.0
Added
- Add a
useScheduler
utility function to create schedulers (#232)
- Add a
domScheduler
utility scheduler object to group read and write DOM interactions (#232)
- Add support for scheduled actions for the
useRaf
service by returning a function inside callbacks (#232)
Changed
- Improve performance of the
animate
function (#232)
- Improve
EventsManager
performance by caching function results (#235)