@riebeckite/plugin-rename 0.0.15 → 0.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -65,8 +65,9 @@ severity follows `onUnexpectedRemoval`.
65
65
 
66
66
  The plugin never writes files directly. The only cross-build state is the route
67
67
  lock, stored through `context.cache` under the key `routes.lock`. The cache is
68
- created under `<content.dir>/../.riebeckite/cache` and is gitignored, so the
69
- lock is machine-local and is regenerated from scratch when missing or corrupt.
68
+ created under the resolved plugin cache directory (`.riebeckite/cache` in the
69
+ standard HonoX setup) and is gitignored, so the lock is machine-local and is
70
+ regenerated from scratch when missing or corrupt.
70
71
 
71
72
  Because the lock is machine-local, the first build on a fresh machine has no
72
73
  history and cannot detect a rename that happened before the lock existed.
package/README_ja.md CHANGED
@@ -47,15 +47,15 @@ buildRouteLock ──► 現在の RouteLock
47
47
 
48
48
  判定の優先順位は厳密で、あいまい一致は行いません。
49
49
 
50
- 1. **明示的な同一性** — エントリの frontmatter `id` がロック内のルートの `id` と一致する。
51
- 2. **内容ハッシュの完全一致** — `sha256(entry.html)` が新しいルートちょうど 1 件と一致する。
50
+ 1. **明示的な同一性**:エントリの frontmatter `id` がロック内のルートの `id` と一致する。
51
+ 2. **内容ハッシュの完全一致**:`sha256(entry.html)` が新しいルートちょうど 1 件と一致する。
52
52
  3. どちらも該当しない場合、そのルートは消失とみなす。
53
53
 
54
54
  候補が複数ある場合、または 1 件もない場合はリダイレクトを作りません。曖昧一致では `rename-ambiguous` 診断を、対応の取れない消失では `onUnexpectedRemoval` に従った重要度の診断を出力します。
55
55
 
56
56
  ## 状態の保存
57
57
 
58
- プラグインが直接ファイルを書き込むことはありません。ビルドをまたぐ状態はルートロックのみで、`context.cache` の `routes.lock` キーに保存します。キャッシュは `<content.dir>/../.riebeckite/cache` に作られて gitignore の対象なので、ロックはマシンローカルです。存在しない場合や壊れている場合は空のロックから再生成します。
58
+ プラグインが直接ファイルを書き込むことはありません。ビルドをまたぐ状態はルートロックのみで、`context.cache` の `routes.lock` キーに保存します。キャッシュは解決済みの plugin cache directory(標準的な HonoX 構成では `.riebeckite/cache`)に作られて gitignore の対象なので、ロックはマシンローカルです。存在しない場合や壊れている場合は空のロックから再生成します。
59
59
 
60
60
  ロックがマシンローカルであるため、新しいマシンでの初回ビルドには履歴がなく、ロックが存在する前に起きたリネームは検出できません。
61
61
 
@@ -77,7 +77,7 @@ buildRouteLock ──► 現在の RouteLock
77
77
 
78
78
  ## エクスポート
79
79
 
80
- 関数:
80
+ 関数のシグネチャは次のとおりです。
81
81
 
82
82
  - `renamePlugin(options?)` / `rename(options?)`
83
83
  - `diffRoutes(previous, current, options?)`
@@ -86,7 +86,7 @@ buildRouteLock ──► 現在の RouteLock
86
86
  - `applyRouteRedirects(manifest, rules)`
87
87
  - `parseRouteLock(value)`、`emptyRouteLock()`、`hashContent(html)`
88
88
 
89
- 型:
89
+ 型は次のとおりです。
90
90
 
91
91
  - `RenameOptions`
92
92
  - `RouteLock`、`RouteLockRoute`、`RouteLockRedirect`、`RedirectRule`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riebeckite/plugin-rename",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -14,7 +14,7 @@
14
14
  }
15
15
  },
16
16
  "dependencies": {
17
- "@riebeckite/core": "0.0.15"
17
+ "@riebeckite/core": "0.0.17"
18
18
  },
19
19
  "devDependencies": {
20
20
  "tsx": "^4.22.4"