Skip to main content
Version: v0.16

Migration Guide: v0.15 to v0.16

This guide covers the breaking changes and migration steps when upgrading from Conduit v0.15 to v0.16.

Overview​

Conduit v0.16 introduces several improvements and changes. Most applications can upgrade with minimal changes.

Before You Begin​

  1. Backup your data - Always backup your database before upgrading
  2. Review changelog - Check the Changelog for full details
  3. Test in staging - Upgrade a staging environment first

Breaking Changes​

Authentication Module​

Token Response Format​

The token response structure has been standardized:

v0.15 (Old)

{
"token": "eyJ...",
"refreshToken": "abc..."
}

v0.16 (New)

{
"accessToken": "eyJ...",
"refreshToken": "abc...",
"expiresIn": 86400
}

Migration: Update your frontend code to use accessToken instead of token.

Database Module​

Query Operators​

Some query operators have been renamed for consistency:

v0.15 Operatorv0.16 Operator
$like$regex
$nin$notIn

Migration: Update your queries to use the new operator names.

Router Module​

CORS Configuration​

CORS settings have moved from environment variables to module configuration:

v0.15 (Old)

CORS_ORIGIN=*
CORS_METHODS=GET,POST

v0.16 (New)

Configure via Admin Panel or API:

{
"cors": {
"enabled": true,
"origins": ["*"],
"methods": ["GET", "POST", "PUT", "DELETE"],
"credentials": true
}
}

New Features​

Multi-Tenancy Support​

v0.16 introduces experimental multi-tenancy support. See Architecture for details.

Improved Admin Panel​

The Admin Panel has been redesigned with:

  • Better navigation
  • Improved schema editor
  • Enhanced monitoring

Upgrade Steps​

Step 1: Update Docker Images​

# Stop existing containers
docker compose down

# Pull new images
docker compose pull

# Start with new version
docker compose up -d

Step 2: Run Database Migrations​

Migrations run automatically on startup, but you can verify:

docker logs conduit-core | grep migration

Step 3: Update Configuration​

Review and update any deprecated configuration options via the Admin Panel.

Step 4: Update Client Code​

Update your frontend/client applications:

  • Token field name changes
  • Any deprecated API endpoints

Step 5: Test​

Verify core functionality:

  • User authentication works
  • Token refresh works
  • Database queries work
  • File uploads work (if using Storage)

Rollback Procedure​

If you encounter issues:

  1. Stop v0.16 containers
  2. Restore database from backup
  3. Start v0.15 containers
docker compose down
# Restore database
docker compose -f docker-compose.v015.yml up -d

Getting Help​

If you encounter issues during migration:

  1. Check the Troubleshooting guide
  2. Search GitHub Issues
  3. Ask in Discord

Version Compatibility​

ComponentMinimum VersionRecommended
Docker20.10+Latest
Node.js (for SDK)16+20 LTS
MongoDB4.4+6.0+
PostgreSQL12+15+