Skip to content

v1.2.3

Latest
Compare
Choose a tag to compare
@chessurisme chessurisme released this 31 Jan 11:55
10dd68d

Release v1.2.3

Features:

  • Added close method to the Reign to explicitly close the IndexedDB connection.
    // Usage example
    const db = new Reign({ databaseName: 'MyDatabase', storeNames: ['Users', 'Products'], version: 1 });
    await db.init();
    
    // Perform database operations...
    
    // Close the database connection on application shutdown
    db.close();

Benefits:

  • Ensures proper resource management by allowing the database connection to be explicitly closed when no longer needed.
  • Helps prevent potential memory leaks and resource contention, especially during application shutdown.