Skip to content

Commit cf5d854

Browse files
[ci] release
1 parent d296098 commit cf5d854

File tree

58 files changed

+216
-147
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+216
-147
lines changed

.changeset/funny-waves-worry.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

.changeset/happy-chefs-ring.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/hip-scissors-live.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/light-moose-attend.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/small-ravens-cover.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

examples/basics/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
"astro": "astro"
1212
},
1313
"dependencies": {
14-
"astro": "^1.6.15"
14+
"astro": "^1.7.0"
1515
}
1616
}

examples/blog/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"astro": "astro"
1212
},
1313
"dependencies": {
14-
"astro": "^1.6.15",
14+
"astro": "^1.7.0",
1515
"@astrojs/mdx": "^0.12.2",
1616
"@astrojs/rss": "^1.2.1",
1717
"@astrojs/sitemap": "^1.0.0"

examples/component/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
],
1616
"scripts": {},
1717
"devDependencies": {
18-
"astro": "^1.6.15"
18+
"astro": "^1.7.0"
1919
},
2020
"peerDependencies": {
21-
"astro": "^1.6.15"
21+
"astro": "^1.7.0"
2222
}
2323
}

examples/deno/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
"astro": "astro"
1111
},
1212
"dependencies": {
13-
"astro": "^1.6.15"
13+
"astro": "^1.7.0"
1414
},
1515
"devDependencies": {
16-
"@astrojs/deno": "^2.0.1"
16+
"@astrojs/deno": "^3.0.0"
1717
}
1818
}

examples/docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"astro": "astro"
1313
},
1414
"dependencies": {
15-
"astro": "^1.6.15",
15+
"astro": "^1.7.0",
1616
"preact": "^10.7.3",
1717
"react": "^18.1.0",
1818
"react-dom": "^18.1.0",

examples/framework-alpine/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"astro": "astro"
1212
},
1313
"dependencies": {
14-
"astro": "^1.6.15",
14+
"astro": "^1.7.0",
1515
"alpinejs": "^3.10.2",
1616
"@astrojs/alpinejs": "^0.1.2",
1717
"@types/alpinejs": "^3.7.0"

examples/framework-lit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"astro": "astro"
1212
},
1313
"dependencies": {
14-
"astro": "^1.6.15",
14+
"astro": "^1.7.0",
1515
"lit": "^2.2.5",
1616
"@astrojs/lit": "^1.0.0",
1717
"@webcomponents/template-shadowroot": "^0.1.0"

examples/framework-multiple/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"astro": "astro"
1212
},
1313
"dependencies": {
14-
"astro": "^1.6.15",
14+
"astro": "^1.7.0",
1515
"preact": "^10.7.3",
1616
"react": "^18.1.0",
1717
"react-dom": "^18.1.0",

examples/framework-preact/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"astro": "astro"
1212
},
1313
"dependencies": {
14-
"astro": "^1.6.15",
14+
"astro": "^1.7.0",
1515
"preact": "^10.7.3",
1616
"@astrojs/preact": "^1.2.0",
1717
"@preact/signals": "^1.1.0"

examples/framework-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"astro": "astro"
1212
},
1313
"dependencies": {
14-
"astro": "^1.6.15",
14+
"astro": "^1.7.0",
1515
"react": "^18.1.0",
1616
"react-dom": "^18.1.0",
1717
"@astrojs/react": "^1.2.2",

examples/framework-solid/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"astro": "astro"
1212
},
1313
"dependencies": {
14-
"astro": "^1.6.15",
14+
"astro": "^1.7.0",
1515
"solid-js": "^1.4.3",
1616
"@astrojs/solid-js": "^1.2.3"
1717
}

examples/framework-svelte/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
"dependencies": {
1414
"svelte": "^3.48.0",
1515
"@astrojs/svelte": "^1.0.2",
16-
"astro": "^1.6.15"
16+
"astro": "^1.7.0"
1717
}
1818
}

examples/framework-vue/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"astro": "astro"
1212
},
1313
"dependencies": {
14-
"astro": "^1.6.15",
14+
"astro": "^1.7.0",
1515
"vue": "^3.2.37",
1616
"@astrojs/vue": "^1.2.2"
1717
}

examples/hackernews/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"astro": "astro"
1313
},
1414
"dependencies": {
15-
"@astrojs/node": "^3.1.1",
16-
"astro": "^1.6.15"
15+
"@astrojs/node": "^4.0.0",
16+
"astro": "^1.7.0"
1717
}
1818
}

