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
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,22 @@

## Unreleased

## 0.3.0

### Added

- 新增 `MarkdownSourceMap.getValueSourceIndex()`。其 `sourceOffsetAt()` 方法将 value 边界映射为原始 Markdown offset。顺序查询使用游标,反向查询使用二分查找(#121)。

### Changed

- 在包元数据中声明 `sideEffects: false`,便于下游打包器删除未使用代码(#114)。

### Perf

- 避免 indented code 源码映射的平方级 suffix 搜索(#118)。
- 简化 `getSourceRange()` 的热路径,减少重复查询和临时分配(#120)。
- `getValueSourceIndex()` 为顺序查询保留游标,为反向查询使用二分查找(#122)。

## 0.2.2

### Changed
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lint-md/parser",
"version": "0.2.2",
"version": "0.3.0",
"description": "lint-md 的解析器,基于 remark 生态,将 Markdown 字符串转换成 AST",
"author": "yuzhanglong <loveyzl1123@gmail.com>",
"contributors": [
Expand Down
Loading