Skip to content

v0.5.13 - Critical Feature 051 API Export Fix

Latest

Choose a tag to compare

@isc-tdyar isc-tdyar released this 24 Nov 03:44
· 22 commits to main since this release

Critical Bug Fix

CRITICAL: v0.5.11 and v0.5.12 did not export the Feature 051 API from the common module's __init__.py file.

This release makes Feature 051 Simplified Connection API actually usable for the first time in PyPI packages.

What Was Broken

In v0.5.11 and v0.5.12, the Feature 051 code existed but was not exported:

  • iris_vector_rag/common/__init__.py was empty (only # common module comment)
  • from iris_vector_rag.common import get_iris_connection would fail with ImportError
  • Users could not access the new simplified connection API

What's Fixed

  • ✅ Added proper exports to iris_vector_rag/common/__init__.py
  • ✅ Feature 051 API now accessible via standard imports
  • ✅ All three API functions exported: get_iris_connection(), detect_iris_edition(), IRISConnectionPool

Changes Since v0.5.12

  1. Fixed Module Exports (commit 53af704)
    • Added get_iris_connection() export
    • Added detect_iris_edition() export
    • Added IRISConnectionPool export

Changes Since v0.5.11

  1. Removed Non-existent _DBAPI References (v0.5.12 - commit 08f8cd7b)

    • Removed incorrect iris._DBAPI checks from iris_connection.py:66-78
    • Removed incorrect iris._DBAPI checks from iris_dbapi_connector.py:109-123
    • Updated to use official iris.connect() API only (per InterSystems documentation)
  2. Fixed Module Exports (v0.5.13 - commit 53af704)

    • Added proper exports to iris_vector_rag/common/__init__.py

Migration from v0.5.11/v0.5.12

If you tried to use Feature 051 in v0.5.11 or v0.5.12 and got import errors:

# This now works in v0.5.13 (was broken in v0.5.11/v0.5.12)
from iris_vector_rag.common import get_iris_connection, detect_iris_edition, IRISConnectionPool

# Get connection (automatic caching, thread-safe)
conn = get_iris_connection()

# Optional: Use connection pooling for high-concurrency scenarios
pool = IRISConnectionPool(max_connections=10)
with pool.acquire() as conn:
    # Use connection
    pass

Verification

Package verified at: https://pypi.org/project/iris-vector-rag/0.5.13/

References

  • Feature 051 Documentation: specs/051-simplify-iris-connection/quickstart.md
  • Migration Guide: /Users/tdyar/ws/hipporag2-pipeline/MIGRATION_FEATURE_051.md
  • Contract Tests: tests/contract/test_iris_connection_contract.py (12 passing, 4 skipped)