@riebeckite/plugin-rename 0.0.27 → 0.0.28

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
@@ -94,6 +94,11 @@ history and cannot detect a rename that happened before the lock existed.
94
94
  timestamps or randomness.
95
95
  - Redirects are replayed on every build, so the CLI build and the SSG build
96
96
  reproduce the same redirects.
97
+ - For incremental builds the lock is exposed as an external dependency whose
98
+ fingerprint covers only the applied redirects, not the route bookkeeping.
99
+ Route additions and removals already invalidate the affected outputs through
100
+ the content change set and the redirect outputs themselves, so refreshing the
101
+ lock alone never invalidates unchanged output.
97
102
 
98
103
  ## Exports
99
104
 
package/README_ja.md CHANGED
@@ -76,6 +76,7 @@ buildRouteLock ──► 現在の RouteLock
76
76
  - 恒久的なリダイレクトのチェーンは推移的に集約します(`A → B` と `B → C` は `A → C` になる)。
77
77
  - ロックは決定的です。ルートキーとリダイレクトをソートし、タイムスタンプや乱数を使いません。
78
78
  - リダイレクトは毎ビルドで再適用されるため、CLI ビルドと SSG ビルドが同じリダイレクトを再現します。
79
+ - 増分ビルドではロックを外部依存として公開しますが、その fingerprint が対象にするのは適用済みのリダイレクトだけで、ルートの台帳は含みません。ルートの追加と削除は content change set と redirect 出力自体を通じて影響する出力をすでに無効化するため、ロックの更新だけで変わっていない出力が無効化されることはありません。
79
80
 
80
81
  ## エクスポート
81
82
 
@@ -101,5 +102,5 @@ buildRouteLock ──► 現在の RouteLock
101
102
 
102
103
  ## 関連
103
104
 
104
- - [Permalink プラグイン](../permalink/README_ja.md) — 安定した URL と `redirect_from`
105
+ - [Permalink プラグイン](../permalink/README_ja.md):安定した URL と `redirect_from`
105
106
  - [プラグインガイド](https://github.com/Rerurate514/riebeckite/blob/main/docs/docs/reference/plugin-api.ja.md)
package/dist/index.js CHANGED
@@ -247,7 +247,7 @@ function renamePlugin(options = {}) {
247
247
  kind: "resolved",
248
248
  snapshot: {
249
249
  id: "rename:routes-lock",
250
- fingerprint: fingerprintExternalValue(lock),
250
+ fingerprint: fingerprintExternalValue(lock.redirects),
251
251
  scope: { type: "all" },
252
252
  value: lock
253
253
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riebeckite/plugin-rename",
3
- "version": "0.0.27",
3
+ "version": "0.0.28",
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.27"
17
+ "@riebeckite/core": "0.0.28"
18
18
  },
19
19
  "devDependencies": {
20
20
  "tsx": "^4.22.4"