Skip to content

Commit

Permalink
[ci] release (beta)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Aug 21, 2023
1 parent 767eb68 commit 92635b1
Show file tree
Hide file tree
Showing 45 changed files with 124 additions and 73 deletions.
2 changes: 2 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"chilled-ducks-grin",
"clever-bats-breathe",
"cool-feet-rest",
"cool-jokes-clap",
"cyan-carrots-stare",
"dirty-lies-cover",
"eleven-wasps-teach",
Expand Down Expand Up @@ -91,6 +92,7 @@
"wild-bobcats-carry",
"wise-cameras-agree",
"yellow-snakes-jam",
"yellow-tips-cover",
"young-roses-teach"
]
}
2 changes: 1 addition & 1 deletion examples/basics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^3.0.0-beta.4"
"astro": "^3.0.0-beta.5"
}
}
2 changes: 1 addition & 1 deletion examples/blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"@astrojs/mdx": "^1.0.0-beta.1",
"@astrojs/rss": "^3.0.0-beta.0",
"@astrojs/sitemap": "^3.0.0-beta.0",
"astro": "^3.0.0-beta.4"
"astro": "^3.0.0-beta.5"
}
}
2 changes: 1 addition & 1 deletion examples/component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
"astro": "^3.0.0-beta.4"
"astro": "^3.0.0-beta.5"
},
"peerDependencies": {
"astro": "^2.0.0-beta.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/deno/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"astro": "astro"
},
"dependencies": {
"astro": "^3.0.0-beta.4"
"astro": "^3.0.0-beta.5"
},
"devDependencies": {
"@astrojs/deno": "^5.0.0-beta.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/framework-alpine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"@astrojs/alpinejs": "^0.3.0-beta.0",
"@types/alpinejs": "^3.7.1",
"alpinejs": "^3.12.2",
"astro": "^3.0.0-beta.4"
"astro": "^3.0.0-beta.5"
}
}
2 changes: 1 addition & 1 deletion examples/framework-lit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/lit": "^3.0.0-beta.0",
"@webcomponents/template-shadowroot": "^0.2.1",
"astro": "^3.0.0-beta.4",
"astro": "^3.0.0-beta.5",
"lit": "^2.7.5"
}
}
2 changes: 1 addition & 1 deletion examples/framework-multiple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@astrojs/solid-js": "^3.0.0-beta.2",
"@astrojs/svelte": "^4.0.0-beta.1",
"@astrojs/vue": "^3.0.0-beta.0",
"astro": "^3.0.0-beta.4",
"astro": "^3.0.0-beta.5",
"preact": "^10.15.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/framework-preact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/preact": "^3.0.0-beta.1",
"@preact/signals": "^1.1.3",
"astro": "^3.0.0-beta.4",
"astro": "^3.0.0-beta.5",
"preact": "^10.15.1"
}
}
2 changes: 1 addition & 1 deletion examples/framework-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@astrojs/react": "^3.0.0-beta.3",
"@types/react": "^18.2.13",
"@types/react-dom": "^18.2.6",
"astro": "^3.0.0-beta.4",
"astro": "^3.0.0-beta.5",
"react": "^18.2.0",
"react-dom": "^18.2.0"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/framework-solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/solid-js": "^3.0.0-beta.2",
"astro": "^3.0.0-beta.4",
"astro": "^3.0.0-beta.5",
"solid-js": "^1.7.6"
}
}
2 changes: 1 addition & 1 deletion examples/framework-svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/svelte": "^4.0.0-beta.1",
"astro": "^3.0.0-beta.4",
"astro": "^3.0.0-beta.5",
"svelte": "^3.59.1"
}
}
2 changes: 1 addition & 1 deletion examples/framework-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/vue": "^3.0.0-beta.0",
"astro": "^3.0.0-beta.4",
"astro": "^3.0.0-beta.5",
"vue": "^3.3.4"
}
}
2 changes: 1 addition & 1 deletion examples/hackernews/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
},
"dependencies": {
"@astrojs/node": "^6.0.0-beta.0",
"astro": "^3.0.0-beta.4"
"astro": "^3.0.0-beta.5"
}
}
2 changes: 1 addition & 1 deletion examples/integration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
"astro": "^3.0.0-beta.4"
"astro": "^3.0.0-beta.5"
},
"peerDependencies": {
"astro": "^2.0.0-beta.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/middleware/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"dependencies": {
"@astrojs/node": "^6.0.0-beta.0",
"astro": "^3.0.0-beta.4",
"astro": "^3.0.0-beta.5",
"html-minifier": "^4.0.0"
}
}
2 changes: 1 addition & 1 deletion examples/minimal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^3.0.0-beta.4"
"astro": "^3.0.0-beta.5"
}
}
2 changes: 1 addition & 1 deletion examples/non-html-pages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^3.0.0-beta.4"
"astro": "^3.0.0-beta.5"
}
}
2 changes: 1 addition & 1 deletion examples/portfolio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^3.0.0-beta.4"
"astro": "^3.0.0-beta.5"
}
}
2 changes: 1 addition & 1 deletion examples/ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"dependencies": {
"@astrojs/node": "^6.0.0-beta.0",
"@astrojs/svelte": "^4.0.0-beta.1",
"astro": "^3.0.0-beta.4",
"astro": "^3.0.0-beta.5",
"svelte": "^3.59.1"
}
}
2 changes: 1 addition & 1 deletion examples/with-markdoc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
},
"dependencies": {
"@astrojs/markdoc": "^1.0.0-beta.1",
"astro": "^3.0.0-beta.4"
"astro": "^3.0.0-beta.5"
}
}
2 changes: 1 addition & 1 deletion examples/with-markdown-plugins/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/markdown-remark": "^3.0.0-beta.0",
"astro": "^3.0.0-beta.4",
"astro": "^3.0.0-beta.5",
"hast-util-select": "^5.0.5",
"rehype-autolink-headings": "^6.1.1",
"rehype-slug": "^5.1.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-markdown-shiki/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^3.0.0-beta.4"
"astro": "^3.0.0-beta.5"
}
}
2 changes: 1 addition & 1 deletion examples/with-mdx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/mdx": "^1.0.0-beta.1",
"@astrojs/preact": "^3.0.0-beta.1",
"astro": "^3.0.0-beta.4",
"astro": "^3.0.0-beta.5",
"preact": "^10.15.1"
}
}
2 changes: 1 addition & 1 deletion examples/with-nanostores/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/preact": "^3.0.0-beta.1",
"@nanostores/preact": "^0.4.1",
"astro": "^3.0.0-beta.4",
"astro": "^3.0.0-beta.5",
"nanostores": "^0.8.1",
"preact": "^10.15.1"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/with-tailwindcss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@astrojs/mdx": "^1.0.0-beta.1",
"@astrojs/tailwind": "^5.0.0-beta.0",
"@types/canvas-confetti": "^1.6.0",
"astro": "^3.0.0-beta.4",
"astro": "^3.0.0-beta.5",
"autoprefixer": "^10.4.14",
"canvas-confetti": "^1.6.0",
"postcss": "^8.4.24",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-vite-plugin-pwa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"astro": "astro"
},
"dependencies": {
"astro": "^3.0.0-beta.4",
"astro": "^3.0.0-beta.5",
"vite-plugin-pwa": "0.14.7",
"workbox-window": "^6.6.0"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/with-vitest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"test": "vitest"
},
"dependencies": {
"astro": "^3.0.0-beta.4",
"astro": "^3.0.0-beta.5",
"vitest": "^0.31.4"
}
}
37 changes: 37 additions & 0 deletions packages/astro/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,42 @@
# astro

