Skip to content

Commit 64c5cb1

Browse files
committed
chore(release): publish
- project: @wdprlib/ast 1.2.0
1 parent a5dc954 commit 64c5cb1

File tree

6 files changed

+127
-3
lines changed

6 files changed

+127
-3
lines changed

packages/ast/CHANGELOG.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,60 @@
1+
## 1.2.0 (2026-02-12)
2+
3+
### 🚀 Features
4+
5+
- ⚠️ **parser:** パーサーに診断(diagnostics)機能を追加 ([#23](https://github.com/r74tech/wdpr/pull/23))
6+
7+
### ⚠️ Breaking Changes
8+
9+
- **parser:** パーサーに診断(diagnostics)機能を追加 ([#23](https://github.com/r74tech/wdpr/pull/23))
10+
parse()がSyntaxTreeではなくParseResult { ast, diagnostics }を返すように変更。
11+
ParseContextにdiagnostics配列を追加。
12+
* refactor: parse()の戻り値変更に伴う呼び出し元を更新
13+
テストファイルにparseAst()ヘルパーを追加し、parse().astでSyntaxTreeを取得するように変更。
14+
wdmock-cfのpipeline.tsでもparse().astを使用し、resolveModulesのコールバックをラップ。
15+
* feat(parser): 閉じタグ不足とインラインブロックの診断を追加
16+
div, collapsible, tabview/tab, align, iftagsの各ブロックルールに
17+
閉じタグ不足のwarning診断を追加。
18+
consumeFailedDivにインラインブロック要素のerror診断を追加。
19+
メッセージは英語で統一し、codeフィールドでi18n対応可能。
20+
* feat(parser): code/math/html/embed/moduleブロックの閉じタグ診断を追加
21+
* feat(parser): span/sizeのインライン要素に閉じタグ診断を追加
22+
* feat(parser): list/table/anchor/footnote/bibliography/commentの診断を追加
23+
* test(parser): anchor/footnote/bibliography/commentの診断テストを追加
24+
* test(parser): tabview/tab/table/list/embed診断のテストを追加
25+
tabviewルールのEOFハンドリングバグも修正
26+
* test(parser): fail+diagnostic パスのテストを追加
27+
orphan-li、リスト内li閉じ忘れ、左寄せalignのunclosedテストを追加
28+
* test(parser): fixtureテストにdiagnostics検証を追加
29+
expected-diagnostics.jsonがあるfail fixtureのdiagnosticsを検証する仕組みを追加
30+
* feat(parser): divのoutside-inマッチングをbudgetシステムで実装
31+
Wikidotのdivブロックは外側から内側へペアリングされる。
32+
opens > closesの場合、最も内側の余剰openはテキスト化される。
33+
- ParseContextにdivClosesBudgetフィールドを追加
34+
- budget=0でdivルールがfail→テキストにフォールバック
35+
- countDivCloses()で残りclose数を計算
36+
- consumeFailedDivのスキャンを改善: valid divブロック開始時に停止
37+
- 吸収範囲内の追加[[div]]パターンにinline-block-element diagnostic発行
38+
* feat(parser): div隣接paragraphの<p>抑制をpost-processingで実装
39+
Wikidotではdivブロックに直接隣接するparagraphの<p>ラッピングが
40+
抑制される。間に他のブロック要素がある場合は<p>を維持する。
41+
- suppressDivAdjacentParagraphs()をpostprocessモジュールに追加
42+
- トップレベルでのみ適用(div内部のparagraphは維持)
43+
- div後に続くunwrapped contentにはline-breakを先頭に付与
44+
* test(parser): div/fail fixtureとdiagnosticsテストを更新
45+
- expected.json: budget systemと<p>抑制を反映したAST
46+
- expected-diagnostics.json: case 1/2両方のinline-block-element
47+
- diagnostics.test.ts: budget systemの動作に合わせてテストを修正
48+
- 余剰openはunclosed-blockではなくテキスト化される
49+
* fix(parser): blockCommentルールのunclosed-comment diagnostic重複を修正
50+
blockCommentがsuccess:falseを返すとparagraph fallback経由で
51+
inlineCommentが同じdiagnosticを発行していた。
52+
block側のdiagnostic pushを除去し、inline側に一元化。
53+
54+
### ❤️ Thank You
55+
56+
- r74tech @r74tech
57+
158
## 1.1.1 (2026-02-08)
259

360
### 🩹 Fixes

packages/ast/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@wdprlib/ast",
3-
"version": "1.1.1",
3+
"version": "1.2.0",
44
"description": "AST types for Wikidot markup",
55
"keywords": [
66
"ast",

packages/parser/CHANGELOG.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,64 @@
1+
## 1.1.5 (2026-02-12)
2+
3+
### 🚀 Features
4+
5+
- ⚠️ **parser:** パーサーに診断(diagnostics)機能を追加 ([#23](https://github.com/r74tech/wdpr/pull/23))
6+
7+
### ⚠️ Breaking Changes
8+
9+
- **parser:** パーサーに診断(diagnostics)機能を追加 ([#23](https://github.com/r74tech/wdpr/pull/23))
10+
parse()がSyntaxTreeではなくParseResult { ast, diagnostics }を返すように変更。
11+
ParseContextにdiagnostics配列を追加。
12+
* refactor: parse()の戻り値変更に伴う呼び出し元を更新
13+
テストファイルにparseAst()ヘルパーを追加し、parse().astでSyntaxTreeを取得するように変更。
14+
wdmock-cfのpipeline.tsでもparse().astを使用し、resolveModulesのコールバックをラップ。
15+
* feat(parser): 閉じタグ不足とインラインブロックの診断を追加
16+
div, collapsible, tabview/tab, align, iftagsの各ブロックルールに
17+
閉じタグ不足のwarning診断を追加。
18+
consumeFailedDivにインラインブロック要素のerror診断を追加。
19+
メッセージは英語で統一し、codeフィールドでi18n対応可能。
20+
* feat(parser): code/math/html/embed/moduleブロックの閉じタグ診断を追加
21+
* feat(parser): span/sizeのインライン要素に閉じタグ診断を追加
22+
* feat(parser): list/table/anchor/footnote/bibliography/commentの診断を追加
23+
* test(parser): anchor/footnote/bibliography/commentの診断テストを追加
24+
* test(parser): tabview/tab/table/list/embed診断のテストを追加
25+
tabviewルールのEOFハンドリングバグも修正
26+
* test(parser): fail+diagnostic パスのテストを追加
27+
orphan-li、リスト内li閉じ忘れ、左寄せalignのunclosedテストを追加
28+
* test(parser): fixtureテストにdiagnostics検証を追加
29+
expected-diagnostics.jsonがあるfail fixtureのdiagnosticsを検証する仕組みを追加
30+
* feat(parser): divのoutside-inマッチングをbudgetシステムで実装
31+
Wikidotのdivブロックは外側から内側へペアリングされる。
32+
opens > closesの場合、最も内側の余剰openはテキスト化される。
33+
- ParseContextにdivClosesBudgetフィールドを追加
34+
- budget=0でdivルールがfail→テキストにフォールバック
35+
- countDivCloses()で残りclose数を計算
36+
- consumeFailedDivのスキャンを改善: valid divブロック開始時に停止
37+
- 吸収範囲内の追加[[div]]パターンにinline-block-element diagnostic発行
38+
* feat(parser): div隣接paragraphの<p>抑制をpost-processingで実装
39+
Wikidotではdivブロックに直接隣接するparagraphの<p>ラッピングが
40+
抑制される。間に他のブロック要素がある場合は<p>を維持する。
41+
- suppressDivAdjacentParagraphs()をpostprocessモジュールに追加
42+
- トップレベルでのみ適用(div内部のparagraphは維持)
43+
- div後に続くunwrapped contentにはline-breakを先頭に付与
44+
* test(parser): div/fail fixtureとdiagnosticsテストを更新
45+
- expected.json: budget systemと<p>抑制を反映したAST
46+
- expected-diagnostics.json: case 1/2両方のinline-block-element
47+
- diagnostics.test.ts: budget systemの動作に合わせてテストを修正
48+
- 余剰openはunclosed-blockではなくテキスト化される
49+
* fix(parser): blockCommentルールのunclosed-comment diagnostic重複を修正
50+
blockCommentがsuccess:falseを返すとparagraph fallback経由で
51+
inlineCommentが同じdiagnosticを発行していた。
52+
block側のdiagnostic pushを除去し、inline側に一元化。
53+
54+
### 🧱 Updated Dependencies
55+
56+
- Updated @wdprlib/ast to 1.2.0
57+
58+
### ❤️ Thank You
59+
60+
- r74tech @r74tech
61+
162
## 1.1.4 (2026-02-08)
263

364
### 🩹 Fixes

packages/parser/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@wdprlib/parser",
3-
"version": "1.1.4",
3+
"version": "1.1.5",
44
"description": "Parser for Wikidot markup",
55
"keywords": [
66
"ast",

packages/render/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 1.2.4 (2026-02-12)
2+
3+
### 🧱 Updated Dependencies
4+
5+
- Updated @wdprlib/ast to 1.2.0
6+
17
## 1.2.3 (2026-02-08)
28

39
### 🩹 Fixes

packages/render/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@wdprlib/render",
3-
"version": "1.2.3",
3+
"version": "1.2.4",
44
"description": "HTML renderer for Wikidot markup",
55
"keywords": [
66
"html",

0 commit comments

Comments
 (0)