Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 0 additions & 28 deletions .changeset/little-coins-invent.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/spicy-guests-draw.md

This file was deleted.

33 changes: 33 additions & 0 deletions packages/annotation-comments/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,38 @@
# annotation-comments

## 1.0.0

### Major Changes

- a5b2179: First major release. Mainly to ensure that semver ranges work as expected, but hooray! 🎉

### Minor Changes

- 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.

The following example shows how to define a simple target line range using the new feature:

```js
// [!mark:start]
function foo() {
console.log('foo')
}
// [!mark:end]
```

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:

```js
// [!mark:"log":start]
function foo() {
console.log('The words "log" will be marked both in the method call and this text.')
console.log('Also on this line.')
}
// [!mark:"log":end]

console.log('As this line is outside the range, "log" will not be marked.')
```

## 0.3.0

### Minor Changes
Expand Down
6 changes: 4 additions & 2 deletions packages/annotation-comments/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "annotation-comments",
"version": "0.3.0",
"version": "1.0.0",
"description": "A library to parse and manipulate annotation comments in code.",
"keywords": [],
"author": "Tibor Schiemann",
Expand All @@ -19,7 +19,9 @@
}
},
"types": "./dist/index.d.ts",
"files": ["dist"],
"files": [
"dist"
],
"scripts": {
"build": "tsup ./src/index.ts --format esm --no-splitting --dts --sourcemap --clean",
"coverage": "vitest run --coverage --coverage.include=src/**/*.ts --coverage.exclude=src/index.ts",
Expand Down