Skip to content

Commit

Permalink
[ci] release
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed May 17, 2023
1 parent 763ff2d commit 78fe595
Show file tree
Hide file tree
Showing 67 changed files with 588 additions and 245 deletions.
5 changes: 0 additions & 5 deletions .changeset/brown-goats-serve.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/eleven-hotels-roll.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fifty-guests-remember.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fresh-baboons-switch.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/long-starfishes-raise.md

This file was deleted.

39 changes: 0 additions & 39 deletions .changeset/mighty-shoes-scream.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pretty-planets-wink.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/pretty-students-try.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/quiet-gifts-pay.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/rich-crews-fry.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/silver-ties-vanish.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/swift-moons-drop.md

This file was deleted.

51 changes: 0 additions & 51 deletions .changeset/tall-eyes-vanish.md

This file was deleted.

17 changes: 0 additions & 17 deletions .changeset/tiny-snails-dance.md

This file was deleted.

26 changes: 0 additions & 26 deletions .changeset/young-impalas-boil.md

This file was deleted.

6 changes: 6 additions & 0 deletions packages/astro-prism/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @astrojs/prism

## 2.1.2

### Patch Changes

- [#7104](https://github.com/withastro/astro/pull/7104) [`826e02890`](https://github.com/withastro/astro/commit/826e0289005f645b902375b98d5549c6a95ccafa) Thanks [@bluwy](https://github.com/bluwy)! - Specify `"files"` field to only publish necessary files

## 2.1.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/astro-prism/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@astrojs/prism",
"version": "2.1.1",
"version": "2.1.2",
"description": "Add Prism syntax highlighting support to your Astro site",
"author": "withastro",
"type": "module",
Expand Down
8 changes: 8 additions & 0 deletions packages/astro-rss/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @astrojs/rss

## 2.4.2

### Patch Changes

- [#7066](https://github.com/withastro/astro/pull/7066) [`a37e67b52`](https://github.com/withastro/astro/commit/a37e67b520dc35dbf40313c77490a97446de2f74) Thanks [@TheOtterlord](https://github.com/TheOtterlord)! - Fix pubDate schema tranformation

- [#7104](https://github.com/withastro/astro/pull/7104) [`826e02890`](https://github.com/withastro/astro/commit/826e0289005f645b902375b98d5549c6a95ccafa) Thanks [@bluwy](https://github.com/bluwy)! - Specify `"files"` field to only publish necessary files

## 2.4.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/astro-rss/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@astrojs/rss",
"description": "Add RSS feeds to your Astro projects",
"version": "2.4.1",
"version": "2.4.2",
"type": "module",
"types": "./dist/index.d.ts",
"author": "withastro",
Expand Down
119 changes: 119 additions & 0 deletions packages/astro/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,124 @@
# astro

## 2.5.0

### Minor Changes

- [#6991](https://github.com/withastro/astro/pull/6991) [`719002ca5`](https://github.com/withastro/astro/commit/719002ca5b128744fb4316d4a52c5dcd46a42759) Thanks [@MoustaphaDev](https://github.com/MoustaphaDev)! - Enable experimental support for hybrid SSR with pre-rendering enabled by default

**astro.config.mjs**

```js
import { defineConfig } from 'astro/config';
export defaultdefineConfig({
output: 'hybrid',
experimental: {
hybridOutput: true,
},
})
```

Then add `export const prerender = false` to any page or endpoint you want to opt-out of pre-rendering.

**src/pages/contact.astro**

```astro
---
export const prerender = false;
if (Astro.request.method === 'POST') {
// handle form submission
}
---
<form method="POST">
<input type="text" name="name" />
<input type="email" name="email" />
<button type="submit">Submit</button>
</form>
```

- [#7074](https://github.com/withastro/astro/pull/7074) [`73ec6f6c1`](https://github.com/withastro/astro/commit/73ec6f6c16cadb71dafe9f664f0debde072c3173) Thanks [@bluwy](https://github.com/bluwy)! - Integrations can add new `client:` directives through the `astro:config:setup` hook's `addClientDirective()` API. To enable this API, the user needs to set `experimental.customClientDirectives` to `true` in their config.

```js
import { defineConfig } from 'astro/config';
import onClickDirective from 'astro-click-directive';

export default defineConfig({
integrations: [onClickDirective()],
experimental: {
customClientDirectives: true,
},
});
```

```js
export default function onClickDirective() {
return {
hooks: {
'astro:config:setup': ({ addClientDirective }) => {
addClientDirective({
name: 'click',
entrypoint: 'astro-click-directive/click.js',
});
},
},
};
}
```

```astro
<Counter client:click />
```

The client directive file (e.g. `astro-click-directive/click.js`) should export a function of type `ClientDirective`:

```ts
import type { ClientDirective } from 'astro';

const clickDirective: ClientDirective = (load, opts, el) => {
window.addEventListener(
'click',
async () => {
const hydrate = await load();
await hydrate();
},
{ once: true }
);
};

export default clickDirective;
```

- [#6706](https://github.com/withastro/astro/pull/6706) [`763ff2d1e`](https://github.com/withastro/astro/commit/763ff2d1e44f54b899d7c65386f1b4b877c95737) Thanks [@wulinsheng123](https://github.com/wulinsheng123)! - Adds an opt-in way to minify the HTML output.

Using the `compressHTML` option Astro will remove whitespace from Astro components. This only applies to components written in `.astro` format and happens in the compiler to maximize performance. You can enable with:

```js
import { defineConfig } from 'astro/config';

export default defineConfig({
compressHTML: true,
});
```

Compression occurs both in development mode and in the final build.

### Patch Changes

- [#7102](https://github.com/withastro/astro/pull/7102) [`4516d7b22`](https://github.com/withastro/astro/commit/4516d7b22c5979cde4537f196b53ae2826ba9561) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Fix image services not being usable on Edge runtimes

- [#7044](https://github.com/withastro/astro/pull/7044) [`914c439bc`](https://github.com/withastro/astro/commit/914c439bccee9fec002c6d92beaa501c398e62ac) Thanks [@Steffan153](https://github.com/Steffan153)! - Escape closing script tag with `define:vars`

- [#7106](https://github.com/withastro/astro/pull/7106) [`075eee08f`](https://github.com/withastro/astro/commit/075eee08f2e2b0baea008b97f3523f2cb937ee44) Thanks [@ematipico](https://github.com/ematipico)! - Fix middleware for API endpoints that use `Response`, and log a warning for endpoints that don't use `Response`.

- [#7095](https://github.com/withastro/astro/pull/7095) [`fb84622af`](https://github.com/withastro/astro/commit/fb84622af04f795de8d17f24192de105f70fe910) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Generate heading `id`s and populate the `headings` property for all Markdoc files

- [#7091](https://github.com/withastro/astro/pull/7091) [`cd410c5eb`](https://github.com/withastro/astro/commit/cd410c5eb71f825259279c27c4c39d0ad282c3f0) Thanks [@MoustaphaDev](https://github.com/MoustaphaDev)! - Fix double prepended forward slash in SSR

- Updated dependencies [[`826e02890`](https://github.com/withastro/astro/commit/826e0289005f645b902375b98d5549c6a95ccafa)]:
- @astrojs/markdown-remark@2.2.1

## 2.4.5

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/astro/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "astro",
"version": "2.4.5",
"version": "2.5.0",
"description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.",
"type": "module",
"author": "withastro",
Expand Down Expand Up @@ -115,7 +115,7 @@
"dependencies": {
"@astrojs/compiler": "^1.4.0",
"@astrojs/language-server": "^1.0.0",
"@astrojs/markdown-remark": "^2.2.0",
"@astrojs/markdown-remark": "^2.2.1",
"@astrojs/telemetry": "^2.1.1",
"@astrojs/webapi": "^2.1.1",
"@babel/core": "^7.18.2",
Expand Down
1 change: 0 additions & 1 deletion packages/astro/src/@types/astro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,6 @@ export interface AstroUserConfig {
*/
site?: string;


/**
* @docs
* @name compressHTML
Expand Down

0 comments on commit 78fe595

Please sign in to comment.