Features by Version
What each release added, with links to the documentation. Fixes and internal changes are in the changelog. New features are opt-in, and an application that changes nothing keeps its behaviour; 3.0 also changes a few defaults, each with a way back — see the migration guide.
3.2 — field names
Changed default
- Field names that start with
$(any depth) or contain.at the top level are refused with400in inserts, replaces, imports and the stored values of updates; way backDOCUMENTS_CHECK_FIELD_NAMES=falseorcheckFieldNames: falseper declaration
3.2.1 (fixes)
- Restore from the history works with
versioned: { mode: 'timestamp' }(it always answered409)
3.1 — consumer findings
mongocamp:readyreaches late listeners: a plugin that hooks it after the server is ready is called at once- One middleware list for all APIs:
createMongocampApis(configuration, { middleware })andaddMongocampMiddleware(apis, ...) - Auth flows in the capabilities:
authRegistration:open|invite,authRequireVerifiedEmail,authPasswordReset,authPasswordless PATCH /auth/profile: a user changes its owndisplayNameDELETE /system/queue/{id}answers409(code4094) for a running job
3.1.1 (fixes)
- Acting for a user: the history routes,
withDeleted, copy / clear and the bucket files collections are decided by the user acted for; audit records carryactedBy - Uploads keep UTF-8 file names of the multipart part (and a
"sent as%22)
3.1.2 (fixes)
- Audit records in the generated client keep their own id (
id) andactedBy;history()of the typed composable givesidas hex string forrestoreVersion
3.0 — security, auth flows, events, AI
Changed defaults (migration guide)
validation: 'error'for declared collections, with a start-time report of stored invalid documentsUSERS_READ_HIDE_API_KEY=true,*grants no longer reach the server's own collections and buckets (auth)- Stored defaults follow new defaults, nothing is rewritten
- Failed logins limited by default (
RATE_LIMIT_LOGIN=10/15m); the 2.x aliasesfeatureSwitches,/system/monitoring/jvmandLOGGING_METRICS_MONGODB_JVMare removed - A security review: expressions,
distinct,$lookup/$unionWith, history, whole-collection and whole-bucket routes, rate limits, image variants
Auth (all opt-in)
- Optional user fields:
email,emailVerified,displayName,disabled,lastLoginAt - Sessions with rotating refresh tokens in an httpOnly cookie, reuse detection, list and revoke
- Registration, verification, password reset and login by link or code, mails through
mongocamp:auth:mail - Client flows in
useMongocampAuth()and the standalone client
Events
- Job queue: one-off jobs with retries, dead letters, dedupe, exactly-once claim across instances
- Webhooks of document events: HMAC-signed, retried, delivery log, SSRF guard
- Transactional outbox: events of transactions are committed with the writes
AI
- Embeddings kept in sync through the queue,
mongocamp embed - MCP endpoint for AI clients, with the rights of a user
Developer experience
- Hooks in the declaration typed by the schema; global
MongocampDocument<'orders'>andMongocampExpanded<'orders', 'customerId'>;_idin the declared types - One error type (
MongocampRequestError) for every call;replace/patchnames - Long filters in request bodies (
$lucene, automatic infind),_idprefixes as index ranges - Response compression (
RESPONSE_COMPRESSION) and about a third faster large reads - A Playwright browser suite in CI, contract coverage of the main server
2.11 — schema evolution, files, operations
Schema evolution and content
- Migrations in
server/mongocamp/migrations/: run once per database, in order, at the start; a lock across instances;MIGRATIONS_ON_START;mongocamp migrate;GET /system/migrations - Seeds: idempotent upserts by key, typed by the declaration;
SEED_ON_STARTin development - Restore a document from its audit history (
restoreVersion) draftsbehaviour: published state and working copy,publish/unpublish/discard-draft,drafts=truefor editors
Files
- Declared buckets: size limits, types checked from the content, typed metadata, owner and access rules;
useMongocampBucket - Signed, expiring file links and their revocation
- Image variants with the optional
sharp - File references in declarations: checked, expanded, deleted with the document
Operations
- Health endpoints
/health/liveand/health/ready,HEALTHCHECKin the Docker images - OpenTelemetry tracing:
tracing(),OTEL_ENABLED - Rate limiting of failed logins and requests, memory or MongoDB store
- Backups and restores: job
mongocamp.BackupJob,mongocamp backup/restore,/system/backups - Tutorial step 11: a migration and an avatar upload
2.10 — access rules, data API, developer tooling
- Access rules per collection: who reads, creates, updates and deletes which documents
- Field rules: hidden and read-only fields per role
tenantbehaviour- Transactions in server code and
POST /mongodb/batch - Declared views: named aggregations with typed parameters
- Nested and typed
expandand live updates of referenced documents - Full-text search (
searchbehaviour,q) - Test helpers, the
mongocampcommand line, the Nuxt DevTools tab, a client without Nuxt
2.8 — configuration insight and runtimes
- Where a configuration value comes from (
source,defaultValue,isDefault) and a warning for outdated stored values timestamps.preserveOnUpdatefor administrators' writes- The version of the core in
/version; one name per side for the API composables (useMongocampEventApi) extendedJsonon writes that can answer a version conflict- Docker images for Bun and Deno
2.7 — acting for users
- Acting for a user (
X-AUTH-ACT-AS) timestamps.preserveOnInsertandowner.preserveOnInsertfor imports and restores by administrators (behaviours)
2.6 — references, limits, client entry
- Declared references match ids in Lucene filters;
referencedByand index details in the declaration answer - Limits in the capabilities, own error codes for 413
- A capped export says so (end marker)
- Reset a configuration to its default
- Version conflicts answer the stored document in the request's Extended JSON mode
- Search the files of a bucket with Lucene;
USERS_READ_HIDE_API_KEY - The public client entry
createMongocampApis(the client outside the composables)
2.5 — hardening
- JavaScript operators are refused in client filters (
FILTER_OPERATORS_DENIED) - Configurable request limits: body, paging, export, uploads, live update queues
- CORS by the spec, constant-time API keys, generic 500s (production checklist)
- The tutorial "a small shop", tested as an app
2.4 — indexes, relations, server collection
- Indexes in the declaration, synced at the start
- References and
expand, also in live updates and the typed composable - The server collection: the rules of the API in server code
2.3 — declared collections, behaviours, live updates
- Declared collections with any Standard Schema (Zod, Valibot, ArkType): types, validation, the MongoDB validator; a validator from existing data
- Behaviours:
timestamps,owner,softDelete,versioned,audit,protectedFields - Before-hooks that change or refuse writes; read scopes
- Live updates as Server-Sent Events on change streams
- The typed composable
useMongocampCollection
2.2 — Nitro plugins
- Extensions as Nitro plugins on the hooks of the server (
mongocamp:ready,mongocamp:<event>)
2.1 — jobs and wide events
- Job handlers at runtime, jobs per instance (
JOBS_ENABLED) - Wide request events with evlog
- This documentation site
2.0 — the Nitro server
The MongoCamp server in TypeScript, embedded in Nuxt or standalone, with the API of the Scala server and these changes (migration guide):
- Relaxed Extended JSON as the document format
- Lucene filters with Lucene's boolean rules, typed values, index-friendly wildcards, UTC dates
- Cursor paging and skipping the count
- 404 for missing resources, all-or-nothing imports
- Salted password hashes, upgraded at login
1.x
The Nuxt module as a client of the Scala server (migration from Scala).