## 3.0.0-beta.5

### Major Changes

- [#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

- 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).
- 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.
- `class:list` used to deduplicate matching values, but it no longer does
- `class:list` used to sort individual values, but it no longer does
- `class:list` used to support `Set` and other iterables, but it no longer does

### Patch Changes

- [#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`.

To return a result with a custom encoding not supported by a `Response`, you can use the `ResponseWithEncoding` utility class instead.

Before:

```ts
export function GET() {
return {
body: '...',
encoding: 'binary',
};
}
```

After:

```ts
export function GET({ ResponseWithEncoding }) {
return new ResponseWithEncoding('...', undefined, 'binary');
}
```

## 3.0.0-beta.4

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/astro/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "astro",
"version": "3.0.0-beta.4",
"version": "3.0.0-beta.5",
"description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.",
"type": "module",
"author": "withastro",
Expand Down
2 changes: 1 addition & 1 deletion packages/astro/src/core/app/ssrPipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ export class SSRRoutePipeline extends Pipeline {
if (response.headers.get('X-Astro-Response') === 'Not-Found') {
throw new EndpointNotFoundError(response);
}
return response
return response;
}
}
4 changes: 2 additions & 2 deletions packages/astro/src/runtime/server/render/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -481,9 +481,9 @@ function normalizeProps(props: Record<string, any>): Record<string, any> {
if (props['class:list'] !== undefined) {
const value = props['class:list'];
delete props['class:list'];
props['class'] = clsx(props['class'], value)
props['class'] = clsx(props['class'], value);
if (props['class'] === '') {
delete props['class']
delete props['class'];
}
}
return props;
Expand Down
14 changes: 11 additions & 3 deletions packages/astro/test/astro-class-list.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ describe('Class List', async () => {
expect($('[class="test true"]')).to.have.lengthOf(1, '[class="test true"]');
expect($('[class="test truthy"]')).to.have.lengthOf(1, '[class="test truthy"]');
expect($('[class="test set"]')).to.have.lengthOf(1, '[class="test set"]');
expect($('[class="hello goodbye hello world hello friend"]')).to.have.lengthOf(1, '[class="hello goodbye hello world hello friend"]');
expect($('[class="hello goodbye hello world hello friend"]')).to.have.lengthOf(
1,
'[class="hello goodbye hello world hello friend"]'
);
expect($('[class="foo baz"]')).to.have.lengthOf(1, '[class="foo baz"]');
expect($('span:not([class])')).to.have.lengthOf(1, 'span:not([class])');

Expand All @@ -35,7 +38,10 @@ describe('Class List', async () => {
expect($('[class="test true"]')).to.have.lengthOf(1, '[class="test true"]');
expect($('[class="test truthy"]')).to.have.lengthOf(1, '[class="test truthy"]');
expect($('[class="test set"]')).to.have.lengthOf(1, '[class="test set"]');
expect($('[class="hello goodbye hello world hello friend"]')).to.have.lengthOf(1, '[class="hello goodbye hello world hello friend"]');
expect($('[class="hello goodbye hello world hello friend"]')).to.have.lengthOf(
1,
'[class="hello goodbye hello world hello friend"]'
);
expect($('[class="foo baz"]')).to.have.lengthOf(1, '[class="foo baz"]');
expect($('span:not([class])')).to.have.lengthOf(1, 'span:not([class])');

Expand All @@ -44,7 +50,9 @@ describe('Class List', async () => {
expect($('[class="test true"]').text()).to.equal('test true');
expect($('[class="test truthy"]').text()).to.equal('test truthy');
expect($('[class="test set"]').text()).to.equal('test set');
expect($('[class="hello goodbye hello world hello friend"]').text()).to.equal('hello goodbye hello world hello friend');
expect($('[class="hello goodbye hello world hello friend"]').text()).to.equal(
'hello goodbye hello world hello friend'
);
expect($('[class="foo baz"]').text()).to.equal('foo baz');
expect($('span:not([class])').text()).to.equal('');
});
Expand Down
4 changes: 2 additions & 2 deletions packages/astro/test/units/render/components.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,14 @@ describe('core/render components', () => {
const html = await text();
const $ = cheerio.load(html);

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

const Class = check('#class');
const ClassList = check('#class-list');
const BothLiteral = check('#both-literal');
const BothFlipped = check('#both-flipped');
const BothSpread = check('#both-spread');

expect(Class).to.deep.equal({ class: 'red blue' }, '#class');
expect(ClassList).to.deep.equal({ class: 'red blue' }, '#class-list');
expect(BothLiteral).to.deep.equal({ class: 'red blue' }, '#both-literal');
Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/cloudflare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"tiny-glob": "^0.2.9"
},
"peerDependencies": {
"astro": "workspace:^3.0.0-beta.4"
"astro": "workspace:^3.0.0-beta.5"
},
"devDependencies": {
"astro": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/deno/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"esbuild": "^0.15.18"
},
"peerDependencies": {
"astro": "workspace:^3.0.0-beta.4"
"astro": "workspace:^3.0.0-beta.5"
},
"devDependencies": {
"astro": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/markdoc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"zod": "^3.17.3"
},
"peerDependencies": {
"astro": "workspace:^3.0.0-beta.4"
"astro": "workspace:^3.0.0-beta.5"
},
"devDependencies": {
"@astrojs/markdown-remark": "workspace:*",
Expand Down
Loading

0 comments on commit 92635b1

Please sign in to comment.