Skip to content

Releases: matze/wastebin

3.4.0

25 Dec 16:00
c9d7173

Choose a tag to compare

Added

  • wastebin-theme-showcase binary to generate a static HTML page with theme examples for both light and dark variants. See here for example output.
  • w key to toggle line wrapping.

Changed

  • Re-wrote the Dockerfile to compile for both x86_64-unknown-linux and aarch64-unknown-linux from an x86_64-unknown-linux host.
  • Unconditionally set the Secure attribute on cookies and do not try to derive applicability from the origin header.
  • Customize scrollbar color for the language list.
  • Many small memory-related optimizations, thanks to @cgzones for a bunch of these.

Fixed

  • Check if Ctrl/Meta/Cmd key is pressed together with C to avoid unexpected behaviour on platforms where Ctrl+C might be registered as just C.

Full Changelog

3.3.0...3.4.0

3.3.0

17 Aug 19:57
a297749

Choose a tag to compare

Added

  • Possibility to switch back to system settings for the dark/light mode selection.
  • delete command to wastebin-ctl to delete specific entries.
  • Filters to the wastebin-ctl's list command.

Changed

  • Do not require JavaScript to hide respective dark/light/system mode buttons. Note that this might cause a confusing initial state because we do not know the system setting without querying it with browser APIs but in the worst case it means two to three clicks to change it.

Fixed

  • Store wastebin-ctl correctly in the ARM image.

Full Changelog

3.2.0...3.3.0

3.2.0

07 Jun 21:33
3fdec3a

Choose a tag to compare

Added

  • Support for binding to a Unix domain socket instead of a TCP address/port via the WASTEBIN_UNIX_SOCKET_PATH environment variable.
  • Support for expiration durations specified explicitly as seconds, minutes, hours, days, months and years.
  • Display set expiration in the title.
  • Display set expiration in wastebin-ctl list.
  • catpuccin theme key selecting Catppuccin Latte for light and Catppuccin Mocha for dark mode.
  • New debsources, GDScript, Idris, Odin and Typst syntaxes.

Changed

  • Use main accent color for selected options.
  • Root element's color-scheme is now set according to the selected theme, which makes browser use appropriate color scheme for its UI.
  • Make "never" the default expiration like it was with wastebin before 3.0.
  • Reject duplicate expiration values.

Fixed

  • Missing separators between expiration parts.
  • Better number of days for expiration months (30 days instead of 28) and years (365 days instead of 336).

Full Changelog

3.1.0...3.2.0

3.1.0

20 May 19:20
e404ece

Choose a tag to compare

Added

  • wastebin-ctl command line tool to list all existing entries and purge expired ones.
  • /robots.txt disallowing any crawling.
  • Subtle button animations.
  • Toast message when a burned paste is read.
  • x86_64-apple-darwin, aarch64-apple-darwin, aarch64-unknown-linux-musl, riscv64gc-unknown-linux-gnu, x86_64-pc-windows-msvc, aarch64-pc-windows-msvc release binaries in addition to the existing x86_64-unknown-linux-musl ones.

Changed

  • Enclose Markdown links in anchor tags to make them clickable. Thanks for preliminary work done in #85 by @FliegendeWurst.
  • Improve performance by avoiding unnecessary memory allocations.
  • Improve throughput by avoiding locks on the database. Thanks for preliminary work done in #156 by @mokurin000.
  • Improve mobile layout.

Fixed

  • Content disposition header value was wrongly constructed.
  • Download appended txt extension even if paste was uploaded without an extension.

Full Changelog

3.0.0...3.1.0

3.0.0

05 Mar 21:41

Choose a tag to compare

Added

  • WASTEBIN_THEME configuration key to change the default theme from ayu to base16ocean, coldark, gruvbox, monokai, onehalf or solarized.
  • UI button to switch between light and dark mode and cookie to store the preference. By default the system setting is used.
  • UI button and c to copy content to clipboard. Thanks @limitcool.

Changed

  • Breaking: From now on, WASTEBIN_BASE_URL is only used for the QR code link but not for internal routing. Use a dedicated proxy server to do that if necessary.
  • Breaking: Always return HTML on /:id even if text/html is not in the Accept header. Use the /raw/:id endpoint to retrieve raw text.
  • Breaking: Replace WASTEBIN_MAX_PASTE_EXPIRATION with a customizable set of expirations via the WASTEBIN_PASTE_EXPIRATIONS variable.
  • Use the two-face crate for an extended syntax list.
  • Use 64-bit integers that render as 11-character identifier from now on. Existing 32-bit/6-character identifiers continue to work. Based on a PR #71 by @cgzones.
  • Use title as downloaded filename instead of identifier if one is available.
  • Serve all CSS assets under hashed URL to avoid caching issues and set cache-control header to one month and the immutable attribute.
  • Do not offer any interactions for burn-after-reading pastes that will end up with a 404 anyway.

Fixed

  • Sort syntax list in case insensitive manner.
  • Wrong background color for inline code in Markdown.

New Contributors

Full Changelog

2.7.1...3.0.0

2.7.1

24 Jan 19:03

Choose a tag to compare

Changed

  • Select extension based on the filename.
  • Serve Javascript under hashed URL to avoid caching issues.
  • Use same six month maximum age cache control for all assets.
  • Show nicer error pages for some middleware layer issues instead of plain text responses.

Fixed

  • Actually respect WASTEBIN_MAX_BODY_SIZE.
  • Allow selection of title.
  • QR code overflowing content.

Full Changelog

2.7.0...2.7.1

2.7.0

15 Jan 23:04

Choose a tag to compare

Changed

  • Improve UI by using SVG icons instead of text for action links and buttons, using only flexbox for layouting, round UI elements.
  • Replace QR code button on the QR page with a button that leads back to the paste page.
  • Pre-fill the title box when uploading a local file.
  • Optimize code for minor performance improvements.

Fix

  • Include extension in the QR code link.

Full Changelog

2.6.0...2.7.0

2.6.0

12 Jan 23:22

Choose a tag to compare

Added

  • Ctrl+S binding to store a paste.
  • Input field to set a title for a paste.
  • Security headers served with each HTTP response and secure cookie settings.
  • Button to show a paste's QR code.

Changed

  • Use NonZero internally for data where 0 is not a valid value and any special meaning in expressed via an outer Option.
  • Show QR code on the page after submitting a burn-after-reading paste.
  • Low-impact performance improvements.
  • Return FORBIDDEN on wrong password instead of INTERNAL_SERVER_ERROR.

Fixed

  • Paste content selection and copying using ctrl+a or mouse.
  • Issues reported by the w3c validator.
  • Vertical auto-scroll.

New Contributors

Full Changelog

2.5.0...2.6.0

2.5.0

19 Aug 19:50

Choose a tag to compare

Added

  • Possibility to serve from some subdomain via the WASTEBIN_BASE_URL environment variable.
  • Possibility to limit maximum paste expiration with the WASTEBIN_MAX_PASTE_EXPIRATION environment variable.
  • Open button to read local file into input.

Changed

  • Improve container layout and CSS.

New Contributors

Full Changelog

2.4.3...2.5.0

2.4.3

15 Jan 21:19

Choose a tag to compare

Changed

Fixed

  • Stretched vertically lines, mostly with bash scripts.

Full Changelog

2.4.2...2.4.3