Skip to content

Update aiosqlite requirement from >=0.19.0 to >=0.22.1#327

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/aiosqlite-gte-0.22.1
Open

Update aiosqlite requirement from >=0.19.0 to >=0.22.1#327
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/aiosqlite-gte-0.22.1

Conversation

@dependabot
Copy link
Copy Markdown

@dependabot dependabot Bot commented on behalf of github Apr 17, 2026

Updates the requirements on aiosqlite to permit the latest version.

Changelog

Sourced from aiosqlite's changelog.

v0.22.1

Bug fix release

NOTE: Starting with v0.22.0, the aiosqlite.Connection object no longer inherits from threading.Thread. If not using aiosqlite as a context manager, clients must await connection.close() or call connection.stop() to ensure the helper thread is completed and terminated correctly. A ResourceWarning will be emitted for any connection that is garbage collected without being closed or stopped.

  • Added synchronous stop() method to aiosqlite.Connection to enable safe cleanup and termination of the background thread without dependence on having an active event loop (#370)
$ git shortlog -s v0.22.0...v0.22.1
     2	Amethyst Reese

v0.22.0

Feature release

  • Support set_authorizer query access controls (#349)
  • Wait for transaction queue to complete when closing connection (#305)
  • Emit warning when connection goes out of scope without being closed (#355)
  • Remove dependency on typing_extensions (#365)
$ git shortlog -s v0.21.0...v0.22.0
     1	Alec Berryman
     1	Amethyst Reese
     1	David Andreoletti
     1	Markus Heidelberg
     1	beerpsi
    19	dependabot[bot]

v0.21.0

Maintenance release

  • Fix: close connection correctly when BaseException raised in connection (#317)
  • Metadata improvements

... (truncated)

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [aiosqlite](https://github.com/omnilib/aiosqlite) to permit the latest version.
- [Changelog](https://github.com/omnilib/aiosqlite/blob/main/CHANGELOG.md)
- [Commits](omnilib/aiosqlite@v0.19.0...v0.22.1)

---
updated-dependencies:
- dependency-name: aiosqlite
  dependency-version: 0.22.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Apr 17, 2026
@dcellison
Copy link
Copy Markdown
Owner

Review by Kai

The connection usage is clear: aiosqlite.connect() is called directly (not as a context manager), and await _db.close() is called explicitly on shutdown. This pattern is fully compatible with v0.22.x.

PR Review: Clean

pyproject.toml, line 13 - the single-line change bumps aiosqlite>=0.19.0 to >=0.22.1.

The critical breaking change in v0.22.0 is that aiosqlite.Connection no longer inherits from threading.Thread, requiring explicit await connection.close() (or connection.stop()) when not using a context manager. Checking src/kai/sessions.py:

  • Line 76: connection opened via aiosqlite.connect() (not a context manager - the pattern that requires explicit close)
  • Lines 194 and 1132: both shutdown paths call await _db.close() explicitly

The codebase already handles cleanup correctly. No issues found. Safe to merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant