summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Houston (Bot) <108291165+astrobot-houston@users.noreply.github.com> 2024-09-04 04:44:20 -0700
committerGravatar GitHub <noreply@github.com> 2024-09-04 12:44:20 +0100
commit70865b3cdcd3d54d41e99d634f66cfdb95be459d (patch)
treef6b7ba151ab0618b78ce0cc236fe07af55e36743
parentc3dce8363be22121a567df22df2ec566a3ebda17 (diff)
downloadastro-70865b3cdcd3d54d41e99d634f66cfdb95be459d.tar.gz
astro-70865b3cdcd3d54d41e99d634f66cfdb95be459d.tar.zst
astro-70865b3cdcd3d54d41e99d634f66cfdb95be459d.zip
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
-rw-r--r--.changeset/pre.json5
-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/container-with-vitest/package.json2
-rw-r--r--examples/framework-alpine/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/server-islands/package.json2
-rw-r--r--examples/ssr/package.json2
-rw-r--r--examples/starlog/package.json2
-rw-r--r--examples/toolbar-app/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.md128
-rw-r--r--packages/astro/package.json2
-rw-r--r--packages/astro/src/core/sync/index.ts4
-rw-r--r--packages/db/CHANGELOG.md9
-rw-r--r--packages/db/package.json2
-rw-r--r--pnpm-lock.yaml58
36 files changed, 204 insertions, 62 deletions
diff --git a/.changeset/pre.json b/.changeset/pre.json
index c0a2eafe8..e2b7c8f8e 100644
--- a/.changeset/pre.json
+++ b/.changeset/pre.json
@@ -38,17 +38,22 @@
"clean-donuts-walk",
"curvy-walls-kneel",
"eighty-boxes-applaud",
+ "empty-spoons-kiss",
"five-jars-hear",
+ "forty-spies-train",
"healthy-ads-scream",
+ "heavy-seahorses-poke",
"hungry-jokes-try",
"itchy-toys-march",
"large-zebras-sniff",
"long-months-rule",
"many-garlics-lick",
+ "mean-donkeys-switch",
"modern-bears-deny",
"moody-waves-think",
"nasty-crabs-worry",
"neat-dots-hear",
+ "old-zebras-teach",
"perfect-fans-fly",
"poor-frogs-dream",
"quick-ads-exercise",
diff --git a/examples/basics/package.json b/examples/basics/package.json
index c26b42253..98f791516 100644
--- a/examples/basics/package.json
+++ b/examples/basics/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^5.0.0-alpha.3"
+ "astro": "^5.0.0-alpha.4"
}
}
diff --git a/examples/blog/package.json b/examples/blog/package.json
index bf6285aff..617bc0a1b 100644
--- a/examples/blog/package.json
+++ b/examples/blog/package.json
@@ -14,6 +14,6 @@
"@astrojs/mdx": "^4.0.0-alpha.2",
"@astrojs/rss": "^4.0.7",
"@astrojs/sitemap": "^3.1.6",
- "astro": "^5.0.0-alpha.3"
+ "astro": "^5.0.0-alpha.4"
}
}
diff --git a/examples/component/package.json b/examples/component/package.json
index 989be6a44..d2fe05fcc 100644
--- a/examples/component/package.json
+++ b/examples/component/package.json
@@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
- "astro": "^5.0.0-alpha.3"
+ "astro": "^5.0.0-alpha.4"
},
"peerDependencies": {
"astro": "^4.0.0"
diff --git a/examples/container-with-vitest/package.json b/examples/container-with-vitest/package.json
index 236d6b2c7..f2e9903bf 100644
--- a/examples/container-with-vitest/package.json
+++ b/examples/container-with-vitest/package.json
@@ -12,7 +12,7 @@
"test": "vitest run"
},
"dependencies": {
- "astro": "^5.0.0-alpha.3",
+ "astro": "^5.0.0-alpha.4",
"@astrojs/react": "^3.6.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json
index 4aa7e7ae3..cdc31e703 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.10",
"alpinejs": "^3.14.1",
- "astro": "^5.0.0-alpha.3"
+ "astro": "^5.0.0-alpha.4"
}
}
diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json
index ce2a0e5af..b9ef823e3 100644
--- a/examples/framework-multiple/package.json
+++ b/examples/framework-multiple/package.json
@@ -18,7 +18,7 @@
"@astrojs/vue": "^5.0.0-alpha.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
- "astro": "^5.0.0-alpha.3",
+ "astro": "^5.0.0-alpha.4",
"preact": "^10.23.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json
index ef00d4305..35ec7ed36 100644
--- a/examples/framework-preact/package.json
+++ b/examples/framework-preact/package.json
@@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/preact": "^3.5.2",
"@preact/signals": "^1.3.0",
- "astro": "^5.0.0-alpha.3",
+ "astro": "^5.0.0-alpha.4",
"preact": "^10.23.2"
}
}
diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json
index 28199f6d1..4d1c9dd95 100644
--- a/examples/framework-react/package.json
+++ b/examples/framework-react/package.json
@@ -14,7 +14,7 @@
"@astrojs/react": "^3.6.2",
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
- "astro": "^5.0.0-alpha.3",
+ "astro": "^5.0.0-alpha.4",
"react": "^18.3.1",
"react-dom": "^18.3.1"
}
diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json
index e39fad0f3..76d347e1f 100644
--- a/examples/framework-solid/package.json
+++ b/examples/framework-solid/package.json
@@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/solid-js": "^4.4.1",
- "astro": "^5.0.0-alpha.3",
+ "astro": "^5.0.0-alpha.4",
"solid-js": "^1.8.22"
}
}
diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json
index eeb90ce1f..33847b3ed 100644
--- a/examples/framework-svelte/package.json
+++ b/examples/framework-svelte/package.json
@@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/svelte": "^6.0.0-alpha.0",
- "astro": "^5.0.0-alpha.3",
+ "astro": "^5.0.0-alpha.4",
"svelte": "^4.2.19"
}
}
diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json
index f50de4c13..949f9e97b 100644
--- a/examples/framework-vue/package.json
+++ b/examples/framework-vue/package.json
@@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/vue": "^5.0.0-alpha.0",
- "astro": "^5.0.0-alpha.3",
+ "astro": "^5.0.0-alpha.4",
"vue": "^3.4.38"
}
}
diff --git a/examples/hackernews/package.json b/examples/hackernews/package.json
index 2a1fee8a4..453971d8b 100644
--- a/examples/hackernews/package.json
+++ b/examples/hackernews/package.json
@@ -12,6 +12,6 @@
},
"dependencies": {
"@astrojs/node": "^9.0.0-alpha.1",
- "astro": "^5.0.0-alpha.3"
+ "astro": "^5.0.0-alpha.4"
}
}
diff --git a/examples/integration/package.json b/examples/integration/package.json
index 249565a5b..b243c7363 100644
--- a/examples/integration/package.json
+++ b/examples/integration/package.json
@@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
- "astro": "^5.0.0-alpha.3"
+ "astro": "^5.0.0-alpha.4"
},
"peerDependencies": {
"astro": "^4.0.0"
diff --git a/examples/middleware/package.json b/examples/middleware/package.json
index d32b17e9e..7c7142ef3 100644
--- a/examples/middleware/package.json
+++ b/examples/middleware/package.json
@@ -13,7 +13,7 @@
},
"dependencies": {
"@astrojs/node": "^9.0.0-alpha.1",
- "astro": "^5.0.0-alpha.3",
+ "astro": "^5.0.0-alpha.4",
"html-minifier": "^4.0.0"
},
"devDependencies": {
diff --git a/examples/minimal/package.json b/examples/minimal/package.json
index aca3644c0..206c05e71 100644
--- a/examples/minimal/package.json
+++ b/examples/minimal/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^5.0.0-alpha.3"
+ "astro": "^5.0.0-alpha.4"
}
}
diff --git a/examples/non-html-pages/package.json b/examples/non-html-pages/package.json
index d4543998c..26d119d9c 100644
--- a/examples/non-html-pages/package.json
+++ b/examples/non-html-pages/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^5.0.0-alpha.3"
+ "astro": "^5.0.0-alpha.4"
}
}
diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json
index 5c0d4bcda..637c2f4ed 100644
--- a/examples/portfolio/package.json
+++ b/examples/portfolio/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^5.0.0-alpha.3"
+ "astro": "^5.0.0-alpha.4"
}
}
diff --git a/examples/server-islands/package.json b/examples/server-islands/package.json
index 083857c03..a81582468 100644
--- a/examples/server-islands/package.json
+++ b/examples/server-islands/package.json
@@ -17,7 +17,7 @@
"@tailwindcss/forms": "^0.5.8",
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
- "astro": "^5.0.0-alpha.3",
+ "astro": "^5.0.0-alpha.4",
"postcss": "^8.4.43",
"react": "^18.3.1",
"react-dom": "^18.3.1",
diff --git a/examples/ssr/package.json b/examples/ssr/package.json
index a5a7d0183..043c65cde 100644
--- a/examples/ssr/package.json
+++ b/examples/ssr/package.json
@@ -14,7 +14,7 @@
"dependencies": {
"@astrojs/node": "^9.0.0-alpha.1",
"@astrojs/svelte": "^6.0.0-alpha.0",
- "astro": "^5.0.0-alpha.3",
+ "astro": "^5.0.0-alpha.4",
"svelte": "^4.2.19"
}
}
diff --git a/examples/starlog/package.json b/examples/starlog/package.json
index 13709e0c1..30355fe25 100644
--- a/examples/starlog/package.json
+++ b/examples/starlog/package.json
@@ -10,7 +10,7 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^5.0.0-alpha.3",
+ "astro": "^5.0.0-alpha.4",
"sass": "^1.77.8",
"sharp": "^0.33.3"
}
diff --git a/examples/toolbar-app/package.json b/examples/toolbar-app/package.json
index 1b668b6a9..abdeff5d5 100644
--- a/examples/toolbar-app/package.json
+++ b/examples/toolbar-app/package.json
@@ -15,6 +15,6 @@
"./app": "./dist/app.js"
},
"devDependencies": {
- "astro": "^5.0.0-alpha.3"
+ "astro": "^5.0.0-alpha.4"
}
}
diff --git a/examples/view-transitions/package.json b/examples/view-transitions/package.json
index 2c27b1bcf..e1f22ea17 100644
--- a/examples/view-transitions/package.json
+++ b/examples/view-transitions/package.json
@@ -12,6 +12,6 @@
"devDependencies": {
"@astrojs/tailwind": "^6.0.0-alpha.0",
"@astrojs/node": "^9.0.0-alpha.1",
- "astro": "^5.0.0-alpha.3"
+ "astro": "^5.0.0-alpha.4"
}
}
diff --git a/examples/with-markdoc/package.json b/examples/with-markdoc/package.json
index 5aa78b82a..4632e24b6 100644
--- a/examples/with-markdoc/package.json
+++ b/examples/with-markdoc/package.json
@@ -12,6 +12,6 @@
},
"dependencies": {
"@astrojs/markdoc": "^1.0.0-alpha.1",
- "astro": "^5.0.0-alpha.3"
+ "astro": "^5.0.0-alpha.4"
}
}
diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json
index 3a2f317ee..5deb9d475 100644
--- a/examples/with-markdown-plugins/package.json
+++ b/examples/with-markdown-plugins/package.json
@@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/markdown-remark": "^6.0.0-alpha.1",
- "astro": "^5.0.0-alpha.3",
+ "astro": "^5.0.0-alpha.4",
"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 12cb403a6..5d08bb936 100644
--- a/examples/with-markdown-shiki/package.json
+++ b/examples/with-markdown-shiki/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^5.0.0-alpha.3"
+ "astro": "^5.0.0-alpha.4"
}
}
diff --git a/examples/with-mdx/package.json b/examples/with-mdx/package.json
index f93654173..b2cf0bce4 100644
--- a/examples/with-mdx/package.json
+++ b/examples/with-mdx/package.json
@@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/mdx": "^4.0.0-alpha.2",
"@astrojs/preact": "^3.5.2",
- "astro": "^5.0.0-alpha.3",
+ "astro": "^5.0.0-alpha.4",
"preact": "^10.23.2"
}
}
diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json
index 7c7843aad..ce5786d90 100644
--- a/examples/with-nanostores/package.json
+++ b/examples/with-nanostores/package.json
@@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/preact": "^3.5.2",
"@nanostores/preact": "^0.5.2",
- "astro": "^5.0.0-alpha.3",
+ "astro": "^5.0.0-alpha.4",
"nanostores": "^0.11.3",
"preact": "^10.23.2"
}
diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json
index 8289bf9d6..e03f36106 100644
--- a/examples/with-tailwindcss/package.json
+++ b/examples/with-tailwindcss/package.json
@@ -14,7 +14,7 @@
"@astrojs/mdx": "^4.0.0-alpha.2",
"@astrojs/tailwind": "^6.0.0-alpha.0",
"@types/canvas-confetti": "^1.6.4",
- "astro": "^5.0.0-alpha.3",
+ "astro": "^5.0.0-alpha.4",
"autoprefixer": "^10.4.20",
"canvas-confetti": "^1.9.3",
"postcss": "^8.4.43",
diff --git a/examples/with-vitest/package.json b/examples/with-vitest/package.json
index b0d1c32b9..a8d9fc350 100644
--- a/examples/with-vitest/package.json
+++ b/examples/with-vitest/package.json
@@ -12,7 +12,7 @@
"test": "vitest"
},
"dependencies": {
- "astro": "^5.0.0-alpha.3",
+ "astro": "^5.0.0-alpha.4",
"vitest": "^2.0.5"
}
}
diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md
index db2e6eaa9..77cc66503 100644
--- a/packages/astro/CHANGELOG.md
+++ b/packages/astro/CHANGELOG.md
@@ -1,5 +1,133 @@
# astro
+## 5.0.0-alpha.4
+
+### Major Changes
+
+- [#11859](https://github.com/withastro/astro/pull/11859) [`3804711`](https://github.com/withastro/astro/commit/38047119ff454e80cddd115bff53e33b32cd9930) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - Changes the default `tsconfig.json` with better defaults, and makes `src/env.d.ts` optional
+
+ Astro's default `tsconfig.json` in starter examples has been updated to include generated types and exclude your build output. This means that `src/env.d.ts` is only necessary if you have added custom type declarations or if you're not using a `tsconfig.json` file.
+
+ Additionally, running `astro sync` no longer creates, nor updates, `src/env.d.ts` as it is not required for type-checking standard Astro projects.
+
+ To update your project to Astro's recommended TypeScript settings, please add the following `include` and `exclude` properties to `tsconfig.json`:
+
+ ```diff
+ {
+ "extends": "astro/tsconfigs/base",
+ + "include": ["**/*", ".astro/types.d.ts"],
+ + "exclude": ["dist"]
+ }
+ ```
+
+### Minor Changes
+
+- [#11911](https://github.com/withastro/astro/pull/11911) [`c3dce83`](https://github.com/withastro/astro/commit/c3dce8363be22121a567df22df2ec566a3ebda17) Thanks [@ascorbic](https://github.com/ascorbic)! - The Content Layer API introduced behind a flag in [4.14.0](https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md#4140) is now stable and ready for use in Astro v5.0.
+
+ The new Content Layer API builds upon content collections, taking them beyond local files in `src/content/` and allowing you to fetch content from anywhere, including remote APIs. These new collections work alongside your existing content collections, and you can migrate them to the new API at your own pace. There are significant improvements to performance with large collections of local files. For more details, see [the Content Layer RFC](https://github.com/withastro/roadmap/blob/content-layer/proposals/0050-content-layer.md).
+
+ If you previously used this feature, you can now remove the `experimental.contentLayer` flag from your Astro config:
+
+ ```diff
+ // astro.config.mjs
+ import { defineConfig } from 'astro'
+
+ export default defineConfig({
+ - experimental: {
+ - contentLayer: true
+ - }
+ })
+ ```
+
+ ### Loading your content
+
+ The core of the new Content Layer API is the loader, a function that fetches content from a source and caches it in a local data store. Astro 4.14 ships with built-in `glob()` and `file()` loaders to handle your local Markdown, MDX, Markdoc, and JSON files:
+
+ ```ts {3,7}
+ // src/content/config.ts
+ import { defineCollection, z } from 'astro:content';
+ import { glob } from 'astro/loaders';
+
+ const blog = defineCollection({
+ // The ID is a slug generated from the path of the file relative to `base`
+ loader: glob({ pattern: '**/*.md', base: './src/data/blog' }),
+ schema: z.object({
+ title: z.string(),
+ description: z.string(),
+ publishDate: z.coerce.date(),
+ }),
+ });
+
+ export const collections = { blog };
+ ```
+
+ You can then query using the existing content collections functions, and use a simplified `render()` function to display your content:
+
+ ```astro
+ ---
+ import { getEntry, render } from 'astro:content';
+
+ const post = await getEntry('blog', Astro.params.slug);
+
+ const { Content } = await render(entry);
+ ---
+
+ <Content />
+ ```
+
+ ### Creating a loader
+
+ You're not restricted to the built-in loaders – we hope you'll try building your own. You can fetch content from anywhere and return an array of entries:
+
+ ```ts
+ // src/content/config.ts
+ const countries = defineCollection({
+ loader: async () => {
+ const response = await fetch('https://restcountries.com/v3.1/all');
+ const data = await response.json();
+ // Must return an array of entries with an id property,
+ // or an object with IDs as keys and entries as values
+ return data.map((country) => ({
+ id: country.cca3,
+ ...country,
+ }));
+ },
+ // optionally add a schema to validate the data and make it type-safe for users
+ // schema: z.object...
+ });
+
+ export const collections = { countries };
+ ```
+
+ For more advanced loading logic, you can define an object loader. This allows incremental updates and conditional loading, and gives full access to the data store. It also allows a loader to define its own schema, including generating it dynamically based on the source API. See the [the Content Layer API RFC](https://github.com/withastro/roadmap/blob/content-layer/proposals/0050-content-layer.md#loaders) for more details.
+
+ ### Sharing your loaders
+
+ Loaders are better when they're shared. You can create a package that exports a loader and publish it to npm, and then anyone can use it on their site. We're excited to see what the community comes up with! To get started, [take a look at some examples](https://github.com/ascorbic/astro-loaders/). Here's how to load content using an RSS/Atom feed loader:
+
+ ```ts
+ // src/content/config.ts
+ import { defineCollection } from 'astro:content';
+ import { feedLoader } from '@ascorbic/feed-loader';
+
+ const podcasts = defineCollection({
+ loader: feedLoader({
+ url: 'https://feeds.99percentinvisible.org/99percentinvisible',
+ }),
+ });
+
+ export const collections = { podcasts };
+ ```
+
+ To learn more, see [the Content Layer RFC](https://github.com/withastro/roadmap/blob/content-layer/proposals/0050-content-layer.md).
+
+### Patch Changes
+
+- [#11902](https://github.com/withastro/astro/pull/11902) [`d63bc50`](https://github.com/withastro/astro/commit/d63bc50d9940c1107e0fee7687e5c332549a0eff) Thanks [@ascorbic](https://github.com/ascorbic)! - Fixes case where content layer did not update during clean dev builds on Linux and Windows
+
+- [#11914](https://github.com/withastro/astro/pull/11914) [`b5d827b`](https://github.com/withastro/astro/commit/b5d827ba6852d046c33643f795e1542bc2818b2c) Thanks [@ascorbic](https://github.com/ascorbic)! - Exports types for all `LoaderContext` properties from `astro/loaders` to make it easier to use them in custom loaders.
+ The `ScopedDataStore` interface (which was previously internal) is renamed to `DataStore`, to reflect the fact that it's the only public API for the data store.
+
## 5.0.0-alpha.3
### Major Changes
diff --git a/packages/astro/package.json b/packages/astro/package.json
index fe53d41a5..5ffba7fc6 100644
--- a/packages/astro/package.json
+++ b/packages/astro/package.json
@@ -1,6 +1,6 @@
{
"name": "astro",
- "version": "5.0.0-alpha.3",
+ "version": "5.0.0-alpha.4",
"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/astro/src/core/sync/index.ts b/packages/astro/src/core/sync/index.ts
index 236ab63a0..08701b67e 100644
--- a/packages/astro/src/core/sync/index.ts
+++ b/packages/astro/src/core/sync/index.ts
@@ -1,8 +1,10 @@
import fsMod, { existsSync } from 'node:fs';
+import { dirname, relative } from 'node:path';
import { performance } from 'node:perf_hooks';
import { fileURLToPath } from 'node:url';
import { dim } from 'kleur/colors';
import { type HMRPayload, createServer } from 'vite';
+import { normalizePath } from 'vite';
import { CONTENT_TYPES_FILE } from '../../content/consts.js';
import { getDataStoreFile, globalContentLayer } from '../../content/content-layer.js';
import { createContentTypesGenerator } from '../../content/index.js';
@@ -30,8 +32,6 @@ import {
import type { Logger } from '../logger/core.js';
import { formatErrorMessage } from '../messages.js';
import { ensureProcessNodeEnv } from '../util.js';
-import { dirname, relative } from 'node:path';
-import { normalizePath } from 'vite';
export type SyncOptions = {
/**
diff --git a/packages/db/CHANGELOG.md b/packages/db/CHANGELOG.md
index 734768c05..3130e104d 100644
--- a/packages/db/CHANGELOG.md
+++ b/packages/db/CHANGELOG.md
@@ -1,5 +1,14 @@
# @astrojs/db
+## 0.13.2-alpha.1
+
+### Patch Changes
+
+- [#11894](https://github.com/withastro/astro/pull/11894) [`cc820c5`](https://github.com/withastro/astro/commit/cc820c5d5e176a8d71594d612af75e1c94b9bf02) Thanks [@Fryuni](https://github.com/Fryuni)! - Fixes mixed environment variable for app token when using DB commands with libSQL remote.
+
+- Updated dependencies []:
+ - @astrojs/studio@0.1.1
+
## 0.14.0
### Minor Changes
diff --git a/packages/db/package.json b/packages/db/package.json
index 9751d18f5..335ae3090 100644
--- a/packages/db/package.json
+++ b/packages/db/package.json
@@ -1,6 +1,6 @@
{
"name": "@astrojs/db",
- "version": "0.13.2-alpha.0",
+ "version": "0.13.2-alpha.1",
"description": "Add libSQL and Astro Studio support to your Astro site",
"license": "MIT",
"repository": {
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 7872177ee..dc6a79046 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -116,7 +116,7 @@ importers:
examples/basics:
dependencies:
astro:
- specifier: ^5.0.0-alpha.3
+ specifier: ^5.0.0-alpha.4
version: link:../../packages/astro
examples/blog:
@@ -131,13 +131,13 @@ importers:
specifier: ^3.1.6
version: link:../../packages/integrations/sitemap
astro:
- specifier: ^5.0.0-alpha.3
+ specifier: ^5.0.0-alpha.4
version: link:../../packages/astro
examples/component:
devDependencies:
astro:
- specifier: ^5.0.0-alpha.3
+ specifier: ^5.0.0-alpha.4
version: link:../../packages/astro
examples/container-with-vitest:
@@ -146,7 +146,7 @@ importers:
specifier: ^3.6.2
version: link:../../packages/integrations/react
astro:
- specifier: ^5.0.0-alpha.3
+ specifier: ^5.0.0-alpha.4
version: link:../../packages/astro
react:
specifier: ^18.3.1
@@ -177,7 +177,7 @@ importers:
specifier: ^3.14.1
version: 3.14.1
astro:
- specifier: ^5.0.0-alpha.3
+ specifier: ^5.0.0-alpha.4
version: link:../../packages/astro
examples/framework-multiple:
@@ -204,7 +204,7 @@ importers:
specifier: ^18.3.0
version: 18.3.0
astro:
- specifier: ^5.0.0-alpha.3
+ specifier: ^5.0.0-alpha.4
version: link:../../packages/astro
preact:
specifier: ^10.23.2
@@ -234,7 +234,7 @@ importers:
specifier: ^1.3.0
version: 1.3.0(preact@10.23.2)
astro:
- specifier: ^5.0.0-alpha.3
+ specifier: ^5.0.0-alpha.4
version: link:../../packages/astro
preact:
specifier: ^10.23.2
@@ -252,7 +252,7 @@ importers:
specifier: ^18.3.0
version: 18.3.0
astro:
- specifier: ^5.0.0-alpha.3
+ specifier: ^5.0.0-alpha.4
version: link:../../packages/astro
react:
specifier: ^18.3.1
@@ -267,7 +267,7 @@ importers:
specifier: ^4.4.1
version: link:../../packages/integrations/solid
astro:
- specifier: ^5.0.0-alpha.3
+ specifier: ^5.0.0-alpha.4
version: link:../../packages/astro
solid-js:
specifier: ^1.8.22
@@ -279,7 +279,7 @@ importers:
specifier: ^6.0.0-alpha.0
version: link:../../packages/integrations/svelte
astro:
- specifier: ^5.0.0-alpha.3
+ specifier: ^5.0.0-alpha.4
version: link:../../packages/astro
svelte:
specifier: ^4.2.19
@@ -291,7 +291,7 @@ importers:
specifier: ^5.0.0-alpha.0
version: link:../../packages/integrations/vue
astro:
- specifier: ^5.0.0-alpha.3
+ specifier: ^5.0.0-alpha.4
version: link:../../packages/astro
vue:
specifier: ^3.4.38
@@ -303,13 +303,13 @@ importers:
specifier: ^9.0.0-alpha.1
version: 9.0.0-alpha.1(astro@packages+astro)
astro:
- specifier: ^5.0.0-alpha.3
+ specifier: ^5.0.0-alpha.4
version: link:../../packages/astro
examples/integration:
devDependencies:
astro:
- specifier: ^5.0.0-alpha.3
+ specifier: ^5.0.0-alpha.4
version: link:../../packages/astro
examples/middleware:
@@ -318,7 +318,7 @@ importers:
specifier: ^9.0.0-alpha.1
version: 9.0.0-alpha.1(astro@packages+astro)
astro:
- specifier: ^5.0.0-alpha.3
+ specifier: ^5.0.0-alpha.4
version: link:../../packages/astro
html-minifier:
specifier: ^4.0.0
@@ -331,19 +331,19 @@ importers:
examples/minimal:
dependencies:
astro:
- specifier: ^5.0.0-alpha.3
+ specifier: ^5.0.0-alpha.4
version: link:../../packages/astro
examples/non-html-pages:
dependencies:
astro:
- specifier: ^5.0.0-alpha.3
+ specifier: ^5.0.0-alpha.4
version: link:../../packages/astro
examples/portfolio:
dependencies:
astro:
- specifier: ^5.0.0-alpha.3
+ specifier: ^5.0.0-alpha.4
version: link:../../packages/astro
examples/server-islands:
@@ -370,7 +370,7 @@ importers:
specifier: ^18.3.0
version: 18.3.0
astro:
- specifier: ^5.0.0-alpha.3
+ specifier: ^5.0.0-alpha.4
version: link:../../packages/astro
postcss:
specifier: ^8.4.43
@@ -394,7 +394,7 @@ importers:
specifier: ^6.0.0-alpha.0
version: link:../../packages/integrations/svelte
astro:
- specifier: ^5.0.0-alpha.3
+ specifier: ^5.0.0-alpha.4
version: link:../../packages/astro
svelte:
specifier: ^4.2.19
@@ -403,7 +403,7 @@ importers:
examples/starlog:
dependencies:
astro:
- specifier: ^5.0.0-alpha.3
+ specifier: ^5.0.0-alpha.4
version: link:../../packages/astro
sass:
specifier: ^1.77.8
@@ -415,7 +415,7 @@ importers:
examples/toolbar-app:
devDependencies:
astro:
- specifier: ^5.0.0-alpha.3
+ specifier: ^5.0.0-alpha.4
version: link:../../packages/astro
examples/view-transitions:
@@ -427,7 +427,7 @@ importers:
specifier: ^6.0.0-alpha.0
version: link:../../packages/integrations/tailwind
astro:
- specifier: ^5.0.0-alpha.3
+ specifier: ^5.0.0-alpha.4
version: link:../../packages/astro
examples/with-markdoc:
@@ -436,7 +436,7 @@ importers:
specifier: ^1.0.0-alpha.1
version: link:../../packages/integrations/markdoc
astro:
- specifier: ^5.0.0-alpha.3
+ specifier: ^5.0.0-alpha.4
version: link:../../packages/astro
examples/with-markdown-plugins:
@@ -445,7 +445,7 @@ importers:
specifier: ^6.0.0-alpha.1
version: link:../../packages/markdown/remark
astro:
- specifier: ^5.0.0-alpha.3
+ specifier: ^5.0.0-alpha.4
version: link:../../packages/astro
hast-util-select:
specifier: ^6.0.2
@@ -466,7 +466,7 @@ importers:
examples/with-markdown-shiki:
dependencies:
astro:
- specifier: ^5.0.0-alpha.3
+ specifier: ^5.0.0-alpha.4
version: link:../../packages/astro
examples/with-mdx:
@@ -478,7 +478,7 @@ importers:
specifier: ^3.5.2
version: link:../../packages/integrations/preact
astro:
- specifier: ^5.0.0-alpha.3
+ specifier: ^5.0.0-alpha.4
version: link:../../packages/astro
preact:
specifier: ^10.23.2
@@ -493,7 +493,7 @@ importers:
specifier: ^0.5.2
version: 0.5.2(nanostores@0.11.3)(preact@10.23.2)
astro:
- specifier: ^5.0.0-alpha.3
+ specifier: ^5.0.0-alpha.4
version: link:../../packages/astro
nanostores:
specifier: ^0.11.3
@@ -514,7 +514,7 @@ importers:
specifier: ^1.6.4
version: 1.6.4
astro:
- specifier: ^5.0.0-alpha.3
+ specifier: ^5.0.0-alpha.4
version: link:../../packages/astro
autoprefixer:
specifier: ^10.4.20
@@ -532,7 +532,7 @@ importers:
examples/with-vitest:
dependencies:
astro:
- specifier: ^5.0.0-alpha.3
+ specifier: ^5.0.0-alpha.4
version: link:../../packages/astro
vitest:
specifier: ^2.0.5