-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [ci] release (next) * chore: update changeset Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Nate Moore <[email protected]>
- Loading branch information
1 parent
5f1ea8a
commit 36a5100
Showing
32 changed files
with
95 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'astro': minor | ||
--- | ||
|
||
## Updated `<head>` and `<body>` behavior | ||
|
||
Since `[email protected]`, Astro placed certain restrictions on what files could use `<head>` or `<body>` tags. In `[email protected]`, the restrictions have been lifted. Astro will be able to correctly handle `<head>` and `<body>` tags in _any_ component, not just those in `src/pages/` or `src/layouts/`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,6 @@ | |
"preview": "astro preview" | ||
}, | ||
"devDependencies": { | ||
"astro": "^0.23.7" | ||
"astro": "^0.24.0-next.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,6 @@ | |
"preview": "astro preview" | ||
}, | ||
"devDependencies": { | ||
"astro": "^0.23.7" | ||
"astro": "^0.24.0-next.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ | |
}, | ||
"devDependencies": { | ||
"@astrojs/renderer-lit": "^0.4.0", | ||
"astro": "^0.23.7" | ||
"astro": "^0.24.0-next.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ | |
}, | ||
"devDependencies": { | ||
"@astrojs/renderer-preact": "^0.5.0", | ||
"astro": "^0.23.7" | ||
"astro": "^0.24.0-next.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ | |
}, | ||
"devDependencies": { | ||
"@astrojs/renderer-react": "^0.5.0", | ||
"astro": "^0.23.7" | ||
"astro": "^0.24.0-next.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ | |
}, | ||
"devDependencies": { | ||
"@astrojs/renderer-solid": "^0.4.0", | ||
"astro": "^0.23.7" | ||
"astro": "^0.24.0-next.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ | |
}, | ||
"devDependencies": { | ||
"@astrojs/renderer-svelte": "^0.4.0", | ||
"astro": "^0.23.7" | ||
"astro": "^0.24.0-next.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ | |
}, | ||
"devDependencies": { | ||
"@astrojs/renderer-vue": "^0.4.0", | ||
"astro": "^0.23.7" | ||
"astro": "^0.24.0-next.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,6 @@ | |
"preview": "astro preview" | ||
}, | ||
"devDependencies": { | ||
"astro": "^0.23.7" | ||
"astro": "^0.24.0-next.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,6 @@ | |
"preview": "astro preview" | ||
}, | ||
"devDependencies": { | ||
"astro": "^0.23.7" | ||
"astro": "^0.24.0-next.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ | |
}, | ||
"devDependencies": { | ||
"@astrojs/renderer-svelte": "^0.4.0", | ||
"astro": "^0.23.7" | ||
"astro": "^0.24.0-next.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ | |
}, | ||
"devDependencies": { | ||
"@astrojs/renderer-preact": "^0.5.0", | ||
"astro": "^0.23.7" | ||
"astro": "^0.24.0-next.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,6 @@ | |
"preview": "astro preview" | ||
}, | ||
"devDependencies": { | ||
"astro": "^0.23.7" | ||
"astro": "^0.24.0-next.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ | |
}, | ||
"devDependencies": { | ||
"@astrojs/markdown-remark": "^0.6.1", | ||
"astro": "^0.23.7" | ||
"astro": "^0.24.0-next.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,35 @@ | ||
# astro | ||
|
||
## 0.24.0-next.0 | ||
|
||
### Minor Changes | ||
|
||
- [#2705](https://github.com/withastro/astro/pull/2705) [`8ce63ee6`](https://github.com/withastro/astro/commit/8ce63ee658677ecabcb3068f00413b51e7db30ef) Thanks [@natemoo-re](https://github.com/natemoo-re)! - New default build strategy | ||
|
||
This change marks the "static build" as the new default build strategy. If you are unfamiliar with this build strategy check out the [migration guide](https://docs.astro.build/en/migrate/#planned-deprecations) on how to change your code to be compatible with this new bulid strategy. | ||
|
||
If you'd like to keep using the old build strategy, use the flag `--legacy-build` both in your `astro dev` and `astro build` scripts, for ex: | ||
|
||
```json | ||
{ | ||
"scripts": { | ||
"build": "astro build --legacy-build" | ||
} | ||
} | ||
``` | ||
|
||
Note that the legacy build _is_ deprecated and will be removed in a future version. You should only use this flag until you have the time to migration your code. | ||
|
||
- **Updated `<head>` and `<body>` behavior** | ||
|
||
Since `[email protected]`, Astro placed certain restrictions on what files could use `<head>` or `<body>` tags. In `[email protected]`, the restrictions have been lifted. Astro will be able to correctly handle `<head>` and `<body>` tags in _any_ component, not just those in `src/pages/` or `src/layouts/`. | ||
|
||
### Patch Changes | ||
|
||
- [#2705](https://github.com/withastro/astro/pull/2705) [`176d4082`](https://github.com/withastro/astro/commit/176d4082ca642e3d7b996529f1efed7048b4d04f) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Fixes use of private .env variables with the static build | ||
|
||
* [#2705](https://github.com/withastro/astro/pull/2705) [`a483c044`](https://github.com/withastro/astro/commit/a483c0446ba222edf4258f4683cd918ea209b8f4) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Replace `send` dependency with `sirv` | ||
|
||
## 0.23.7 | ||
|
||
### Patch Changes | ||
|
@@ -96,12 +126,12 @@ | |
```typescript | ||
// src/pages/company.json.ts | ||
export async function get() { | ||
return { | ||
body: JSON.stringify({ | ||
name: 'Astro Technology Company', | ||
url: 'https://astro.build/', | ||
}), | ||
}; | ||
return { | ||
body: JSON.stringify({ | ||
name: 'Astro Technology Company', | ||
url: 'https://astro.build/', | ||
}), | ||
}; | ||
} | ||
``` | ||
|
||
|
@@ -263,12 +293,12 @@ | |
```typescript | ||
// src/pages/company.json.ts | ||
export async function get() { | ||
return { | ||
body: JSON.stringify({ | ||
name: 'Astro Technology Company', | ||
url: 'https://astro.build/', | ||
}), | ||
}; | ||
return { | ||
body: JSON.stringify({ | ||
name: 'Astro Technology Company', | ||
url: 'https://astro.build/', | ||
}), | ||
}; | ||
} | ||
``` | ||
|
@@ -1623,10 +1653,10 @@ For convenience, you may now also move your `astro.config.js` file to a top-leve | |
|
||
```js | ||
export default { | ||
markdownOptions: { | ||
remarkPlugins: ['remark-slug', ['remark-autolink-headings', { behavior: 'prepend' }]], | ||
rehypePlugins: ['rehype-slug', ['rehype-autolink-headings', { behavior: 'prepend' }]], | ||
}, | ||
markdownOptions: { | ||
remarkPlugins: ['remark-slug', ['remark-autolink-headings', { behavior: 'prepend' }]], | ||
rehypePlugins: ['rehype-slug', ['rehype-autolink-headings', { behavior: 'prepend' }]], | ||
}, | ||
}; | ||
``` | ||
|
||
|
@@ -1646,10 +1676,10 @@ For convenience, you may now also move your `astro.config.js` file to a top-leve | |
|
||
```js | ||
export default { | ||
name: '@matthewp/my-renderer', | ||
server: './server.js', | ||
client: './client.js', | ||
hydrationPolyfills: ['./my-polyfill.js'], | ||
name: '@matthewp/my-renderer', | ||
server: './server.js', | ||
client: './client.js', | ||
hydrationPolyfills: ['./my-polyfill.js'], | ||
}; | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters