Skip to content

20240515

Compare
Choose a tag to compare
@ku1ik ku1ik released this 15 May 11:34
· 72 commits to develop since this release

Notable changes

  • user account email addresses are now case-insensitive and automatically lower-cased (see Upgrading section below)
  • extended live stream visibility to 3 options: public, unlisted, private
  • fixed memory leak caused by telemetry_metrics_prometheus (which has been removed, for now)
  • SVG preview images are now cacheable (Cache-Control: public, max-age: ...)
  • improved recording instructions on new user profile, added streaming instructions there too
  • fixed embed script for private recordings
  • added support for use of Nerd fonts in embed iframes (thanks @jonpetersathan!)
  • added support for use of original terminal themes in embed iframes
  • improved duration formatting on the live stream card on user profile
  • recording files are now fetched via local path instead of absolute URL - easier for reverse proxies / front web servers
  • various code cleanups and refactorings

Upgrading

For most folks no manual changes are needed, other than bumping the container image version number as shown here.

If it happened that you signed up multiple times with the same email address but different letter casing, e.g. foo@example.com and Foo@example.com, then the duplicate account is automatically renamed to 1_foo@example.com upon first boot of this version.

In such case, and if the other account had recordings which you'd like to access, you can merge the accounts by:

  • attaching to the Elixir shell in the asciinema server container, e.g.: docker-compose exec asciinema bin/asciinema remote
  • merging the accounts by executing: Asciinema.merge_accounts("1_foo@example.com", "foo@example.com")

Asciinema.merge_accounts merges the first account (first arg) into the second account (second arg).

Example:

$ docker-compose exec asciinema bin/asciinema remote
Erlang/OTP 25 [erts-13.1.4] [source] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:1] [jit]

Interactive Elixir (1.14.3) - press Ctrl+C to exit (type h() ENTER for help)
iex(app@1.2.3.4)1> Asciinema.merge_accounts("1_foo@example.com", "foo@example.com")
{:ok, %User{...}}

I've already merged duplicate accounts on asciinema.org.