Releases: tweenjs/tween.js
v19.0.0 - Stop the monkeys!
Breaking change:
- The
Easing
object is no longer monkey-patchable, i.e. it has been frozen withObject.freeze()
. If you relied on patchingEasing
, instead you should use alternative references for the easing functions you wish to use.
From now on we will also keep the changelog updated with each release so that it is easy to see what changed and if any migration is needed for breaking changes.
v18.6.4
v17.6
Reverted a breaking change from v17.3.0 to v17.3.2 (v17.3.1 was never released) that broke dynamic-to with array interpolation values.
In v17.6, objects passed to tween.to()
that have interpolation arrays will be modified as before v17.3.2, and those objects can be modified on the outside during animation to update interpolation values dynamically.
v18 contains the new behavior where the object passed into to()
is prototypically copied and never modified, but that prevents dynamic interpolation values during animations (the breaking change is suitable for the major version bump from 17 to 18).
A following major version will provide a new dynamic
option to the to()
method for choosing the desired behavior.
v18 - Out with the old!
The update to v18 was largely foundational: removal of bower and update of scripts and CI. It may break someone using Bower to install from git, hence the major bump.
Breaking:
- The script you should include has moved from
src/Tween.js
todist/tween.umd.js
for global<script>
tags. See the install guide. - Relative start values were removed (they were not documented).
- Migration:
- Before:
tween.start('+100')
- After:
tween.delay(100).start()
- Before:
- Migration:
v17.4.0
v17.3.5
v17.3.4
Major memory usage improvement
<a name"16.7.1">
Tweens now use only 20% of the memory that they previously used. This means that you can have more active tweens, and creating tweens is now faster.