examples/integration/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
],
1616
"scripts": {},
1717
"devDependencies": {
18-
"astro": "^1.6.15"
18+
"astro": "^1.7.0"
1919
},
2020
"peerDependencies": {
21-
"astro": "^1.6.15"
21+
"astro": "^1.7.0"
2222
}
2323
}

examples/minimal/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
"astro": "astro"
1212
},
1313
"dependencies": {
14-
"astro": "^1.6.15"
14+
"astro": "^1.7.0"
1515
}
1616
}

examples/non-html-pages/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
"astro": "astro"
1212
},
1313
"dependencies": {
14-
"astro": "^1.6.15"
14+
"astro": "^1.7.0"
1515
}
1616
}

examples/portfolio/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
"astro": "astro"
1212
},
1313
"dependencies": {
14-
"astro": "^1.6.15"
14+
"astro": "^1.7.0"
1515
}
1616
}

examples/ssr/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
"server": "node dist/server/entry.mjs"
1313
},
1414
"dependencies": {
15-
"astro": "^1.6.15",
15+
"astro": "^1.7.0",
1616
"svelte": "^3.48.0",
1717
"@astrojs/svelte": "^1.0.2",
18-
"@astrojs/node": "^3.1.1",
18+
"@astrojs/node": "^4.0.0",
1919
"concurrently": "^7.2.1",
2020
"unocss": "^0.15.6",
2121
"vite-imagetools": "^4.0.4"

examples/with-markdown-plugins/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"astro": "astro"
1212
},
1313
"dependencies": {
14-
"astro": "^1.6.15",
14+
"astro": "^1.7.0",
1515
"@astrojs/markdown-remark": "^1.1.3",
1616
"hast-util-select": "5.0.1",
1717
"rehype-autolink-headings": "^6.1.1",

examples/with-markdown-shiki/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
"astro": "astro"
1212
},
1313
"dependencies": {
14-
"astro": "^1.6.15"
14+
"astro": "^1.7.0"
1515
}
1616
}

examples/with-mdx/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"astro": "astro"
1212
},
1313
"dependencies": {
14-
"astro": "^1.6.15",
14+
"astro": "^1.7.0",
1515
"preact": "^10.6.5",
1616
"@astrojs/preact": "^1.2.0",
1717
"@astrojs/mdx": "^0.12.2"

examples/with-nanostores/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"astro": "astro"
1212
},
1313
"dependencies": {
14-
"astro": "^1.6.15",
14+
"astro": "^1.7.0",
1515
"preact": "^10.7.3",
1616
"@astrojs/preact": "^1.2.0",
1717
"nanostores": "^0.5.12",

examples/with-tailwindcss/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"@astrojs/mdx": "^0.12.2",
1515
"@astrojs/tailwind": "^2.1.3",
1616
"@types/canvas-confetti": "^1.4.3",
17-
"astro": "^1.6.15",
17+
"astro": "^1.7.0",
1818
"autoprefixer": "^10.4.7",
1919
"canvas-confetti": "^1.5.1",
2020
"postcss": "^8.4.14",

examples/with-vite-plugin-pwa/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"astro": "astro"
1212
},
1313
"dependencies": {
14-
"astro": "^1.6.15",
14+
"astro": "^1.7.0",
1515
"vite-plugin-pwa": "0.11.11",
1616
"workbox-window": "^6.5.3"
1717
}

examples/with-vitest/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"test": "vitest"
1313
},
1414
"dependencies": {
15-
"astro": "^1.6.15",
15+
"astro": "^1.7.0",
1616
"vitest": "^0.20.3"
1717
}
1818
}

packages/astro/CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
# astro
22

