Skip to content

v1.5.12-beta

Choose a tag to compare

@Uanela Uanela released this 28 May 05:52
· 45 commits to main since this release

Features

  • Richer pagination metadatafindMany responses now include page, pages, limit, hasNextPage, and hasPrevPage alongside the existing total and results fields.
  • Cross-domain cookie sharing (#219) — JWT cookies now support a domain field (and JWT_COOKIE_DOMAIN env var) so cookies can be shared across subdomains (e.g. .example.com).
  • Disable file upload routes — new fileUpload.enabled: false config flag to opt out of built-in file upload endpoints entirely.

Fixes & Improvements

  • CORS config simplifiedallowedOrigins, options, and customHandler are deprecated with warnings pointing to the migration guide. Pass cors.CorsOptions or a full handler directly instead. Note: default behavior has changed — dev now defaults to origin: true, credentials: true and production to origin: "*". This may break existing apps. See the [migration guide](https://www.arkosjs.com/blog/rethinking-cors-defaults-in-arkosj) before upgrading.
  • Sort + orderBy merging fixedsort query param now correctly merges with both single-object and array orderBy values from the query string.
  • tsconfig.json with errors no longer crashes builds (#246) — switched to a comment-tolerant JSON parser (readJsonWithComments) so malformed or commented tsconfigs are handled gracefully.
  • Foreign key constraint errors now return 409 Conflict instead of 400 Bad Request.
  • cookieParser options improved — config now accepts { secret, options } object shape instead of a positional array.