@klnap/payload-redirect 0.4.0 → 0.4.2
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/CHANGELOG.md +12 -0
- package/README.md +261 -312
- package/dist/core/redirects/auto/create-redirect.js +2 -4
- package/dist/core/redirects/auto/create-redirect.js.map +1 -1
- package/dist/core/redirects/auto/persist-auto-rule.js +3 -0
- package/dist/core/redirects/auto/persist-auto-rule.js.map +1 -1
- package/dist/core/redirects/auto/publication/get-publication-transition.d.ts +5 -0
- package/dist/core/redirects/auto/publication/get-publication-transition.js +20 -8
- package/dist/core/redirects/auto/publication/get-publication-transition.js.map +1 -1
- package/dist/core/redirects/auto/publication/global-transition.js +9 -7
- package/dist/core/redirects/auto/publication/global-transition.js.map +1 -1
- package/dist/core/redirects/auto/publication/locales.d.ts +0 -1
- package/dist/core/redirects/auto/publication/locales.js +0 -28
- package/dist/core/redirects/auto/publication/locales.js.map +1 -1
- package/dist/core/redirects/auto/publication/versions/version-rows.d.ts +2 -0
- package/dist/core/redirects/auto/publication/versions/version-rows.js +2 -0
- package/dist/core/redirects/auto/publication/versions/version-rows.js.map +1 -1
- package/dist/core/redirects/collection/collection.js +5 -0
- package/dist/core/redirects/collection/collection.js.map +1 -1
- package/dist/core/redirects/collection/duplicate-guard.js +0 -4
- package/dist/core/redirects/collection/duplicate-guard.js.map +1 -1
- package/dist/core/redirects/collection/graph-lock.d.ts +6 -1
- package/dist/core/redirects/collection/graph-lock.js +11 -0
- package/dist/core/redirects/collection/graph-lock.js.map +1 -1
- package/docs/FAILURE_SEMANTICS.md +5 -4
- package/package.json +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 3dc1473: Fix automatic redirects for republished documents and Local API publishing. Republishing a path that has not changed no longer recreates a rule an editor deleted. Publishing one locale or all locales through the Local API links each locale whose path changed. Global publications follow the same rules. The README is rewritten and its TypeScript examples are checked against the package types.
|
|
8
|
+
|
|
9
|
+
## 0.4.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 4adb5e9: Fix automatic redirect ownership races. Automatic rule generation and rule updates now take the redirect graph lock before reading existing rules, so a manual edit committed during the decision is no longer overwritten. Graph validation now reads the stored rule after the lock is acquired. The README's Next.js example now matches the stored source exactly, including the query string, and no longer decodes the request path.
|
|
14
|
+
|
|
3
15
|
## 0.4.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|