Migration & Compatibility
This guide covers version compatibility, migration paths, and breaking changes.
Version Compatibility
SDK and Milvus Compatibility
| Milvus version | Node SDK version | Installation |
|---|---|---|
| v2.6.0+ | latest | yarn add @zilliz/milvus2-sdk-node@latest |
| v2.5.0+ | v2.5.0 | yarn add @zilliz/milvus2-sdk-node@2.5.12 |
| v2.4.0+ | v2.4.9 | yarn add @zilliz/milvus2-sdk-node@2.4.9 |
| v2.3.0+ | v2.3.5 | yarn add @zilliz/milvus2-sdk-node@2.3.5 |
| v2.2.0+ | v2.3.5 | yarn add @zilliz/milvus2-sdk-node@2.3.5 |
Node.js Compatibility
- Minimum: Node.js 18+
- Recommended: Node.js 20+ (LTS)
Checking Versions
Check SDK Version
import { MilvusClient } from '@zilliz/milvus2-sdk-node';
console.log('SDK Version:', MilvusClient.sdkInfo.version);
console.log('Recommended Milvus:', MilvusClient.sdkInfo.recommendMilvus);Check Milvus Version
// Use Milvus API to check server version
const info = await client.getMetric({
request: {
metric_type: 'system_info',
},
});Migration Guides
Upgrading SDK Version
-
Check Compatibility:
- Verify your Milvus version supports the new SDK version
- Review breaking changes in release notes
-
Update Package:
yarn add @zilliz/milvus2-sdk-node@latest
# or specific version
yarn add @zilliz/milvus2-sdk-node@2.6.9- Test Thoroughly:
- Test all critical operations
- Verify data integrity
- Check performance
Upgrading Milvus Version
-
Backup Data: Always backup before upgrading
-
Check SDK Compatibility: Ensure SDK version supports new Milvus version
-
Update Milvus: Follow Milvus upgrade guide
-
Update SDK: Update SDK to compatible version
-
Test: Verify all operations work correctly
Breaking Changes
Version 2.6.x
- Enhanced type safety
- Improved error handling
- New index types support
Version 2.5.x
- Updated connection pooling
- Improved retry mechanisms
- Enhanced logging
Version 2.4.x
- Schema validation improvements
- Better error messages
- Performance optimizations
Compatibility Matrix
Feature Compatibility
| Feature | Milvus 2.2 | Milvus 2.3 | Milvus 2.4 | Milvus 2.5 | Milvus 2.6 |
|---|---|---|---|---|---|
| Basic CRUD | ✅ | ✅ | ✅ | ✅ | ✅ |
| Index Types | ✅ | ✅ | ✅ | ✅ | ✅ |
| Dynamic Schema | ✅ | ✅ | ✅ | ✅ | ✅ |
| RBAC v2 | ❌ | ❌ | ✅ | ✅ | ✅ |
| Sparse Vectors | ❌ | ❌ | ✅ | ✅ | ✅ |
| Float16/BFloat16 | ❌ | ❌ | ❌ | ✅ | ✅ |
Upgrade Paths
From v2.3.x to v2.6.x
- Update SDK:
yarn add @zilliz/milvus2-sdk-node@latest- Update code (if needed):
- Review API changes
- Update deprecated methods
- Test thoroughly
From v2.4.x to v2.6.x
- Update SDK:
yarn add @zilliz/milvus2-sdk-node@latest- Test new features:
- Try new index types
- Test performance improvements
Deprecated Features
Deprecated Methods
Some methods may be deprecated in newer versions:
// Old method (deprecated)
client.alterCollection({ /* ... */ });
// New method
client.alterCollectionProperties({ /* ... */ });Migration Steps
- Check deprecation warnings
- Update to new methods
- Test functionality
- Remove old code
Best Practices for Migration
-
Test in Development: Always test upgrades in development first
-
Gradual Rollout: Roll out upgrades gradually in production
-
Monitor: Monitor for errors after upgrade
-
Rollback Plan: Have a rollback plan ready
-
Documentation: Keep track of changes and configurations
Getting Help
If you encounter issues during migration:
- Check Troubleshooting
- Review GitHub Issues
- Consult Milvus Documentation
Next Steps
- Review Best Practices
- Check API Reference
- Explore Examples & Tutorials
Last updated on