Releases: noel-archive/ktor-routing
v0.5.2-beta
Additions
- Added install method for all endpoints with a specific method (@auguwu)
Full Changelog: v0.5.1-beta...v0.5.2-beta
v0.5.1-beta
Additions
- The plugin will now load all the endpoints from the
config.endpoints
variable whenIEndpointLoader.load()
was called. (@auguwu)
Dependency Upgrades
- Upgrade Ktor dependencies from v2.2.1 to v2.2.2 (@renovate-bot, #110, #111, #112)
Full Changelog: v0.5-beta...v0.5.1-beta
v0.5-beta
This release improves the quality of life of the project by using JUnit5 instead of Kotest for testing the library and deprecating the old Ktor plugin for the new one (located in org.noelware.ktor.plugin
) that removes supports for Kotlin's Result which was anticipated to be used by Noelware, but never did in later project, so it is deprecated and will be removed in v0.6-beta.
v0.4.1-beta
Additions
- Add support for
HEAD
requests with@Head
annotation by @auguwu
Dependency Updates
- Update dependency
io.kotest:kotest-assertions-core
from v5.5.3 to v5.5.4 by @renovate-bot (#82) - Update dependency
io.kotest:kotest-property
from v5.5.3 to v5.5.4 by @renovate-bot (#83) - Update dependency
io.kotest:kotest-runner-junit5
from v5.5.3 to v5.5.4 by @renovate-bot (#84) - Update dependency
org.slf4j:slf4j-api
from v2.0.3 to v2.0.4 by @renovate-bot (#85) - Update dependency
org.slf4j:slf4j-simple
from v2.0.3 to v2.0.4 by @renovate-bot (#85)
Full Changelog: v0.4-beta...v0.4.1-beta
v0.4-beta
🚨 BREAKING CHANGES 🚨
All artifact IDs forwards will be org.noelware.ktor:ktor-routing-<submodule>
for now on, this will prevent from creating issues with naming conflicts.
Additions
- Adds WebSocket support with the @WebSocket annotation by @auguwu
- Add a new option: basePrefix by @auguwu
Dependency Updates
there is so many...
Full Changelog: v0.3.1-beta...v0.4-beta
v0.3.1-beta
This release basically reverts the plugin to initialize endpoints, so the endpoints can be initialized when the class is being initialized. :)
What's Changed
- chore(deps): update dependency gradle to v7.5-rc-3 by @renovate-bot
- chore(deps): update dependency org.jetbrains.dokka:dokka-gradle-plugin to v1.7.0 by @renovate-bot
Full Changelog: v0.3-beta...v0.3.1-beta
v0.3-beta
Features
kotlin.Result<*> support
There is a new experimental API to support returning kotlin.Result
objects in any endpoint methods. You can view the example in the test.
This requires the ExperimentalApi annotation to be visible, and you will need to set a data response caller, otherwise, the plugin will throw away the result and unexpected behaviours can occur.
Kotlin 1.7.0 Support
The plugin now supports Kotlin 1.7
Additions
- feat(extensions): add ApplicationCall.realIP by @auguwu
- feat(plugin): add support for kotlin.Result by @auguwu
Deprecations
- This releases removes the now deprecated NoelKtorRoutingPlugin variable, please switch to NoelKtorRouting.
Dependency Updates
- chore(deps): update dependency io.kotest:kotest-assertions-core to v5.3.1 by @renovate-bot
- chore(deps): update dependency io.kotest:kotest-assertions-core to v5.3.1 by @renovate-bot
- chore(deps): update dependency io.kotest:kotest-property to v5.3.1 by @renovate-bot
- chore(deps): update dependency io.kotest:kotest-runner-junit5 to v5.3.1 by @renovate-bot
- chore(deps): update dependency io.kotest:kotest-assertions-core to v5.3.2 by @renovate-bot
- chore(deps): update dependency io.kotest:kotest-property to v5.3.2 by @renovate-bot
- chore(deps): update dependency io.kotest:kotest-runner-junit5 to v5.3.2 by @renovate-bot
- chore(deps): update dependency io.ktor:ktor-server-core to v2.0.3 by @renovate-bot
- chore(deps): update dependency io.ktor:ktor-server-test-host to v2.0.3 by @renovate-bot
Full Changelog: v0.2-beta...v0.3-beta
v0.2-beta
Features
Multiple Path Resources
This release includes the new Multiple Path Resources implementation for the AbstractEndpoint class.
You can define multiple path resources (i.e, /api/v1
, /api/v2
) and it can be loaded in a single AbstractEndpoint instance.
class MyEndpoint: AbstractEndpoint("/") // <- before (this still works!)
class MyOtherEndpoint: AbstractEndpoint(listOf("/", "/api")) // <- using the multiple path resources impl.
Additions
- feat: add AbstractEndpoint#install(Map<HttpMethod, String>, Plugin<Route, C, B>, C.() -> Any) function. by @auguwu
- feat: add AbstractEndpoint#install(List, Plugin<Route, C, B>, C.() -> Any) function. by @auguwu
- deprecated: using NoelKtorRoutingPlugin will be removed in 0.3-beta, please use NoelKtorRouting instead by @auguwu
Dependencies
- chore(deps): upgrade com.diffplug.spotless:spotless-plugin-gradle from v6.6.1 to v6.7.2 by @renovate-bot, @auguwu
- chore(deps): upgrade dev.floofy.commons:(gradle|slf4j|extensions-koin) from v2.1.0.1 to v2.1.1 by @renovate-bot, @auguwu
- chore(deps): upgrade Kotlin standard library from v1.6.21 to v1.7.0 by @auguwu, @renovate-bot
v0.1.1-beta
Additions
Full Changelog: v0.1-beta...v0.1.1-beta
v0.1-beta
Additions
- feat(endpoints): local-scoped plugins for specific routes by @auguwu
Fixes
- fix(endpoints): loading non-GET endpoints results in GET by @auguwu
- fix(plugin): creating multiple routes so it overrides by @auguwu
Full Changelog: v0.0.1-beta...v0.1-beta