Skip to content

Commit 8954ce4

Browse files
committed
chore(release): prepare for v0.16.0
1 parent f3988b5 commit 8954ce4

File tree

4 files changed

+162
-2
lines changed

4 files changed

+162
-2
lines changed

CHANGELOG.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,68 @@ 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.16.0] - 2024-12-11
9+
10+
### Added
11+
12+
- Support `max_upload_dir_size` by @Narayanbhat166
13+
14+
Now you can configure the server to limit the total size of the uploaded files as follows:
15+
16+
```toml
17+
[server]
18+
max_upload_dir_size = "100G"
19+
```
20+
21+
This would help with e.g. public instances in terms of avoiding a storage attack where a single user uploads a bunch of big/small files.
22+
23+
- Add support for multiple auth tokens via env vars by @nydragon in [#339](https://github.com/orhun/rustypaste/pull/339)
24+
25+
In addition to `[server].auth_tokens` and `[server].delete_tokens` in the configuration file, it has been made possible to set multiple tokens for authentication and deletion via their respective environment variables.
26+
27+
- `AUTH_TOKENS_FILE`: Points to a file containing a list of tokens for authentication, one per line.
28+
- `DELETE_TOKENS_FILE`: Points to a file containing a list of tokens for deletion, one per line.
29+
30+
For example:
31+
32+
`export AUTH_TOKENS_FILE=./auth_file`
33+
34+
and `auth_file` contains:
35+
36+
```plaintext
37+
bread
38+
brioche
39+
baguette
40+
naan
41+
```
42+
43+
### Changed
44+
45+
- Allow shortening URLs with a filename by @Vaelatern in [#373](https://github.com/orhun/rustypaste/pull/373)
46+
47+
This enable naming shortened URLs beyond using a random string or the text "url". For example:
48+
49+
```sh
50+
$ curl -s -F "url=https://shorten.this" -H "filename: abc" "<server_address>"
51+
```
52+
53+
The shortened URL will be saved as `abc` in the server.
54+
55+
- Update all dependencies
56+
57+
### Removed
58+
59+
- Remove shuttle code and deps by @tessus in [#328](https://github.com/orhun/rustypaste/pull/328)
60+
61+
I'm looking for a service to publicly host a rustypaste instance.
62+
If you have any suggestions or want to sponsor this, please let me know [in this issue](https://github.com/orhun/rustypaste/issues/326)!
63+
64+
## New Contributors
65+
66+
- @Narayanbhat166 made their first contribution
67+
- @Vaelatern made their first contribution in [#374](https://github.com/orhun/rustypaste/pull/374)
68+
- @nydragon made their first contribution in [#339](https://github.com/orhun/rustypaste/pull/339)
69+
870
## [0.15.1] - 2024-07-29
971

1072
### Added

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.15.1"
3+
version = "0.16.0"
44
edition = "2021"
55
description = "A minimal file upload/pastebin service"
66
authors = ["Orhun Parmaksız <orhunparmaksiz@gmail.com>"]

cliff.toml

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
# git-cliff ~ configuration file
2+
# https://git-cliff.org/docs/configuration
3+
4+
[changelog]
5+
# template for the changelog header
6+
header = """
7+
# Changelog\n
8+
All notable changes to this project will be documented in this file.
9+
10+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
11+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).\n
12+
"""
13+
# template for the changelog body
14+
# https://keats.github.io/tera/docs/#introduction
15+
body = """
16+
{%- macro remote_url() -%}
17+
https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
18+
{%- endmacro -%}
19+
20+
{% if version -%}
21+
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
22+
{% else -%}
23+
## [Unreleased]
24+
{% endif -%}
25+
26+
{% for group, commits in commits | group_by(attribute="group") %}
27+
### {{ group | upper_first }}
28+
{%- for commit in commits %}
29+
- {{ commit.message | split(pat="\n") | first | upper_first | trim }}\
30+
{% if commit.remote.username %} by @{{ commit.remote.username }}{%- endif -%}
31+
{% if commit.remote.pr_number %} in \
32+
[#{{ commit.remote.pr_number }}]({{ self::remote_url() }}/pull/{{ commit.remote.pr_number }}) \
33+
{%- endif -%}
34+
{% endfor %}
35+
{% endfor %}
36+
37+
{%- if github.contributors | filter(attribute="is_first_time", value=true) | length != 0 %}
38+
## New Contributors
39+
{%- endif -%}
40+
41+
{% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %}
42+
* @{{ contributor.username }} made their first contribution
43+
{%- if contributor.pr_number %} in \
44+
[#{{ contributor.pr_number }}]({{ self::remote_url() }}/pull/{{ contributor.pr_number }}) \
45+
{%- endif %}
46+
{%- endfor %}\n
47+
"""
48+
# template for the changelog footer
49+
footer = """
50+
{%- macro remote_url() -%}
51+
https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
52+
{%- endmacro -%}
53+
54+
{% for release in releases -%}
55+
{% if release.version -%}
56+
{% if release.previous.version -%}
57+
[{{ release.version | trim_start_matches(pat="v") }}]: \
58+
{{ self::remote_url() }}/compare/{{ release.previous.version }}..{{ release.version }}
59+
{% endif -%}
60+
{% else -%}
61+
[unreleased]: {{ self::remote_url() }}/compare/{{ release.previous.version }}..HEAD
62+
{% endif -%}
63+
{% endfor %}
64+
<!-- generated by git-cliff -->
65+
"""
66+
# remove the leading and trailing whitespace from the templates
67+
trim = true
68+
69+
[git]
70+
# parse the commits based on https://www.conventionalcommits.org
71+
conventional_commits = true
72+
# filter out the commits that are not conventional
73+
filter_unconventional = false
74+
# regex for preprocessing the commit messages
75+
commit_preprocessors = [
76+
# remove issue numbers from commits
77+
{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "" },
78+
]
79+
# regex for parsing and grouping commits
80+
commit_parsers = [
81+
{ message = "^[a|A]dd", group = "Added" },
82+
{ message = "^[s|S]upport", group = "Added" },
83+
{ message = "^[r|R]emove", group = "Removed" },
84+
{ message = "^.*: add", group = "Added" },
85+
{ message = "^.*: support", group = "Added" },
86+
{ message = "^.*: remove", group = "Removed" },
87+
{ message = "^.*: delete", group = "Removed" },
88+
{ message = "^test", group = "Fixed" },
89+
{ message = "^fix", group = "Fixed" },
90+
{ message = "^.*: fix", group = "Fixed" },
91+
{ message = "^.*", group = "Changed" },
92+
]
93+
# filter out the commits that are not matched by commit parsers
94+
filter_commits = false
95+
# sort the tags topologically
96+
topo_order = false
97+
# sort the commits inside sections by oldest/newest order
98+
sort_commits = "newest"

0 commit comments

Comments
 (0)