summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorGravatar Houston (Bot) <108291165+astrobot-houston@users.noreply.github.com> 2024-03-28 11:20:53 -0700
committerGravatar GitHub <noreply@github.com> 2024-03-28 14:20:53 -0400
commit0ff5d72c7841e10065d37b43322358f4a48b7e95 (patch)
tree5a0589f8f7612bb3ae98a31d3fed9482ee4866ba /packages
parent5d7449bd73b5730faf808e8c9911ca1d97547b3c (diff)
downloadastro-dd35ca3c2d8ca57b85aca65beeb3b3b8e39d8115.tar.gz
astro-dd35ca3c2d8ca57b85aca65beeb3b3b8e39d8115.tar.zst
astro-dd35ca3c2d8ca57b85aca65beeb3b3b8e39d8115.zip
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'packages')
-rw-r--r--packages/db/CHANGELOG.md32
-rw-r--r--packages/db/package.json2
-rw-r--r--packages/integrations/vercel/CHANGELOG.md18
-rw-r--r--packages/integrations/vercel/package.json2
4 files changed, 52 insertions, 2 deletions
diff --git a/packages/db/CHANGELOG.md b/packages/db/CHANGELOG.md
index 4b7bd72cc..e78c531be 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(),](<https://github.com/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 bb70df221..b1b097ad8 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 1adbfbe62..4bec34fa2 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 1407a79e9..c97852f0d 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",