From 0ff5d72c7841e10065d37b43322358f4a48b7e95 Mon Sep 17 00:00:00 2001 From: "Houston (Bot)" <108291165+astrobot-houston@users.noreply.github.com> Date: Thu, 28 Mar 2024 11:20:53 -0700 Subject: [PATCH] [ci] release (#10598) Co-authored-by: github-actions[bot] --- .changeset/angry-lamps-cheer.md | 17 ------------ .changeset/blue-ghosts-rule.md | 31 ---------------------- packages/db/CHANGELOG.md | 32 +++++++++++++++++++++++ packages/db/package.json | 2 +- packages/integrations/vercel/CHANGELOG.md | 18 +++++++++++++ packages/integrations/vercel/package.json | 2 +- 6 files changed, 52 insertions(+), 50 deletions(-) delete mode 100644 .changeset/angry-lamps-cheer.md delete mode 100644 .changeset/blue-ghosts-rule.md diff --git a/.changeset/angry-lamps-cheer.md b/.changeset/angry-lamps-cheer.md deleted file mode 100644 index d8bdee8139..0000000000 --- a/.changeset/angry-lamps-cheer.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -"@astrojs/vercel": minor ---- - -The `isr.exclude` configuration can now include routes with dynamic and spread parameters. -```ts -export default defineConfig({ - adapter: vercel({ - isr: { - exclude: [ - "/blog/[title]" - "/api/[...slug]", - ] - } - }) -}) -``` diff --git a/.changeset/blue-ghosts-rule.md b/.changeset/blue-ghosts-rule.md deleted file mode 100644 index ea06089c6c..0000000000 --- a/.changeset/blue-ghosts-rule.md +++ /dev/null @@ -1,31 +0,0 @@ ---- -"@astrojs/db": patch ---- - -Update the table indexes configuration to allow generated index names. The `indexes` object syntax is now deprecated in favor of an array. - -## Migration - -You can update your `indexes` configuration object to an array like so: - -```diff -import { defineDb, defineTable, column } from 'astro:db'; - -const Comment = defineTable({ - columns: { - postId: column.number(), - author: column.text(), - body: column.text(), - }, -- indexes: { -- postIdIdx: { on: 'postId' }, -- authorPostIdIdx: { on: ['author, postId'], unique: true }, -- }, -+ indexes: [ -+ { on: 'postId' /* 'name' is optional */ }, -+ { on: ['author, postId'], unique: true }, -+ ] -}) -``` - -This example will generate indexes with the names `Comment_postId_idx` and `Comment_author_postId_idx`, respectively. You can specify a name manually by adding the `name` attribute to a given object. This name will be **global,** so ensure index names do not conflict between tables. diff --git a/packages/db/CHANGELOG.md b/packages/db/CHANGELOG.md index 4b7bd72cc5..e78c531be4 100644 --- a/packages/db/CHANGELOG.md +++ b/packages/db/CHANGELOG.md @@ -1,5 +1,37 @@ # @astrojs/db +## 0.9.8 + +### Patch Changes + +- [#10589](https://github.com/withastro/astro/pull/10589) [`ed1031ba29af9a8a89ab386d772a228ba1414b4d`](https://github.com/withastro/astro/commit/ed1031ba29af9a8a89ab386d772a228ba1414b4d) Thanks [@column.text(),]()! - Update the table indexes configuration to allow generated index names. The `indexes` object syntax is now deprecated in favor of an array. + + ## Migration + + You can update your `indexes` configuration object to an array like so: + + ```diff + import { defineDb, defineTable, column } from 'astro:db'; + + const Comment = defineTable({ + columns: { + postId: column.number(), + + body: column.text(), + }, + - indexes: { + - postIdIdx: { on: 'postId' }, + - authorPostIdIdx: { on: ['author, postId'], unique: true }, + - }, + + indexes: [ + + { on: 'postId' /* 'name' is optional */ }, + + { on: ['author, postId'], unique: true }, + + ] + }) + ``` + + This example will generate indexes with the names `Comment_postId_idx` and `Comment_author_postId_idx`, respectively. You can specify a name manually by adding the `name` attribute to a given object. This name will be **global,** so ensure index names do not conflict between tables. + ## 0.9.7 ### Patch Changes diff --git a/packages/db/package.json b/packages/db/package.json index bb70df2215..b1b097ad8e 100644 --- a/packages/db/package.json +++ b/packages/db/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/db", - "version": "0.9.7", + "version": "0.9.8", "description": "", "license": "MIT", "type": "module", diff --git a/packages/integrations/vercel/CHANGELOG.md b/packages/integrations/vercel/CHANGELOG.md index 1adbfbe623..4bec34fa24 100644 --- a/packages/integrations/vercel/CHANGELOG.md +++ b/packages/integrations/vercel/CHANGELOG.md @@ -1,5 +1,23 @@ # @astrojs/vercel +## 7.5.0 + +### Minor Changes + +- [#10513](https://github.com/withastro/astro/pull/10513) [`a573cc199a00d35410197ba4117c97764a984dc0`](https://github.com/withastro/astro/commit/a573cc199a00d35410197ba4117c97764a984dc0) Thanks [@tk04](https://github.com/tk04)! - The `isr.exclude` configuration can now include routes with dynamic and spread parameters. + ```ts + export default defineConfig({ + adapter: vercel({ + isr: { + exclude: [ + "/blog/[title]" + "/api/[...slug]", + ] + } + }) + }) + ``` + ## 7.4.1 ### Patch Changes diff --git a/packages/integrations/vercel/package.json b/packages/integrations/vercel/package.json index 1407a79e96..c97852f0d3 100644 --- a/packages/integrations/vercel/package.json +++ b/packages/integrations/vercel/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/vercel", "description": "Deploy your site to Vercel", - "version": "7.4.1", + "version": "7.5.0", "type": "module", "author": "withastro", "license": "MIT",