Releases: NekoNyaDevs/backend
Releases · NekoNyaDevs/backend
NekoNya-Backend v2.1.5
This release includes a major bug fix that changes a bit how the API works.
Changes
- 03914d9 Added
express-async-errors
to catch asynchronous errors from express - 03914d9 Added
on-finished
andon-headers
as dependencies of the logger - 03914d9 Changed the way errors are sent from the API to a definitive and clean one:
Instead of a reponse witherror
,message
andstatus
like I wrote in the docs, which was almost always false, the errors are now in a definitive format:
{
"error": {
"message": "The message of the error",
"code": 500,
"type": "the type of the error (mostly useful in the backend)"
}
}
And if the route contained validation:
{
"error": {
"message": "Validation Failed",
"code": 400,
"type": "ValidationError"
},
"errors": {
...
}
}
Where the errors
field contains express-validator
's validationResults#array
.
- 03914d9 Changed the way the endpoints were being grabbed: this is now automated from a property
infos
of typeAPIRouteInfos
that is retrieved at the start of the backend - 03914d9 Optimized the
owoify
route with an unified middleware to handle the requests in both POST and GET methods
Fixes
NekoNya-Backend v2.0.5
This version changes how NekoNya-Storage acts and what it is.
Changes
- a0719a5 Removed any "frontend", by that, I mean all pages like home, 404 and error pages prior to full JSON responses.
- 929b7f1 Removed the X-Powered-By header and added first proxy trust
- Changed the name from NekoNya-Storage to NekoNya-Backend
Fixes
- b5d6bf8 Fixed compability with the frontend
- 6698c3a Fixed the api route on production
- 20b086a Fixed protocol in the API route
- b79a71a Fixed the cute param in the 8ball route
- b7aa46f Fixed misspell on random routes for kiss (plural kisses, was kisss)
- b7aa46f Fix the development API route with the brand new frontend
NekoNya-Storage v1.0.5
NekoNya-Storage v1.0.5
This release is made as first release, therefore it will not have any notable changes listed.