Skip to content

Commit 92635b1

Browse files
[ci] release (beta)
1 parent 767eb68 commit 92635b1

File tree

45 files changed

+124
-73
lines changed

Some content is hidden

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

45 files changed

+124
-73
lines changed

.changeset/pre.json

+2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"chilled-ducks-grin",
4040
"clever-bats-breathe",
4141
"cool-feet-rest",
42+
"cool-jokes-clap",
4243
"cyan-carrots-stare",
4344
"dirty-lies-cover",
4445
"eleven-wasps-teach",
@@ -91,6 +92,7 @@
9192
"wild-bobcats-carry",
9293
"wise-cameras-agree",
9394
"yellow-snakes-jam",
95+
"yellow-tips-cover",
9496
"young-roses-teach"
9597
]
9698
}

examples/basics/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
"astro": "astro"
1212
},
1313
"dependencies": {
14-
"astro": "^3.0.0-beta.4"
14+
"astro": "^3.0.0-beta.5"
1515
}
1616
}

examples/blog/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
"@astrojs/mdx": "^1.0.0-beta.1",
1515
"@astrojs/rss": "^3.0.0-beta.0",
1616
"@astrojs/sitemap": "^3.0.0-beta.0",
17-
"astro": "^3.0.0-beta.4"
17+
"astro": "^3.0.0-beta.5"
1818
}
1919
}

examples/component/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
],
1616
"scripts": {},
1717
"devDependencies": {
18-
"astro": "^3.0.0-beta.4"
18+
"astro": "^3.0.0-beta.5"
1919
},
2020
"peerDependencies": {
2121
"astro": "^2.0.0-beta.0"

examples/deno/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"astro": "astro"
1111
},
1212
"dependencies": {
13-
"astro": "^3.0.0-beta.4"
13+
"astro": "^3.0.0-beta.5"
1414
},
1515
"devDependencies": {
1616
"@astrojs/deno": "^5.0.0-beta.0"

examples/framework-alpine/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
"@astrojs/alpinejs": "^0.3.0-beta.0",
1515
"@types/alpinejs": "^3.7.1",
1616
"alpinejs": "^3.12.2",
17-
"astro": "^3.0.0-beta.4"
17+
"astro": "^3.0.0-beta.5"
1818
}
1919
}

examples/framework-lit/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"dependencies": {
1414
"@astrojs/lit": "^3.0.0-beta.0",
1515
"@webcomponents/template-shadowroot": "^0.2.1",
16-
"astro": "^3.0.0-beta.4",
16+
"astro": "^3.0.0-beta.5",
1717
"lit": "^2.7.5"
1818
}
1919
}

examples/framework-multiple/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@astrojs/solid-js": "^3.0.0-beta.2",
1717
"@astrojs/svelte": "^4.0.0-beta.1",
1818
"@astrojs/vue": "^3.0.0-beta.0",
19-
"astro": "^3.0.0-beta.4",
19+
"astro": "^3.0.0-beta.5",
2020
"preact": "^10.15.1",
2121
"react": "^18.2.0",
2222
"react-dom": "^18.2.0",

examples/framework-preact/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"dependencies": {
1414
"@astrojs/preact": "^3.0.0-beta.1",
1515
"@preact/signals": "^1.1.3",
16-
"astro": "^3.0.0-beta.4",
16+
"astro": "^3.0.0-beta.5",
1717
"preact": "^10.15.1"
1818
}
1919
}

examples/framework-react/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"@astrojs/react": "^3.0.0-beta.3",
1515
"@types/react": "^18.2.13",
1616
"@types/react-dom": "^18.2.6",
17-
"astro": "^3.0.0-beta.4",
17+
"astro": "^3.0.0-beta.5",
1818
"react": "^18.2.0",
1919
"react-dom": "^18.2.0"
2020
}

examples/framework-solid/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"dependencies": {
1414
"@astrojs/solid-js": "^3.0.0-beta.2",
15-
"astro": "^3.0.0-beta.4",
15+
"astro": "^3.0.0-beta.5",
1616
"solid-js": "^1.7.6"
1717
}
1818
}

