From a44ae94132e68c50f7ce1febc88b2eeb5bf68bc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Sat, 26 Aug 2023 23:40:04 +0300 Subject: [PATCH] chore(release): prepare for v0.13.0 --- CHANGELOG.md | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++ Cargo.lock | 2 +- Cargo.toml | 2 +- README.md | 2 ++ config.toml | 2 +- 5 files changed, 75 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fe220f2..6c809a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,76 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.13.0] - 2023-08-26 + +### Added + +- Support handling spaces in filenames (#107) + +Now you can replace the whitespaces with either underscore or encoded space (`%20`) character in the filenames. + +For example: + +```toml +[server] +handle_spaces = "replace" +``` + +```sh +$ curl -F "file=@test file.txt" + +/test_file.txt +``` + +Or you can use encoded spaces: + +```toml +[server] +handle_spaces = "encode" +``` + +```sh +$ curl -F "file=@test file.txt" + +/test%20file.txt +``` + +Please note that `random_url` should not be configured to use the original file names. + +### Changed + +- Improve random_url config handling (#122) + +`[paste].random_url.enabled` is deprecated. You can now disable random URLs by commenting out `[paste].random_url`. + +```toml +# enabled +random_url = { type = "petname", words = 2, separator = "-" } + +# disabled +# random_url = { type = "petname", words = 2, separator = "-" } +``` + +- Replace unmaintained actions (#116) +- Bump Shuttle to `0.24.0` +- Bump dependencies + +### Fixed + +- Don't log invalid token in release builds (#112) + +Before, invalid tokens were logged as follows: + +``` +[2023-08-13T19:24:30Z WARN rustypaste::auth] authorization failure for a.b.c.d (header: invalid_token) +``` + +Now, we print the token only in debug mode. In release mode, the log entry will look like this: + +``` +[2023-08-13T19:24:30Z WARN rustypaste::auth] authorization failure for a.b.c.d +``` + ## [0.12.1] - 2023-08-11 ### Fixed diff --git a/Cargo.lock b/Cargo.lock index a558e05..d5c5011 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2179,7 +2179,7 @@ checksum = "7ffc183a10b4478d04cbbbfc96d0873219d962dd5accaff2ffbd4ceb7df837f4" [[package]] name = "rustypaste" -version = "0.12.1" +version = "0.13.0" dependencies = [ "actix-files", "actix-multipart", diff --git a/Cargo.toml b/Cargo.toml index 21b0f4e..b4ad48b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rustypaste" -version = "0.12.1" +version = "0.13.0" edition = "2021" description = "A minimal file upload/pastebin service" authors = ["Orhun Parmaksız "] diff --git a/README.md b/README.md index 618b7a4..b9a153a 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,8 @@ Here you can read the blog post about how it is deployed on Shuttle: [https://bl - supports overriding and blacklisting - supports forcing to download via `?download=true` - no duplicate uploads (optional) + - listing files + - custom landing page - Single binary - [binary releases](https://github.com/orhun/rustypaste/releases) - Simple configuration diff --git a/config.toml b/config.toml index 7d9fcdc..2b22d6b 100644 --- a/config.toml +++ b/config.toml @@ -14,7 +14,7 @@ expose_list = false # "super_secret_token1", # "super_secret_token2", #] -handle_spaces = "replace" # or "replace" +handle_spaces = "replace" # or "encode" [landing_page] text = """