Compare commits
72 commits
main
...
sarah11918
Author | SHA1 | Date | |
---|---|---|---|
|
0a79b18605 | ||
|
06d94201b1 | ||
|
9dd4bf000d | ||
|
a236544dbe | ||
|
c50e88e61f | ||
|
bbf0b7470b | ||
|
cdebbded0c | ||
|
ea7ff5177d | ||
|
4843bff0d2 | ||
|
cbb77af978 | ||
|
2484dc4080 | ||
|
4967c69221 | ||
|
7a625d9bad | ||
|
ca4cf01100 | ||
|
788825bd8b | ||
|
b76c166bdd | ||
|
e12a101842 | ||
|
7530d5689d | ||
|
68efd4a8b2 | ||
|
7b77b34cef | ||
|
4477bb41c8 | ||
|
5208a3c8fe | ||
|
19f9edf977 | ||
|
2aa6d8ace3 | ||
|
40efae6550 | ||
|
866ed4098e | ||
|
519a1c4e84 | ||
|
2ee418e06a | ||
|
9cc4e48e6a | ||
|
34cb200216 | ||
|
a39ff7ed6b | ||
|
924bef998e | ||
|
14b0626f3e | ||
|
08c3afb860 | ||
|
a6a16a6baf | ||
|
670ef109db | ||
|
65c354969e | ||
|
0f637c71e5 | ||
|
0f1e9d8361 | ||
|
7bd1b86f85 | ||
|
ba73dea026 | ||
|
70f34f5a35 | ||
|
b675acb2aa | ||
|
3c31008519 | ||
|
6333651a9f | ||
|
2ac1c1e260 | ||
|
f32d093a28 | ||
|
7511a4980f | ||
|
997a0db8a4 | ||
|
32669cd475 | ||
|
c0de7a7b0f | ||
|
f01eb585e7 | ||
|
dc13687bb4 | ||
|
41390c2ebd | ||
|
2777e7c0e5 | ||
|
32002c2954 | ||
|
e1ae56e724 | ||
|
c69c347980 | ||
|
c335881dcc | ||
|
84af8ed9d1 | ||
|
e204270507 | ||
|
cd2d7e7698 | ||
|
80f1494cda | ||
|
036388f66d | ||
|
364d861bd5 | ||
|
148e61d249 | ||
|
7d2f311d42 | ||
|
9a01cc64c2 | ||
|
96beb883ad | ||
|
0f06255041 | ||
|
42fc57ee60 | ||
|
d0679a666f |
983 changed files with 6478 additions and 30749 deletions
30
.changeset/afraid-dots-whisper.md
Normal file
30
.changeset/afraid-dots-whisper.md
Normal file
|
@ -0,0 +1,30 @@
|
|||
---
|
||||
'@astrojs/cloudflare': major
|
||||
'@astrojs/partytown': major
|
||||
'@astrojs/tailwind': major
|
||||
'@astrojs/netlify': major
|
||||
'@astrojs/sitemap': major
|
||||
'@astrojs/preact': major
|
||||
'@astrojs/svelte': major
|
||||
'@astrojs/vercel': major
|
||||
'@astrojs/react': major
|
||||
'@astrojs/solid-js': major
|
||||
'@astrojs/deno': major
|
||||
'@astrojs/node': major
|
||||
'@astrojs/lit': major
|
||||
'@astrojs/vue': major
|
||||
'create-astro': major
|
||||
'@astrojs/prism': major
|
||||
'@astrojs/rss': major
|
||||
'@astrojs/telemetry': major
|
||||
'astro': major
|
||||
'@astrojs/turbolinks': minor
|
||||
'@astrojs/alpinejs': minor
|
||||
'@astrojs/prefetch': minor
|
||||
'@astrojs/markdoc': minor
|
||||
'@astrojs/underscore-redirects': minor
|
||||
'@astrojs/mdx': minor
|
||||
'@astrojs/internal-helpers': minor
|
||||
---
|
||||
|
||||
Remove support for Node 16. The lowest supported version by Astro and all integrations is now v18.14.1. As a reminder, Node 16 will be deprecated on the 11th September 2023.
|
5
.changeset/big-tips-whisper.md
Normal file
5
.changeset/big-tips-whisper.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@astrojs/internal-helpers': patch
|
||||
---
|
||||
|
||||
Trigger re-release to fix `collapseDuplicateSlashes` export
|
5
.changeset/chilled-ducks-grin.md
Normal file
5
.changeset/chilled-ducks-grin.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': major
|
||||
---
|
||||
|
||||
Removed automatic flattening of `getStaticPaths` result. `.flatMap` and `.flat` should now be used to ensure that you're returning a flat array.
|
13
.changeset/clever-bats-breathe.md
Normal file
13
.changeset/clever-bats-breathe.md
Normal file
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
'astro': major
|
||||
---
|
||||
|
||||
This import alias is no longer included by default with astro:assets. If you were using this alias with experimental assets, you must convert them to relative file paths, or create your own [import aliases](https://docs.astro.build/en/guides/aliases/).
|
||||
|
||||
```diff
|
||||
---
|
||||
// src/pages/posts/post-1.astro
|
||||
- import rocket from '~/assets/rocket.png'
|
||||
+ import rocket from '../../assets/rocket.png';
|
||||
---
|
||||
```
|
7
.changeset/cool-feet-rest.md
Normal file
7
.changeset/cool-feet-rest.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
'@astrojs/solid-js': major
|
||||
---
|
||||
|
||||
New `include` and `exclude` config options
|
||||
|
||||
The Solid integration now has new `include` and `exclude` config options. Use these if you want to use Solid alongside another JSX framework; include specifies files to be compiled for Solid and `exclude` does the opposite.
|
32
.changeset/dirty-lies-cover.md
Normal file
32
.changeset/dirty-lies-cover.md
Normal file
|
@ -0,0 +1,32 @@
|
|||
---
|
||||
'@astrojs/cloudflare': minor
|
||||
'@astrojs/netlify': minor
|
||||
'@astrojs/vercel': minor
|
||||
'@astrojs/deno': minor
|
||||
'@astrojs/node': minor
|
||||
'astro': minor
|
||||
---
|
||||
|
||||
Introduced the concept of feature map. A feature map is a list of features that are built-in in Astro, and an Adapter
|
||||
can tell Astro if it can support it.
|
||||
|
||||
```ts
|
||||
import {AstroIntegration} from "./astro";
|
||||
|
||||
function myIntegration(): AstroIntegration {
|
||||
return {
|
||||
name: 'astro-awesome-list',
|
||||
// new feature map
|
||||
supportedAstroFeatures: {
|
||||
hybridOutput: 'experimental',
|
||||
staticOutput: 'stable',
|
||||
serverOutput: 'stable',
|
||||
assets: {
|
||||
supportKind: 'stable',
|
||||
isSharpCompatible: false,
|
||||
isSquooshCompatible: false,
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
39
.changeset/fair-emus-divide.md
Normal file
39
.changeset/fair-emus-divide.md
Normal file
|
@ -0,0 +1,39 @@
|
|||
---
|
||||
'astro': major
|
||||
'@astrojs/netlify': minor
|
||||
---
|
||||
|
||||
The `build.split` and `build.excludeMiddleware` configuration options are deprecated and have been replaced by options in the adapter config.
|
||||
|
||||
If your config includes the `build.excludeMiddleware` option, replace it with `edgeMiddleware` in your adapter options:
|
||||
|
||||
```diff
|
||||
import { defineConfig } from "astro/config";
|
||||
import netlify from "@astrojs/netlify/functions";
|
||||
|
||||
export default defineConfig({
|
||||
build: {
|
||||
- excludeMiddleware: true
|
||||
},
|
||||
adapter: netlify({
|
||||
+ edgeMiddleware: true
|
||||
}),
|
||||
});
|
||||
```
|
||||
|
||||
If your config includes the `build.split` option, replace it with `functionPerRoute` in your adapter options:
|
||||
|
||||
```diff
|
||||
import { defineConfig } from "astro/config";
|
||||
import netlify from "@astrojs/netlify/functions";
|
||||
|
||||
export default defineConfig({
|
||||
build: {
|
||||
- split: true
|
||||
},
|
||||
adapter: netlify({
|
||||
+ functionPerRoute: true
|
||||
}),
|
||||
});
|
||||
```
|
||||
|
5
.changeset/famous-queens-itch.md
Normal file
5
.changeset/famous-queens-itch.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@astrojs/mdx': patch
|
||||
---
|
||||
|
||||
Re-orders the MDX plugin to run before Astro's JSX plugin
|
18
.changeset/four-houses-compete.md
Normal file
18
.changeset/four-houses-compete.md
Normal file
|
@ -0,0 +1,18 @@
|
|||
---
|
||||
'astro': major
|
||||
---
|
||||
|
||||
Sharp is now the default image service used for `astro:assets`. If you would prefer to still use Squoosh, you can update your config with the following:
|
||||
|
||||
```ts
|
||||
import { defineConfig, squooshImageService } from "astro/config";
|
||||
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
image: {
|
||||
service: squooshImageService(),
|
||||
}
|
||||
})
|
||||
```
|
||||
|
||||
However, not only do we recommend using Sharp as it is faster and more reliable, it is also highly likely that the Squoosh service will be removed in a future release.
|
5
.changeset/gentle-deers-yawn.md
Normal file
5
.changeset/gentle-deers-yawn.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Call `astro sync` once before calling `astro check`
|
9
.changeset/gentle-meals-crash.md
Normal file
9
.changeset/gentle-meals-crash.md
Normal file
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
'astro': major
|
||||
---
|
||||
|
||||
Remove support for `Astro.__renderMarkdown` which is used by `@astrojs/markdown-component`.
|
||||
|
||||
The `<Markdown />` component was deprecated in Astro v1 and is completely removed in v3. This integration must now be removed from your project.
|
||||
|
||||
As an alternative, you can use community packages that provide a similar component like https://github.com/natemoo-re/astro-remote instead.
|
29
.changeset/giant-plants-sip.md
Normal file
29
.changeset/giant-plants-sip.md
Normal file
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
'astro': major
|
||||
---
|
||||
|
||||
Remove backwards-compatible kebab-case transform for camelCase CSS variable names passed to the `style` attribute. If you were relying on the kebab-case transform in your styles, make sure to use the camelCase version to prevent missing styles. For example:
|
||||
|
||||
```astro
|
||||
---
|
||||
const myValue = "red"
|
||||
---
|
||||
|
||||
<!-- input -->
|
||||
<div style={{ "--myValue": myValue }}></div>
|
||||
|
||||
<!-- output (before) -->
|
||||
<div style="--my-value:var(--myValue);--myValue:red"></div>
|
||||
|
||||
<!-- output (after) -->
|
||||
<div style="--myValue:red"></div>
|
||||
```
|
||||
|
||||
```diff
|
||||
<style>
|
||||
div {
|
||||
- color: var(--my-value);
|
||||
+ color: var(--myValue);
|
||||
}
|
||||
</style>
|
||||
```
|
8
.changeset/heavy-walls-arrive.md
Normal file
8
.changeset/heavy-walls-arrive.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
'@astrojs/cloudflare': major
|
||||
'@astrojs/netlify': major
|
||||
'@astrojs/vercel': major
|
||||
'astro': major
|
||||
---
|
||||
|
||||
When using an adapter that supports neither Squoosh or Sharp, Astro will now automatically use an image service that does not support processing, but still provides the other benefits of `astro:assets` such as enforcing `alt`, no CLS etc to users
|
7
.changeset/large-countries-share.md
Normal file
7
.changeset/large-countries-share.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
'@astrojs/preact': major
|
||||
---
|
||||
|
||||
New `include` and `exclude` config options
|
||||
|
||||
The Preact integration now has new `include` and `exclude` config options. Use these if you want to use Preact alongside another JSX framework; include specifies files to be compiled for Preact and `exclude` does the opposite.
|
5
.changeset/loud-candles-admire.md
Normal file
5
.changeset/loud-candles-admire.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@astrojs/mdx': patch
|
||||
---
|
||||
|
||||
Handle `components` exports handling itself
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Improve fidelity of time stats when running `astro build`
|
5
.changeset/mighty-dancers-lay.md
Normal file
5
.changeset/mighty-dancers-lay.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': major
|
||||
---
|
||||
|
||||
Removed support for old syntax of the API routes.
|
8
.changeset/neat-mugs-end.md
Normal file
8
.changeset/neat-mugs-end.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
'astro': minor
|
||||
---
|
||||
|
||||
|
||||
`astro:`namespace aliases for middleware and components
|
||||
|
||||
This adds aliases of `astro:middleware` and `astro:components` for the middleware and components modules. This is to make our documentation consistent between are various modules, where some are virtual modules and others are not. Going forward new built-in modules will use this namespace.
|
25
.changeset/neat-owls-run.md
Normal file
25
.changeset/neat-owls-run.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
---
|
||||
'astro': major
|
||||
---
|
||||
|
||||
Remove exports for `astro/internal/*` and `astro/runtime/server/*` in favour of `astro/runtime/*`. Add new `astro/compiler-runtime` export for compiler-specific runtime code.
|
||||
|
||||
These are exports for Astro's internal API and should not affect your project, but if you do use these entrypoints, you can migrate like below:
|
||||
|
||||
```diff
|
||||
- import 'astro/internal/index.js';
|
||||
+ import 'astro/runtime/server/index.js';
|
||||
|
||||
- import 'astro/server/index.js';
|
||||
+ import 'astro/runtime/server/index.js';
|
||||
```
|
||||
|
||||
```diff
|
||||
import { transform } from '@astrojs/compiler';
|
||||
|
||||
const result = await transform(source, {
|
||||
- internalURL: 'astro/runtime/server/index.js',
|
||||
+ internalURL: 'astro/compiler-runtime',
|
||||
// ...
|
||||
});
|
||||
```
|
17
.changeset/neat-suns-search.md
Normal file
17
.changeset/neat-suns-search.md
Normal file
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
'astro': major
|
||||
---
|
||||
|
||||
Implements a new scope style strategy called `"attribute"`. When enabled, styles are applied using `data-*` attributes.
|
||||
|
||||
The **default** value of `scopedStyleStrategy` is `"attribute"`.
|
||||
|
||||
If you want to use the previous behaviour, you have to use the `"where"` option:
|
||||
|
||||
```diff
|
||||
import { defineConfig } from 'astro/config';
|
||||
|
||||
export default defineConfig({
|
||||
+ scopedStyleStrategy: 'where',
|
||||
});
|
||||
```
|
23
.changeset/odd-books-live.md
Normal file
23
.changeset/odd-books-live.md
Normal file
|
@ -0,0 +1,23 @@
|
|||
---
|
||||
'astro': minor
|
||||
---
|
||||
|
||||
Integrations can now log messages using Astro’s built-in logger.
|
||||
|
||||
The logger is available to all hooks as an additional parameter:
|
||||
|
||||
```ts
|
||||
import {AstroIntegration} from "./astro";
|
||||
|
||||
// integration.js
|
||||
export function myIntegration(): AstroIntegration {
|
||||
return {
|
||||
name: "my-integration",
|
||||
hooks: {
|
||||
"astro:config:done": ({ logger }) => {
|
||||
logger.info("Configure integration...");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
27
.changeset/perfect-horses-tell.md
Normal file
27
.changeset/perfect-horses-tell.md
Normal file
|
@ -0,0 +1,27 @@
|
|||
---
|
||||
'astro': major
|
||||
---
|
||||
|
||||
Astro's JSX handling has been refactored with better support for each framework.
|
||||
|
||||
Previously, Astro automatically scanned your components to determine which framework-specific transformations should be used. In practice, supporting advanced features like Fast Refresh with this approach proved difficult.
|
||||
|
||||
Now, Astro determines which framework to use with `include` and `exclude` config options where you can specify files and folders on a per-framework basis. When using multiple JSX frameworks in the same project, users should manually control which files belong to each framework using the `include` and `exclude` options.
|
||||
|
||||
```js
|
||||
export default defineConfig({
|
||||
// The `include` config is only needed in projects that use multiple JSX frameworks;
|
||||
// if only using one no extra config is needed.
|
||||
integrations: [
|
||||
preact({
|
||||
include: ['**/preact/*']
|
||||
}),
|
||||
react({
|
||||
include: ['**/react/*']
|
||||
}),
|
||||
solid({
|
||||
include: ['**/solid/*'],
|
||||
}),
|
||||
]
|
||||
});
|
||||
```
|
23
.changeset/plenty-keys-add.md
Normal file
23
.changeset/plenty-keys-add.md
Normal file
|
@ -0,0 +1,23 @@
|
|||
---
|
||||
'@astrojs/vercel': major
|
||||
---
|
||||
|
||||
Remove the Vercel Edge adapter
|
||||
|
||||
`@astrojs/vercel/serverless` now supports Edge middleware, so a separate adapter for Edge itself (deploying your entire app to the edge) is no longer necessary. Please update your Astro config to reflect this change:
|
||||
|
||||
```diff
|
||||
// astro.config.mjs
|
||||
import { defineConfig } from 'astro/config';
|
||||
- import vercel from '@astrojs/vercel/edge';
|
||||
+ import vercel from '@astrojs/vercel/serverless';
|
||||
|
||||
export default defineConfig({
|
||||
output: 'server',
|
||||
adapter: vercel({
|
||||
+ edgeMiddleware: true
|
||||
}),
|
||||
});
|
||||
```
|
||||
|
||||
This adapter had several known limitations and compatibility issues that prevented many people from using it in production. To reduce maintenance costs and because we have a better story with Serveless + Edge Middleware, we are removing the Edge adapter.
|
73
.changeset/pre.json
Normal file
73
.changeset/pre.json
Normal file
|
@ -0,0 +1,73 @@
|
|||
{
|
||||
"mode": "pre",
|
||||
"tag": "beta",
|
||||
"initialVersions": {
|
||||
"astro": "2.9.6",
|
||||
"@astrojs/prism": "2.1.2",
|
||||
"@astrojs/rss": "2.4.3",
|
||||
"create-astro": "3.1.10",
|
||||
"@astrojs/alpinejs": "0.2.2",
|
||||
"@astrojs/cloudflare": "6.6.2",
|
||||
"@astrojs/deno": "4.3.0",
|
||||
"@astrojs/lit": "2.1.0",
|
||||
"@astrojs/markdoc": "0.4.4",
|
||||
"@astrojs/mdx": "0.19.7",
|
||||
"@astrojs/netlify": "2.5.1",
|
||||
"@astrojs/node": "5.3.0",
|
||||
"@astrojs/partytown": "1.2.3",
|
||||
"@astrojs/preact": "2.2.1",
|
||||
"@astrojs/prefetch": "0.3.0",
|
||||
"@astrojs/react": "2.2.1",
|
||||
"@astrojs/sitemap": "2.0.1",
|
||||
"@astrojs/solid-js": "2.2.0",
|
||||
"@astrojs/svelte": "3.1.0",
|
||||
"@astrojs/tailwind": "4.0.0",
|
||||
"@astrojs/turbolinks": "0.2.2",
|
||||
"@astrojs/vercel": "3.7.4",
|
||||
"@astrojs/vue": "2.2.1",
|
||||
"@astrojs/internal-helpers": "0.1.1",
|
||||
"@astrojs/markdown-remark": "2.2.1",
|
||||
"@astrojs/telemetry": "2.1.1",
|
||||
"@astrojs/underscore-redirects": "0.2.0"
|
||||
},
|
||||
"changesets": [
|
||||
"afraid-dots-whisper",
|
||||
"big-tips-whisper",
|
||||
"breezy-frogs-learn",
|
||||
"chilled-ducks-grin",
|
||||
"cool-feet-rest",
|
||||
"dirty-lies-cover",
|
||||
"fair-emus-divide",
|
||||
"famous-queens-itch",
|
||||
"four-houses-compete",
|
||||
"gentle-deers-yawn",
|
||||
"gentle-meals-crash",
|
||||
"giant-plants-sip",
|
||||
"heavy-walls-arrive",
|
||||
"large-countries-share",
|
||||
"loud-candles-admire",
|
||||
"mighty-dancers-lay",
|
||||
"neat-suns-search",
|
||||
"odd-books-live",
|
||||
"perfect-horses-tell",
|
||||
"plenty-keys-add",
|
||||
"purple-buses-prove",
|
||||
"rude-ears-play",
|
||||
"six-grapes-look",
|
||||
"slimy-carrots-sell",
|
||||
"spicy-eels-rush",
|
||||
"tame-files-glow",
|
||||
"three-adults-exist",
|
||||
"three-onions-repeat",
|
||||
"tricky-candles-suffer",
|
||||
"twelve-coats-rush",
|
||||
"twenty-cheetahs-deny",
|
||||
"unlucky-hotels-try",
|
||||
"unlucky-ravens-type",
|
||||
"unlucky-sheep-build",
|
||||
"violet-peaches-invent",
|
||||
"wild-bobcats-carry",
|
||||
"wild-jobs-tan",
|
||||
"young-roses-teach"
|
||||
]
|
||||
}
|
5
.changeset/purple-buses-prove.md
Normal file
5
.changeset/purple-buses-prove.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Remove StreamingCompatibleResponse polyfill
|
5
.changeset/quick-boats-bow.md
Normal file
5
.changeset/quick-boats-bow.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': major
|
||||
---
|
||||
|
||||
Removed duplicate `astro/dist/jsx` export. Please use the `astro/jsx` export instead
|
5
.changeset/rude-ears-play.md
Normal file
5
.changeset/rude-ears-play.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': major
|
||||
---
|
||||
|
||||
Remove MDX plugin re-ordering hack
|
15
.changeset/six-grapes-look.md
Normal file
15
.changeset/six-grapes-look.md
Normal file
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
'astro': major
|
||||
---
|
||||
|
||||
The value of `import.meta.env.BASE_URL`, which is derived from the `base` option, will no longer have a trailing slash added by default or when `trailingSlash: "ignore"` is set. The existing behavior of `base` in combination with `trailingSlash: "always"` or `trailingSlash: "never"` is unchanged.
|
||||
|
||||
If your `base` already has a trailing slash, no change is needed.
|
||||
|
||||
If your `base` does not have a trailing slash, add one to preserve the previous behaviour:
|
||||
|
||||
```diff
|
||||
// astro.config.mjs
|
||||
- base: 'my-base',
|
||||
+ base: 'my-base/',
|
||||
```
|
9
.changeset/slimy-carrots-sell.md
Normal file
9
.changeset/slimy-carrots-sell.md
Normal file
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
'@astrojs/react': major
|
||||
---
|
||||
|
||||
Support for React Refresh
|
||||
|
||||
The React integration now fully supports React Refresh and is backed by `@vitejs/plugin-react`.
|
||||
|
||||
Also included in this change are new `include` and `exclude` config options. Use these if you want to use React alongside another JSX framework; include specifies files to be compiled for React and `exclude` does the opposite.
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
On back navigation only animate view transitions that were animated going forward.
|
8
.changeset/spicy-eels-rush.md
Normal file
8
.changeset/spicy-eels-rush.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
'astro': major
|
||||
'@astrojs/netlify': major
|
||||
'@astrojs/vercel': major
|
||||
'@astrojs/node': major
|
||||
---
|
||||
|
||||
Reduced the amount of polyfills provided by Astro. Astro will no longer provide (no-op) polyfills for several web apis such as HTMLElement, Image or Document. If you need access to those APIs on the server, we recommend using more proper polyfills available on npm.
|
5
.changeset/strong-papayas-chew.md
Normal file
5
.changeset/strong-papayas-chew.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@astrojs/cloudflare': patch
|
||||
---
|
||||
|
||||
Sync Astro Asset support across both modes
|
23
.changeset/tame-files-glow.md
Normal file
23
.changeset/tame-files-glow.md
Normal file
|
@ -0,0 +1,23 @@
|
|||
---
|
||||
'@astrojs/netlify': major
|
||||
---
|
||||
|
||||
Remove the Netlify Edge adapter
|
||||
|
||||
`@astrojs/netlify/functions` now supports Edge middleware, so a separate adapter for Edge itself (deploying your entire app to the edge) is no longer necessary. Please update your Astro config to reflect this change:
|
||||
|
||||
```diff
|
||||
// astro.config.mjs
|
||||
import { defineConfig } from 'astro/config';
|
||||
- import netlify from '@astrojs/netlify/edge';
|
||||
+ import netlify from '@astrojs/netlify/functions';
|
||||
|
||||
export default defineConfig({
|
||||
output: 'server',
|
||||
adapter: netlify({
|
||||
+ edgeMiddleware: true
|
||||
}),
|
||||
});
|
||||
```
|
||||
|
||||
This adapter had several known limitations and compatibility issues that prevented many people from using it in production. To reduce maintenance costs and because we have a better story with Serveless + Edge Middleware, we are removing the Edge adapter.
|
5
.changeset/tasty-camels-speak.md
Normal file
5
.changeset/tasty-camels-speak.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Update Astro types to reflect that compress defaults to true
|
5
.changeset/three-adults-exist.md
Normal file
5
.changeset/three-adults-exist.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': major
|
||||
---
|
||||
|
||||
Update `tsconfig.json` presets with `moduleResolution: 'bundler'` and other new options from TypeScript 5.0. Astro now assumes that you use TypeScript 5.0 (March 2023), or that your editor includes it, ex: VS Code 1.77
|
5
.changeset/three-onions-repeat.md
Normal file
5
.changeset/three-onions-repeat.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': major
|
||||
---
|
||||
|
||||
The `astro check` command now requires an external package `@astrojs/check` and an install of `typescript` in your project. This was done in order to make the main `astro` package smaller and give more flexibility to users in regard to the version of TypeScript they use.
|
39
.changeset/tricky-candles-suffer.md
Normal file
39
.changeset/tricky-candles-suffer.md
Normal file
|
@ -0,0 +1,39 @@
|
|||
---
|
||||
'astro': major
|
||||
'@astrojs/vercel': minor
|
||||
---
|
||||
|
||||
The `build.split` and `build.excludeMiddleware` configuration options are deprecated and have been replaced by options in the adapter config.
|
||||
|
||||
If your config includes the `build.excludeMiddleware` option, replace it with `edgeMiddleware` in your adapter options:
|
||||
|
||||
```diff
|
||||
import { defineConfig } from "astro/config";
|
||||
import vercel from "@astrojs/vercel/serverless";
|
||||
|
||||
export default defineConfig({
|
||||
build: {
|
||||
- excludeMiddleware: true
|
||||
},
|
||||
adapter: vercel({
|
||||
+ edgeMiddleware: true
|
||||
}),
|
||||
});
|
||||
```
|
||||
|
||||
If your config includes the `build.split` option, replace it with `functionPerRoute` in your adapter options:
|
||||
|
||||
```diff
|
||||
import { defineConfig } from "astro/config";
|
||||
import vercel from "@astrojs/vercel/serverless";
|
||||
|
||||
export default defineConfig({
|
||||
build: {
|
||||
- split: true
|
||||
},
|
||||
adapter: vercel({
|
||||
+ functionPerRoute: true
|
||||
}),
|
||||
});
|
||||
```
|
||||
|
35
.changeset/twelve-coats-rush.md
Normal file
35
.changeset/twelve-coats-rush.md
Normal file
|
@ -0,0 +1,35 @@
|
|||
---
|
||||
'astro': major
|
||||
---
|
||||
|
||||
Lowercase names for endpoint functions are now deprecated.
|
||||
|
||||
Rename functions to their uppercase equivalent:
|
||||
|
||||
```diff
|
||||
- export function get() {
|
||||
+ export function GET() {
|
||||
return new Response(JSON.stringify({ "title": "Bob's blog" }));
|
||||
}
|
||||
|
||||
- export function post() {
|
||||
+ export function POST() {
|
||||
return new Response(JSON.stringify({ "title": "Bob's blog" }));
|
||||
}
|
||||
|
||||
- export function put() {
|
||||
+ export function PUT() {
|
||||
return new Response(JSON.stringify({ "title": "Bob's blog" }));
|
||||
}
|
||||
|
||||
- export function all() {
|
||||
+ export function ALL() {
|
||||
return new Response(JSON.stringify({ "title": "Bob's blog" }));
|
||||
}
|
||||
|
||||
// you can use the whole word "DELETE"
|
||||
- export function del() {
|
||||
+ export function DELETE() {
|
||||
return new Response(JSON.stringify({ "title": "Bob's blog" }));
|
||||
}
|
||||
```
|
17
.changeset/twenty-cheetahs-deny.md
Normal file
17
.changeset/twenty-cheetahs-deny.md
Normal file
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
'astro': major
|
||||
---
|
||||
|
||||
Astro.cookies.get(key) returns undefined if cookie doesn't exist
|
||||
|
||||
With this change, Astro.cookies.get(key) no longer always returns a `AstroCookie` object. Instead it now returns `undefined` if the cookie does not exist.
|
||||
|
||||
You should update your code if you assume that all calls to `get()` return a value. When using with `has()` you still need to assert the value, like so:
|
||||
|
||||
```astro
|
||||
---
|
||||
if(Astro.cookies.has(id)) {
|
||||
const id = Astro.cookies.get(id)!;
|
||||
}
|
||||
---
|
||||
```
|
5
.changeset/unlucky-hotels-try.md
Normal file
5
.changeset/unlucky-hotels-try.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@astrojs/mdx': minor
|
||||
---
|
||||
|
||||
Add `astro` as peer dependency
|
14
.changeset/unlucky-ravens-type.md
Normal file
14
.changeset/unlucky-ravens-type.md
Normal file
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
'astro': major
|
||||
---
|
||||
|
||||
The property `compressHTML` is now `true` by default. Setting this value to `true` is no longer required.
|
||||
|
||||
If you do not want to minify your HTML output, you must set this value to `false` in `astro.config.mjs`.
|
||||
|
||||
```diff
|
||||
import {defineConfig} from "astro/config";
|
||||
export default defineConfig({
|
||||
+ compressHTML: false
|
||||
})
|
||||
```
|
7
.changeset/unlucky-sheep-build.md
Normal file
7
.changeset/unlucky-sheep-build.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
'astro': major
|
||||
---
|
||||
|
||||
Astro's default port when running the dev or preview server is now `4321`.
|
||||
|
||||
This will reduce conflicts with ports used by other tools.
|
5
.changeset/violet-peaches-invent.md
Normal file
5
.changeset/violet-peaches-invent.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@astrojs/telemetry': patch
|
||||
---
|
||||
|
||||
Remove undici dependency
|
13
.changeset/warm-weeks-yell.md
Normal file
13
.changeset/warm-weeks-yell.md
Normal file
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
"astro": major
|
||||
---
|
||||
|
||||
`astro:assets` is now enabled by default. If you were previously using the `experimental.assets` flag, please remove it from your config. Also note that the previous `@astrojs/image` integration is incompatible, and must be removed.
|
||||
|
||||
This also brings two important changes to using images in Astro:
|
||||
|
||||
- New ESM shape: importing an image will now return an object with different properties describing the image such as its path, format and dimensions. This is a breaking change and may require you to update your existing images.
|
||||
- In Markdown, MDX, and Markdoc, the `![]()` syntax will now resolve relative images located anywhere in your project in addition to remote images and images stored in the `public/` folder. This notably unlocks storing images next to your content.
|
||||
|
||||
Please see our existing [Assets page in Docs](https://docs.astro.build/en/guides/assets/) for more information about using `astro:assets`.
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
fix: reinsert attribute to specify direction of ViewTransition (forward / back)
|
5
.changeset/wild-bobcats-carry.md
Normal file
5
.changeset/wild-bobcats-carry.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': minor
|
||||
---
|
||||
|
||||
Add a new `astro/errors` module. Developers can import `AstroUserError`, and provide a `message` and an optional `hint`
|
5
.changeset/young-roses-teach.md
Normal file
5
.changeset/young-roses-teach.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': major
|
||||
---
|
||||
|
||||
Remove MDX special `components` export handling
|
|
@ -7,13 +7,13 @@
|
|||
"workspaceFolder": "/workspaces/astro/examples/basics",
|
||||
|
||||
"portsAttributes": {
|
||||
"3000": {
|
||||
"4321": {
|
||||
"label": "Application",
|
||||
"onAutoForward": "openPreview"
|
||||
}
|
||||
},
|
||||
|
||||
"forwardPorts": [3000],
|
||||
"forwardPorts": [4321],
|
||||
|
||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||
|
||||
|
|
|
@ -7,13 +7,13 @@
|
|||
"workspaceFolder": "/workspaces/astro/examples/blog",
|
||||
|
||||
"portsAttributes": {
|
||||
"3000": {
|
||||
"4321": {
|
||||
"label": "Application",
|
||||
"onAutoForward": "openPreview"
|
||||
}
|
||||
},
|
||||
|
||||
"forwardPorts": [3000],
|
||||
"forwardPorts": [4321],
|
||||
|
||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||
|
||||
|
|
|
@ -7,13 +7,13 @@
|
|||
"workspaceFolder": "/workspaces/astro/examples/deno",
|
||||
|
||||
"portsAttributes": {
|
||||
"3000": {
|
||||
"4321": {
|
||||
"label": "Application",
|
||||
"onAutoForward": "openPreview"
|
||||
}
|
||||
},
|
||||
|
||||
"forwardPorts": [3000],
|
||||
"forwardPorts": [4321],
|
||||
|
||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||
|
||||
|
|
|
@ -7,13 +7,13 @@
|
|||
"workspaceFolder": "/workspaces/astro/examples/docs",
|
||||
|
||||
"portsAttributes": {
|
||||
"3000": {
|
||||
"4321": {
|
||||
"label": "Application",
|
||||
"onAutoForward": "openPreview"
|
||||
}
|
||||
},
|
||||
|
||||
"forwardPorts": [3000],
|
||||
"forwardPorts": [4321],
|
||||
|
||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||
|
||||
|
|
|
@ -7,13 +7,13 @@
|
|||
"workspaceFolder": "/workspaces/astro/examples/framework-alpine",
|
||||
|
||||
"portsAttributes": {
|
||||
"3000": {
|
||||
"4321": {
|
||||
"label": "Application",
|
||||
"onAutoForward": "openPreview"
|
||||
}
|
||||
},
|
||||
|
||||
"forwardPorts": [3000],
|
||||
"forwardPorts": [4321],
|
||||
|
||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||
|
||||
|
|
|
@ -7,13 +7,13 @@
|
|||
"workspaceFolder": "/workspaces/astro/examples/framework-lit",
|
||||
|
||||
"portsAttributes": {
|
||||
"3000": {
|
||||
"4321": {
|
||||
"label": "Application",
|
||||
"onAutoForward": "openPreview"
|
||||
}
|
||||
},
|
||||
|
||||
"forwardPorts": [3000],
|
||||
"forwardPorts": [4321],
|
||||
|
||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||
|
||||
|
|
|
@ -7,13 +7,13 @@
|
|||
"workspaceFolder": "/workspaces/astro/examples/framework-multiple",
|
||||
|
||||
"portsAttributes": {
|
||||
"3000": {
|
||||
"4321": {
|
||||
"label": "Application",
|
||||
"onAutoForward": "openPreview"
|
||||
}
|
||||
},
|
||||
|
||||
"forwardPorts": [3000],
|
||||
"forwardPorts": [4321],
|
||||
|
||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||
|
||||
|
|
|
@ -7,13 +7,13 @@
|
|||
"workspaceFolder": "/workspaces/astro/examples/framework-preact",
|
||||
|
||||
"portsAttributes": {
|
||||
"3000": {
|
||||
"4321": {
|
||||
"label": "Application",
|
||||
"onAutoForward": "openPreview"
|
||||
}
|
||||
},
|
||||
|
||||
"forwardPorts": [3000],
|
||||
"forwardPorts": [4321],
|
||||
|
||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||
|
||||
|
|
|
@ -7,13 +7,13 @@
|
|||
"workspaceFolder": "/workspaces/astro/examples/framework-react",
|
||||
|
||||
"portsAttributes": {
|
||||
"3000": {
|
||||
"4321": {
|
||||
"label": "Application",
|
||||
"onAutoForward": "openPreview"
|
||||
}
|
||||
},
|
||||
|
||||
"forwardPorts": [3000],
|
||||
"forwardPorts": [4321],
|
||||
|
||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||
|
||||
|
|
|
@ -7,13 +7,13 @@
|
|||
"workspaceFolder": "/workspaces/astro/examples/framework-solid",
|
||||
|
||||
"portsAttributes": {
|
||||
"3000": {
|
||||
"4321": {
|
||||
"label": "Application",
|
||||
"onAutoForward": "openPreview"
|
||||
}
|
||||
},
|
||||
|
||||
"forwardPorts": [3000],
|
||||
"forwardPorts": [4321],
|
||||
|
||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||
|
||||
|
|
|
@ -7,13 +7,13 @@
|
|||
"workspaceFolder": "/workspaces/astro/examples/framework-svelte",
|
||||
|
||||
"portsAttributes": {
|
||||
"3000": {
|
||||
"4321": {
|
||||
"label": "Application",
|
||||
"onAutoForward": "openPreview"
|
||||
}
|
||||
},
|
||||
|
||||
"forwardPorts": [3000],
|
||||
"forwardPorts": [4321],
|
||||
|
||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||
|
||||
|
|
|
@ -7,13 +7,13 @@
|
|||
"workspaceFolder": "/workspaces/astro/examples/framework-vue",
|
||||
|
||||
"portsAttributes": {
|
||||
"3000": {
|
||||
"4321": {
|
||||
"label": "Application",
|
||||
"onAutoForward": "openPreview"
|
||||
}
|
||||
},
|
||||
|
||||
"forwardPorts": [3000],
|
||||
"forwardPorts": [4321],
|
||||
|
||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||
|
||||
|
|
|
@ -7,13 +7,13 @@
|
|||
"workspaceFolder": "/workspaces/astro/examples/hackernews",
|
||||
|
||||
"portsAttributes": {
|
||||
"3000": {
|
||||
"4321": {
|
||||
"label": "Application",
|
||||
"onAutoForward": "openPreview"
|
||||
}
|
||||
},
|
||||
|
||||
"forwardPorts": [3000],
|
||||
"forwardPorts": [4321],
|
||||
|
||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||
|
||||
|
|
|
@ -7,13 +7,13 @@
|
|||
"workspaceFolder": "/workspaces/astro/examples/minimal",
|
||||
|
||||
"portsAttributes": {
|
||||
"3000": {
|
||||
"4321": {
|
||||
"label": "Application",
|
||||
"onAutoForward": "openPreview"
|
||||
}
|
||||
},
|
||||
|
||||
"forwardPorts": [3000],
|
||||
"forwardPorts": [4321],
|
||||
|
||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||
|
||||
|
|
|
@ -7,13 +7,13 @@
|
|||
"workspaceFolder": "/workspaces/astro/examples/non-html-pages",
|
||||
|
||||
"portsAttributes": {
|
||||
"3000": {
|
||||
"4321": {
|
||||
"label": "Application",
|
||||
"onAutoForward": "openPreview"
|
||||
}
|
||||
},
|
||||
|
||||
"forwardPorts": [3000],
|
||||
"forwardPorts": [4321],
|
||||
|
||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||
|
||||
|
|
|
@ -7,13 +7,13 @@
|
|||
"workspaceFolder": "/workspaces/astro/examples/portfolio",
|
||||
|
||||
"portsAttributes": {
|
||||
"3000": {
|
||||
"4321": {
|
||||
"label": "Application",
|
||||
"onAutoForward": "openPreview"
|
||||
}
|
||||
},
|
||||
|
||||
"forwardPorts": [3000],
|
||||
"forwardPorts": [4321],
|
||||
|
||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||
|
||||
|
|
|
@ -7,13 +7,13 @@
|
|||
"workspaceFolder": "/workspaces/astro/examples/ssr",
|
||||
|
||||
"portsAttributes": {
|
||||
"3000": {
|
||||
"4321": {
|
||||
"label": "Application",
|
||||
"onAutoForward": "openPreview"
|
||||
}
|
||||
},
|
||||
|
||||
"forwardPorts": [3000],
|
||||
"forwardPorts": [4321],
|
||||
|
||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||
|
||||
|
|
|
@ -7,13 +7,13 @@
|
|||
"workspaceFolder": "/workspaces/astro/examples/with-markdown-plugins",
|
||||
|
||||
"portsAttributes": {
|
||||
"3000": {
|
||||
"4321": {
|
||||
"label": "Application",
|
||||
"onAutoForward": "openPreview"
|
||||
}
|
||||
},
|
||||
|
||||
"forwardPorts": [3000],
|
||||
"forwardPorts": [4321],
|
||||
|
||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||
|
||||
|
|
|
@ -7,13 +7,13 @@
|
|||
"workspaceFolder": "/workspaces/astro/examples/with-markdown-shiki",
|
||||
|
||||
"portsAttributes": {
|
||||
"3000": {
|
||||
"4321": {
|
||||
"label": "Application",
|
||||
"onAutoForward": "openPreview"
|
||||
}
|
||||
},
|
||||
|
||||
"forwardPorts": [3000],
|
||||
"forwardPorts": [4321],
|
||||
|
||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||
|
||||
|
|
|
@ -7,13 +7,13 @@
|
|||
"workspaceFolder": "/workspaces/astro/examples/with-mdx",
|
||||
|
||||
"portsAttributes": {
|
||||
"3000": {
|
||||
"4321": {
|
||||
"label": "Application",
|
||||
"onAutoForward": "openPreview"
|
||||
}
|
||||
},
|
||||
|
||||
"forwardPorts": [3000],
|
||||
"forwardPorts": [4321],
|
||||
|
||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||
|
||||
|
|
|
@ -7,13 +7,13 @@
|
|||
"workspaceFolder": "/workspaces/astro/examples/with-nanostores",
|
||||
|
||||
"portsAttributes": {
|
||||
"3000": {
|
||||
"4321": {
|
||||
"label": "Application",
|
||||
"onAutoForward": "openPreview"
|
||||
}
|
||||
},
|
||||
|
||||
"forwardPorts": [3000],
|
||||
"forwardPorts": [4321],
|
||||
|
||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||
|
||||
|
|
|
@ -7,13 +7,13 @@
|
|||
"workspaceFolder": "/workspaces/astro/examples/with-tailwindcss",
|
||||
|
||||
"portsAttributes": {
|
||||
"3000": {
|
||||
"4321": {
|
||||
"label": "Application",
|
||||
"onAutoForward": "openPreview"
|
||||
}
|
||||
},
|
||||
|
||||
"forwardPorts": [3000],
|
||||
"forwardPorts": [4321],
|
||||
|
||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||
|
||||
|
|
|
@ -7,13 +7,13 @@
|
|||
"workspaceFolder": "/workspaces/astro/examples/with-vite-plugin-pwa",
|
||||
|
||||
"portsAttributes": {
|
||||
"3000": {
|
||||
"4321": {
|
||||
"label": "Application",
|
||||
"onAutoForward": "openPreview"
|
||||
}
|
||||
},
|
||||
|
||||
"forwardPorts": [3000],
|
||||
"forwardPorts": [4321],
|
||||
|
||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||
|
||||
|
|
|
@ -7,13 +7,13 @@
|
|||
"workspaceFolder": "/workspaces/astro/examples/with-vitest",
|
||||
|
||||
"portsAttributes": {
|
||||
"3000": {
|
||||
"4321": {
|
||||
"label": "Application",
|
||||
"onAutoForward": "openPreview"
|
||||
}
|
||||
},
|
||||
|
||||
"forwardPorts": [3000],
|
||||
"forwardPorts": [4321],
|
||||
|
||||
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
|
||||
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
packages/**/*.min.js
|
||||
packages/**/dist/**/*
|
||||
packages/**/fixtures/**/*
|
||||
packages/webapi/**/*
|
||||
packages/astro/vendor/vite/**/*
|
||||
examples/**/*
|
||||
scripts/**/*
|
||||
|
|
2
.github/ISSUE_TEMPLATE/---01-bug-report.yml
vendored
2
.github/ISSUE_TEMPLATE/---01-bug-report.yml
vendored
|
@ -10,7 +10,7 @@ body:
|
|||
Thank you for taking the time to file a bug report! Please fill out this form as completely as possible.
|
||||
|
||||
✅ I am using the **latest version of Astro** and all plugins.
|
||||
✅ I am using a version of Node that supports ESM (`v14.18.0+`, or `v16.12.0+`)
|
||||
✅ I am using a version of Node that Astro supports (`>=18.14.1`)
|
||||
- type: input
|
||||
id: astro-version
|
||||
attributes:
|
||||
|
|
2
.github/workflows/check.yml
vendored
2
.github/workflows/check.yml
vendored
|
@ -34,7 +34,7 @@ jobs:
|
|||
- name: Setup Node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
node-version: 18
|
||||
cache: "pnpm"
|
||||
|
||||
- name: Install dependencies
|
||||
|
|
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
|
@ -38,7 +38,7 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
OS: [ubuntu-latest, windows-latest]
|
||||
NODE_VERSION: [16]
|
||||
NODE_VERSION: [18]
|
||||
fail-fast: true
|
||||
steps:
|
||||
# Disable crlf so all OS can share the same Turbo cache
|
||||
|
@ -85,7 +85,7 @@ jobs:
|
|||
- name: Setup Node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
node-version: 18
|
||||
cache: "pnpm"
|
||||
|
||||
- name: Install dependencies
|
||||
|
@ -108,12 +108,12 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
OS: [ubuntu-latest]
|
||||
NODE_VERSION: [16, 18]
|
||||
NODE_VERSION: [18, 20]
|
||||
include:
|
||||
- os: macos-latest
|
||||
NODE_VERSION: 16
|
||||
NODE_VERSION: 18
|
||||
- os: windows-latest
|
||||
NODE_VERSION: 16
|
||||
NODE_VERSION: 18
|
||||
fail-fast: false
|
||||
env:
|
||||
NODE_VERSION: ${{ matrix.NODE_VERSION }}
|
||||
|
@ -155,7 +155,7 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
OS: [ubuntu-latest, windows-latest]
|
||||
NODE_VERSION: [16]
|
||||
NODE_VERSION: [18]
|
||||
fail-fast: false
|
||||
env:
|
||||
NODE_VERSION: ${{ matrix.NODE_VERSION }}
|
||||
|
@ -192,7 +192,7 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
OS: [ubuntu-latest, windows-latest]
|
||||
NODE_VERSION: [16]
|
||||
NODE_VERSION: [18]
|
||||
env:
|
||||
NODE_VERSION: ${{ matrix.NODE_VERSION }}
|
||||
steps:
|
||||
|
|
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
@ -38,7 +38,7 @@ jobs:
|
|||
- name: Setup Node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
node-version: 18
|
||||
cache: "pnpm"
|
||||
|
||||
- name: Install dependencies
|
||||
|
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
@ -30,7 +30,7 @@ jobs:
|
|||
- name: Setup Node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
node-version: 18
|
||||
cache: "pnpm"
|
||||
|
||||
- name: Install dependencies
|
||||
|
|
2
.github/workflows/scripts.yml
vendored
2
.github/workflows/scripts.yml
vendored
|
@ -37,7 +37,7 @@ jobs:
|
|||
- name: Setup Node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
node-version: 18
|
||||
cache: "pnpm"
|
||||
|
||||
- name: Install dependencies
|
||||
|
|
2
.github/workflows/snapshot-release.yml
vendored
2
.github/workflows/snapshot-release.yml
vendored
|
@ -58,7 +58,7 @@ jobs:
|
|||
- name: Setup Node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
node-version: 18
|
||||
registry-url: "https://registry.npmjs.org"
|
||||
cache: "pnpm"
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ vscode:
|
|||
- esbenp.prettier-vscode
|
||||
- dbaeumer.vscode-eslint
|
||||
ports:
|
||||
- port: 3000
|
||||
- port: 4321
|
||||
onOpen: open-preview
|
||||
github:
|
||||
prebuilds:
|
||||
|
|
2
.nvmrc
2
.nvmrc
|
@ -1 +1 @@
|
|||
16.19.0
|
||||
18.14.1
|
||||
|
|
|
@ -22,5 +22,4 @@ benchmark/results/
|
|||
.changeset
|
||||
|
||||
# Files
|
||||
packages/webapi/mod.d.ts
|
||||
pnpm-lock.yaml
|
||||
|
|
|
@ -6,7 +6,7 @@ module.exports = {
|
|||
tabWidth: 2,
|
||||
trailingComma: 'es5',
|
||||
useTabs: true,
|
||||
plugins: ['./node_modules/prettier-plugin-astro'],
|
||||
plugins: ['prettier-plugin-astro'],
|
||||
overrides: [
|
||||
{
|
||||
files: ['.*', '*.json', '*.md', '*.toml', '*.yml'],
|
||||
|
|
|
@ -10,7 +10,7 @@ We welcome contributions of any size and skill level. As an open source project,
|
|||
### Prerequisites
|
||||
|
||||
```shell
|
||||
node: "^>=16.12.0"
|
||||
node: "^>=18.14.1"
|
||||
pnpm: "^8.6.2"
|
||||
# otherwise, your build will fail
|
||||
```
|
||||
|
|
|
@ -62,7 +62,6 @@ Join us on [Discord](https://astro.build/chat) to meet other maintainers. We'll
|
|||
| [@astrojs/tailwind](packages/integrations/tailwind) | [![astro version](https://img.shields.io/npm/v/@astrojs/tailwind.svg?label=%20)](packages/integrations/tailwind/CHANGELOG.md) |
|
||||
| [@astrojs/turbolinks](packages/integrations/turbolinks) | [![astro version](https://img.shields.io/npm/v/@astrojs/turbolinks.svg?label=%20)](packages/integrations/turbolinks/CHANGELOG.md) |
|
||||
| [@astrojs/alpinejs](packages/integrations/alpinejs) | [![astro version](https://img.shields.io/npm/v/@astrojs/alpinejs.svg?label=%20)](packages/integrations/alpinejs/CHANGELOG.md) |
|
||||
| [@astrojs/image](packages/integrations/image) | [![astro version](https://img.shields.io/npm/v/@astrojs/image.svg?label=%20)](packages/integrations/image/CHANGELOG.md) |
|
||||
| [@astrojs/mdx](packages/integrations/mdx) | [![astro version](https://img.shields.io/npm/v/@astrojs/mdx.svg?label=%20)](packages/integrations/mdx/CHANGELOG.md) |
|
||||
| [@astrojs/prefetch](packages/integrations/prefetch) | [![astro version](https://img.shields.io/npm/v/@astrojs/prefetch.svg?label=%20)](packages/integrations/prefetch/CHANGELOG.md) |
|
||||
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
"dev": "astro-scripts dev \"src/**/*.ts\""
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/webapi": "workspace:*",
|
||||
"server-destroy": "^1.0.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
|
|
@ -1,11 +1,8 @@
|
|||
import { polyfill } from '@astrojs/webapi';
|
||||
import type { SSRManifest } from 'astro';
|
||||
import { NodeApp } from 'astro/app/node';
|
||||
import { NodeApp, applyPolyfills } from 'astro/app/node';
|
||||
import type { IncomingMessage, ServerResponse } from 'node:http';
|
||||
|
||||
polyfill(globalThis, {
|
||||
exclude: 'window document',
|
||||
});
|
||||
applyPolyfills();
|
||||
|
||||
export function createExports(manifest: SSRManifest) {
|
||||
const app = new NodeApp(manifest);
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
"include": ["src"],
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"module": "ES2020",
|
||||
"module": "ES2022",
|
||||
"outDir": "./dist",
|
||||
"target": "ES2020"
|
||||
"target": "ES2022"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@ All commands are run from the root of the project, from a terminal:
|
|||
| Command | Action |
|
||||
| :------------------------ | :----------------------------------------------- |
|
||||
| `npm install` | Installs dependencies |
|
||||
| `npm run dev` | Starts local dev server at `localhost:3000` |
|
||||
| `npm run dev` | Starts local dev server at `localhost:4321` |
|
||||
| `npm run build` | Build your production site to `./dist/` |
|
||||
| `npm run preview` | Preview your build locally, before deploying |
|
||||
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
|
||||
|
|
|
@ -11,6 +11,6 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^2.10.9"
|
||||
"astro": "^3.0.0-beta.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"view": "browser",
|
||||
"template": "node",
|
||||
"container": {
|
||||
"port": 3000,
|
||||
"port": 4321,
|
||||
"startScript": "start",
|
||||
"node": "14"
|
||||
}
|
||||
|
|
|
@ -53,7 +53,7 @@ All commands are run from the root of the project, from a terminal:
|
|||
| Command | Action |
|
||||
| :------------------------ | :----------------------------------------------- |
|
||||
| `npm install` | Installs dependencies |
|
||||
| `npm run dev` | Starts local dev server at `localhost:3000` |
|
||||
| `npm run dev` | Starts local dev server at `localhost:4321` |
|
||||
| `npm run build` | Build your production site to `./dist/` |
|
||||
| `npm run preview` | Preview your build locally, before deploying |
|
||||
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/mdx": "^0.19.7",
|
||||
"@astrojs/rss": "^2.4.4",
|
||||
"@astrojs/sitemap": "^2.0.2",
|
||||
"astro": "^2.10.9"
|
||||
"@astrojs/mdx": "^1.0.0-beta.0",
|
||||
"@astrojs/rss": "^3.0.0-beta.0",
|
||||
"@astrojs/sitemap": "^3.0.0-beta.0",
|
||||
"astro": "^3.0.0-beta.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"view": "browser",
|
||||
"template": "node",
|
||||
"container": {
|
||||
"port": 3000,
|
||||
"port": 4321,
|
||||
"startScript": "start",
|
||||
"node": "14"
|
||||
}
|
||||
|
|
|
@ -99,7 +99,7 @@ we can use 3 backticks ``` in new line and write snippet and close with 3 backti
|
|||
|
||||
````markdown
|
||||
```html
|
||||
<!DOCTYPE html>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
|
@ -115,7 +115,7 @@ we can use 3 backticks ``` in new line and write snippet and close with 3 backti
|
|||
Output
|
||||
|
||||
```html
|
||||
<!DOCTYPE html>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
import { CollectionEntry, getCollection } from 'astro:content';
|
||||
import { type CollectionEntry, getCollection } from 'astro:content';
|
||||
import BlogPost from '../../layouts/BlogPost.astro';
|
||||
|
||||
export async function getStaticPaths() {
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
],
|
||||
"scripts": {},
|
||||
"devDependencies": {
|
||||
"astro": "^2.10.9"
|
||||
"astro": "^3.0.0-beta.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"astro": "^2.0.0-beta.0"
|
||||
|
|
|
@ -42,7 +42,7 @@ All commands are run from the root of the project, from a terminal:
|
|||
| Command | Action |
|
||||
| :------------------------ | :----------------------------------------------- |
|
||||
| `npm install` | Installs dependencies |
|
||||
| `npm run dev` | Starts local dev server at `localhost:3000` |
|
||||
| `npm run dev` | Starts local dev server at `localhost:4321` |
|
||||
| `npm run build` | Build your production site to `./dist/` |
|
||||
| `npm run preview` | Preview your build locally, before deploying |
|
||||
| | (preview uses Deno CLI) |
|
||||
|
|
|
@ -10,9 +10,9 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^2.10.9"
|
||||
"astro": "^3.0.0-beta.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@astrojs/deno": "^4.3.0"
|
||||
"@astrojs/deno": "^5.0.0-beta.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"view": "browser",
|
||||
"template": "node",
|
||||
"container": {
|
||||
"port": 3000,
|
||||
"port": 4321,
|
||||
"startScript": "start",
|
||||
"node": "14"
|
||||
}
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue