Skip to content

Releases: NekoNyaDevs/backend

NekoNya-Backend v2.1.5

02 Oct 15:45
Compare
Choose a tag to compare

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 and on-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 with error, message and status 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 type APIRouteInfos 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

  • 03914d9 Fixed incorrect times and status codes from the logger
  • 03914d9 Fixed the lack of error handling which caused the backend to crash
  • 03914d9 Fixed dependency loop in the API loading (files index) because of a wrong condition

NekoNya-Backend v2.0.5

02 Sep 17:18
Compare
Choose a tag to compare

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

24 Jul 14:03
19f5921
Compare
Choose a tag to compare

NekoNya-Storage v1.0.5

This release is made as first release, therefore it will not have any notable changes listed.