diff options
Diffstat (limited to '.changeset')
-rw-r--r-- | .changeset/cyan-paws-fry.md | 38 | ||||
-rw-r--r-- | .changeset/early-pillows-deliver.md | 5 | ||||
-rw-r--r-- | .changeset/fifty-ads-march.md | 19 | ||||
-rw-r--r-- | .changeset/giant-news-speak.md | 18 | ||||
-rw-r--r-- | .changeset/happy-mayflies-sort.md | 5 | ||||
-rw-r--r-- | .changeset/metal-pumas-walk.md | 43 | ||||
-rw-r--r-- | .changeset/new-hotels-unite.md | 6 | ||||
-rw-r--r-- | .changeset/selfish-foxes-bake.md | 14 | ||||
-rw-r--r-- | .changeset/serious-icons-dream.md | 5 | ||||
-rw-r--r-- | .changeset/sixty-ladybugs-return.md | 5 | ||||
-rw-r--r-- | .changeset/stupid-points-refuse.md | 49 | ||||
-rw-r--r-- | .changeset/ten-candles-relate.md | 7 | ||||
-rw-r--r-- | .changeset/ten-phones-drop.md | 5 | ||||
-rw-r--r-- | .changeset/thin-parents-breathe.md | 5 | ||||
-rw-r--r-- | .changeset/warm-mangos-dance.md | 5 | ||||
-rw-r--r-- | .changeset/witty-sheep-wave.md | 7 |
16 files changed, 0 insertions, 236 deletions
diff --git a/.changeset/cyan-paws-fry.md b/.changeset/cyan-paws-fry.md deleted file mode 100644 index df2585ecb..000000000 --- a/.changeset/cyan-paws-fry.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -'astro': minor -'@astrojs/node': minor ---- - -# Adapter support for `astro preview` - -Adapters are now about to support the `astro preview` command via a new integration option. The Node.js adapter `@astrojs/node` is the first of the built-in adapters to gain support for this. What this means is that if you are using `@astrojs/node` you can new preview your SSR app by running: - -```shell -npm run preview -``` - -## Adapter API - -We will be updating the other first party Astro adapters to support preview over time. Adapters can opt-in to this feature by providing the `previewEntrypoint` via the `setAdapter` function in `astro:config:done` hook. The Node.js adapter's code looks like this: - -```diff -export default function() { - return { - name: '@astrojs/node', - hooks: { - 'astro:config:done': ({ setAdapter, config }) => { - setAdapter({ - name: '@astrojs/node', - serverEntrypoint: '@astrojs/node/server.js', -+ previewEntrypoint: '@astrojs/node/preview.js', - exports: ['handler'], - }); - - // more here - } - } - }; -} -``` - -The `previewEntrypoint` is a module in the adapter's package that is a Node.js script. This script is run when `astro preview` is run and is charged with starting up the built server. See the Node.js implementation in `@astrojs/node` to see how that is implemented. diff --git a/.changeset/early-pillows-deliver.md b/.changeset/early-pillows-deliver.md deleted file mode 100644 index 745ff35f0..000000000 --- a/.changeset/early-pillows-deliver.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/svelte': patch ---- - -Allow class to be passed into Svelte islands diff --git a/.changeset/fifty-ads-march.md b/.changeset/fifty-ads-march.md deleted file mode 100644 index d06e8fc36..000000000 --- a/.changeset/fifty-ads-march.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'astro': minor ---- - -## New properties for API routes - -In API routes, you can now get the `site`, `generator`, `url`, `clientAddress`, `props`, and `redirect` fields on the APIContext, which is the first parameter passed to an API route. This was done to make the APIContext more closely align with the `Astro` global in .astro pages. - -For example, here's how you might use the `clientAddress`, which is the user's IP address, to selectively allow users. - -```js -export function post({ clientAddress, request, redirect }) { - if(!allowList.has(clientAddress)) { - return redirect('/not-allowed'); - } -} -``` - -Check out the docs for more information on the newly available fields: https://docs.astro.build/en/core-concepts/endpoints/#server-endpoints-api-routes diff --git a/.changeset/giant-news-speak.md b/.changeset/giant-news-speak.md deleted file mode 100644 index f0fb38d64..000000000 --- a/.changeset/giant-news-speak.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'astro': minor ---- - -Added support for updating TypeScript settings automatically when using `astro add` - -The `astro add` command will now automatically update your `tsconfig.json` with the proper TypeScript settings needed for the chosen frameworks. - -For instance, typing `astro add solid` will update your `tsconfig.json` with the following settings, per [Solid's TypeScript guide](https://www.solidjs.com/guides/typescript): - -```json -{ - "compilerOptions": { - "jsx": "preserve", - "jsxImportSource": "solid-js" - } -} -``` diff --git a/.changeset/happy-mayflies-sort.md b/.changeset/happy-mayflies-sort.md deleted file mode 100644 index 2038ea1b3..000000000 --- a/.changeset/happy-mayflies-sort.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/image': patch ---- - -Fix image external config in build diff --git a/.changeset/metal-pumas-walk.md b/.changeset/metal-pumas-walk.md deleted file mode 100644 index a6b15a07f..000000000 --- a/.changeset/metal-pumas-walk.md +++ /dev/null @@ -1,43 +0,0 @@ ---- -'@astrojs/node': major ---- - -# Standalone mode for the Node.js adapter - -New in `@astrojs/node` is support for __standalone mode__. With standalone mode you can start your production server without needing to write any server JavaScript yourself. The server starts simply by running the script like so: - -```shell -node ./dist/server/entry.mjs -``` - -To enable standalone mode, set the new `mode` to `'standalone'` option in your Astro config: - -```js -import { defineConfig } from 'astro/config'; -import nodejs from '@astrojs/node'; - -export default defineConfig({ - output: 'server', - adapter: nodejs({ - mode: 'standalone' - }) -}); -``` - -See the @astrojs/node documentation to learn all of the options available in standalone mode. - -## Breaking change - -This is a semver major change because the new `mode` option is required. Existing @astrojs/node users who are using their own HTTP server framework such as Express can upgrade by setting the `mode` option to `'middleware'` in order to build to a middleware mode, which is the same behavior and API as before. - -```js -import { defineConfig } from 'astro/config'; -import nodejs from '@astrojs/node'; - -export default defineConfig({ - output: 'server', - adapter: nodejs({ - mode: 'middleware' - }) -}); -``` diff --git a/.changeset/new-hotels-unite.md b/.changeset/new-hotels-unite.md deleted file mode 100644 index 8febc2d47..000000000 --- a/.changeset/new-hotels-unite.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'astro': minor ---- - -- Added `isRestart` and `addWatchFile` to integration step `isRestart`. -- Restart dev server automatically when tsconfig changes. diff --git a/.changeset/selfish-foxes-bake.md b/.changeset/selfish-foxes-bake.md deleted file mode 100644 index 9e253388a..000000000 --- a/.changeset/selfish-foxes-bake.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'astro': minor ---- - -## Support passing a custom status code for Astro.redirect - -New in this minor is the ability to pass a status code to `Astro.redirect`. By default it uses `302` but now you can pass another code as the second argument: - -```astro ---- -// This page was moved -return Astro.redirect('/posts/new-post-name', 301); ---- -``` diff --git a/.changeset/serious-icons-dream.md b/.changeset/serious-icons-dream.md deleted file mode 100644 index 968f8a4b4..000000000 --- a/.changeset/serious-icons-dream.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Skip JSX tagging for export statements with source diff --git a/.changeset/sixty-ladybugs-return.md b/.changeset/sixty-ladybugs-return.md deleted file mode 100644 index 0f8282dc5..000000000 --- a/.changeset/sixty-ladybugs-return.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Upgrade Astro compiler to 0.27.1 diff --git a/.changeset/stupid-points-refuse.md b/.changeset/stupid-points-refuse.md deleted file mode 100644 index e79106541..000000000 --- a/.changeset/stupid-points-refuse.md +++ /dev/null @@ -1,49 +0,0 @@ ---- -'astro': minor -'@astrojs/cloudflare': minor -'@astrojs/deno': minor -'@astrojs/image': minor -'@astrojs/netlify': minor -'@astrojs/node': minor -'@astrojs/vercel': minor ---- - -# New build configuration - -The ability to customize SSR build configuration more granularly is now available in Astro. You can now customize the output folder for `server` (the server code for SSR), `client` (your client-side JavaScript and assets), and `serverEntry` (the name of the entrypoint server module). Here are the defaults: - -```js -import { defineConfig } from 'astro/config'; - -export default defineConfig({ - output: 'server', - build: { - server: './dist/server/', - client: './dist/client/', - serverEntry: 'entry.mjs', - } -}); -``` - -These new configuration options are only supported in SSR mode and are ignored when building to SSG (a static site). - -## Integration hook change - -The integration hook `astro:build:start` includes a param `buildConfig` which includes all of these same options. You can continue to use this param in Astro 1.x, but it is deprecated in favor of the new `build.config` options. All of the built-in adapters have been updated to the new format. If you have an integration that depends on this param we suggest upgrading to do this instead: - -```js -export default function myIntegration() { - return { - name: 'my-integration', - hooks: { - 'astro:config:setup': ({ updateConfig }) => { - updateConfig({ - build: { - server: '...' - } - }); - } - } - } -} -``` diff --git a/.changeset/ten-candles-relate.md b/.changeset/ten-candles-relate.md deleted file mode 100644 index 402e46a1c..000000000 --- a/.changeset/ten-candles-relate.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@astrojs/tailwind': minor ---- - -## HMR on config file changes - -New in this release is the ability for config changes to automatically reflect via HMR. Now when you edit your `tsconfig.json` or `tailwind.config.js` configs, the changes will reload automatically without the need to restart your dev server. diff --git a/.changeset/ten-phones-drop.md b/.changeset/ten-phones-drop.md deleted file mode 100644 index 4233ec433..000000000 --- a/.changeset/ten-phones-drop.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/solid-js': minor ---- - -Auto ssr.noExternal solidjs dependencies diff --git a/.changeset/thin-parents-breathe.md b/.changeset/thin-parents-breathe.md deleted file mode 100644 index 2867ab3b6..000000000 --- a/.changeset/thin-parents-breathe.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Support strict dependency install for libraries with JSX diff --git a/.changeset/warm-mangos-dance.md b/.changeset/warm-mangos-dance.md deleted file mode 100644 index f73664e69..000000000 --- a/.changeset/warm-mangos-dance.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/image': patch ---- - -Support relative protocol image URL diff --git a/.changeset/witty-sheep-wave.md b/.changeset/witty-sheep-wave.md deleted file mode 100644 index cac7841e4..000000000 --- a/.changeset/witty-sheep-wave.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'astro': patch ---- - -Update Astro.cookies.set types to allow booleans and numbers - -Note that booleans and numbers were already allowed, they just were not allowed by the type definitions. |