diff options
Diffstat (limited to '.changeset')
-rw-r--r-- | .changeset/bright-students-worry.md | 16 | ||||
-rw-r--r-- | .changeset/chilly-cherries-appear.md | 5 | ||||
-rw-r--r-- | .changeset/empty-bees-help.md | 5 | ||||
-rw-r--r-- | .changeset/fluffy-bobcats-arrive.md | 5 | ||||
-rw-r--r-- | .changeset/healthy-taxis-applaud.md | 5 | ||||
-rw-r--r-- | .changeset/purple-poets-sin.md | 58 | ||||
-rw-r--r-- | .changeset/thick-geckos-design.md | 5 | ||||
-rw-r--r-- | .changeset/weak-weeks-pump.md | 5 |
8 files changed, 0 insertions, 104 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/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. |