tweenjs/tween.js
 Watch   
 Star   
 Fork   
13 days ago
tween.js

v23.1.2 - yo yo yo yo!

What's Changed

New Contributors

Full Changelog: https://github.com/tweenjs/tween.js/compare/v23.1.1...v23.1.2

2024-01-15 15:38:00
tween.js

v23.1.1

What's Changed

New Contributors

Full Changelog: https://github.com/tweenjs/tween.js/compare/v23.1.0...v23.1.1

2024-01-15 14:58:09
tween.js

v23.0.0 - Time Travel

What's Changed

  • Add : tests for onRepeat callback by @MasatoMakino in https://github.com/tweenjs/tween.js/pull/609
  • Handling of repeats with browser tab sleep by @MasatoMakino in https://github.com/tweenjs/tween.js/pull/564
    • When updates are skipped (f.e. due to requestAnimationFrame not firing for unfocused tabs) and then start firing again later, things now work (tweens can travel properly into the future).
  • BREAKING: negative values for .delay() are no longer valid (it was not a documented feature). See df8214619f671162034b9c881f81eafcdcbcad92 for migration example.
  • Update examples to avoid removed features by @trusktr

Full Changelog: https://github.com/tweenjs/tween.js/compare/v22.0.0...v23.0.0

2024-01-15 09:45:23
tween.js

v22.0.0 - CommonJS is not so common anymore!

But! Some people might still be using it, so:

Fixes

  • Fix CJS entry point by @inukshuk in https://github.com/tweenjs/tween.js/pull/659, thanks!
    • BREAKING: This is a potentially breaking change because dist/index.cjs.js was renamed to dist/index.cjs. If you relied on dist/index.cjs.js, update your paths and you'll be good to go.

New Contributors

Full Changelog: https://github.com/tweenjs/tween.js/compare/v21.1.1...v22.0.0

2024-01-15 09:25:03
tween.js

v21.1.1 - TypeScript all day every day!

Fixes:

  • fix the exports field so that types will be discoverable by TypeScript out of the box when importing tween.js into a TS project. Thanks @tazyong @jramstedt @keiya01!

Docs:

  • fix broken tutorial link. Thanks @victorbnl!

Full Changelog: https://github.com/tweenjs/tween.js/compare/v21.0.0...v21.1.1

2023-06-23 14:55:07
tween.js

v21.0.0 - Back to the Future

Docs:

  • bf50c1f529a96b646e3c5fffececb918c4ea7384- Chinese docs up to date with the latest English source. Thanks @mk965! 🎉

Possibly Breaking Change:

  • 283e66e3b1d3c90cfd186b1b6ea83bb5c542cb56 - An exports field was added to package.json to make it compatible with ESM tools (to override the main field currently pointing at a CommonJS file which doesn't make sense for ESM, but does for old Node.js). To be safe, we made this a major version because there's a chance it can break someone's app (f.e. if they imported from dist/ directly, that will now be blocked, and they would need to change import ... from '@tweenjs/tween.js/dist/tween.esm.js' to import ... from '@tweenjs/tween.js'). Thanks for this @christjt!
2023-04-23 12:09:26
tween.js

v20.0.0 - Good luck, bunnies!

You won't be able to outrun the fox!

Fixes

  • Fixed the video_and_time example which sometimes didn't play a video.

Breaking changes:

  • By default, the "dynamic to" feature is no longer enabled. To enable it, you must now enable it with tween.dynamic(true).

    Warning When dynamic is set to false, Tween makes a copy of the object passed into tween.to() and will never modify it (hence updating the original object from the outside is not dynamic). When dynamic is true, Tween uses the original object as the source of values during animation (every update reads the values, hence they can be modified dynamically) but note that in dynamic mode, Tween will modify any interpolation arrays of the object passed into tween.to() which may cause side-effects on any external code that may also rely on the same object. We've added two new dynamic_to examples. In each example, when dynamic is disabled, the fox cannot catch any rabbits. When dynamic is enabled, the rabbits have no chance!

  • tween.to() now throws if it is called when a tween is started (even if paused). Call tween.stop() first before setting a new .to() value.
2023-04-03 07:42:46
tween.js

v19.0.0 - Stop the monkeys!

Breaking change:

  • The Easing object is no longer monkey-patchable, i.e. it has been frozen with Object.freeze(). If you relied on patching Easing, 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.

2020-10-22 15:54:11
tween.js
2020-10-22 15:00:00
tween.js

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.