Skip to content

Commit 44c07a3

Browse files
committed
chore(release): prepare for v0.15.0
1 parent 64d783b commit 44c07a3

File tree

3 files changed

+55
-2
lines changed

3 files changed

+55
-2
lines changed

CHANGELOG.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,59 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.15.0] - 2024-03-27
9+
10+
### Added
11+
12+
- Allow to override filename when using `random_url` by @tessus in [#233](https://github.com/orhun/rustypaste/pull/233)
13+
14+
Now you can use the `filename` header to override the name of the uploaded file.
15+
16+
For example:
17+
18+
```sh
19+
curl -F "file=@x.txt" -H "filename:override.txt" http://localhost:8000
20+
```
21+
22+
Even if `random_url` is set, the filename will be override.txt
23+
24+
[`rustypaste-cli`](https://github.com/orhun/rustypaste-cli) also has a new argument for overriding the file name:
25+
26+
```sh
27+
rpaste -n filename-on-server.txt awesome.txt
28+
```
29+
30+
- Use more specific HTTP status codes by @tessus in [#262](https://github.com/orhun/rustypaste/pull/262)
31+
32+
`rustypaste` now returns more appropriate status codes in the following 2 cases (instead of a generic 500 code):
33+
34+
- If the mime type is on the blacklist: `UnsupportedMediaType` (415)
35+
- If the file already exists: `Conflict` (409)
36+
37+
### Changed
38+
39+
- Do path joins more safely by @RealOrangeOne in [#247](https://github.com/orhun/rustypaste/pull/247)
40+
- Gracefully exit when there is no config file found by @orhun
41+
- Switch to cargo-llvm-cov for code coverage by @orhun in [#260](https://github.com/orhun/rustypaste/pull/260)
42+
- Replace unmaintained action by @tessus in [#266](https://github.com/orhun/rustypaste/pull/266)
43+
- Set up mergify by @orhun
44+
- Apply clippy suggestions by @orhun
45+
- Update funding options by @orhun
46+
- Update the copyright years by @orhun
47+
- Bump dependencies
48+
49+
### Fixed
50+
51+
- Improve logging for deleted file by @tessus in [#235](https://github.com/orhun/rustypaste/pull/235)
52+
- Fix deployment by @tessus in [#236](https://github.com/orhun/rustypaste/pull/236)
53+
- Return the correct file on multiple files with same name by @tessus in [#234](https://github.com/orhun/rustypaste/pull/234)
54+
- Update the hash of the example file by @tessus in [#254](https://github.com/orhun/rustypaste/pull/254)
55+
- Error on upload with the same filename by @tessus in [#258](https://github.com/orhun/rustypaste/pull/258)
56+
57+
### New Contributors
58+
59+
- @RealOrangeOne made their first contribution in [#247](https://github.com/orhun/rustypaste/pull/247)
60+
861
## [0.14.4] - 2023-12-20
962

1063
### Removed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rustypaste"
3-
version = "0.14.4"
3+
version = "0.15.0"
44
edition = "2021"
55
description = "A minimal file upload/pastebin service"
66
authors = ["Orhun Parmaksız <orhunparmaksiz@gmail.com>"]

0 commit comments

Comments
 (0)