Skip to content

Releases: etro-js/etro

v0.12.1

19 Feb 17:07
83d52ef
Compare
Choose a tag to compare

[0.12.1] - 2024-02-19

Fixed

  • Importing etro in the client-side code of a NextJS project causing a "module not found" error (#243).
  • Keyframes with values that are not numbers no longer result in type mismatches.
  • TypeError: this.data is undefined when applying a Transform effect with a dynamic matrix.

v0.12.0

15 Jan 21:20
c34f452
Compare
Choose a tag to compare

[0.12.0] - 2024-01-15

Added

  • stroke option for Text layer (#239).

Security

  • Bump @babel/traverse from 7.18.13 to 7.23.2 (#244).
  • Bump browserify-sign from 4.2.1 to 4.2.2 (#245).
  • Bump follow-redirects from 1.14.9 to 1.15.4 (#247).
  • Bump gitmoji-cli from 8.4.0 to 9.0.0.

Playback Update

05 Aug 15:06
6592825
Compare
Choose a tag to compare

0.11.0 - 2023-08-05

Added

  • duration option for Movie#play (#208).

Fixed

  • Audio and video layers going silent after the first time recording the movie (#106).
  • Failed to set the 'currentTime' property on 'HTMLMediaElement' error when seeking audio and video layers (#227).
  • Seeking while playing not updating the movie's current time (#233).

Security

  • Bump word-wrap from 1.2.3 to 1.2.5 (#222).

v0.10.1

16 Jul 22:12
55f7a5a
Compare
Choose a tag to compare

0.10.1 - 2023-07-16

Security

  • Bump engine.io and socket.io.
  • Bump socket.io-parser from 4.2.1 to 4.2.3.

Streaming Update

18 Apr 13:42
b588485
Compare
Choose a tag to compare

0.10.0 - 2023-04-18

Added

  • Movie#stream() to stream the movie to a MediaStream.
  • New onStart option for Movie#play() and Movie#record().
  • Image, audio and video layers' source properties now accept urls (#153).
  • Movies, layers and effects have a new ready getter, indicating if they are ready to play.
  • Layers and effects now have an async whenReady method.
  • Movie#seek() method.
  • Layers have new seek() and progress() methods.
  • once option for subscribe.

Changed

  • The (deprecated) 'movie.pause' event is now published every time playback stops, regardless of the reason.
  • source properties of Image, Audio and Video have been retyped to HTMLImageElement, HTMLAudioElement and HTMLVideoElement respectively.

Deprecated

  • etro.applyOptions() and EtroObject#getDefaultOptions() are deprecated. Instead, set each option in the constructor (#131).
  • The Movie#currentTime setter is deprecated. Use Movie#seek() instead.
  • Movie#setCurrentTime() is deprecated. Instead, call seek() and refresh() separately.
  • The 'movie.seek' event is deprecated. Override the seek() method on layers instead.
  • The 'movie.timeupdate' event is deprecated. Override the progress() method on layers instead.
  • The 'movie.loadeddata' event is deprecated.
  • The 'movie.play' event is deprecated. Provide the onStart option to play(), stream() or record() instead.
  • The 'movie.pause' event is deprecated. Wait for play(), stream() or record() to resolve instead.
  • The 'movie.record' event is deprecated. Provide the onStart option to record() instead.
  • The 'movie.recordended' event is deprecated. Wait for record() to resolve instead.
  • The 'movie.ended' event is deprecated.

Removed

  • Movie#autoRefresh (see #130).
  • change events (see #130).
  • watchPublic() and publicExcludes (see #130).

Fixed

  • Movie#currentTime is now reset to 0 when the movie ends.
  • Movie#play() and Movie#record() now wait until all resources are loaded before starting.
  • Movie#pause() no longer stops inactive layers (#203).
  • Array methods like unshift for etro.layer.Visual#effects and etro.effect.Stack#effects work properly.
  • AudioSource#playbackRate is now optional.
  • duration option for Audio and Video layers is now optional.
  • Video constructor now accepts missing options.

v0.9.1

18 Sep 02:29
487f206
Compare
Choose a tag to compare

0.9.1 - 2022-09-18

Fixed

  • Update color types from string to Color (#135).
  • Image and Video classes now include missing properties.
  • Movie#currentTime no longer exceeds the stop time.

Boring Update

17 Jul 23:14
61ccf9b
Compare
Choose a tag to compare

0.9.0 - 2022-07-17

Changed

  • Methods in the Base effect now accept Base layers instead of Visual layers.

Deprecated

  • autoRefresh option (#130).
  • publicExcludes (#130).
  • All change events (#130).

Fixed

  • Layers no longer trigger infinite loops when their active states change (#127).
  • Add missing VisualSource options to Image layer (#128).
  • Layers are now stopped when recording ends.
  • stop() is no longer called on inactive layers.
  • Movies no longer publish 'movie.ended' when done recording.
  • Audio and Video layers not detaching properly.
  • When done playing or recording, movies only reset their time if they're in repeat mode.
  • The timeupdate event is no longer fired when currentTime remains the same (due to performance.now() rounding).

v0.8.5

06 Mar 22:01
a53a306
Compare
Choose a tag to compare

0.8.5 - 2022-03-06

Deprecated

  • vd.effect.Base - All visual effects now inherit from vd.effect.Visual instead.

Fixed

  • Movie constructor throwing Can't find variable: AudioContext on WebKit browsers.

v0.8.4

23 Feb 18:43
e973e39
Compare
Choose a tag to compare

0.8.4 - 2022-02-23

Fixed

  • Major memory leak.
  • Movie#play() not resolving.
  • Movie#paused set to false after done playing or recording.
  • Movies' currentTime being off by a fraction of a second a few frames after playing.
  • Movies' currentTime setter not respecting autoRefresh.

v0.8.3

12 Feb 21:38
2a0b559
Compare
Choose a tag to compare

0.8.3 - 2022-01-18

Fixed

  • Recording not respecting the type option.
  • Effects throwing 'empty canvas' errors when the target's width or height is 0.