Releases: jeremyckahn/shifty
Adds `hasEnded` method
- Implements
hasEnded
method (#151).
Thanks to @arthuro555 for adding this feature!
TypeScript types for Shifty
This is a big one!
This release introduces TypeScript definitions for Shifty (requested in #68, implemented in #135). This is entirely thanks to the efforts of @arthuro555. Thank you @arthuro555! 👏 👏 👏
Types should "just work" in your TypeScript projects when you upgrade. Enjoy!
Improve support for `rgba` strings
This release adds full support for rgba
strings. It was mostly working before, but now rgba
strings will have integer values instead of decimals for the rgb
parts.
Thanks to @hoomanaskari for bringing attention to this!
Enable tween restarting
Improve ES5 targeting
Distribute ES5-compatible web build artifacts
This is a fix for #129. Thanks @Hilbertangers!
Adds shifty.core.js build
This builds adds a new build target for web environments: shifty.core.js
. It contains a minimal version of the library:
Don't reuse private variables
This release delivers a (very) small performance improvement. It serves more to make the code more maintainable, but it also speeds it up ever so slightly. You can see a full breakdown of the motivation and implementation in #128.
Add Tweenable#catch
Defines Tweenable#catch
to fix backwards compatibility with pre-2.14.0 versions.
See 4ian/GDevelop#2128 for the story behind this fix.
Performance optimization
2.14.0 brings another round of performance improvements. This release brings Shifty's CPU performance characteristics in-line with GSAP's and delivers superior memory utilization.
To achieve this level of performance, a handful of small API modifications were made, but everything is fully backwards-compatible with 2.13.x.
Promise
s are no longer returned byTweenable#tween
andTweenable#resume
. They return theirTweenable
instance.- To account for the changed return type, there is now
Tweenable#tween
that returns aPromise
instance. - This release also re-introduces the
finish
option fortweenConfig
.
Documentation: https://jeremyckahn.github.io/shifty/doc/index.html