From d4d8a287831de415bd121051b9f6c1607abefdfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Wed, 31 May 2023 02:16:47 +0300 Subject: [PATCH] chore(release): prepare for v0.10.0 --- CHANGELOG.md | 38 ++++++++++++++++++++++++++++++++++++++ Cargo.lock | 2 +- Cargo.toml | 2 +- 3 files changed, 40 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9bc478c..e3593a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,44 @@ 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.10.0] - 2023-05-31 + +### Added + +- Support one shot URLs + +With using the `oneshot_url` multipart field, you can now shorten an URL and make it disappear after viewed once: + +```sh +curl -F "oneshot_url=https://example.com" "" +``` + +- Allow configuring the content type for the landing page + +`landing_page_content_type` is added as a configuration option for setting the [`Content-Type`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type) header: + +```toml +[server] +landing_page = "" +landing_page_content_type = "text/plain; charset=utf-8" +``` + +- Add information/example about using HTML forms + +With utilizing the newly added option for the content type, you can now use HTML forms for the landing page: + +```toml +[server] +landing_page = "" +landing_page_content_type = "text/html; charset=utf-8" +``` + +There is an example added to the repository: [html_form.toml](https://github.com/orhun/rustypaste/blob/1a8958966972f2afb04a12cb2f5537a1d971561c/examples/html_form.toml) + +Also, there is an ongoing discussion about refactoring the usage of landing page fields in the configuration file. See [#52](https://github.com/orhun/rustypaste/issues/52) + +- An informative log message is added for showing the server address at startup + ## [0.9.1] - 2023-05-24 ### Changed diff --git a/Cargo.lock b/Cargo.lock index 33e1979..5efb979 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2262,7 +2262,7 @@ checksum = "4f3208ce4d8448b3f3e7d168a73f5e0c43a61e32930de3bceeccedb388b6bf06" [[package]] name = "rustypaste" -version = "0.9.1" +version = "0.10.0" dependencies = [ "actix-files", "actix-multipart", diff --git a/Cargo.toml b/Cargo.toml index 02a98c5..2bbf5a6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rustypaste" -version = "0.9.1" +version = "0.10.0" edition = "2021" description = "A minimal file upload/pastebin service" authors = ["Orhun Parmaksız "]