summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.changeset/bright-students-worry.md16
-rw-r--r--.changeset/chilly-cherries-appear.md5
-rw-r--r--.changeset/empty-bees-help.md5
-rw-r--r--.changeset/fluffy-bobcats-arrive.md5
-rw-r--r--.changeset/healthy-taxis-applaud.md5
-rw-r--r--.changeset/purple-poets-sin.md58
-rw-r--r--.changeset/stupid-eagles-begin.md5
-rw-r--r--.changeset/thick-geckos-design.md5
-rw-r--r--.changeset/weak-weeks-pump.md5
-rw-r--r--.changeset/wet-kiwis-laugh.md8
-rw-r--r--examples/basics/package.json2
-rw-r--r--examples/blog/package.json2
-rw-r--r--examples/component/package.json2
-rw-r--r--examples/framework-alpine/package.json2
-rw-r--r--examples/framework-lit/package.json2
-rw-r--r--examples/framework-multiple/package.json2
-rw-r--r--examples/framework-preact/package.json2
-rw-r--r--examples/framework-react/package.json2
-rw-r--r--examples/framework-solid/package.json2
-rw-r--r--examples/framework-svelte/package.json2
-rw-r--r--examples/framework-vue/package.json2
-rw-r--r--examples/hackernews/package.json2
-rw-r--r--examples/integration/package.json2
-rw-r--r--examples/middleware/package.json2
-rw-r--r--examples/minimal/package.json2
-rw-r--r--examples/non-html-pages/package.json2
-rw-r--r--examples/portfolio/package.json2
-rw-r--r--examples/ssr/package.json2
-rw-r--r--examples/starlog/package.json2
-rw-r--r--examples/view-transitions/package.json2
-rw-r--r--examples/with-markdoc/package.json2
-rw-r--r--examples/with-markdown-plugins/package.json2
-rw-r--r--examples/with-markdown-shiki/package.json2
-rw-r--r--examples/with-mdx/package.json2
-rw-r--r--examples/with-nanostores/package.json2
-rw-r--r--examples/with-tailwindcss/package.json2
-rw-r--r--examples/with-vitest/package.json2
-rw-r--r--packages/astro/CHANGELOG.md6
-rw-r--r--packages/astro/package.json2
-rw-r--r--packages/create-astro/CHANGELOG.md6
-rw-r--r--packages/create-astro/package.json2
-rw-r--r--packages/db/CHANGELOG.md93
-rw-r--r--packages/db/package.json2
-rw-r--r--pnpm-lock.yaml54
44 files changed, 162 insertions, 174 deletions
diff --git a/.changeset/bright-students-worry.md b/.changeset/bright-students-worry.md
deleted file mode 100644
index c18caa130..000000000
--- a/.changeset/bright-students-worry.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-"@astrojs/db": minor
----
-
-Changes the seed file format to require exporting a default function instead of running seed code at the top level.
-
-To migrate a seed file, wrap your existing code in a default function export:
-
-```diff
-// db/seed.ts
-import { db, Table } from 'astro:db';
-
-+ export default async function() {
- await db.insert(Table).values({ foo: 'bar' });
-+ }
-```
diff --git a/.changeset/chilly-cherries-appear.md b/.changeset/chilly-cherries-appear.md
deleted file mode 100644
index 80fc9b123..000000000
--- a/.changeset/chilly-cherries-appear.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"@astrojs/db": patch
----
-
-Fix runtime export error when building with the node adapter
diff --git a/.changeset/empty-bees-help.md b/.changeset/empty-bees-help.md
deleted file mode 100644
index bb530f85e..000000000
--- a/.changeset/empty-bees-help.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"create-astro": patch
----
-
-Fixes an issue where TypeScript and `@astrojs/check` versions would occassionally print as `undefined`.
diff --git a/.changeset/fluffy-bobcats-arrive.md b/.changeset/fluffy-bobcats-arrive.md
deleted file mode 100644
index 199855362..000000000
--- a/.changeset/fluffy-bobcats-arrive.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"@astrojs/db": patch
----
-
-Rename `experimentalVersion` to `version`
diff --git a/.changeset/healthy-taxis-applaud.md b/.changeset/healthy-taxis-applaud.md
deleted file mode 100644
index 3d8c67e5d..000000000
--- a/.changeset/healthy-taxis-applaud.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"@astrojs/db": minor
----
-
-Introduce `astro build --remote` to build with a remote database connection. Running `astro build` plain will use a local database file, and `--remote` will authenticate with a studio app token.
diff --git a/.changeset/purple-poets-sin.md b/.changeset/purple-poets-sin.md
deleted file mode 100644
index 0496e3a2d..000000000
--- a/.changeset/purple-poets-sin.md
+++ /dev/null
@@ -1,58 +0,0 @@
----
-"@astrojs/db": minor
----
-
-Adds support for integrations providing `astro:db` configuration and seed files, using the new `astro:db:setup` hook.
-
-To get TypeScript support for the `astro:db:setup` hook, wrap your integration object in the `defineDbIntegration()` utility:
-
-```js
-import { defineDbIntegration } from '@astrojs/db/utils';
-
-export default function MyDbIntegration() {
- return defineDbIntegration({
- name: 'my-astro-db-powered-integration',
- hooks: {
- 'astro:db:setup': ({ extendDb }) => {
- extendDb({
- configEntrypoint: '@astronaut/my-package/config',
- seedEntrypoint: '@astronaut/my-package/seed',
- });
- },
- },
- });
-}
-```
-
-Use the `extendDb` method to register additional `astro:db` config and seed files.
-
-Integration config and seed files follow the same format as their user-defined equivalents. However, often while working on integrations, you may not be able to benefit from Astro’s generated table types exported from `astro:db`. For full type safety and autocompletion support, use the `asDrizzleTable()` utility to wrap your table definitions in the seed file.
-
-```js
-// config.ts
-import { defineTable, column } from 'astro:db';
-
-export const Pets = defineTable({
- columns: {
- name: column.text(),
- age: column.number(),
- },
-});
-```
-
-```js
-// seed.ts
-import { asDrizzleTable } from '@astrojs/db/utils';
-import { db } from 'astro:db';
-import { Pets } from './config';
-
-export default async function() {
- // Convert the Pets table into a format ready for querying.
- const typeSafePets = asDrizzleTable('Pets', Pets);
-
- await db.insert(typeSafePets).values([
- { name: 'Palomita', age: 7 },
- { name: 'Pan', age: 3.5 },
- ]);
-}
-```
diff --git a/.changeset/stupid-eagles-begin.md b/.changeset/stupid-eagles-begin.md
deleted file mode 100644
index 17f3dec48..000000000
--- a/.changeset/stupid-eagles-begin.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"astro": patch
----
-
-Adds scaffolded files when running `astro add db`
diff --git a/.changeset/thick-geckos-design.md b/.changeset/thick-geckos-design.md
deleted file mode 100644
index 28568f01e..000000000
--- a/.changeset/thick-geckos-design.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"astro": patch
----
-
-Fixes an issue where elements slotted within interactive framework components disappeared after hydration.
diff --git a/.changeset/weak-weeks-pump.md b/.changeset/weak-weeks-pump.md
deleted file mode 100644
index 96cb77d21..000000000
--- a/.changeset/weak-weeks-pump.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"@astrojs/db": minor
----
-
-Add support for batch queries with `db.batch()`. This includes an internal bump to Drizzle v0.29.
diff --git a/.changeset/wet-kiwis-laugh.md b/.changeset/wet-kiwis-laugh.md
deleted file mode 100644
index 885f88951..000000000
--- a/.changeset/wet-kiwis-laugh.md
+++ /dev/null
@@ -1,8 +0,0 @@
----
-"@astrojs/db": minor
-"astro": patch
----
-
-Renames the Astro DB `defineDB()` helper to `defineDb()`
-
-⚠️ Breaking change: update your imports from `astro:db` to use `defineDb` with a lowercase “b”.
diff --git a/examples/basics/package.json b/examples/basics/package.json
index 61161ed3e..0f3d0cbb2 100644
--- a/examples/basics/package.json
+++ b/examples/basics/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^4.4.14"
+ "astro": "^4.4.15"
}
}
diff --git a/examples/blog/package.json b/examples/blog/package.json
index 23f423025..cc079bda3 100644
--- a/examples/blog/package.json
+++ b/examples/blog/package.json
@@ -14,6 +14,6 @@
"@astrojs/mdx": "^2.1.1",
"@astrojs/rss": "^4.0.5",
"@astrojs/sitemap": "^3.1.1",
- "astro": "^4.4.14"
+ "astro": "^4.4.15"
}
}
diff --git a/examples/component/package.json b/examples/component/package.json
index db9879be7..31dca9ecd 100644
--- a/examples/component/package.json
+++ b/examples/component/package.json
@@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
- "astro": "^4.4.14"
+ "astro": "^4.4.15"
},
"peerDependencies": {
"astro": "^4.0.0"
diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json
index d081dab9a..ec27e2973 100644
--- a/examples/framework-alpine/package.json
+++ b/examples/framework-alpine/package.json
@@ -14,6 +14,6 @@
"@astrojs/alpinejs": "^0.4.0",
"@types/alpinejs": "^3.13.5",
"alpinejs": "^3.13.3",
- "astro": "^4.4.14"
+ "astro": "^4.4.15"
}
}
diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json
index 52bd74537..cc8f560dc 100644
--- a/examples/framework-lit/package.json
+++ b/examples/framework-lit/package.json
@@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/lit": "^4.0.1",
"@webcomponents/template-shadowroot": "^0.2.1",
- "astro": "^4.4.14",
+ "astro": "^4.4.15",
"lit": "^3.1.2"
}
}
diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json
index ae926679e..f2cbe9501 100644
--- a/examples/framework-multiple/package.json
+++ b/examples/framework-multiple/package.json
@@ -16,7 +16,7 @@
"@astrojs/solid-js": "^4.0.1",
"@astrojs/svelte": "^5.2.0",
"@astrojs/vue": "^4.0.8",
- "astro": "^4.4.14",
+ "astro": "^4.4.15",
"preact": "^10.19.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json
index f4bd2cebb..a28f3be95 100644
--- a/examples/framework-preact/package.json
+++ b/examples/framework-preact/package.json
@@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/preact": "^3.1.1",
"@preact/signals": "^1.2.1",
- "astro": "^4.4.14",
+ "astro": "^4.4.15",
"preact": "^10.19.2"
}
}
diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json
index 251697ad1..99e914c14 100644
--- a/examples/framework-react/package.json
+++ b/examples/framework-react/package.json
@@ -14,7 +14,7 @@
"@astrojs/react": "^3.0.10",
"@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15",
- "astro": "^4.4.14",
+ "astro": "^4.4.15",
"react": "^18.2.0",
"react-dom": "^18.2.0"
}
diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json
index b0e26709d..91b628994 100644
--- a/examples/framework-solid/package.json
+++ b/examples/framework-solid/package.json
@@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/solid-js": "^4.0.1",
- "astro": "^4.4.14",
+ "astro": "^4.4.15",
"solid-js": "^1.8.5"
}
}
diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json
index bf58ea1ce..7a8109ee1 100644
--- a/examples/framework-svelte/package.json
+++ b/examples/framework-svelte/package.json
@@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/svelte": "^5.2.0",
- "astro": "^4.4.14",
+ "astro": "^4.4.15",
"svelte": "^4.2.5"
}
}
diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json
index ab52e384b..5d9e1f274 100644
--- a/examples/framework-vue/package.json
+++ b/examples/framework-vue/package.json
@@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/vue": "^4.0.8",
- "astro": "^4.4.14",
+ "astro": "^4.4.15",
"vue": "^3.3.8"
}
}
diff --git a/examples/hackernews/package.json b/examples/hackernews/package.json
index c0c62c73b..89930a13a 100644
--- a/examples/hackernews/package.json
+++ b/examples/hackernews/package.json
@@ -12,6 +12,6 @@
},
"dependencies": {
"@astrojs/node": "^8.2.3",
- "astro": "^4.4.14"
+ "astro": "^4.4.15"
}
}
diff --git a/examples/integration/package.json b/examples/integration/package.json
index 545968aca..0a0310ed7 100644
--- a/examples/integration/package.json
+++ b/examples/integration/package.json
@@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
- "astro": "^4.4.14"
+ "astro": "^4.4.15"
},
"peerDependencies": {
"astro": "^4.0.0"
diff --git a/examples/middleware/package.json b/examples/middleware/package.json
index c5d343462..d4f7fa7f1 100644
--- a/examples/middleware/package.json
+++ b/examples/middleware/package.json
@@ -13,7 +13,7 @@
},
"dependencies": {
"@astrojs/node": "^8.2.3",
- "astro": "^4.4.14",
+ "astro": "^4.4.15",
"html-minifier": "^4.0.0"
},
"devDependencies": {
diff --git a/examples/minimal/package.json b/examples/minimal/package.json
index fcdea12ae..419180170 100644
--- a/examples/minimal/package.json
+++ b/examples/minimal/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^4.4.14"
+ "astro": "^4.4.15"
}
}
diff --git a/examples/non-html-pages/package.json b/examples/non-html-pages/package.json
index 4bc51dc5c..cf25b8dc7 100644
--- a/examples/non-html-pages/package.json
+++ b/examples/non-html-pages/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^4.4.14"
+ "astro": "^4.4.15"
}
}
diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json
index 0976c0b46..3c9f4766f 100644
--- a/examples/portfolio/package.json
+++ b/examples/portfolio/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^4.4.14"
+ "astro": "^4.4.15"
}
}
diff --git a/examples/ssr/package.json b/examples/ssr/package.json
index 1a8be6e1c..ea5d05ff0 100644
--- a/examples/ssr/package.json
+++ b/examples/ssr/package.json
@@ -14,7 +14,7 @@
"dependencies": {
"@astrojs/node": "^8.2.3",
"@astrojs/svelte": "^5.2.0",
- "astro": "^4.4.14",
+ "astro": "^4.4.15",
"svelte": "^4.2.5"
}
}
diff --git a/examples/starlog/package.json b/examples/starlog/package.json
index 7cb59cb55..d46d9729e 100644
--- a/examples/starlog/package.json
+++ b/examples/starlog/package.json
@@ -10,7 +10,7 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^4.4.14",
+ "astro": "^4.4.15",
"sass": "^1.69.5",
"sharp": "^0.32.6"
}
diff --git a/examples/view-transitions/package.json b/examples/view-transitions/package.json
index 5e46d3aa7..58c63411d 100644
--- a/examples/view-transitions/package.json
+++ b/examples/view-transitions/package.json
@@ -12,6 +12,6 @@
"devDependencies": {
"@astrojs/tailwind": "^5.1.0",
"@astrojs/node": "^8.2.3",
- "astro": "^4.4.14"
+ "astro": "^4.4.15"
}
}
diff --git a/examples/with-markdoc/package.json b/examples/with-markdoc/package.json
index 61b13773c..16e5a5eca 100644
--- a/examples/with-markdoc/package.json
+++ b/examples/with-markdoc/package.json
@@ -12,6 +12,6 @@
},
"dependencies": {
"@astrojs/markdoc": "^0.9.1",
- "astro": "^4.4.14"
+ "astro": "^4.4.15"
}
}
diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json
index 578eb239b..72438c077 100644
--- a/examples/with-markdown-plugins/package.json
+++ b/examples/with-markdown-plugins/package.json
@@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/markdown-remark": "^4.2.1",
- "astro": "^4.4.14",
+ "astro": "^4.4.15",
"hast-util-select": "^6.0.2",
"rehype-autolink-headings": "^7.1.0",
"rehype-slug": "^6.0.0",
diff --git a/examples/with-markdown-shiki/package.json b/examples/with-markdown-shiki/package.json
index e5cc39d49..1069689ae 100644
--- a/examples/with-markdown-shiki/package.json
+++ b/examples/with-markdown-shiki/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^4.4.14"
+ "astro": "^4.4.15"
}
}
diff --git a/examples/with-mdx/package.json b/examples/with-mdx/package.json
index fd7bd9ebf..17a8a433b 100644
--- a/examples/with-mdx/package.json
+++ b/examples/with-mdx/package.json
@@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/mdx": "^2.1.1",
"@astrojs/preact": "^3.1.1",
- "astro": "^4.4.14",
+ "astro": "^4.4.15",
"preact": "^10.19.2"
}
}
diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json
index 6adcce840..337d0a675 100644
--- a/examples/with-nanostores/package.json
+++ b/examples/with-nanostores/package.json
@@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/preact": "^3.1.1",
"@nanostores/preact": "^0.5.0",
- "astro": "^4.4.14",
+ "astro": "^4.4.15",
"nanostores": "^0.9.5",
"preact": "^10.19.2"
}
diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json
index 58e9289bc..fcc6729db 100644
--- a/examples/with-tailwindcss/package.json
+++ b/examples/with-tailwindcss/package.json
@@ -14,7 +14,7 @@
"@astrojs/mdx": "^2.1.1",
"@astrojs/tailwind": "^5.1.0",
"@types/canvas-confetti": "^1.6.3",
- "astro": "^4.4.14",
+ "astro": "^4.4.15",
"autoprefixer": "^10.4.15",
"canvas-confetti": "^1.9.1",
"postcss": "^8.4.28",
diff --git a/examples/with-vitest/package.json b/examples/with-vitest/package.json
index 6a1fcd5df..5841c328f 100644
--- a/examples/with-vitest/package.json
+++ b/examples/with-vitest/package.json
@@ -12,7 +12,7 @@
"test": "vitest"
},
"dependencies": {
- "astro": "^4.4.14",
+ "astro": "^4.4.15",
"vitest": "^1.3.1"
}
}
diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md
index db9901d7a..c041b15c2 100644
--- a/packages/astro/CHANGELOG.md
+++ b/packages/astro/CHANGELOG.md
@@ -1,5 +1,11 @@
# astro
+## 4.4.15
+
+### Patch Changes
+
+- [#10317](https://github.com/withastro/astro/pull/10317) [`33583e8b31ee8a33e26cf57f30bb422921f4745d`](https://github.com/withastro/astro/commit/33583e8b31ee8a33e26cf57f30bb422921f4745d) Thanks [@lilnasy](https://github.com/lilnasy)! - Fixes an issue where elements slotted within interactive framework components disappeared after hydration.
+
## 4.4.14
### Patch Changes
diff --git a/packages/astro/package.json b/packages/astro/package.json
index 6922a3e3e..d3bb6acd5 100644
--- a/packages/astro/package.json
+++ b/packages/astro/package.json
@@ -1,6 +1,6 @@
{
"name": "astro",
- "version": "4.4.14",
+ "version": "4.4.15",
"description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.",
"type": "module",
"author": "withastro",
diff --git a/packages/create-astro/CHANGELOG.md b/packages/create-astro/CHANGELOG.md
index 0c1f3932b..237e3cf7f 100644
--- a/packages/create-astro/CHANGELOG.md
+++ b/packages/create-astro/CHANGELOG.md
@@ -1,5 +1,11 @@
# create-astro
+## 4.7.4
+
+### Patch Changes
+
+- [#10255](https://github.com/withastro/astro/pull/10255) [`2aec2cdc21f48f9b4f1dd82e2fd16fa3d653ccc5`](https://github.com/withastro/astro/commit/2aec2cdc21f48f9b4f1dd82e2fd16fa3d653ccc5) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Fixes an issue where TypeScript and `@astrojs/check` versions would occassionally print as `undefined`.
+
## 4.7.3
### Patch Changes
diff --git a/packages/create-astro/package.json b/packages/create-astro/package.json
index 5b4f45c0d..8dafc49b6 100644
--- a/packages/create-astro/package.json
+++ b/packages/create-astro/package.json
@@ -1,6 +1,6 @@
{
"name": "create-astro",
- "version": "4.7.3",
+ "version": "4.7.4",
"type": "module",
"author": "withastro",
"license": "MIT",
diff --git a/packages/db/CHANGELOG.md b/packages/db/CHANGELOG.md
index e54d9d0dc..8c257069c 100644
--- a/packages/db/CHANGELOG.md
+++ b/packages/db/CHANGELOG.md
@@ -1,5 +1,98 @@
# @astrojs/db
+## 0.7.0
+
+### Minor Changes
+
+## 0.7.0
+
+### Breaking Changes
+
+- The seed file now requires an `export default async function()` wrapper
+- `defineDB` has been renamed to `defineDb`
+
+### Minor Changes
+
+- [#10334](https://github.com/withastro/astro/pull/10334) [`bad9b583a267e239ba52237d45a89063ea277200`](https://github.com/withastro/astro/commit/bad9b583a267e239ba52237d45a89063ea277200) Thanks [@delucis](https://github.com/delucis)! - Changes the seed file format to require exporting a default function instead of running seed code at the top level.
+
+ To migrate a seed file, wrap your existing code in a default function export:
+
+ ```diff
+ // db/seed.ts
+ import { db, Table } from 'astro:db';
+
+ + export default async function() {
+ await db.insert(Table).values({ foo: 'bar' });
+ + }
+ ```
+
+- [#10352](https://github.com/withastro/astro/pull/10352) [`06fe94e29de97290cb41c4f862ab88f48cda3d4a`](https://github.com/withastro/astro/commit/06fe94e29de97290cb41c4f862ab88f48cda3d4a) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Introduce `astro build --remote` to build with a remote database connection. Running `astro build` plain will use a local database file, and `--remote` will authenticate with a studio app token.
+
+- [#10321](https://github.com/withastro/astro/pull/10321) [`2e4958c8a75dc9836efcc7dd272fb8ed4187c000`](https://github.com/withastro/astro/commit/2e4958c8a75dc9836efcc7dd272fb8ed4187c000) Thanks [@delucis](https://github.com/delucis)! - Adds support for integrations providing `astro:db` configuration and seed files, using the new `astro:db:setup` hook.
+
+ To get TypeScript support for the `astro:db:setup` hook, wrap your integration object in the `defineDbIntegration()` utility:
+
+ ```js
+ import { defineDbIntegration } from '@astrojs/db/utils';
+
+ export default function MyDbIntegration() {
+ return defineDbIntegration({
+ name: 'my-astro-db-powered-integration',
+ hooks: {
+ 'astro:db:setup': ({ extendDb }) => {
+ extendDb({
+ configEntrypoint: '@astronaut/my-package/config',
+ seedEntrypoint: '@astronaut/my-package/seed',
+ });
+ },
+ },
+ });
+ }
+ ```
+
+ Use the `extendDb` method to register additional `astro:db` config and seed files.
+
+ Integration config and seed files follow the same format as their user-defined equivalents. However, often while working on integrations, you may not be able to benefit from Astro’s generated table types exported from `astro:db`. For full type safety and autocompletion support, use the `asDrizzleTable()` utility to wrap your table definitions in the seed file.
+
+ ```js
+ // config.ts
+ import { defineTable, column } from 'astro:db';
+
+ export const Pets = defineTable({
+ columns: {
+ name: column.text(),
+ age: column.number(),
+ },
+ });
+ ```
+
+ ```js
+ // seed.ts
+ import { asDrizzleTable } from '@astrojs/db/utils';
+ import { db } from 'astro:db';
+ import { Pets } from './config';
+
+ export default async function () {
+ // Convert the Pets table into a format ready for querying.
+ const typeSafePets = asDrizzleTable('Pets', Pets);
+
+ await db.insert(typeSafePets).values([
+ { name: 'Palomita', age: 7 },
+ { name: 'Pan', age: 3.5 },
+ ]);
+ }
+ ```
+
+- [#10361](https://github.com/withastro/astro/pull/10361) [`988aad6705e5ee129cf3a28da80aca4229052bb3`](https://github.com/withastro/astro/commit/988aad6705e5ee129cf3a28da80aca4229052bb3) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Add support for batch queries with `db.batch()`. This includes an internal bump to Drizzle v0.29.
+
+### Patch Changes
+
+- [#10357](https://github.com/withastro/astro/pull/10357) [`5a9dab286f3f436f3dce18f3b13a2cd9b774a8ef`](https://github.com/withastro/astro/commit/5a9dab286f3f436f3dce18f3b13a2cd9b774a8ef) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Fix runtime export error when building with the node adapter
+
+- [#10348](https://github.com/withastro/astro/pull/10348) [`9f422e9bd338c1f6deee8f727143bf801a6b1651`](https://github.com/withastro/astro/commit/9f422e9bd338c1f6deee8f727143bf801a6b1651) Thanks [@matthewp](https://github.com/matthewp)! - Rename `experimentalVersion` to `version`
+
+- [#10364](https://github.com/withastro/astro/pull/10364) [`3f27e096283b6b477c4a66d0a7df52feaa3f4233`](https://github.com/withastro/astro/commit/3f27e096283b6b477c4a66d0a7df52feaa3f4233) Thanks [@delucis](https://github.com/delucis)! - Renames the Astro DB `defineDB()` helper to `defineDb()`
+
## 0.6.5
### Patch Changes
diff --git a/packages/db/package.json b/packages/db/package.json
index 31834f8d4..1b2fcd900 100644
--- a/packages/db/package.json
+++ b/packages/db/package.json
@@ -1,6 +1,6 @@
{
"name": "@astrojs/db",
- "version": "0.6.5",
+ "version": "0.7.0",
"description": "",
"license": "MIT",
"type": "module",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index f0f35c435..aa4ceb9e3 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -134,7 +134,7 @@ importers:
examples/basics:
dependencies:
astro:
- specifier: ^4.4.14
+ specifier: ^4.4.15
version: link:../../packages/astro
examples/blog:
@@ -149,13 +149,13 @@ importers:
specifier: ^3.1.1
version: link:../../packages/integrations/sitemap
astro:
- specifier: ^4.4.14
+ specifier: ^4.4.15
version: link:../../packages/astro
examples/component:
devDependencies:
astro:
- specifier: ^4.4.14
+ specifier: ^4.4.15
version: link:../../packages/astro
examples/framework-alpine:
@@ -170,7 +170,7 @@ importers:
specifier: ^3.13.3
version: 3.13.3
astro:
- specifier: ^4.4.14
+ specifier: ^4.4.15
version: link:../../packages/astro
examples/framework-lit:
@@ -182,7 +182,7 @@ importers:
specifier: ^0.2.1
version: 0.2.1
astro:
- specifier: ^4.4.14
+ specifier: ^4.4.15
version: link:../../packages/astro
lit:
specifier: ^3.1.2
@@ -206,7 +206,7 @@ importers:
specifier: ^4.0.8
version: link:../../packages/integrations/vue
astro:
- specifier: ^4.4.14
+ specifier: ^4.4.15
version: link:../../packages/astro
preact:
specifier: ^10.19.2
@@ -236,7 +236,7 @@ importers:
specifier: ^1.2.1
version: 1.2.1(preact@10.19.3)
astro:
- specifier: ^4.4.14
+ specifier: ^4.4.15
version: link:../../packages/astro
preact:
specifier: ^10.19.2
@@ -254,7 +254,7 @@ importers:
specifier: ^18.2.15
version: 18.2.18
astro:
- specifier: ^4.4.14
+ specifier: ^4.4.15
version: link:../../packages/astro
react:
specifier: ^18.2.0
@@ -269,7 +269,7 @@ importers:
specifier: ^4.0.1
version: link:../../packages/integrations/solid
astro:
- specifier: ^4.4.14
+ specifier: ^4.4.15
version: link:../../packages/astro
solid-js:
specifier: ^1.8.5
@@ -281,7 +281,7 @@ importers:
specifier: ^5.2.0
version: link:../../packages/integrations/svelte
astro:
- specifier: ^4.4.14
+ specifier: ^4.4.15
version: link:../../packages/astro
svelte:
specifier: ^4.2.5
@@ -293,7 +293,7 @@ importers:
specifier: ^4.0.8
version: link:../../packages/integrations/vue
astro:
- specifier: ^4.4.14
+ specifier: ^4.4.15
version: link:../../packages/astro
vue:
specifier: ^3.3.8
@@ -305,13 +305,13 @@ importers:
specifier: ^8.2.3
version: link:../../packages/integrations/node
astro:
- specifier: ^4.4.14
+ specifier: ^4.4.15
version: link:../../packages/astro
examples/integration:
devDependencies:
astro:
- specifier: ^4.4.14
+ specifier: ^4.4.15
version: link:../../packages/astro
examples/middleware:
@@ -320,7 +320,7 @@ importers:
specifier: ^8.2.3
version: link:../../packages/integrations/node
astro:
- specifier: ^4.4.14
+ specifier: ^4.4.15
version: link:../../packages/astro
html-minifier:
specifier: ^4.0.0
@@ -333,19 +333,19 @@ importers:
examples/minimal:
dependencies:
astro:
- specifier: ^4.4.14
+ specifier: ^4.4.15
version: link:../../packages/astro
examples/non-html-pages:
dependencies:
astro:
- specifier: ^4.4.14
+ specifier: ^4.4.15
version: link:../../packages/astro
examples/portfolio:
dependencies:
astro:
- specifier: ^4.4.14
+ specifier: ^4.4.15
version: link:../../packages/astro
examples/ssr:
@@ -357,7 +357,7 @@ importers:
specifier: ^5.2.0
version: link:../../packages/integrations/svelte
astro:
- specifier: ^4.4.14
+ specifier: ^4.4.15
version: link:../../packages/astro
svelte:
specifier: ^4.2.5
@@ -366,7 +366,7 @@ importers:
examples/starlog:
dependencies:
astro:
- specifier: ^4.4.14
+ specifier: ^4.4.15
version: link:../../packages/astro
sass:
specifier: ^1.69.5
@@ -384,7 +384,7 @@ importers:
specifier: ^5.1.0
version: link:../../packages/integrations/tailwind
astro:
- specifier: ^4.4.14
+ specifier: ^4.4.15
version: link:../../packages/astro
examples/with-markdoc:
@@ -393,7 +393,7 @@ importers:
specifier: ^0.9.1
version: link:../../packages/integrations/markdoc
astro:
- specifier: ^4.4.14
+ specifier: ^4.4.15
version: link:../../packages/astro
examples/with-markdown-plugins:
@@ -402,7 +402,7 @@ importers:
specifier: ^4.2.1
version: link:../../packages/markdown/remark
astro:
- specifier: ^4.4.14
+ specifier: ^4.4.15
version: link:../../packages/astro
hast-util-select:
specifier: ^6.0.2
@@ -423,7 +423,7 @@ importers:
examples/with-markdown-shiki:
dependencies:
astro:
- specifier: ^4.4.14
+ specifier: ^4.4.15
version: link:../../packages/astro
examples/with-mdx:
@@ -435,7 +435,7 @@ importers:
specifier: ^3.1.1
version: link:../../packages/integrations/preact
astro:
- specifier: ^4.4.14
+ specifier: ^4.4.15
version: link:../../packages/astro
preact:
specifier: ^10.19.2
@@ -450,7 +450,7 @@ importers:
specifier: ^0.5.0
version: 0.5.0(nanostores@0.9.5)(preact@10.19.3)
astro:
- specifier: ^4.4.14
+ specifier: ^4.4.15
version: link:../../packages/astro
nanostores:
specifier: ^0.9.5
@@ -471,7 +471,7 @@ importers:
specifier: ^1.6.3
version: 1.6.4
astro:
- specifier: ^4.4.14
+ specifier: ^4.4.15
version: link:../../packages/astro
autoprefixer:
specifier: ^10.4.15
@@ -489,7 +489,7 @@ importers:
examples/with-vitest:
dependencies:
astro:
- specifier: ^4.4.14
+ specifier: ^4.4.15
version: link:../../packages/astro
vitest:
specifier: ^1.3.1