Skip to content

Releases: jeremyckahn/shifty

Adds `hasEnded` method

12 Jun 23:53
Compare
Choose a tag to compare
  • Implements hasEnded method (#151).

Thanks to @arthuro555 for adding this feature!

TypeScript types for Shifty

10 Dec 03:06
Compare
Choose a tag to compare

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

01 Dec 14:54
Compare
Choose a tag to compare

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

18 Oct 13:46
Compare
Choose a tag to compare

Fixes #133 by allowing completed tweens to restart when calling tween() upon a finished Tweenable.

Thanks to @tfsJoe for reporting this lack of functionality!

Improve ES5 targeting

24 Dec 17:04
Compare
Choose a tag to compare

This is an extremely minor followup to v2.15.2. It just switches to a more declarative Webpack configuration: 76f01a0

I just wanted to isolate this change into its own patch release in case of the (extremely) off chance that there is a regression. However, it should be a safe upgrade.

Distribute ES5-compatible web build artifacts

24 Dec 04:50
Compare
Choose a tag to compare

Adds shifty.core.js build

18 Dec 03:45
Compare
Choose a tag to compare

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

15 Dec 04:03
Compare
Choose a tag to compare

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

11 Dec 04:10
Compare
Choose a tag to compare

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

09 Dec 04:33
Compare
Choose a tag to compare

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.

Shifty's memory performance shifty-profile
GSAP's memory performance gsap-profile

To achieve this level of performance, a handful of small API modifications were made, but everything is fully backwards-compatible with 2.13.x.

  • Promises are no longer returned by Tweenable#tween and Tweenable#resume. They return their Tweenable instance.
  • To account for the changed return type, there is now Tweenable#tween that returns a Promise instance.
  • This release also re-introduces the finish option for tweenConfig.

Documentation: https://jeremyckahn.github.io/shifty/doc/index.html

Video about performance optimizations and techniques