-
-
Notifications
You must be signed in to change notification settings - Fork 33
fix(deps): update dependency asciinema-player to v3.12.1 #115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
renovate
wants to merge
1
commit into
main
Choose a base branch
from
renovate/asciinema-player-3.x
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
breaks all the styles |
7108b6f to
4d7b8e7
Compare
4d7b8e7 to
579b27a
Compare
579b27a to
9f94117
Compare
9f94117 to
978bfc4
Compare
978bfc4 to
06e44f3
Compare
06e44f3 to
3597107
Compare
3597107 to
98fe762
Compare
98fe762 to
19d9ee3
Compare
19d9ee3 to
f89fe3c
Compare
0845bf8 to
f89fe3c
Compare
f89fe3c to
d933b69
Compare
d933b69 to
29a8d8c
Compare
29a8d8c to
3f9726d
Compare
3f9726d to
73ba1b9
Compare
73ba1b9 to
0f86d8f
Compare
0f86d8f to
cbd764c
Compare
cbd764c to
96a4346
Compare
96a4346 to
1bd260c
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.0.0-rc.1->3.12.1Release Notes
asciinema/asciinema-player (asciinema-player)
v3.12.1: 3.12.1Compare Source
This version includes additional fix for seeking past the end of recording and restarting the playback.
v3.12.0: 3.12.0Compare Source
Notable changes:
Live audio playback
The
audioUrloption, introduced in v3.11, can now also be used with live (WebSocket) sources:The URL should be a live audio source - either a direct HTTP audio stream (.mp3, .aac, .ogg, etc) such as Icecast/Shoutcast endpoint, or HLS playlist (.m3u8).
Note that it's not recommended to use
autoplay: trueoption together withaudioUrl- browsers often require explicit user activity (click, tap) to enable sound, which in the player's case would be starting the playback by clicking on the play button. Without user click theautoplaywill start the playback but the sound likely won't be there.Also, for the audio playback to work a server that handles the audio URL (e.g. Icecast) must be configured to allow CORS requests from the page (URL) that hosts the player.
New adaptive buffering
The WebSocket driver uses adaptive buffer (expressed in time) to ensure smooth, stutter free playback of live sessions with minimal latency.
The previous algorithm used a moving average over a sliding window of N recent latencies. It did ok-ish job, but given the sparse nature of the event stream (no constant rate) it turned out to be not ideal. Here's how it performed. Red dots are measured latencies, green line is effective buffer time:
The new algorithm uses time based EMA (exponential moving average), which is much more relevant for sparse events, resulting in more stable and overall lower buffer size when applied to a wide spectrum of terminal activities (here applied to the same input latencies as the one above):
v3.11.1: 3.11.1Compare Source
This release brings additional fixes for audio loading in Safari.
v3.11.0: 3.11.0Compare Source
Notable changes:
,and.keysThe main new thing in this version is the synced audio playback.
When
audioUrlis passed as an option when mounting the player on the page, the player automatically creates hidden audio element, ensures the audio file is ready for playback, and syncs audio playback position with the terminal recording playback (pause, resume, seek just work).There's also a new button (icon) and keyboard shortcut (
mkey) for muting/unmuting.Note that for the audio playback to work:
autoplay: trueoption - browsers often require explicit user activity (click, tap) to enable soundCheck out this demo:
v3.10.0: 3.10.0Compare Source
Notable changes:
https://www.npmjs.com/package/asciinema-player/v/3.10.0
v3.9.0: 3.9.0Compare Source
Notable changes:
?key or the keyboard icon in the control bar,(comma) key, a complementary feature for existing "step forward" (.key)https://www.npmjs.com/package/asciinema-player/v/3.9.0
The split mode, runs player's UI and player's core (parsing, terminal emulation) in separate OS threads, which improves UI's responsiveness during playback. In this setup the UI code runs in the window context, while the processing code runs in a WebWorker. The benefit of this configuration is typically observed only for high frame-rate / high bandwidth recordings. The player hosted on asciinema.org runs in the split mode. For typical demos/sessions it's not worth the setup hassle. This is advanced setup and in 99% of the cases you don't need it.
v3.8.2: 3.8.2Compare Source
Notable changes:
v3.8.1: 3.8.1Compare Source
Notable changes:
dist/bundle/asciinema-player.min.jsto package exports to allow pre-3.8.0 usage (#263)v3.8.0: 3.8.0Compare Source
Notable changes:
auto/<theme-name>specification forthemeoption (see below)"type": "module"to package.json to fix import error with some bundlers (thanks @MaddyGuthridge)https://www.npmjs.com/package/asciinema-player/v/3.8.0
Recordings made with asciinema CLI 3.0 or later may embed original terminal theme, which is used by the player when available.
Before this release the only way to let the player use the embedded theme automatically was not specifying the
themeoption when initializing the player. When thethemeoption was not used, the player favored the embedded theme, falling back toasciinematheme. There was no way to specify "use the original theme when available, fall back to monokai".This release adds the ability to specify the above wish as
{ theme: "auto/monokai" }. You can use any built-in theme, e.g.{ theme: "auto/dracula" }, and the player will use Dracula theme if the original theme was not captured at the time of recording.To always use a specific theme regardless of the presence of the original theme in a recording file, use
{ theme: "<theme-name>" }, e.g.{ theme: "dracula" }.Default value of the
themeoption (when one not specified) is nowauto/asciinema.v3.7.1: 3.7.1Compare Source
Notable changes:
https://www.npmjs.com/package/asciinema-player/v/3.7.1
Demo showing the improved rendering in general:
Screenshots showing the fixes to the character alignment and positioning:
v3.7.0: 3.7.0Compare Source
Notable changes:
themeoption is explicitly provided0width) to prevent player crashhttps://www.npmjs.com/package/asciinema-player/v/3.7.0
v3.6.4: 3.6.4Compare Source
This is a minor release, which improves keyboard shortcut handling.
v3.6.3: 3.6.3Compare Source
This is a minor release that features a major performance bump for the embedded terminal emulator—up to 70% faster emulation in sequence parsing and virtual buffer manipulation. This leaves more CPU cycles available for smoother rendering ✨
v3.6.2: 3.6.2Compare Source
v3.6.1: 3.6.1Compare Source
The work on resize feature has been sponsored by ITLook. Thanks @boris-42 !
v3.6.0Compare Source
v3.5.0: 3.5.0Compare Source
https://www.npmjs.com/package/asciinema-player/v/3.5.0
v3.4.0: 3.4.0Compare Source
controlsoption for controling visibility of control baridleTimeLimitoption behaviour with input ("i") eventsminFrameTimev3.3.0: 3.3.0Compare Source
asciinema rec --stdinviainputeventsinputOffsetsource option to shift fired input events in timeplayer.play()to not act like toggleminFrameTimesource option to change FPS cap (default: 1/60s)Example use of new
inputevent:inputOffsetsource option can be used to shift fired input events in time, e.g. when you need them to fire earlier due to audio samples taking extra time to be emitted:v3.2.0: 3.2.0Compare Source
{ url: "...", parser: parserFn }source - doc{ logger: console }option - docv3.1.2: 3.1.2Compare Source
v3.1.1: 3.1.1Compare Source
v3.1.0: 3.1.0Compare Source
v3.0.1: 3.0.1Compare Source
v3.0.0: 3.0.0Compare Source
Brand new player rewritten from scratch. Smaller, faster, better.
Upgrading from v2 to v3
v2.x used, now deprecated,
document.registerElement(...)API for registering<asciinema-player>custom HTML element. This way of initializing the playerhas been removed in v3.x, replaced with standard JavaScript API.
Instead of this v2 code:
Use this v3 code:
There's also asciinema-player npm package, which can be
used instead of the standalone bundle. Check the quick start guide for details.
srcattribute becomes the first argument toAsciinemaPlayer.create(). Thesecond argument specifies the container element to mount the player under. All
other option attributes are now passed in options objects as the third argument.
The following table shows how 2.x attributes map to new 3.x options:
colscols{ cols: 80 }rowsrows{ rows: 24 }autoplayautoPlay{ autoPlay: true }preloadpreload{ preload: true }looploop{ loop: true }or{ loop: 3 }start-atstartAt{ startAt: 33 }speedspeed{ speed: 2 }idle-time-limitidleTimeLimit{ idleTimeLimit: 2 }posterposter{ poster: "npt:2:34" }font-sizeterminalFontSize{ terminalFontSize: "20px", fit: false }fit: falsethemetheme{ theme: "dracula" }titleauthorauthor-urlauthor-img-urlv3.0.0-rc.4: 3.0.0-rc.4Compare Source
v3.0.0-rc.3: 3.0.0-rc.3Compare Source
v3.0.0-rc.2: 3.0.0-rc.2Compare Source
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.