Skip to content

Commit

Permalink
[ci] release (#884)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Nov 8, 2023
1 parent 0c24ea1 commit 1e421bf
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 22 deletions.
21 changes: 0 additions & 21 deletions .changeset/stale-steaks-brush.md

This file was deleted.

22 changes: 22 additions & 0 deletions packages/compiler/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# @astrojs/compiler

## 2.3.0

### Minor Changes

- 0c24ea1: Add a new `annotateSourceFile` option. This option makes it so the compiler will annotate every element with its source file location. This is notably useful for dev tools to be able to provide features like a "Open in editor" button. This option is disabled by default.

```html
<div>
<span>hello world</span>
</div>
```

Results in:

```html
<div data-astro-source-file="/Users/erika/Projects/..." data-astro-source-loc="1:1">
<span data-astro-source-file="/Users/erika/Projects/..." data-astro-source-loc="2:2">hello world</span>
</div>
```

In Astro, this option is enabled only in development mode.

## 2.2.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/compiler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"bugs": "https://github.com/withastro/compiler/issues",
"homepage": "https://astro.build",
"version": "2.2.2",
"version": "2.3.0",
"scripts": {
"build": "tsup"
},
Expand Down

0 comments on commit 1e421bf

Please sign in to comment.