Skip to content

Conversation

@Methuselah96
Copy link
Contributor

@Methuselah96 Methuselah96 commented Mar 3, 2023

Related issue: N/A

Description

This PR updates tween.js from 17.3.5 to the latest version (18.6.4).

The main motivation behind updating tween.js is so that the @types/three can re-use the types provided by tween.js, which were added in tween.js 18.6.

Other notes:

  • According to the maintainer of tween.js, "the only major change from 17 to 18 was file name changes."
  • Tween.js ended up making TWEEN the default export instead of exporting it by name (which is how it's currently exported by three.js as of JSM: Added ES6 version of tween.js. #16947).
  • This PR updates it to a non-minified version of Tween.js since tween.js does not produce a minified build, but I can minify the file if that's desired.

@Methuselah96 Methuselah96 force-pushed the update-tween branch 2 times, most recently from 51b8ec0 to 6960b59 Compare March 3, 2023 13:38
@Mugen87 Mugen87 added this to the r151 milestone Mar 3, 2023
@Methuselah96
Copy link
Contributor Author

Sorry, didn't mean to push after you approved, I was just getting rid of some extra newlines that accidentally got added at the ends of the files I was editing.

@Mugen87
Copy link
Collaborator

Mugen87 commented Mar 3, 2023

This PR updates it to a non-minified version of Tween.js since tween.js does not produce a minified build, but I can minify the file if that's desired.

In the meanwhile, I personally prefer to use the official builds of third-party projects and don't modify them anymore. Makes the maintenance easier. If devs want minification, it's best to use a build tool and manage tween.js as a separate dependency (meaning not import it from the repository).

@Mugen87 Mugen87 merged commit 8865dc4 into mrdoob:dev Mar 4, 2023
@Methuselah96 Methuselah96 deleted the update-tween branch March 4, 2023 13:42
@Methuselah96 Methuselah96 mentioned this pull request Apr 25, 2023
37 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants