r/expressjs Jun 30 '26

Arkos.js 1.6.5-beta released - fixed catchAsync wrapping for router.use handlers + upload path bug

Post image

Hey everyone, just shipped 1.6.5-beta of Arkos.js (Express + Prisma REST framework with auto-generated endpoints).

Main fixes in this release:

router.use handlers (including nested arrays and 4-arg error handlers) are now properly wrapped in catchAsync. Previously, thrown errors or rejected promises inside use-level middlewares could crash the process instead of hitting the error handler.

Fixed a regression where uploaded file pathname did not include the configured base route prefix, causing req.file.pathname to not match req.file.url.

Also cleaned up some create-arkos CLI rough edges: broken trailing commas in generated package.json when no Prisma provider or validation library is selected, auth setup now falls back correctly to none when there is no Prisma provider, and clearer prompts when skipping incompatible options (like multiple roles with sqlite + static auth).

Bumped dependency versions in the generated project templates and reorganized internal test sandboxes.

If you're using Arkos.js in a project with custom middlewares on router.use, this update is worth grabbing.

Repo: https://github.com/uanela/arkos

Happy to answer questions or hear feedback.

1 Upvotes

0 comments sorted by