Skip to content

Commit 5f0c202

Browse files
[CI] Release (#9)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent a5b2179 commit 5f0c202

File tree

4 files changed

+37
-35
lines changed

4 files changed

+37
-35
lines changed

.changeset/little-coins-invent.md

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

.changeset/spicy-guests-draw.md

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

packages/annotation-comments/CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,38 @@
11
# annotation-comments
22

3+
## 1.0.0
4+
5+
### Major Changes
6+
7+
- a5b2179: First major release. Mainly to ensure that semver ranges work as expected, but hooray! 🎉
8+
9+
### Minor Changes
10+
11+
- a5b2179: Adds support for target ranges defined by matching `start`...`end` annotation comments. This allows you to annotate ranges of code without having to count lines or manually updating the ranges when the code changes.
12+
13+
The following example shows how to define a simple target line range using the new feature:
14+
15+
```js
16+
// [!mark:start]
17+
function foo() {
18+
console.log('foo')
19+
}
20+
// [!mark:end]
21+
```
22+
23+
You can also combine `start`...`end` ranges with search queries, which limits the search to the range defined by the `start` and `end` annotation comments:
24+
25+
```js
26+
// [!mark:"log":start]
27+
function foo() {
28+
console.log('The words "log" will be marked both in the method call and this text.')
29+
console.log('Also on this line.')
30+
}
31+
// [!mark:"log":end]
32+
33+
console.log('As this line is outside the range, "log" will not be marked.')
34+
```
35+
336
## 0.3.0
437

538
### Minor Changes

packages/annotation-comments/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "annotation-comments",
3-
"version": "0.3.0",
3+
"version": "1.0.0",
44
"description": "A library to parse and manipulate annotation comments in code.",
55
"keywords": [],
66
"author": "Tibor Schiemann",
@@ -19,7 +19,9 @@
1919
}
2020
},
2121
"types": "./dist/index.d.ts",
22-
"files": ["dist"],
22+
"files": [
23+
"dist"
24+
],
2325
"scripts": {
2426
"build": "tsup ./src/index.ts --format esm --no-splitting --dts --sourcemap --clean",
2527
"coverage": "vitest run --coverage --coverage.include=src/**/*.ts --coverage.exclude=src/index.ts",

0 commit comments

Comments
 (0)