Packages

@astrojs/db

0.21.3 · 9 Jun 2026MIT1.7k / weekRepositoryHomepagenpmAtom feed

Deprecated by its maintainers: This package is deprecated. Use a database client (Drizzle, Kysely, etc.) directly instead.What to use instead

Upgrading @astrojs/db From 0.1.0 to 0.21.3

118 releases in betweennotes for 86

Reading releases, release notes and advisories…

  1. 0.1.0yours
  2. 23 releases
  3. 0.2.0major
  4. 2 releases
  5. 0.3.0major
  6. 5 releases
  7. 0.4.0major
  8. 1 release
  9. 0.5.0major
  10. 0.6.0major
  11. 5 releases
  12. 0.7.0major
  13. 2 releases
  14. 0.8.0major
  15. 8 releases
  16. 0.9.0major
  17. 11 releases
  18. 0.10.0major
  19. 7 releases
  20. 0.11.0major
  21. 7 releases
  22. 0.12.0major
  23. 0.13.0major
  24. 2 releases
  25. 0.14.0major
  26. 14 releases
  27. 0.15.0major
  28. 1 release
  29. 0.16.0major
  30. 1 release
  31. 0.17.0major
  32. 2 releases
  33. 0.18.0major
  34. 3 releases
  35. 0.19.0major
  36. 0.20.0major
  37. 1 release
  38. 0.21.0security
  39. 2 releases
  40. 0.21.3target
5+
changes to make
0
advisories fixed
27+
new
89+
fixes

Counted from 86 of 118 release notes. Advisories are counted from the advisory database, in full.

Start here

Before you upgrade

Tick each one off as you go
  • Breaking0.16.0
  • Breaking0.14.2
  • Breaking0.7.2
  • Deprecated0.21.3
  • Deprecated0.9.8

Security

  • Fixes a SQL injection vulnerability by updating drizzle-orm to ^0.45.2, patching GHSA-gpj5-g38j-94v9 (CVE-2026-39356).

    0.21.0

Release by release

  1. 0.21.3

    Deprecation9 Jun 2026
    • Deprecated

      Deprecates the @astrojs/db integration. We no longer have the bandwidth to maintain this package, and we recommend that users directly use the database client of their choice (Drizzle, Kysely, etc.) in their Astro projects instead.

  2. 0.21.2

    18 May 20261 fix
    • Fixed

      Updates typescript to v6. No changes are needed from users.

  3. 0.21.1

    30 Apr 20261 fix
    • Fixed

      Fixes compatibility with Zod 4.4.0 for the server config property and error formatting

  4. 0.21.0

    Security fix28 Apr 20261 new
    • Security

      Fixes a SQL injection vulnerability by updating drizzle-orm to ^0.45.2, patching GHSA-gpj5-g38j-94v9 (CVE-2026-39356).

    • New

      Adds a new getDbError() helper exported from astro:db. It walks the error .cause chain and returns the underlying LibsqlError, or undefined if the error did not originate from libSQL. This is needed because drizzle-orm 0.44+ wraps query errors in a DrizzleQueryError whose .cause is the real LibsqlError.

  5. 0.20.1

    18 Mar 20261 fix
    • Fixed

      Replace deprecated deep-diff with microdiff and resolve subdependency warnings.

  6. 0.20.0

    10 Mar 20261 new · 3 fixes
    • New

      Astro v6.0 upgrades to Vite v7.0 as the development server and production bundler - (v6 upgrade guidance)

    • Fixed

      Update to Astro 6 beta

    • Fixed

      Updates usage of zod to own dependency rather than relying on astro/zod

    • Fixed

      Improves CLI styling

  7. 0.19.0

    22 Jan 20261 new
    • New

      Adds a --db-app-token CLI flag to astro db commands execute, push, query, and verify

  8. 0.18.3

    20 Nov 20251 fix
    • Fixed

      Removes picocolors as dependency in favor of the fork piccolore.

24 internal lines (docs, tests, tooling) left out.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.