axum-folder-router/CHANGELOG.md

79 lines
2.1 KiB
Markdown

# Changelog
All notable changes to this project will be documented in this file.
## [Unreleased]
- No changes yet
## [0.3.3] - 2025-04-15
### Added
- Add support for remaining HTTP methods
- we no support the full set as defined by rfc9110
- trace & connect were missing specifically
- Add support for `any` axum router method (default method router, others will take precedence)
## [0.3.2] - 2025-04-15
- Refactor internals
- Add solid testing
- explicitly test generated macro output using macrotest
- test error output using trybuilt
## [0.3.1] - 2025-04-15
- Fix invalid doc links
## [0.3.0] - 2025-04-15
After some experimentation, the API has begun to stabilize. This should likely be the last breaking change for some time.
### Breaking Changes
- **Reworked implementation into an attribute macro**
- Previous implementation required function calls:
```rust
folder_router!("./examples/simple/api", AppState);
// ...
let folder_router: Router<AppState> = folder_router();
```
- New implementation uses an attribute macro:
```rust
#[folder_router("./examples/simple/api", AppState)]
struct MyFolderRouter;
// ...
let folder_router: Router<AppState> = MyFolderRouter::into_router();
```
- This approach provides a cleaner API and allows for multiple separate folder-based Routers
## [0.2.3] - 2025-04-14
### Changed
- **Improved method detection** - Now properly parses files instead of using string matching
- Previous version checked if file contained ```pub async #method_name```
- New version properly parses the file using `syn` for more accurate detection
## [0.2.2] - 2025-04-14
### Changed
- **License changed to MIT**
## [0.2.1] - 2025-04-14
### Improved
- Enhanced documentation
- Added more comprehensive tests
## [0.2.0] - 2024-04-14
### Changed
- **Improved code integration**
- Generate module imports instead of using ```include!```
- Makes the code compatible with rust-analyzer
- Provides better IDE support
## [0.1.0] - 2024-04-14
### Added
- Initial release
- Minimum viable product adapted from https://github.com/richardanaya/axum-folder-router-htmx