From 0dfbfe1b6c9cd4e51490021b401376da42adec63 Mon Sep 17 00:00:00 2001 From: n-dusan Date: Mon, 27 Jan 2025 15:34:30 +0100 Subject: [PATCH 1/6] chore: update `v0.4.0` docs --- CHANGELOG.md | 23 ++++++++++++++++++++++- Cargo.toml | 2 +- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c8bf94..1849893 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,26 @@ and this project adheres to a _modified_ form of _[Semantic Versioning][semver]_ ### Removed +## [0.4.0] + +### Added + +- Insert commit hashes in the database ([#63]) + +### Changed + +- Allow HEAD requests for dynamic routes ([#58]) +- Rename `.stelae` to `.taf` dir ([#61]) +- Bump rust-version to `1.83` ([#61]) + +### Fixed + +### Removed + +[63]: https://github.com/openlawlibrary/stelae/pull/63 +[61]: https://github.com/openlawlibrary/stelae/pull/61 +[58]: https://github.com/openlawlibrary/stelae/pull/58 + ## [0.3.2] ### Added @@ -124,7 +144,8 @@ and this project adheres to a _modified_ form of _[Semantic Versioning][semver]_ ### Removed -[Unreleased]: https://github.com/openlawlibrary/stelae/compare/v0.3.2...HEAD +[Unreleased]: https://github.com/openlawlibrary/stelae/compare/v0.4.0...HEAD +[0.4.0]: https://github.com/openlawlibrary/stelae/compare/v0.3.2...v0.4.0 [0.3.2]: https://github.com/openlawlibrary/stelae/compare/v0.3.1...v0.3.2 [0.3.1]: https://github.com/openlawlibrary/stelae/compare/v0.3.0...v0.3.1 [0.3.0]: https://github.com/openlawlibrary/stelae/compare/v0.2.1...v0.3.0 diff --git a/Cargo.toml b/Cargo.toml index 013b24d..a74c518 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "stelae" description = "A collection of tools in Rust and Python for preserving, authenticating, and accessing laws in perpetuity." -version = "0.3.2" +version = "0.4.0" edition = "2021" readme = "README.md" license = "AGPL-3.0" From 4dfa462617de47421a6a668b3486c87999fc3dfe Mon Sep 17 00:00:00 2001 From: n-dusan Date: Tue, 28 Jan 2025 13:41:15 +0100 Subject: [PATCH 2/6] chore: update Cargo.lock For some reason I did not commit the Cargo.lock changes --- Cargo.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d188713..571a257 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "actix-codec" @@ -3110,7 +3110,7 @@ dependencies = [ [[package]] name = "stelae" -version = "0.3.2" +version = "0.4.0" dependencies = [ "actix-http", "actix-service", From 9a6f42cc75a2e9f4f21f27fea26538d1df51f07f Mon Sep 17 00:00:00 2001 From: n-dusan Date: Wed, 5 Feb 2025 12:00:43 +0100 Subject: [PATCH 3/6] fix: add missing route in `_api/versions` Handles a situation where there's a {path:.*} added to `/_publication/{publication}/_date/` --- src/server/api/routes.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/server/api/routes.rs b/src/server/api/routes.rs index 41ea8c9..1cf4e6d 100644 --- a/src/server/api/routes.rs +++ b/src/server/api/routes.rs @@ -58,6 +58,10 @@ pub fn register_app< .to(versions), ) .service(web::resource("/_publication/{publication}/_date/{date}").to(versions)) + .service( + web::resource("/_publication/{publication}/_date/{date}/{path:.*}") + .to(versions), + ) .service(web::resource("/_publication/{publication}").to(versions)) .service(web::resource("/_publication/{publication}/{path:.*}").to(versions)) .service(web::resource("/_compare/{date}/{compare_date}").to(versions)) From a42736854c5ad2cac918d92b5311b747da96da57 Mon Sep 17 00:00:00 2001 From: n-dusan Date: Wed, 5 Feb 2025 12:04:50 +0100 Subject: [PATCH 4/6] chore: bump prerelease version --- Cargo.lock | 2 +- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 571a257..e40ec52 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3110,7 +3110,7 @@ dependencies = [ [[package]] name = "stelae" -version = "0.4.0" +version = "0.4.1-alpha.1" dependencies = [ "actix-http", "actix-service", diff --git a/Cargo.toml b/Cargo.toml index a74c518..a455a3c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "stelae" description = "A collection of tools in Rust and Python for preserving, authenticating, and accessing laws in perpetuity." -version = "0.4.0" +version = "0.4.1-alpha.1" edition = "2021" readme = "README.md" license = "AGPL-3.0" From 389ca7f391385b7a0bedbebb8d551dba34919dd5 Mon Sep 17 00:00:00 2001 From: n-dusan Date: Wed, 5 Feb 2025 12:29:07 +0100 Subject: [PATCH 5/6] chore: bump version to `0.4.1` --- Cargo.lock | 2 +- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e40ec52..33229ff 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3110,7 +3110,7 @@ dependencies = [ [[package]] name = "stelae" -version = "0.4.1-alpha.1" +version = "0.4.1" dependencies = [ "actix-http", "actix-service", diff --git a/Cargo.toml b/Cargo.toml index a455a3c..626ac0d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "stelae" description = "A collection of tools in Rust and Python for preserving, authenticating, and accessing laws in perpetuity." -version = "0.4.1-alpha.1" +version = "0.4.1" edition = "2021" readme = "README.md" license = "AGPL-3.0" From d27d961bb0224f502b37a1524d78091a81235eb9 Mon Sep 17 00:00:00 2001 From: n-dusan Date: Wed, 5 Feb 2025 12:29:59 +0100 Subject: [PATCH 6/6] chore: changelog --- CHANGELOG.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1849893..b1424c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,18 @@ and this project adheres to a _modified_ form of _[Semantic Versioning][semver]_ ### Removed +## [0.4.1] + +### Added + +### Changed + +### Fixed + +- Add missing route to versions endpoint ([#68]) + +### Removed + ## [0.4.0] ### Added @@ -144,7 +156,8 @@ and this project adheres to a _modified_ form of _[Semantic Versioning][semver]_ ### Removed -[Unreleased]: https://github.com/openlawlibrary/stelae/compare/v0.4.0...HEAD +[Unreleased]: https://github.com/openlawlibrary/stelae/compare/v0.4.1...HEAD +[0.4.0]: https://github.com/openlawlibrary/stelae/compare/v0.4.0...v0.4.1 [0.4.0]: https://github.com/openlawlibrary/stelae/compare/v0.3.2...v0.4.0 [0.3.2]: https://github.com/openlawlibrary/stelae/compare/v0.3.1...v0.3.2 [0.3.1]: https://github.com/openlawlibrary/stelae/compare/v0.3.0...v0.3.1