Releases: matze/wastebin
Releases Β· matze/wastebin
3.4.0
Added
wastebin-theme-showcasebinary 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
Dockerfileto compile for both x86_64-unknown-linux and aarch64-unknown-linux from an x86_64-unknown-linux host. - Unconditionally set the
Secureattribute 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
Added
- Possibility to switch back to system settings for the dark/light mode selection.
deletecommand towastebin-ctlto delete specific entries.- Filters to the
wastebin-ctl'slistcommand.
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-ctlcorrectly in the ARM image.
Full Changelog
3.2.0
Added
- Support for binding to a Unix domain socket instead of a TCP address/port via the
WASTEBIN_UNIX_SOCKET_PATHenvironment 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. catpuccintheme 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-schemeis 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
Added
wastebin-ctlcommand line tool to list all existing entries and purge expired ones./robots.txtdisallowing 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-msvcrelease binaries in addition to the existingx86_64-unknown-linux-muslones.
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
txtextension even if paste was uploaded without an extension.
Full Changelog
3.0.0
Added
WASTEBIN_THEMEconfiguration key to change the default theme fromayutobase16ocean,coldark,gruvbox,monokai,onehalforsolarized.- 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_URLis 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
/:ideven iftext/htmlis not in the Accept header. Use the/raw/:idendpoint to retrieve raw text. - Breaking: Replace
WASTEBIN_MAX_PASTE_EXPIRATIONwith a customizable set of expirations via theWASTEBIN_PASTE_EXPIRATIONSvariable. - 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
immutableattribute. - 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
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
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
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
NonZerointernally 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
FORBIDDENon wrong password instead ofINTERNAL_SERVER_ERROR.
Fixed
- Paste content selection and copying using ctrl+a or mouse.
- Issues reported by the w3c validator.
- Vertical auto-scroll.
New Contributors
- @cgzones made their first contribution in #70
- @rexdotsh made their first contribution in #88
- @FliegendeWurst made their first contribution in #89
Full Changelog
2.5.0
Added
- Possibility to serve from some subdomain via the
WASTEBIN_BASE_URLenvironment variable. - Possibility to limit maximum paste expiration with the
WASTEBIN_MAX_PASTE_EXPIRATIONenvironment variable. - Open button to read local file into input.
Changed
- Improve container layout and CSS.
New Contributors
- @pinpox made their first contribution in #45
- @aldur made their first contribution in #48
- @kshannoninnes made their first contribution in #61
- @HeapUnderfl0w made their first contribution in #62
- @ajvn made their first contribution in #63
- @luk1337 made their first contribution in #57
Full Changelog
2.4.3
Changed
- Focus main input elements (thanks @egor-tensin)
Fixed
- Stretched vertically lines, mostly with bash scripts.