Skip to content

v1.6.5-beta

Choose a tag to compare

@Uanela Uanela released this 30 Jun 09:37

Bug Fixes

  • Fixed router.use handlers not being wrapped in catchAsync, meaning thrown errors or rejected promises inside use-level middlewares could crash the process instead of being passed to the error handler.
  • Fixed nested arrays of handlers passed to router.use not being flattened before wrapping, which could cause some handlers in a group to bypass catchAsync entirely.
  • Fixed error-handling middlewares (4-arg handlers) not being correctly detected and wrapped with the error type when registered through router.use.
  • Fixed uploaded file pathname not including the configured base route prefix, causing req.file.pathname to mismatch req.file.url when a custom base route was set.
  • Fixed create-arkos generated package.json producing broken or trailing commas when no Prisma provider or no validation library was selected.
  • Fixed authentication setup not falling back to type: none when the project has no Prisma provider configured.
  • Fixed multipleRoles field in generated project config types being required even when not applicable.

Improvements

  • Added an or handlebars helper to create-arkos templates for more flexible conditional logic in generated files.
  • create-arkos prompts now show clearer, color-highlighted info messages when skipping authentication or multiple-roles setup due to incompatible choices (e.g. sqlite with static auth).
  • Bumped @scalar/express-api-reference and tsx versions in generated project templates.

Internal

  • Reorganized sandbox test projects under sandbox/arkos/v-1-5, removing outdated sandbox folders (class-validator-auth-swagger, file-upload-window-debug, js-esm-define-config).
  • Updated upload-manager tests to reflect the corrected base-route-aware pathname behavior.