Announcing Arkos.js 1.3.0-beta Release #41
Uanela
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Announcing Arkos.js 1.3.0-beta Release
Today I am excited to share the newest beta version of Arkos.js, the 1.3.0-beta, a major update that brings enterprise-grade access control, automatic API documentation, and enhanced service layer capabilities to simplify the development of scalable and secure RESTful APIs.
Following Larry Ellison's philosophy that no one buys or uses the first version, we continue building toward the official v2.0 release with these substantial improvements that give you an even better taste of what's coming.
What Is New?
ts-node-devtotsx-strict.How To Update
As a minor update towards v2.0, to get to the latest v1.3 version of Arkos on an existing project:
Or start a new project with the enhanced
create-arkosCLI:Major New Features In Practice
Let's dive deeper into the most impactful features that make this release a significant step forward.
1. Fine-Grained Access Control
Traditional role-based access control works great for endpoints, but complex applications need more granular control. FGAC allows you to implement conditional access, data filtering, and hierarchical permissions directly within your application logic.
Perfect for scenarios like:
Read the complete guide at Fine-Grained Access Control.
2. Swagger API Documentation
Arkos now automatically generates comprehensive OpenAPI documentation that stays perfectly synchronized with your actual API behavior. The documentation system offers three schema generation approaches and integrates seamlessly with your existing validation and query configurations.
The most powerful feature is automatic synchronization with your Custom Prisma Query Options - if your
user.query.tscontainsinclude: { posts: true }, the documentation will show user responses with posts included, ensuring your docs always match reality.We chose Scalar over traditional Swagger UI for a modern, Postman-like interface that developers actually enjoy using.
Explore the full documentation system at Swagger API Documentation.
3. Service Hooks
Execute custom business logic at the service layer level during CRUD operations. Unlike Interceptor Middlewares that run only on HTTP requests, Service Hooks execute whenever BaseService methods are called - ensuring consistency across your entire application.
Service Hooks run whether you call the API endpoint or use the service programmatically, ensuring your business logic is always applied consistently.
Learn more at Service Hooks.
4. Enhanced Interceptor Middlewares
Interceptor middlewares now support arrays of functions for better separation of concerns, plus new error handling hooks for robust error management.
This enhancement provides cleaner, more maintainable middleware organization while adding powerful error recovery capabilities.
5. Strict Routing Mode
Take complete control over your API surface with strict routing mode. Instead of auto-exposing all CRUD endpoints, you can selectively enable only the ones you need.
Perfect for APIs that need to expose limited functionality or when building public APIs where you want precise control over the available operations.
6. Performance Improvements
We've made significant performance improvements that you'll notice immediately:
ts-node-devtotsx-strictThese improvements make the development experience noticeably snappier, especially during frequent restarts.
Breaking Changes and Migration
This release includes some important changes to be aware of:
Deprecated Naming Conventions
The old naming conventions are now deprecated and will show warnings:
model.prisma-query-options.{ts|js}→ usemodel.query.{ts|js}model.auth-configs.{ts|js}→ usemodel.auth.{ts|js}These old names will be removed in v1.4.0-beta, so update your files when convenient.
Removed Endpoints
/available-routesendpoint removed (Swagger docs provide this functionality)CLI Enhancements
The built-in CLI now generates Service Hooks:
npx arkos generate hooks --model post # or shorthand: npx arkos g h -m postAll generated interceptor middlewares now use the array syntax by default, and the CLI includes strict routing mode options.
What's Next?
create-arkostemplates and scaffolding optionsThis 1.3.0-beta release represents a significant step toward the v2.0 vision of making scalable, secure RESTful API development as simple as possible. The combination of fine-grained access control, automatic documentation, and enhanced service capabilities provides the foundation for building production-ready APIs with minimal configuration.
These improvements continue to reinforce Arkos's main goal: allowing developers to focus on what really matters for their business logic while the framework handles the repetitive, complex infrastructure concerns.
What's Changed
Full Changelog: v1.0.0-rc.1...beta
This discussion was created from the release Announcing Arkos.js 1.3.0-beta Release.
Beta Was this translation helpful? Give feedback.
All reactions