cap-nodejs

Roadmap

This roadmap distinguishes the package set available today from planned adapter reach. ADRs capture durable decisions; this document captures sequencing and ecosystem direction.

Current Stable Package Set

The current first-party package set is framework-agnostic at the core and provides framework adapters where they are useful:

v2.2 Transaction Context Foundation

CAP core standardizes operation context and transaction-manager extension points so storage adapters can bind ORM-specific transaction objects without CAP core depending on any ORM.

Scope:

v2.2 is not the storage adapter expansion release. Knex, TypeORM, Prisma, and a generic SQL core are not part of the v2.2 minimum scope.

v2.3 Storage Contract Hardening and Storage Reach

CAP v2.3 hardens the storage contracts and adds first-party Knex, TypeORM, and Prisma storage. SQL-core extraction remains deferred until duplication is proven.

Delivered scope:

MikroORM remains the current ORM-specific adapter using its EntityManager as the transaction context. Potential future storage candidates beyond v2.3 include Drizzle, Sequelize, and Mongoose. Raw SQL adapters or a shared SQL core remain future work only if the current implementations prove enough repeated logic.

v2.4 Transport Reach

The v2.4 repository roadmap milestone expands transport reach in five ordered PR phases. All five phases are delivered.

  1. PR 1 - transport contract foundation: verify the existing core ports, add the adapter-neutral defineTransportContract suite, qualify Azure Service Bus and the NestJS Microservices bridge with fakes, and document the lifecycle and settlement boundary.
  2. PR 2 - RabbitMQ transport (delivered): implement and qualify @mikara89/cap-transport-rabbitmq with publisher confirms, manual consumer settlement, conservative topology options, and pinned-broker integration.
  3. PR 3 - Kafka transport (delivered): implement and qualify @mikara89/cap-transport-kafka with acknowledged publishing, native consumer groups, and success-only manual offset commits.
  4. PR 4 - AWS SNS/SQS transport (delivered): implement and qualify the @mikara89/cap-transport-aws-sns-sqs package with SNS publishing, SQS long-polling, and success-only message deletion.
  5. PR 5 - docs, examples, compatibility and release review: complete the adapter matrix and examples, verify compatibility, and perform release readiness review.

Milestone status and release closure

Implementation complete: the five phases above define the v2.4 feature scope, and all five are implemented in the repository.

Release closure pending or package-specific: closing the roadmap milestone is an operational verification step, not another v2.4 feature phase. Packages remain independently versioned; the v2.4 milestone does not require every package to become 2.4.0. A new transport can take its first appropriate independent release, unchanged packages are not bumped, and dependents move only when compatibility or dependency ranges require it.

Before declaring the milestone release verified, maintainers must:

Event Hubs compatibility, Google Pub/Sub, NATS JetStream, and richer transport capability work remain planned or deferred beyond this completion boundary; they are not v2.4 release-closure criteria.

An explicit cap-core transport capability interface is deferred until conformance tests demonstrate real portable variation that applications need to inspect. PR 1 does not claim broker acknowledgement, delayed delivery, ordering, topology, dead-letter, or request/reply guarantees.

Google Pub/Sub and NATS JetStream are likely v2.5 candidates, not v2.4 minimum scope. Redis Streams, MQTT, and other niche transports remain later or optional ecosystem work.

v2.5+ Ecosystem Expansion

Likely candidates:

Non-Goals and Sequencing Rules