examples/framework-svelte/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"dependencies": {
1414
"@astrojs/svelte": "^4.0.0-beta.1",
15-
"astro": "^3.0.0-beta.4",
15+
"astro": "^3.0.0-beta.5",
1616
"svelte": "^3.59.1"
1717
}
1818
}

examples/framework-vue/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"dependencies": {
1414
"@astrojs/vue": "^3.0.0-beta.0",
15-
"astro": "^3.0.0-beta.4",
15+
"astro": "^3.0.0-beta.5",
1616
"vue": "^3.3.4"
1717
}
1818
}

examples/hackernews/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
},
1313
"dependencies": {
1414
"@astrojs/node": "^6.0.0-beta.0",
15-
"astro": "^3.0.0-beta.4"
15+
"astro": "^3.0.0-beta.5"
1616
}
1717
}

examples/integration/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
],
1616
"scripts": {},
1717
"devDependencies": {
18-
"astro": "^3.0.0-beta.4"
18+
"astro": "^3.0.0-beta.5"
1919
},
2020
"peerDependencies": {
2121
"astro": "^2.0.0-beta.0"

examples/middleware/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"dependencies": {
1515
"@astrojs/node": "^6.0.0-beta.0",
16-
"astro": "^3.0.0-beta.4",
16+
"astro": "^3.0.0-beta.5",
1717
"html-minifier": "^4.0.0"
1818
}
1919
}

examples/minimal/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
"astro": "astro"
1212
},
1313
"dependencies": {
14-
"astro": "^3.0.0-beta.4"
14+
"astro": "^3.0.0-beta.5"
1515
}
1616
}

examples/non-html-pages/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
"astro": "astro"
1212
},
1313
"dependencies": {
14-
"astro": "^3.0.0-beta.4"
14+
"astro": "^3.0.0-beta.5"
1515
}
1616
}

examples/portfolio/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
"astro": "astro"
1212
},
1313
"dependencies": {
14-
"astro": "^3.0.0-beta.4"
14+
"astro": "^3.0.0-beta.5"
1515
}
1616
}

examples/ssr/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"dependencies": {
1515
"@astrojs/node": "^6.0.0-beta.0",
1616
"@astrojs/svelte": "^4.0.0-beta.1",
17-
"astro": "^3.0.0-beta.4",
17+
"astro": "^3.0.0-beta.5",
1818
"svelte": "^3.59.1"
1919
}
2020
}

examples/with-markdoc/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
},
1313
"dependencies": {
1414
"@astrojs/markdoc": "^1.0.0-beta.1",
15-
"astro": "^3.0.0-beta.4"
15+
"astro": "^3.0.0-beta.5"
1616
}
1717
}

examples/with-markdown-plugins/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"dependencies": {
1414
"@astrojs/markdown-remark": "^3.0.0-beta.0",
15-
"astro": "^3.0.0-beta.4",
15+
"astro": "^3.0.0-beta.5",
1616
"hast-util-select": "^5.0.5",
1717
"rehype-autolink-headings": "^6.1.1",
1818
"rehype-slug": "^5.1.0",

examples/with-markdown-shiki/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
"astro": "astro"
1212
},
1313
"dependencies": {
14-
"astro": "^3.0.0-beta.4"
14+
"astro": "^3.0.0-beta.5"
1515
}
1616
}

examples/with-mdx/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"dependencies": {
1414
"@astrojs/mdx": "^1.0.0-beta.1",
1515
"@astrojs/preact": "^3.0.0-beta.1",
16-
"astro": "^3.0.0-beta.4",
16+
"astro": "^3.0.0-beta.5",
1717
"preact": "^10.15.1"
1818
}
1919
}

examples/with-nanostores/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"dependencies": {
1414
"@astrojs/preact": "^3.0.0-beta.1",
1515
"@nanostores/preact": "^0.4.1",
16-
"astro": "^3.0.0-beta.4",
16+
"astro": "^3.0.0-beta.5",
1717
"nanostores": "^0.8.1",
1818
"preact": "^10.15.1"
1919
}

