summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Chris Swithinbank <swithinbank@gmail.com> 2024-03-08 01:45:27 +0100
committerGravatar GitHub <noreply@github.com> 2024-03-08 01:45:27 +0100
commitb6ccaa6dc76027f4230d6e7dfecc75b5d8b97267 (patch)
tree83f448c854e07321d6c182721c4062b652cf28c4
parent76c21b19d2dfe8fba570593124cc2989c6179ba4 (diff)
downloadastro-b6ccaa6dc76027f4230d6e7dfecc75b5d8b97267.tar.gz
astro-b6ccaa6dc76027f4230d6e7dfecc75b5d8b97267.tar.zst
astro-b6ccaa6dc76027f4230d6e7dfecc75b5d8b97267.zip
Revert "[ci] release (#10359)" (#10363)
This reverts commit 76c21b19d2dfe8fba570593124cc2989c6179ba4.
-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/thick-geckos-design.md5
-rw-r--r--.changeset/weak-weeks-pump.md5
-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.md82
-rw-r--r--packages/db/package.json2
-rw-r--r--pnpm-lock.yaml54
42 files changed, 161 insertions, 151 deletions
diff --git a/.changeset/bright-students-worry.md b/.changeset/bright-students-worry.md
new file mode 100644
index 000000000..c18caa130
--- /dev/null
+++ b/.changeset/bright-students-worry.md
@@ -0,0 +1,16 @@
+---
+"@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
new file mode 100644
index 000000000..80fc9b123
--- /dev/null
+++ b/.changeset/chilly-cherries-appear.md
@@ -0,0 +1,5 @@
+---
+"@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
new file mode 100644
index 000000000..bb530f85e
--- /dev/null
+++ b/.changeset/empty-bees-help.md
@@ -0,0 +1,5 @@
+---
+"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
new file mode 100644
index 000000000..199855362
--- /dev/null
+++ b/.changeset/fluffy-bobcats-arrive.md
@@ -0,0 +1,5 @@
+---
+"@astrojs/db": patch
+---
+
+Rename `experimentalVersion` to `version`
diff --git a/.changeset/healthy-taxis-applaud.md b/.changeset/healthy-taxis-applaud.md
new file mode 100644
index 000000000..3d8c67e5d
--- /dev/null
+++ b/.changeset/healthy-taxis-applaud.md
@@ -0,0 +1,5 @@
+---
+"@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
new file mode 100644
index 000000000..0496e3a2d
--- /dev/null
+++ b/.changeset/purple-poets-sin.md
@@ -0,0 +1,58 @@
+---
+"@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/thick-geckos-design.md b/.changeset/thick-geckos-design.md
new file mode 100644
index 000000000..28568f01e
--- /dev/null
+++ b/.changeset/thick-geckos-design.md
@@ -0,0 +1,5 @@
+---
+"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
new file mode 100644
index 000000000..96cb77d21
--- /dev/null
+++ b/.changeset/weak-weeks-pump.md
@@ -0,0 +1,5 @@
+---
+"@astrojs/db": minor
+---
+
+Add support for batch queries with `db.batch()`. This includes an internal bump to Drizzle v0.29.
diff --git a/examples/basics/package.json b/examples/basics/package.json
index 0f3d0cbb2..61161ed3e 100644
--- a/examples/basics/package.json
+++ b/examples/basics/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^4.4.15"
+ "astro": "^4.4.14"
}
}
diff --git a/examples/blog/package.json b/examples/blog/package.json
index cc079bda3..23f423025 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.15"
+ "astro": "^4.4.14"
}
}
diff --git a/examples/component/package.json b/examples/component/package.json
index 31dca9ecd..db9879be7 100644
--- a/examples/component/package.json
+++ b/examples/component/package.json
@@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
- "astro": "^4.4.15"
+ "astro": "^4.4.14"
},
"peerDependencies": {
"astro": "^4.0.0"
diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json
index ec27e2973..d081dab9a 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.15"
+ "astro": "^4.4.14"
}
}
diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json
index cc8f560dc..52bd74537 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.15",
+ "astro": "^4.4.14",
"lit": "^3.1.2"
}
}
diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json
index f2cbe9501..ae926679e 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.15",
+ "astro": "^4.4.14",
"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 a28f3be95..f4bd2cebb 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.15",
+ "astro": "^4.4.14",
"preact": "^10.19.2"
}
}
diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json
index 99e914c14..251697ad1 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.15",
+ "astro": "^4.4.14",
"react": "^18.2.0",
"react-dom": "^18.2.0"
}
diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json
index 91b628994..b0e26709d 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.15",
+ "astro": "^4.4.14",
"solid-js": "^1.8.5"
}
}
diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json
index 7a8109ee1..bf58ea1ce 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.15",
+ "astro": "^4.4.14",
"svelte": "^4.2.5"
}
}
diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json
index 5d9e1f274..ab52e384b 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.15",
+ "astro": "^4.4.14",
"vue": "^3.3.8"
}
}
diff --git a/examples/hackernews/package.json b/examples/hackernews/package.json
index 89930a13a..c0c62c73b 100644
--- a/examples/hackernews/package.json
+++ b/examples/hackernews/package.json
@@ -12,6 +12,6 @@
},
"dependencies": {
"@astrojs/node": "^8.2.3",
- "astro": "^4.4.15"
+ "astro": "^4.4.14"
}
}
diff --git a/examples/integration/package.json b/examples/integration/package.json
index 0a0310ed7..545968aca 100644
--- a/examples/integration/package.json
+++ b/examples/integration/package.json
@@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
- "astro": "^4.4.15"
+ "astro": "^4.4.14"
},
"peerDependencies": {
"astro": "^4.0.0"
diff --git a/examples/middleware/package.json b/examples/middleware/package.json
index d4f7fa7f1..c5d343462 100644
--- a/examples/middleware/package.json
+++ b/examples/middleware/package.json
@@ -13,7 +13,7 @@
},
"dependencies": {
"@astrojs/node": "^8.2.3",
- "astro": "^4.4.15",
+ "astro": "^4.4.14",
"html-minifier": "^4.0.0"
},
"devDependencies": {
diff --git a/examples/minimal/package.json b/examples/minimal/package.json
index 419180170..fcdea12ae 100644
--- a/examples/minimal/package.json
+++ b/examples/minimal/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^4.4.15"
+ "astro": "^4.4.14"
}
}
diff --git a/examples/non-html-pages/package.json b/examples/non-html-pages/package.json
index cf25b8dc7..4bc51dc5c 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.15"
+ "astro": "^4.4.14"
}
}
diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json
index 3c9f4766f..0976c0b46 100644
--- a/examples/portfolio/package.json
+++ b/examples/portfolio/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^4.4.15"
+ "astro": "^4.4.14"
}
}
diff --git a/examples/ssr/package.json b/examples/ssr/package.json
index ea5d05ff0..1a8be6e1c 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.15",
+ "astro": "^4.4.14",
"svelte": "^4.2.5"
}
}
diff --git a/examples/starlog/package.json b/examples/starlog/package.json
index d46d9729e..7cb59cb55 100644
--- a/examples/starlog/package.json
+++ b/examples/starlog/package.json
@@ -10,7 +10,7 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^4.4.15",
+ "astro": "^4.4.14",
"sass": "^1.69.5",
"sharp": "^0.32.6"
}
diff --git a/examples/view-transitions/package.json b/examples/view-transitions/package.json
index 58c63411d..5e46d3aa7 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.15"
+ "astro": "^4.4.14"
}
}
diff --git a/examples/with-markdoc/package.json b/examples/with-markdoc/package.json
index 16e5a5eca..61b13773c 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.15"
+ "astro": "^4.4.14"
}
}
diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json
index 72438c077..578eb239b 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.15",
+ "astro": "^4.4.14",
"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 1069689ae..e5cc39d49 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.15"
+ "astro": "^4.4.14"
}
}
diff --git a/examples/with-mdx/package.json b/examples/with-mdx/package.json
index 17a8a433b..fd7bd9ebf 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.15",
+ "astro": "^4.4.14",
"preact": "^10.19.2"
}
}
diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json
index 337d0a675..6adcce840 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.15",
+ "astro": "^4.4.14",
"nanostores": "^0.9.5",
"preact": "^10.19.2"
}
diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json
index fcc6729db..58e9289bc 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.15",
+ "astro": "^4.4.14",
"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 5841c328f..6a1fcd5df 100644
--- a/examples/with-vitest/package.json
+++ b/examples/with-vitest/package.json
@@ -12,7 +12,7 @@
"test": "vitest"
},
"dependencies": {
- "astro": "^4.4.15",
+ "astro": "^4.4.14",
"vitest": "^1.3.1"
}
}
diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md
index c041b15c2..db9901d7a 100644
--- a/packages/astro/CHANGELOG.md
+++ b/packages/astro/CHANGELOG.md
@@ -1,11 +1,5 @@
# 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 d3bb6acd5..6922a3e3e 100644
--- a/packages/astro/package.json
+++ b/packages/astro/package.json
@@ -1,6 +1,6 @@
{
"name": "astro",
- "version": "4.4.15",
+ "version": "4.4.14",
"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 237e3cf7f..0c1f3932b 100644
--- a/packages/create-astro/CHANGELOG.md
+++ b/packages/create-astro/CHANGELOG.md
@@ -1,11 +1,5 @@
# 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 8dafc49b6..5b4f45c0d 100644
--- a/packages/create-astro/package.json
+++ b/packages/create-astro/package.json
@@ -1,6 +1,6 @@
{
"name": "create-astro",
- "version": "4.7.4",
+ "version": "4.7.3",
"type": "module",
"author": "withastro",
"license": "MIT",
diff --git a/packages/db/CHANGELOG.md b/packages/db/CHANGELOG.md
index b8ce34b71..e54d9d0dc 100644
--- a/packages/db/CHANGELOG.md
+++ b/packages/db/CHANGELOG.md
@@ -1,87 +1,5 @@
# @astrojs/db
-## 0.7.0
-
-### 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`
-
## 0.6.5
### Patch Changes
diff --git a/packages/db/package.json b/packages/db/package.json
index 1b2fcd900..31834f8d4 100644
--- a/packages/db/package.json
+++ b/packages/db/package.json
@@ -1,6 +1,6 @@
{
"name": "@astrojs/db",
- "version": "0.7.0",
+ "version": "0.6.5",
"description": "",
"license": "MIT",
"type": "module",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index aa4ceb9e3..f0f35c435 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -134,7 +134,7 @@ importers:
examples/basics:
dependencies:
astro:
- specifier: ^4.4.15
+ specifier: ^4.4.14
version: link:../../packages/astro
examples/blog:
@@ -149,13 +149,13 @@ importers:
specifier: ^3.1.1
version: link:../../packages/integrations/sitemap
astro:
- specifier: ^4.4.15
+ specifier: ^4.4.14
version: link:../../packages/astro
examples/component:
devDependencies:
astro:
- specifier: ^4.4.15
+ specifier: ^4.4.14
version: link:../../packages/astro
examples/framework-alpine:
@@ -170,7 +170,7 @@ importers:
specifier: ^3.13.3
version: 3.13.3
astro:
- specifier: ^4.4.15
+ specifier: ^4.4.14
version: link:../../packages/astro
examples/framework-lit:
@@ -182,7 +182,7 @@ importers:
specifier: ^0.2.1
version: 0.2.1
astro:
- specifier: ^4.4.15
+ specifier: ^4.4.14
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.15
+ specifier: ^4.4.14
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.15
+ specifier: ^4.4.14
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.15
+ specifier: ^4.4.14
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.15
+ specifier: ^4.4.14
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.15
+ specifier: ^4.4.14
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.15
+ specifier: ^4.4.14
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.15
+ specifier: ^4.4.14
version: link:../../packages/astro
examples/integration:
devDependencies:
astro:
- specifier: ^4.4.15
+ specifier: ^4.4.14
version: link:../../packages/astro
examples/middleware:
@@ -320,7 +320,7 @@ importers:
specifier: ^8.2.3
version: link:../../packages/integrations/node
astro:
- specifier: ^4.4.15
+ specifier: ^4.4.14
version: link:../../packages/astro
html-minifier:
specifier: ^4.0.0
@@ -333,19 +333,19 @@ importers:
examples/minimal:
dependencies:
astro:
- specifier: ^4.4.15
+ specifier: ^4.4.14
version: link:../../packages/astro
examples/non-html-pages:
dependencies:
astro:
- specifier: ^4.4.15
+ specifier: ^4.4.14
version: link:../../packages/astro
examples/portfolio:
dependencies:
astro:
- specifier: ^4.4.15
+ specifier: ^4.4.14
version: link:../../packages/astro
examples/ssr:
@@ -357,7 +357,7 @@ importers:
specifier: ^5.2.0
version: link:../../packages/integrations/svelte
astro:
- specifier: ^4.4.15
+ specifier: ^4.4.14
version: link:../../packages/astro
svelte:
specifier: ^4.2.5
@@ -366,7 +366,7 @@ importers:
examples/starlog:
dependencies:
astro:
- specifier: ^4.4.15
+ specifier: ^4.4.14
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.15
+ specifier: ^4.4.14
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.15
+ specifier: ^4.4.14
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.15
+ specifier: ^4.4.14
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.15
+ specifier: ^4.4.14
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.15
+ specifier: ^4.4.14
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.15
+ specifier: ^4.4.14
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.15
+ specifier: ^4.4.14
version: link:../../packages/astro
autoprefixer:
specifier: ^10.4.15
@@ -489,7 +489,7 @@ importers:
examples/with-vitest:
dependencies:
astro:
- specifier: ^4.4.15
+ specifier: ^4.4.14
version: link:../../packages/astro
vitest:
specifier: ^1.3.1