3+
## 1.7.0
4+
5+
### Minor Changes
6+
7+
- [#5297](https://github.com/withastro/astro/pull/5297) [`d2960984c`](https://github.com/withastro/astro/commit/d2960984c59af7b60a3ea472c6c58fb00534a8e6) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Introduces the **experimental** Prerender API.
8+
9+
> **Note**
10+
> This API is not yet stable and is subject to possible breaking changes!
11+
12+
- Deploy an Astro server without sacrificing the speed or cacheability of static HTML.
13+
- The Prerender API allows you to statically prerender specific `pages/` at build time.
14+
15+
**Usage**
16+
17+
- First, run `astro build --experimental-prerender` or enable `experimental: { prerender: true }` in your `astro.config.mjs` file.
18+
- Then, include `export const prerender = true` in any file in the `pages/` directory that you wish to prerender.
19+
20+
- [#5495](https://github.com/withastro/astro/pull/5495) [`31ec84797`](https://github.com/withastro/astro/commit/31ec8479721a1cd65538ec041458c5ffe8f50ee9) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Add a new error overlay designed by @doodlemarks! This new overlay should be much more informative, clearer, astro-y, and prettier than the previous one.
21+
22+
- [#5564](https://github.com/withastro/astro/pull/5564) [`dced4a8a2`](https://github.com/withastro/astro/commit/dced4a8a2657887ec569860d9862d20f695dc23a) Thanks [@riywo](https://github.com/riywo)! - Add `server.headers` option
23+
24+
- [#5341](https://github.com/withastro/astro/pull/5341) [`6b156dd3b`](https://github.com/withastro/astro/commit/6b156dd3b467884839a571c53114aadf26fa4b0b) Thanks [@alexpdraper](https://github.com/alexpdraper)! - Allow setting domain when deleting cookies
25+
326
## 1.6.15
427

528
### Patch Changes

packages/astro/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "astro",
3-
"version": "1.6.15",
3+
"version": "1.7.0",
44
"description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.",
55
"type": "module",
66
"author": "withastro",

packages/astro/src/@types/astro.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ export interface AstroUserConfig {
896896
astroFlavoredMarkdown?: boolean;
897897
};
898898

899-
/**
899+
/**
900900
* @docs
901901
* @kind heading
902902
* @name Experimental Flags
@@ -906,9 +906,9 @@ export interface AstroUserConfig {
906906
*/
907907
experimental?: {
908908
/**
909-
* @hidden
910-
* Turn on experimental support for the new error overlay component.
911-
*/
909+
* @hidden
910+
* Turn on experimental support for the new error overlay component.
911+
*/
912912
errorOverlay?: boolean;
913913
/**
914914
* @docs

packages/astro/src/core/build/common.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import npath from 'path';
2-
import { createHash } from 'crypto'
2+
import { createHash } from 'crypto';
33
import { fileURLToPath, pathToFileURL } from 'url';
44
import type { AstroConfig, RouteType } from '../../@types/astro';
55
import { appendForwardSlash } from '../../core/path.js';
@@ -46,7 +46,7 @@ export function getOutFile(
4646
astroConfig: AstroConfig,
4747
outFolder: URL,
4848
pathname: string,
49-
routeType: RouteType,
49+
routeType: RouteType
5050
): URL {
5151
switch (routeType) {
5252
case 'endpoint':

packages/astro/src/core/build/generate.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,12 @@ export async function generatePages(opts: StaticBuildOptions, internals: BuildIn
7979
const serverEntry = opts.buildConfig.serverEntry;
8080
const outFolder = ssr ? opts.buildConfig.server : getOutDirWithinCwd(opts.settings.config.outDir);
8181

82-
if (opts.settings.config.experimental.prerender && opts.settings.config.output === 'server' && !hasPrerenderedPages(internals)) return;
82+
if (
83+
opts.settings.config.experimental.prerender &&
84+
opts.settings.config.output === 'server' &&
85+
!hasPrerenderedPages(internals)
86+
)
87+
return;
8388

8489
const verb = ssr ? 'prerendering' : 'generating';
8590
info(opts.logging, null, `\n${bgGreen(black(` ${verb} static routes `))}`);

packages/astro/src/core/build/internal.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,10 @@ export function* eachPageData(internals: BuildInternals) {
205205
export function hasPrerenderedPages(internals: BuildInternals) {
206206
for (const id of internals.pagesByViteID.keys()) {
207207
if (internals.pageOptionsByPage.get(id)?.prerender) {
208-
return true
208+
return true;
209209
}
210210
}
211-
return false
211+
return false;
212212
}
213213

214214
export function* eachPrerenderedPageData(internals: BuildInternals) {

packages/astro/src/core/build/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import type { RouteCache } from '../render/route-cache';
1414

1515
export type ComponentPath = string;
1616
export type ViteID = string;
17-
export type PageOutput = AstroConfig['output']
17+
export type PageOutput = AstroConfig['output'];
1818

1919
export interface PageBuildData {
2020
component: ComponentPath;

0 commit comments

Comments
 (0)