examples/with-tailwindcss/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"@astrojs/mdx": "^1.0.0-beta.1",
1515
"@astrojs/tailwind": "^5.0.0-beta.0",
1616
"@types/canvas-confetti": "^1.6.0",
17-
"astro": "^3.0.0-beta.4",
17+
"astro": "^3.0.0-beta.5",
1818
"autoprefixer": "^10.4.14",
1919
"canvas-confetti": "^1.6.0",
2020
"postcss": "^8.4.24",

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"astro": "astro"
1212
},
1313
"dependencies": {
14-
"astro": "^3.0.0-beta.4",
14+
"astro": "^3.0.0-beta.5",
1515
"vite-plugin-pwa": "0.14.7",
1616
"workbox-window": "^6.6.0"
1717
}

examples/with-vitest/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"test": "vitest"
1313
},
1414
"dependencies": {
15-
"astro": "^3.0.0-beta.4",
15+
"astro": "^3.0.0-beta.5",
1616
"vitest": "^0.31.4"
1717
}
1818
}

packages/astro/CHANGELOG.md

+37
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,42 @@
11
# astro
22

3+
## 3.0.0-beta.5
4+
5+
### Major Changes
6+
7+
- [#8142](https://github.com/withastro/astro/pull/8142) [`81545197a`](https://github.com/withastro/astro/commit/81545197a32fd015d763fc386c8b67e0e08b7393) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Fixes for the `class:list` directive
8+
9+
- Previously, `class:list` would ocassionally not be merged the `class` prop when passed to Astro components. Now, `class:list` is always converted to a `class` prop (as a string value).
10+
- Previously, `class:list` diverged from [`clsx`](https://github.com/lukeed/clsx) in a few edge cases. Now, `class:list` uses [`clsx`](https://github.com/lukeed/clsx) directly.
11+
- `class:list` used to deduplicate matching values, but it no longer does
12+
- `class:list` used to sort individual values, but it no longer does
13+
- `class:list` used to support `Set` and other iterables, but it no longer does
14+
15+
### Patch Changes
16+
17+
- [#8132](https://github.com/withastro/astro/pull/8132) [`767eb6866`](https://github.com/withastro/astro/commit/767eb68666eb777965baa0d6ade20bbafecf95bf) Thanks [@bluwy](https://github.com/bluwy)! - Deprecate returning simple objects from endpoints. Endpoints should only return a `Response`.
18+
19+
To return a result with a custom encoding not supported by a `Response`, you can use the `ResponseWithEncoding` utility class instead.
20+
21+
Before:
22+
23+
```ts
24+
export function GET() {
25+
return {
26+
body: '...',
27+
encoding: 'binary',
28+
};
29+
}
30+
```
31+
32+
After:
33+
34+
```ts
35+
export function GET({ ResponseWithEncoding }) {
36+
return new ResponseWithEncoding('...', undefined, 'binary');
37+
}
38+
```
39+
340
## 3.0.0-beta.4
441

542
### Patch Changes

packages/astro/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "astro",
3-
"version": "3.0.0-beta.4",
3+
"version": "3.0.0-beta.5",
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/core/app/ssrPipeline.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ export class SSRRoutePipeline extends Pipeline {
2323
if (response.headers.get('X-Astro-Response') === 'Not-Found') {
2424
throw new EndpointNotFoundError(response);
2525
}
26-
return response
26+
return response;
2727
}
2828
}

packages/astro/src/runtime/server/render/component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -481,9 +481,9 @@ function normalizeProps(props: Record<string, any>): Record<string, any> {
481481
if (props['class:list'] !== undefined) {
482482
const value = props['class:list'];
483483
delete props['class:list'];
484-
props['class'] = clsx(props['class'], value)
484+
props['class'] = clsx(props['class'], value);
485485
if (props['class'] === '') {
486-
delete props['class']
486+
delete props['class'];
487487
}
488488
}
489489
return props;

packages/astro/test/astro-class-list.test.js

+11-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ describe('Class List', async () => {
1919
expect($('[class="test true"]')).to.have.lengthOf(1, '[class="test true"]');
2020
expect($('[class="test truthy"]')).to.have.lengthOf(1, '[class="test truthy"]');
2121
expect($('[class="test set"]')).to.have.lengthOf(1, '[class="test set"]');
22-
expect($('[class="hello goodbye hello world hello friend"]')).to.have.lengthOf(1, '[class="hello goodbye hello world hello friend"]');
22+
expect($('[class="hello goodbye hello world hello friend"]')).to.have.lengthOf(
23+
1,
24+
'[class="hello goodbye hello world hello friend"]'
25+
);
2326
expect($('[class="foo baz"]')).to.have.lengthOf(1, '[class="foo baz"]');
2427
expect($('span:not([class])')).to.have.lengthOf(1, 'span:not([class])');
2528

@@ -35,7 +38,10 @@ describe('Class List', async () => {
3538
expect($('[class="test true"]')).to.have.lengthOf(1, '[class="test true"]');
3639
expect($('[class="test truthy"]')).to.have.lengthOf(1, '[class="test truthy"]');
3740
expect($('[class="test set"]')).to.have.lengthOf(1, '[class="test set"]');
38-
expect($('[class="hello goodbye hello world hello friend"]')).to.have.lengthOf(1, '[class="hello goodbye hello world hello friend"]');
41+
expect($('[class="hello goodbye hello world hello friend"]')).to.have.lengthOf(
42+
1,
43+
'[class="hello goodbye hello world hello friend"]'
44+
);
3945
expect($('[class="foo baz"]')).to.have.lengthOf(1, '[class="foo baz"]');
4046
expect($('span:not([class])')).to.have.lengthOf(1, 'span:not([class])');
4147

@@ -44,7 +50,9 @@ describe('Class List', async () => {
4450
expect($('[class="test true"]').text()).to.equal('test true');
4551
expect($('[class="test truthy"]').text()).to.equal('test truthy');
4652
expect($('[class="test set"]').text()).to.equal('test set');
47-
expect($('[class="hello goodbye hello world hello friend"]').text()).to.equal('hello goodbye hello world hello friend');
53+
expect($('[class="hello goodbye hello world hello friend"]').text()).to.equal(
54+
'hello goodbye hello world hello friend'
55+
);
4856
expect($('[class="foo baz"]').text()).to.equal('foo baz');
4957
expect($('span:not([class])').text()).to.equal('');
5058
});

packages/astro/test/units/render/components.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,14 @@ describe('core/render components', () => {
102102
const html = await text();
103103
const $ = cheerio.load(html);
104104

105-
const check = (name) => JSON.parse($(name).text() || '{}')
105+
const check = (name) => JSON.parse($(name).text() || '{}');
106106

107107
const Class = check('#class');
108108
const ClassList = check('#class-list');
109109
const BothLiteral = check('#both-literal');
110110
const BothFlipped = check('#both-flipped');
111111
const BothSpread = check('#both-spread');
112-
112+
113113
expect(Class).to.deep.equal({ class: 'red blue' }, '#class');
114114
expect(ClassList).to.deep.equal({ class: 'red blue' }, '#class-list');
115115
expect(BothLiteral).to.deep.equal({ class: 'red blue' }, '#both-literal');

packages/integrations/cloudflare/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"tiny-glob": "^0.2.9"
4646
},
4747
"peerDependencies": {
48-
"astro": "workspace:^3.0.0-beta.4"
48+
"astro": "workspace:^3.0.0-beta.5"
4949
},
5050
"devDependencies": {
5151
"astro": "workspace:*",

packages/integrations/deno/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"esbuild": "^0.15.18"
3737
},
3838
"peerDependencies": {
39-
"astro": "workspace:^3.0.0-beta.4"
39+
"astro": "workspace:^3.0.0-beta.5"
4040
},
4141
"devDependencies": {
4242
"astro": "workspace:*",

packages/integrations/markdoc/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"zod": "^3.17.3"
7676
},
7777
"peerDependencies": {
78-
"astro": "workspace:^3.0.0-beta.4"
78+
"astro": "workspace:^3.0.0-beta.5"
7979
},
8080
"devDependencies": {
8181
"@astrojs/markdown-remark": "workspace:*",

0 commit comments

Comments
 (0)