Skip to content

v1.6.1-beta

Choose a tag to compare

@Uanela Uanela released this 13 May 10:13
· 96 commits to main since this release

Summary

This release focuses on improving OpenAPI documentation for file uploads, enhancing strict validation rules, adding configurable entry points, and fixing various bugs across the framework. Significant improvements have been made to the CLI, router OpenAPI generation, and developer experience.

Major Changes

OpenAPI Upload Fields Enhancement

  • Fixed required flag handling for upload fields in OpenAPI documentation
  • Improved multipart/form-data requestBody generation in ArkosRouter
  • Added proper validation for upload field requirements in OpenAPI schemas

Strict Validation Improvements

  • Enhanced strict validation rules with better error messages
  • Added support for null to forbid all request inputs
  • Improved validation error messages to include documentation links

Configurable Entry Points

  • Added source.entryPoint configuration option for custom application entry points
  • CLI now respects custom entry points in dev and start commands
  • Added entry point selection in create-arkos CLI (src/app or src/server)
  • Updated templates to support both entry point patterns

Authentication & User Context

  • Made req.user nullable in ServiceBaseContext
  • Fixed authentication routing and configuration resolution

Bug Fixes

  • Fixed OpenAPI upload field schema generation for all upload types (single, array, fields)
  • Improved scalar API reference CDN path resolution with global prefix
  • Fixed CLI config resolution for export-auth-action command
  • Added missing path.relative mock in CLI tests
  • Fixed OpenAPI server prioritization when custom servers are defined
  • Corrected ArkosRouter typo in README documentation

Documentation Updates

  • Updated Bible Verse API tutorial for version 1.6.1
  • Fixed various typos and improved code examples
  • Added documentation for strict validation mode

Dependencies

  • Updated @scalar/api-reference to v1.55.3
  • Updated compression and CORS packages to latest versions
  • Updated scalar CDN to version 1.55.3 in sandbox example

Chores

  • Added global.helpers mock for initialize-app tests
  • Added test route with upload and custom OpenAPI in v1-4 sandbox
  • Improved TypeScript detection in CLI helpers
  • Cleaned up package.json files and removed unused dependencies
  • Deleted outdated pnpm-lock.yaml file

What's Changed

New Contributors

Full Changelog: v1.6.0-beta...v1.6.1-beta