Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re authored Jun 6, 2023
2 parents 6cdba3c + d72cfa7 commit b8f9026
Show file tree
Hide file tree
Showing 249 changed files with 4,003 additions and 1,550 deletions.
33 changes: 33 additions & 0 deletions .changeset/chatty-actors-stare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
'astro': minor
---

Experimental redirects support

This change adds support for the redirects RFC, currently in stage 3: https://github.com/withastro/roadmap/pull/587

Now you can specify redirects in your Astro config:

```js
import { defineConfig } from 'astro/config';

export defineConfig({
redirects: {
'/blog/old-post': '/blog/new-post'
}
});
```

You can also specify spread routes using the same syntax as in file-based routing:

```js
import { defineConfig } from 'astro/config';

export defineConfig({
redirects: {
'/blog/[...slug]': '/articles/[...slug]'
}
});
```

By default Astro will build HTML files that contain the `<meta http-equiv="refresh">` tag. Adapters can also support redirect routes and create configuration for real HTTP-level redirects in production.
5 changes: 0 additions & 5 deletions .changeset/clever-garlics-doubt.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/curvy-hotels-study.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/dirty-singers-enjoy.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/dry-taxis-suffer.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/eighty-gifts-cheer.md

This file was deleted.

19 changes: 0 additions & 19 deletions .changeset/eleven-tables-speak.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/eleven-walls-explain.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fifty-months-mix.md

This file was deleted.

7 changes: 7 additions & 0 deletions .changeset/fuzzy-ladybugs-jump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@astrojs/cloudflare': minor
---

Support for experimental redirects

This adds support for the redirects RFC in the Cloudflare adapter. No changes are necessary, simply use configured redirects and the adapter will update your `_redirects` file.
5 changes: 5 additions & 0 deletions .changeset/fuzzy-tables-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': minor
---

Remove experimental flag for custom client directives
7 changes: 7 additions & 0 deletions .changeset/hip-news-clean.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@astrojs/vercel': minor
---

Support for experimental redirects

This adds support for the redirects RFC in the Vercel adapter. No changes are necessary, simply use configured redirects and the adapter will output the vercel.json file with the configuration values.
5 changes: 5 additions & 0 deletions .changeset/khaki-onions-relax.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Fix HTML component type causing an error when imported in the editor
5 changes: 5 additions & 0 deletions .changeset/lazy-falcons-divide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Fix cookies not being set by middleware
6 changes: 0 additions & 6 deletions .changeset/lazy-zebras-invent.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/light-sheep-hunt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Fix nested astro-island hydration race condition
5 changes: 0 additions & 5 deletions .changeset/moody-coats-develop.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/plenty-geese-fold.md

This file was deleted.

17 changes: 0 additions & 17 deletions .changeset/popular-berries-travel.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/slimy-hotels-agree.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': minor
---

Update base `tsconfig.json` template with `allowJs: true` to provide a better relaxed experience for users unfamilliar with TypeScript. `allowJs` is still set to `false` (its default value) when using the `strictest` preset.
5 changes: 0 additions & 5 deletions .changeset/small-wombats-know.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/spotty-glasses-return.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/static-slot-css.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/strange-socks-give.md

This file was deleted.

24 changes: 24 additions & 0 deletions .changeset/stupid-pumpkins-perform.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
'astro': minor
---

The Inline Stylesheets RFC is now stable!

You can now control how Astro bundles your css with a configuration change:

```ts
export default defineConfig({
...
build: {
inlineStylesheets: "auto"
}
...
})
```

The options:
- `inlineStylesheets: "never"`: This is the behavior you are familiar with. Every stylesheet is external, and added to the page via a `<link>` tag. Default.
- `inlineStylesheets: "auto"`: Small stylesheets are inlined into `<style>` tags and inserted into `<head>`, while larger ones remain external.
- `inlineStylesheets: "always"`: Every style required by the page is inlined.

As always, css files in the `public` folder are not affected.
5 changes: 5 additions & 0 deletions .changeset/tasty-stingrays-smile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

remove the white space after the doctype according to the property compressHTML
9 changes: 9 additions & 0 deletions .changeset/twenty-suns-vanish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'@astrojs/netlify': minor
---

Support for experimental redirects

This adds support for the redirects RFC in the Netlify adapter, including a new `@astrojs/netlify/static` adapter for static sites.

No changes are necessary when using SSR. Simply use configured redirects and the adapter will update your `_redirects` file.
10 changes: 10 additions & 0 deletions .changeset/weak-wombats-swim.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
'astro': minor
'@astrojs/image': minor
'@astrojs/cloudflare': patch
'@astrojs/netlify': patch
'@astrojs/node': patch
'@astrojs/vercel': patch
---

Unflags support for `output: 'hybrid'` mode, which enables pre-rendering by default. The additional `experimental.hybridOutput` flag can be safely removed from your configuration.
5 changes: 0 additions & 5 deletions .changeset/wise-cars-hear.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/young-flies-allow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': minor
---

Remove experimental flag for the middleware
Loading

0 comments on commit b8f9026

Please sign in to comment.