@plumix/core 0.3.0 → 0.4.0
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/dist/auth/bootstrap.d.ts.map +1 -1
- package/dist/auth/bootstrap.js +39 -22
- package/dist/auth/bootstrap.js.map +1 -1
- package/dist/cache/tags.d.ts.map +1 -1
- package/dist/cache/tags.js +9 -0
- package/dist/cache/tags.js.map +1 -1
- package/dist/db/errors.d.ts +8 -0
- package/dist/db/errors.d.ts.map +1 -1
- package/dist/db/errors.js +22 -0
- package/dist/db/errors.js.map +1 -1
- package/dist/db/index.d.ts +1 -1
- package/dist/db/index.d.ts.map +1 -1
- package/dist/db/index.js +1 -1
- package/dist/db/index.js.map +1 -1
- package/dist/db/schema/users.d.ts +57 -0
- package/dist/db/schema/users.d.ts.map +1 -1
- package/dist/db/schema/users.js +10 -2
- package/dist/db/schema/users.js.map +1 -1
- package/dist/debug-bar/template-node-label.d.ts.map +1 -1
- package/dist/debug-bar/template-node-label.js +8 -0
- package/dist/debug-bar/template-node-label.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/plugin/manifest.d.ts +34 -0
- package/dist/plugin/manifest.d.ts.map +1 -1
- package/dist/plugin/manifest.js +1 -0
- package/dist/plugin/manifest.js.map +1 -1
- package/dist/plugin/setup-context.d.ts +10 -1
- package/dist/plugin/setup-context.d.ts.map +1 -1
- package/dist/plugin/setup-context.js +12 -0
- package/dist/plugin/setup-context.js.map +1 -1
- package/dist/route/compile.d.ts +21 -0
- package/dist/route/compile.d.ts.map +1 -1
- package/dist/route/compile.js +63 -1
- package/dist/route/compile.js.map +1 -1
- package/dist/route/current.d.ts +5 -3
- package/dist/route/current.d.ts.map +1 -1
- package/dist/route/date-range.d.ts +12 -0
- package/dist/route/date-range.d.ts.map +1 -0
- package/dist/route/date-range.js +39 -0
- package/dist/route/date-range.js.map +1 -0
- package/dist/route/intent.d.ts +7 -3
- package/dist/route/intent.d.ts.map +1 -1
- package/dist/route/match.d.ts +1 -0
- package/dist/route/match.d.ts.map +1 -1
- package/dist/route/match.js +1 -1
- package/dist/route/match.js.map +1 -1
- package/dist/route/render/build-resolved-entries.d.ts.map +1 -1
- package/dist/route/render/build-resolved-entries.js +6 -1
- package/dist/route/render/build-resolved-entries.js.map +1 -1
- package/dist/route/render/resolved-entry.d.ts +36 -0
- package/dist/route/render/resolved-entry.d.ts.map +1 -1
- package/dist/route/render/template-builders.d.ts +54 -2
- package/dist/route/render/template-builders.d.ts.map +1 -1
- package/dist/route/render/template-builders.js +63 -4
- package/dist/route/render/template-builders.js.map +1 -1
- package/dist/route/render/template-hierarchy.d.ts +17 -1
- package/dist/route/render/template-hierarchy.d.ts.map +1 -1
- package/dist/route/render/template-hierarchy.js +23 -0
- package/dist/route/render/template-hierarchy.js.map +1 -1
- package/dist/route/resolve.d.ts +3 -1
- package/dist/route/resolve.d.ts.map +1 -1
- package/dist/route/resolve.js +148 -4
- package/dist/route/resolve.js.map +1 -1
- package/dist/rpc/procedures/entry/create.d.ts +2 -2
- package/dist/rpc/procedures/entry/delete-permanent.d.ts +2 -2
- package/dist/rpc/procedures/entry/duplicate.d.ts +2 -2
- package/dist/rpc/procedures/entry/get.d.ts +2 -2
- package/dist/rpc/procedures/entry/index.d.ts +22 -22
- package/dist/rpc/procedures/entry/list.d.ts +2 -2
- package/dist/rpc/procedures/entry/publish.d.ts +2 -2
- package/dist/rpc/procedures/entry/restore.d.ts +2 -2
- package/dist/rpc/procedures/entry/revisions.d.ts +8 -8
- package/dist/rpc/procedures/entry/trash.d.ts +2 -2
- package/dist/rpc/procedures/entry/update.d.ts +2 -2
- package/dist/rpc/procedures/term/create.d.ts +2 -2
- package/dist/rpc/procedures/term/delete.d.ts +2 -2
- package/dist/rpc/procedures/term/get.d.ts +2 -2
- package/dist/rpc/procedures/term/index.d.ts +10 -10
- package/dist/rpc/procedures/term/list.d.ts +2 -2
- package/dist/rpc/procedures/term/update.d.ts +2 -2
- package/dist/rpc/procedures/user/delete.d.ts +2 -0
- package/dist/rpc/procedures/user/delete.d.ts.map +1 -1
- package/dist/rpc/procedures/user/disable.d.ts +2 -0
- package/dist/rpc/procedures/user/disable.d.ts.map +1 -1
- package/dist/rpc/procedures/user/enable.d.ts +2 -0
- package/dist/rpc/procedures/user/enable.d.ts.map +1 -1
- package/dist/rpc/procedures/user/get.d.ts +2 -0
- package/dist/rpc/procedures/user/get.d.ts.map +1 -1
- package/dist/rpc/procedures/user/index.d.ts +12 -0
- package/dist/rpc/procedures/user/index.d.ts.map +1 -1
- package/dist/rpc/procedures/user/invite.d.ts.map +1 -1
- package/dist/rpc/procedures/user/invite.js +28 -15
- package/dist/rpc/procedures/user/invite.js.map +1 -1
- package/dist/rpc/procedures/user/list.d.ts +2 -0
- package/dist/rpc/procedures/user/list.d.ts.map +1 -1
- package/dist/rpc/procedures/user/list.js +1 -0
- package/dist/rpc/procedures/user/list.js.map +1 -1
- package/dist/rpc/procedures/user/update.d.ts +2 -0
- package/dist/rpc/procedures/user/update.d.ts.map +1 -1
- package/dist/rpc/router.d.ts +44 -32
- package/dist/rpc/router.d.ts.map +1 -1
- package/dist/runtime/dispatcher.d.ts.map +1 -1
- package/dist/runtime/dispatcher.js +70 -6
- package/dist/runtime/dispatcher.js.map +1 -1
- package/dist/seo/feed.d.ts +19 -4
- package/dist/seo/feed.d.ts.map +1 -1
- package/dist/seo/feed.js +49 -12
- package/dist/seo/feed.js.map +1 -1
- package/dist/seo/head-defaults.d.ts.map +1 -1
- package/dist/seo/head-defaults.js +6 -3
- package/dist/seo/head-defaults.js.map +1 -1
- package/dist/template-registry.d.ts +31 -1
- package/dist/template-registry.d.ts.map +1 -1
- package/dist/test/default-theme.d.ts.map +1 -1
- package/dist/test/default-theme.js +3 -0
- package/dist/test/default-theme.js.map +1 -1
- package/dist/test/factories.d.ts +39 -21
- package/dist/test/factories.d.ts.map +1 -1
- package/dist/test/factories.js +1 -0
- package/dist/test/factories.js.map +1 -1
- package/dist/theme.d.ts +15 -7
- package/dist/theme.d.ts.map +1 -1
- package/dist/theme.js +9 -0
- package/dist/theme.js.map +1 -1
- package/dist/users/slug.d.ts +12 -0
- package/dist/users/slug.d.ts.map +1 -0
- package/dist/users/slug.js +32 -0
- package/dist/users/slug.js.map +1 -0
- package/package.json +2 -2
package/dist/rpc/router.d.ts
CHANGED
|
@@ -1551,13 +1551,13 @@ export declare const appRouter: {
|
|
|
1551
1551
|
readonly offset: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, 0>;
|
|
1552
1552
|
}, undefined>, import("@orpc/server").Schema<readonly {
|
|
1553
1553
|
id: number;
|
|
1554
|
+
slug: string;
|
|
1554
1555
|
meta: Record<string, unknown>;
|
|
1555
1556
|
createdAt: Date;
|
|
1556
1557
|
updatedAt: Date;
|
|
1557
1558
|
type: string;
|
|
1558
1559
|
parentId: number | null;
|
|
1559
1560
|
title: string;
|
|
1560
|
-
slug: string;
|
|
1561
1561
|
content: import("../index.js").EntryContent | null;
|
|
1562
1562
|
excerpt: string | null;
|
|
1563
1563
|
status: "draft" | "published" | "scheduled" | "trash";
|
|
@@ -1566,13 +1566,13 @@ export declare const appRouter: {
|
|
|
1566
1566
|
publishedAt: Date | null;
|
|
1567
1567
|
}[], readonly {
|
|
1568
1568
|
id: number;
|
|
1569
|
+
slug: string;
|
|
1569
1570
|
meta: Record<string, unknown>;
|
|
1570
1571
|
createdAt: Date;
|
|
1571
1572
|
updatedAt: Date;
|
|
1572
1573
|
type: string;
|
|
1573
1574
|
parentId: number | null;
|
|
1574
1575
|
title: string;
|
|
1575
|
-
slug: string;
|
|
1576
1576
|
content: import("../index.js").EntryContent | null;
|
|
1577
1577
|
excerpt: string | null;
|
|
1578
1578
|
status: "draft" | "published" | "scheduled" | "trash";
|
|
@@ -1641,13 +1641,13 @@ export declare const appRouter: {
|
|
|
1641
1641
|
readonly preview: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
1642
1642
|
}, undefined>, import("@orpc/server").Schema<{
|
|
1643
1643
|
id: number;
|
|
1644
|
+
slug: string;
|
|
1644
1645
|
meta: Record<string, unknown>;
|
|
1645
1646
|
createdAt: Date;
|
|
1646
1647
|
updatedAt: Date;
|
|
1647
1648
|
type: string;
|
|
1648
1649
|
parentId: number | null;
|
|
1649
1650
|
title: string;
|
|
1650
|
-
slug: string;
|
|
1651
1651
|
content: import("../index.js").EntryContent | null;
|
|
1652
1652
|
excerpt: string | null;
|
|
1653
1653
|
status: "draft" | "published" | "scheduled" | "trash";
|
|
@@ -1663,13 +1663,13 @@ export declare const appRouter: {
|
|
|
1663
1663
|
};
|
|
1664
1664
|
}, {
|
|
1665
1665
|
id: number;
|
|
1666
|
+
slug: string;
|
|
1666
1667
|
meta: Record<string, unknown>;
|
|
1667
1668
|
createdAt: Date;
|
|
1668
1669
|
updatedAt: Date;
|
|
1669
1670
|
type: string;
|
|
1670
1671
|
parentId: number | null;
|
|
1671
1672
|
title: string;
|
|
1672
|
-
slug: string;
|
|
1673
1673
|
content: import("../index.js").EntryContent | null;
|
|
1674
1674
|
excerpt: string | null;
|
|
1675
1675
|
status: "draft" | "published" | "scheduled" | "trash";
|
|
@@ -1761,13 +1761,13 @@ export declare const appRouter: {
|
|
|
1761
1761
|
readonly publishedAt: import("valibot").OptionalSchema<import("valibot").DateSchema<undefined>, undefined>;
|
|
1762
1762
|
}, undefined>, import("@orpc/server").Schema<{
|
|
1763
1763
|
id: number;
|
|
1764
|
+
slug: string;
|
|
1764
1765
|
meta: Record<string, unknown>;
|
|
1765
1766
|
createdAt: Date;
|
|
1766
1767
|
updatedAt: Date;
|
|
1767
1768
|
type: string;
|
|
1768
1769
|
parentId: number | null;
|
|
1769
1770
|
title: string;
|
|
1770
|
-
slug: string;
|
|
1771
1771
|
content: import("../index.js").EntryContent | null;
|
|
1772
1772
|
excerpt: string | null;
|
|
1773
1773
|
status: "draft" | "published" | "scheduled" | "trash";
|
|
@@ -1776,13 +1776,13 @@ export declare const appRouter: {
|
|
|
1776
1776
|
publishedAt: Date | null;
|
|
1777
1777
|
}, {
|
|
1778
1778
|
id: number;
|
|
1779
|
+
slug: string;
|
|
1779
1780
|
meta: Record<string, unknown>;
|
|
1780
1781
|
createdAt: Date;
|
|
1781
1782
|
updatedAt: Date;
|
|
1782
1783
|
type: string;
|
|
1783
1784
|
parentId: number | null;
|
|
1784
1785
|
title: string;
|
|
1785
|
-
slug: string;
|
|
1786
1786
|
content: import("../index.js").EntryContent | null;
|
|
1787
1787
|
excerpt: string | null;
|
|
1788
1788
|
status: "draft" | "published" | "scheduled" | "trash";
|
|
@@ -1869,13 +1869,13 @@ export declare const appRouter: {
|
|
|
1869
1869
|
readonly saveAs: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["draft", "live"], undefined>, undefined>;
|
|
1870
1870
|
}, undefined>, import("@orpc/server").Schema<{
|
|
1871
1871
|
id: number;
|
|
1872
|
+
slug: string;
|
|
1872
1873
|
meta: Record<string, unknown>;
|
|
1873
1874
|
createdAt: Date;
|
|
1874
1875
|
updatedAt: Date;
|
|
1875
1876
|
type: string;
|
|
1876
1877
|
parentId: number | null;
|
|
1877
1878
|
title: string;
|
|
1878
|
-
slug: string;
|
|
1879
1879
|
content: import("../index.js").EntryContent | null;
|
|
1880
1880
|
excerpt: string | null;
|
|
1881
1881
|
status: "draft" | "published" | "scheduled" | "trash";
|
|
@@ -1884,13 +1884,13 @@ export declare const appRouter: {
|
|
|
1884
1884
|
publishedAt: Date | null;
|
|
1885
1885
|
}, {
|
|
1886
1886
|
id: number;
|
|
1887
|
+
slug: string;
|
|
1887
1888
|
meta: Record<string, unknown>;
|
|
1888
1889
|
createdAt: Date;
|
|
1889
1890
|
updatedAt: Date;
|
|
1890
1891
|
type: string;
|
|
1891
1892
|
parentId: number | null;
|
|
1892
1893
|
title: string;
|
|
1893
|
-
slug: string;
|
|
1894
1894
|
content: import("../index.js").EntryContent | null;
|
|
1895
1895
|
excerpt: string | null;
|
|
1896
1896
|
status: "draft" | "published" | "scheduled" | "trash";
|
|
@@ -1958,13 +1958,13 @@ export declare const appRouter: {
|
|
|
1958
1958
|
readonly id: import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>;
|
|
1959
1959
|
}, undefined>, import("@orpc/server").Schema<{
|
|
1960
1960
|
id: number;
|
|
1961
|
+
slug: string;
|
|
1961
1962
|
meta: Record<string, unknown>;
|
|
1962
1963
|
createdAt: Date;
|
|
1963
1964
|
updatedAt: Date;
|
|
1964
1965
|
type: string;
|
|
1965
1966
|
parentId: number | null;
|
|
1966
1967
|
title: string;
|
|
1967
|
-
slug: string;
|
|
1968
1968
|
content: import("../index.js").EntryContent | null;
|
|
1969
1969
|
excerpt: string | null;
|
|
1970
1970
|
status: "draft" | "published" | "scheduled" | "trash";
|
|
@@ -1973,13 +1973,13 @@ export declare const appRouter: {
|
|
|
1973
1973
|
publishedAt: Date | null;
|
|
1974
1974
|
}, {
|
|
1975
1975
|
id: number;
|
|
1976
|
+
slug: string;
|
|
1976
1977
|
meta: Record<string, unknown>;
|
|
1977
1978
|
createdAt: Date;
|
|
1978
1979
|
updatedAt: Date;
|
|
1979
1980
|
type: string;
|
|
1980
1981
|
parentId: number | null;
|
|
1981
1982
|
title: string;
|
|
1982
|
-
slug: string;
|
|
1983
1983
|
content: import("../index.js").EntryContent | null;
|
|
1984
1984
|
excerpt: string | null;
|
|
1985
1985
|
status: "draft" | "published" | "scheduled" | "trash";
|
|
@@ -2047,13 +2047,13 @@ export declare const appRouter: {
|
|
|
2047
2047
|
readonly id: import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>;
|
|
2048
2048
|
}, undefined>, import("@orpc/server").Schema<{
|
|
2049
2049
|
id: number;
|
|
2050
|
+
slug: string;
|
|
2050
2051
|
meta: Record<string, unknown>;
|
|
2051
2052
|
createdAt: Date;
|
|
2052
2053
|
updatedAt: Date;
|
|
2053
2054
|
type: string;
|
|
2054
2055
|
parentId: number | null;
|
|
2055
2056
|
title: string;
|
|
2056
|
-
slug: string;
|
|
2057
2057
|
content: import("../index.js").EntryContent | null;
|
|
2058
2058
|
excerpt: string | null;
|
|
2059
2059
|
status: "draft" | "published" | "scheduled" | "trash";
|
|
@@ -2062,13 +2062,13 @@ export declare const appRouter: {
|
|
|
2062
2062
|
publishedAt: Date | null;
|
|
2063
2063
|
}, {
|
|
2064
2064
|
id: number;
|
|
2065
|
+
slug: string;
|
|
2065
2066
|
meta: Record<string, unknown>;
|
|
2066
2067
|
createdAt: Date;
|
|
2067
2068
|
updatedAt: Date;
|
|
2068
2069
|
type: string;
|
|
2069
2070
|
parentId: number | null;
|
|
2070
2071
|
title: string;
|
|
2071
|
-
slug: string;
|
|
2072
2072
|
content: import("../index.js").EntryContent | null;
|
|
2073
2073
|
excerpt: string | null;
|
|
2074
2074
|
status: "draft" | "published" | "scheduled" | "trash";
|
|
@@ -2136,13 +2136,13 @@ export declare const appRouter: {
|
|
|
2136
2136
|
readonly id: import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>;
|
|
2137
2137
|
}, undefined>, import("@orpc/server").Schema<{
|
|
2138
2138
|
id: number;
|
|
2139
|
+
slug: string;
|
|
2139
2140
|
meta: Record<string, unknown>;
|
|
2140
2141
|
createdAt: Date;
|
|
2141
2142
|
updatedAt: Date;
|
|
2142
2143
|
type: string;
|
|
2143
2144
|
parentId: number | null;
|
|
2144
2145
|
title: string;
|
|
2145
|
-
slug: string;
|
|
2146
2146
|
content: import("../index.js").EntryContent | null;
|
|
2147
2147
|
excerpt: string | null;
|
|
2148
2148
|
status: "draft" | "published" | "scheduled" | "trash";
|
|
@@ -2151,13 +2151,13 @@ export declare const appRouter: {
|
|
|
2151
2151
|
publishedAt: Date | null;
|
|
2152
2152
|
}, {
|
|
2153
2153
|
id: number;
|
|
2154
|
+
slug: string;
|
|
2154
2155
|
meta: Record<string, unknown>;
|
|
2155
2156
|
createdAt: Date;
|
|
2156
2157
|
updatedAt: Date;
|
|
2157
2158
|
type: string;
|
|
2158
2159
|
parentId: number | null;
|
|
2159
2160
|
title: string;
|
|
2160
|
-
slug: string;
|
|
2161
2161
|
content: import("../index.js").EntryContent | null;
|
|
2162
2162
|
excerpt: string | null;
|
|
2163
2163
|
status: "draft" | "published" | "scheduled" | "trash";
|
|
@@ -2414,13 +2414,13 @@ export declare const appRouter: {
|
|
|
2414
2414
|
readonly id: import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>;
|
|
2415
2415
|
}, undefined>, import("@orpc/server").Schema<{
|
|
2416
2416
|
id: number;
|
|
2417
|
+
slug: string;
|
|
2417
2418
|
meta: Record<string, unknown>;
|
|
2418
2419
|
createdAt: Date;
|
|
2419
2420
|
updatedAt: Date;
|
|
2420
2421
|
type: string;
|
|
2421
2422
|
parentId: number | null;
|
|
2422
2423
|
title: string;
|
|
2423
|
-
slug: string;
|
|
2424
2424
|
content: import("../index.js").EntryContent | null;
|
|
2425
2425
|
excerpt: string | null;
|
|
2426
2426
|
status: "draft" | "published" | "scheduled" | "trash";
|
|
@@ -2429,13 +2429,13 @@ export declare const appRouter: {
|
|
|
2429
2429
|
publishedAt: Date | null;
|
|
2430
2430
|
}, {
|
|
2431
2431
|
id: number;
|
|
2432
|
+
slug: string;
|
|
2432
2433
|
meta: Record<string, unknown>;
|
|
2433
2434
|
createdAt: Date;
|
|
2434
2435
|
updatedAt: Date;
|
|
2435
2436
|
type: string;
|
|
2436
2437
|
parentId: number | null;
|
|
2437
2438
|
title: string;
|
|
2438
|
-
slug: string;
|
|
2439
2439
|
content: import("../index.js").EntryContent | null;
|
|
2440
2440
|
excerpt: string | null;
|
|
2441
2441
|
status: "draft" | "published" | "scheduled" | "trash";
|
|
@@ -2633,13 +2633,13 @@ export declare const appRouter: {
|
|
|
2633
2633
|
readonly expectedLiveUpdatedAt: import("valibot").DateSchema<undefined>;
|
|
2634
2634
|
}, undefined>, import("@orpc/server").Schema<{
|
|
2635
2635
|
id: number;
|
|
2636
|
+
slug: string;
|
|
2636
2637
|
meta: Record<string, unknown>;
|
|
2637
2638
|
createdAt: Date;
|
|
2638
2639
|
updatedAt: Date;
|
|
2639
2640
|
type: string;
|
|
2640
2641
|
parentId: number | null;
|
|
2641
2642
|
title: string;
|
|
2642
|
-
slug: string;
|
|
2643
2643
|
content: import("../index.js").EntryContent | null;
|
|
2644
2644
|
excerpt: string | null;
|
|
2645
2645
|
status: "draft" | "published" | "scheduled" | "trash";
|
|
@@ -2648,13 +2648,13 @@ export declare const appRouter: {
|
|
|
2648
2648
|
publishedAt: Date | null;
|
|
2649
2649
|
}, {
|
|
2650
2650
|
id: number;
|
|
2651
|
+
slug: string;
|
|
2651
2652
|
meta: Record<string, unknown>;
|
|
2652
2653
|
createdAt: Date;
|
|
2653
2654
|
updatedAt: Date;
|
|
2654
2655
|
type: string;
|
|
2655
2656
|
parentId: number | null;
|
|
2656
2657
|
title: string;
|
|
2657
|
-
slug: string;
|
|
2658
2658
|
content: import("../index.js").EntryContent | null;
|
|
2659
2659
|
excerpt: string | null;
|
|
2660
2660
|
status: "draft" | "published" | "scheduled" | "trash";
|
|
@@ -3010,13 +3010,13 @@ export declare const appRouter: {
|
|
|
3010
3010
|
authorEmail: string | null;
|
|
3011
3011
|
message: string | null;
|
|
3012
3012
|
id: number;
|
|
3013
|
+
slug: string;
|
|
3013
3014
|
meta: Record<string, unknown>;
|
|
3014
3015
|
createdAt: Date;
|
|
3015
3016
|
updatedAt: Date;
|
|
3016
3017
|
type: string;
|
|
3017
3018
|
parentId: number | null;
|
|
3018
3019
|
title: string;
|
|
3019
|
-
slug: string;
|
|
3020
3020
|
content: import("../index.js").EntryContent | null;
|
|
3021
3021
|
excerpt: string | null;
|
|
3022
3022
|
status: "draft" | "published" | "scheduled" | "trash";
|
|
@@ -3028,13 +3028,13 @@ export declare const appRouter: {
|
|
|
3028
3028
|
authorEmail: string | null;
|
|
3029
3029
|
message: string | null;
|
|
3030
3030
|
id: number;
|
|
3031
|
+
slug: string;
|
|
3031
3032
|
meta: Record<string, unknown>;
|
|
3032
3033
|
createdAt: Date;
|
|
3033
3034
|
updatedAt: Date;
|
|
3034
3035
|
type: string;
|
|
3035
3036
|
parentId: number | null;
|
|
3036
3037
|
title: string;
|
|
3037
|
-
slug: string;
|
|
3038
3038
|
content: import("../index.js").EntryContent | null;
|
|
3039
3039
|
excerpt: string | null;
|
|
3040
3040
|
status: "draft" | "published" | "scheduled" | "trash";
|
|
@@ -3103,13 +3103,13 @@ export declare const appRouter: {
|
|
|
3103
3103
|
readonly expectedLiveUpdatedAt: import("valibot").OptionalSchema<import("valibot").DateSchema<undefined>, undefined>;
|
|
3104
3104
|
}, undefined>, import("@orpc/server").Schema<{
|
|
3105
3105
|
id: number;
|
|
3106
|
+
slug: string;
|
|
3106
3107
|
meta: Record<string, unknown>;
|
|
3107
3108
|
createdAt: Date;
|
|
3108
3109
|
updatedAt: Date;
|
|
3109
3110
|
type: string;
|
|
3110
3111
|
parentId: number | null;
|
|
3111
3112
|
title: string;
|
|
3112
|
-
slug: string;
|
|
3113
3113
|
content: import("../index.js").EntryContent | null;
|
|
3114
3114
|
excerpt: string | null;
|
|
3115
3115
|
status: "draft" | "published" | "scheduled" | "trash";
|
|
@@ -3118,13 +3118,13 @@ export declare const appRouter: {
|
|
|
3118
3118
|
publishedAt: Date | null;
|
|
3119
3119
|
}, {
|
|
3120
3120
|
id: number;
|
|
3121
|
+
slug: string;
|
|
3121
3122
|
meta: Record<string, unknown>;
|
|
3122
3123
|
createdAt: Date;
|
|
3123
3124
|
updatedAt: Date;
|
|
3124
3125
|
type: string;
|
|
3125
3126
|
parentId: number | null;
|
|
3126
3127
|
title: string;
|
|
3127
|
-
slug: string;
|
|
3128
3128
|
content: import("../index.js").EntryContent | null;
|
|
3129
3129
|
excerpt: string | null;
|
|
3130
3130
|
status: "draft" | "published" | "scheduled" | "trash";
|
|
@@ -3340,20 +3340,20 @@ export declare const appRouter: {
|
|
|
3340
3340
|
readonly offset: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, 0>;
|
|
3341
3341
|
}, undefined>, import("@orpc/server").Schema<readonly {
|
|
3342
3342
|
id: number;
|
|
3343
|
+
slug: string;
|
|
3343
3344
|
name: string;
|
|
3344
3345
|
meta: Record<string, unknown>;
|
|
3345
3346
|
taxonomy: string;
|
|
3346
3347
|
parentId: number | null;
|
|
3347
|
-
slug: string;
|
|
3348
3348
|
description: string | null;
|
|
3349
3349
|
version: number;
|
|
3350
3350
|
}[], readonly {
|
|
3351
3351
|
id: number;
|
|
3352
|
+
slug: string;
|
|
3352
3353
|
name: string;
|
|
3353
3354
|
meta: Record<string, unknown>;
|
|
3354
3355
|
taxonomy: string;
|
|
3355
3356
|
parentId: number | null;
|
|
3356
|
-
slug: string;
|
|
3357
3357
|
description: string | null;
|
|
3358
3358
|
version: number;
|
|
3359
3359
|
}[]>, import("@orpc/server").MergedErrorMap<Record<never, never>, {
|
|
@@ -3417,20 +3417,20 @@ export declare const appRouter: {
|
|
|
3417
3417
|
readonly id: import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>;
|
|
3418
3418
|
}, undefined>, import("@orpc/server").Schema<{
|
|
3419
3419
|
id: number;
|
|
3420
|
+
slug: string;
|
|
3420
3421
|
name: string;
|
|
3421
3422
|
meta: Record<string, unknown>;
|
|
3422
3423
|
taxonomy: string;
|
|
3423
3424
|
parentId: number | null;
|
|
3424
|
-
slug: string;
|
|
3425
3425
|
description: string | null;
|
|
3426
3426
|
version: number;
|
|
3427
3427
|
}, {
|
|
3428
3428
|
id: number;
|
|
3429
|
+
slug: string;
|
|
3429
3430
|
name: string;
|
|
3430
3431
|
meta: Record<string, unknown>;
|
|
3431
3432
|
taxonomy: string;
|
|
3432
3433
|
parentId: number | null;
|
|
3433
|
-
slug: string;
|
|
3434
3434
|
description: string | null;
|
|
3435
3435
|
version: number;
|
|
3436
3436
|
}>, import("@orpc/server").MergedErrorMap<Record<never, never>, {
|
|
@@ -3501,20 +3501,20 @@ export declare const appRouter: {
|
|
|
3501
3501
|
}, "meta accepts at most 200 keys per request">]>, undefined>;
|
|
3502
3502
|
}, undefined>, import("@orpc/server").Schema<{
|
|
3503
3503
|
id: number;
|
|
3504
|
+
slug: string;
|
|
3504
3505
|
name: string;
|
|
3505
3506
|
meta: Record<string, unknown>;
|
|
3506
3507
|
taxonomy: string;
|
|
3507
3508
|
parentId: number | null;
|
|
3508
|
-
slug: string;
|
|
3509
3509
|
description: string | null;
|
|
3510
3510
|
version: number;
|
|
3511
3511
|
}, {
|
|
3512
3512
|
id: number;
|
|
3513
|
+
slug: string;
|
|
3513
3514
|
name: string;
|
|
3514
3515
|
meta: Record<string, unknown>;
|
|
3515
3516
|
taxonomy: string;
|
|
3516
3517
|
parentId: number | null;
|
|
3517
|
-
slug: string;
|
|
3518
3518
|
description: string | null;
|
|
3519
3519
|
version: number;
|
|
3520
3520
|
}>, import("@orpc/server").MergedErrorMap<Record<never, never>, {
|
|
@@ -3585,20 +3585,20 @@ export declare const appRouter: {
|
|
|
3585
3585
|
}, "meta accepts at most 200 keys per request">]>, undefined>;
|
|
3586
3586
|
}, undefined>, import("@orpc/server").Schema<{
|
|
3587
3587
|
id: number;
|
|
3588
|
+
slug: string;
|
|
3588
3589
|
name: string;
|
|
3589
3590
|
meta: Record<string, unknown>;
|
|
3590
3591
|
taxonomy: string;
|
|
3591
3592
|
parentId: number | null;
|
|
3592
|
-
slug: string;
|
|
3593
3593
|
description: string | null;
|
|
3594
3594
|
version: number;
|
|
3595
3595
|
}, {
|
|
3596
3596
|
id: number;
|
|
3597
|
+
slug: string;
|
|
3597
3598
|
name: string;
|
|
3598
3599
|
meta: Record<string, unknown>;
|
|
3599
3600
|
taxonomy: string;
|
|
3600
3601
|
parentId: number | null;
|
|
3601
|
-
slug: string;
|
|
3602
3602
|
description: string | null;
|
|
3603
3603
|
version: number;
|
|
3604
3604
|
}>, import("@orpc/server").MergedErrorMap<Record<never, never>, {
|
|
@@ -3662,20 +3662,20 @@ export declare const appRouter: {
|
|
|
3662
3662
|
readonly id: import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>;
|
|
3663
3663
|
}, undefined>, import("@orpc/server").Schema<{
|
|
3664
3664
|
id: number;
|
|
3665
|
+
slug: string;
|
|
3665
3666
|
name: string;
|
|
3666
3667
|
meta: Record<string, unknown>;
|
|
3667
3668
|
taxonomy: string;
|
|
3668
3669
|
parentId: number | null;
|
|
3669
|
-
slug: string;
|
|
3670
3670
|
description: string | null;
|
|
3671
3671
|
version: number;
|
|
3672
3672
|
}, {
|
|
3673
3673
|
id: number;
|
|
3674
|
+
slug: string;
|
|
3674
3675
|
name: string;
|
|
3675
3676
|
meta: Record<string, unknown>;
|
|
3676
3677
|
taxonomy: string;
|
|
3677
3678
|
parentId: number | null;
|
|
3678
|
-
slug: string;
|
|
3679
3679
|
description: string | null;
|
|
3680
3680
|
version: number;
|
|
3681
3681
|
}>, import("@orpc/server").MergedErrorMap<Record<never, never>, {
|
|
@@ -3745,6 +3745,7 @@ export declare const appRouter: {
|
|
|
3745
3745
|
}, undefined>, import("@orpc/server").Schema<readonly ({
|
|
3746
3746
|
id: number;
|
|
3747
3747
|
email: string;
|
|
3748
|
+
slug: string;
|
|
3748
3749
|
name: string | null;
|
|
3749
3750
|
avatarUrl: string | null;
|
|
3750
3751
|
role: "subscriber" | "contributor" | "author" | "editor" | "admin";
|
|
@@ -3758,6 +3759,7 @@ export declare const appRouter: {
|
|
|
3758
3759
|
})[], readonly ({
|
|
3759
3760
|
id: number;
|
|
3760
3761
|
email: string;
|
|
3762
|
+
slug: string;
|
|
3761
3763
|
name: string | null;
|
|
3762
3764
|
avatarUrl: string | null;
|
|
3763
3765
|
role: "subscriber" | "contributor" | "author" | "editor" | "admin";
|
|
@@ -3830,6 +3832,7 @@ export declare const appRouter: {
|
|
|
3830
3832
|
}, undefined>, import("@orpc/server").Schema<{
|
|
3831
3833
|
id: number;
|
|
3832
3834
|
email: string;
|
|
3835
|
+
slug: string;
|
|
3833
3836
|
name: string | null;
|
|
3834
3837
|
avatarUrl: string | null;
|
|
3835
3838
|
role: "subscriber" | "contributor" | "author" | "editor" | "admin";
|
|
@@ -3841,6 +3844,7 @@ export declare const appRouter: {
|
|
|
3841
3844
|
}, {
|
|
3842
3845
|
id: number;
|
|
3843
3846
|
email: string;
|
|
3847
|
+
slug: string;
|
|
3844
3848
|
name: string | null;
|
|
3845
3849
|
avatarUrl: string | null;
|
|
3846
3850
|
role: "subscriber" | "contributor" | "author" | "editor" | "admin";
|
|
@@ -3984,6 +3988,7 @@ export declare const appRouter: {
|
|
|
3984
3988
|
}, undefined>, import("@orpc/server").Schema<{
|
|
3985
3989
|
id: number;
|
|
3986
3990
|
email: string;
|
|
3991
|
+
slug: string;
|
|
3987
3992
|
name: string | null;
|
|
3988
3993
|
avatarUrl: string | null;
|
|
3989
3994
|
role: "subscriber" | "contributor" | "author" | "editor" | "admin";
|
|
@@ -3995,6 +4000,7 @@ export declare const appRouter: {
|
|
|
3995
4000
|
}, {
|
|
3996
4001
|
id: number;
|
|
3997
4002
|
email: string;
|
|
4003
|
+
slug: string;
|
|
3998
4004
|
name: string | null;
|
|
3999
4005
|
avatarUrl: string | null;
|
|
4000
4006
|
role: "subscriber" | "contributor" | "author" | "editor" | "admin";
|
|
@@ -4065,6 +4071,7 @@ export declare const appRouter: {
|
|
|
4065
4071
|
}, undefined>, import("@orpc/server").Schema<{
|
|
4066
4072
|
id: number;
|
|
4067
4073
|
email: string;
|
|
4074
|
+
slug: string;
|
|
4068
4075
|
name: string | null;
|
|
4069
4076
|
avatarUrl: string | null;
|
|
4070
4077
|
role: "subscriber" | "contributor" | "author" | "editor" | "admin";
|
|
@@ -4076,6 +4083,7 @@ export declare const appRouter: {
|
|
|
4076
4083
|
}, {
|
|
4077
4084
|
id: number;
|
|
4078
4085
|
email: string;
|
|
4086
|
+
slug: string;
|
|
4079
4087
|
name: string | null;
|
|
4080
4088
|
avatarUrl: string | null;
|
|
4081
4089
|
role: "subscriber" | "contributor" | "author" | "editor" | "admin";
|
|
@@ -4146,6 +4154,7 @@ export declare const appRouter: {
|
|
|
4146
4154
|
}, undefined>, import("@orpc/server").Schema<{
|
|
4147
4155
|
id: number;
|
|
4148
4156
|
email: string;
|
|
4157
|
+
slug: string;
|
|
4149
4158
|
name: string | null;
|
|
4150
4159
|
avatarUrl: string | null;
|
|
4151
4160
|
role: "subscriber" | "contributor" | "author" | "editor" | "admin";
|
|
@@ -4157,6 +4166,7 @@ export declare const appRouter: {
|
|
|
4157
4166
|
}, {
|
|
4158
4167
|
id: number;
|
|
4159
4168
|
email: string;
|
|
4169
|
+
slug: string;
|
|
4160
4170
|
name: string | null;
|
|
4161
4171
|
avatarUrl: string | null;
|
|
4162
4172
|
role: "subscriber" | "contributor" | "author" | "editor" | "admin";
|
|
@@ -4228,6 +4238,7 @@ export declare const appRouter: {
|
|
|
4228
4238
|
}, undefined>, import("@orpc/server").Schema<{
|
|
4229
4239
|
id: number;
|
|
4230
4240
|
email: string;
|
|
4241
|
+
slug: string;
|
|
4231
4242
|
name: string | null;
|
|
4232
4243
|
avatarUrl: string | null;
|
|
4233
4244
|
role: "subscriber" | "contributor" | "author" | "editor" | "admin";
|
|
@@ -4239,6 +4250,7 @@ export declare const appRouter: {
|
|
|
4239
4250
|
}, {
|
|
4240
4251
|
id: number;
|
|
4241
4252
|
email: string;
|
|
4253
|
+
slug: string;
|
|
4242
4254
|
name: string | null;
|
|
4243
4255
|
avatarUrl: string | null;
|
|
4244
4256
|
role: "subscriber" | "contributor" | "author" | "editor" | "admin";
|
package/dist/rpc/router.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../src/rpc/router.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAUjD,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../src/rpc/router.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAUjD,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQZ,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC;AAGzC,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,SAAS,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dispatcher.d.ts","sourceRoot":"","sources":["../../src/runtime/dispatcher.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAGhE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"dispatcher.d.ts","sourceRoot":"","sources":["../../src/runtime/dispatcher.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAGhE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAmH1C,MAAM,MAAM,gBAAgB,GAAG,CAAC,GAAG,EAAE,UAAU,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;AAEtE,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,SAAS,GAAG,gBAAgB,CAmBvE;AA8eD,UAAU,mBAAmB;IAC3B,QAAQ,CAAC,KAAK,EAAE,kBAAkB,CAAC;CACpC;AAED,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,SAAS,kBAAkB,EAAE,EACrC,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,GACb,mBAAmB,GAAG,IAAI,CAoB5B"}
|
|
@@ -8,7 +8,8 @@ import { pageTags } from "../cache/tags.js";
|
|
|
8
8
|
import { interfaceEnabled } from "../config.js";
|
|
9
9
|
import { withUser } from "../context/app.js";
|
|
10
10
|
import { resolveLocale } from "../i18n/resolve-locale.js";
|
|
11
|
-
import {
|
|
11
|
+
import { exposesHierarchicalUrls } from "../route/compile.js";
|
|
12
|
+
import { extractParams, matchRoute } from "../route/match.js";
|
|
12
13
|
import { renderErrorThroughTheme } from "../route/render/render-template.js";
|
|
13
14
|
import { resolvePublicRoute } from "../route/resolve.js";
|
|
14
15
|
import { canonicalRedirectTarget } from "../seo/canonical.js";
|
|
@@ -33,8 +34,15 @@ const SUB_SITEMAP_PATTERN = /^\/sitemap-(.+)-(\d+)\.xml$/;
|
|
|
33
34
|
// leading segment is the entry-type scope; `/feed*` reserves these paths the
|
|
34
35
|
// way WordPress does, so a page slugged "feed" can't shadow them.
|
|
35
36
|
const FEED_PATTERN = /^\/(?:([^/]+)\/)?feed(\/atom)?$/;
|
|
36
|
-
//
|
|
37
|
-
|
|
37
|
+
// `/authors/<slug>/feed` (+ `/atom`) — the author-scoped feed. Checked before
|
|
38
|
+
// the generic term-feed shape since `/authors/*` is a reserved framework space.
|
|
39
|
+
const AUTHOR_FEED_PATTERN = /^\/authors\/([^/]+)\/feed(\/atom)?$/;
|
|
40
|
+
// `/YYYY[/MM[/DD]]/feed` (+ `/atom`) — the date-scoped feed. Numeric-constrained
|
|
41
|
+
// (like the date route rules) and checked before the generic term-feed shape.
|
|
42
|
+
const DATE_FEED_PATTERN = /^\/(\d{4})(?:\/(\d{2}))?(?:\/(\d{2}))?\/feed(\/atom)?$/;
|
|
43
|
+
// `/<taxonomy>/<term-path>/feed` (+ `/atom`) — the term-scoped feed. The path
|
|
44
|
+
// is one segment for a top-level term, `parent/child` for a nested one.
|
|
45
|
+
const TERM_FEED_PATTERN = /^\/([^/]+)\/(.+)\/feed(\/atom)?$/;
|
|
38
46
|
// MCP is cold-path-exclusive (an agent endpoint, never the public render path).
|
|
39
47
|
// Dynamic-import its handler so the tool registry and the MCP SDK it pulls in
|
|
40
48
|
// stay off the public render and cold-start paths, evaluating only on the first
|
|
@@ -319,13 +327,43 @@ async function tryPublicRoutes(app, ctx, url) {
|
|
|
319
327
|
return handleFeed(ctx, { kind: "type", type }, feed[2] ? "atom" : "rss2");
|
|
320
328
|
}
|
|
321
329
|
}
|
|
330
|
+
const authorFeed = AUTHOR_FEED_PATTERN.exec(pathname);
|
|
331
|
+
if (authorFeed) {
|
|
332
|
+
// `collectFeedItems` 404s an unknown slug, so a bogus `/authors/x/feed`
|
|
333
|
+
// returns 404 rather than falling through to the public router.
|
|
334
|
+
return handleFeed(ctx, { kind: "author", slug: authorFeed[1] ?? "" }, authorFeed[2] ? "atom" : "rss2");
|
|
335
|
+
}
|
|
336
|
+
const dateFeed = DATE_FEED_PATTERN.exec(pathname);
|
|
337
|
+
if (dateFeed) {
|
|
338
|
+
// An impossible date (Feb 30) yields a null filter → 404 in `handleFeed`.
|
|
339
|
+
return handleFeed(ctx, {
|
|
340
|
+
kind: "date",
|
|
341
|
+
year: Number(dateFeed[1]),
|
|
342
|
+
month: dateFeed[2] === undefined ? null : Number(dateFeed[2]),
|
|
343
|
+
day: dateFeed[3] === undefined ? null : Number(dateFeed[3]),
|
|
344
|
+
}, dateFeed[4] ? "atom" : "rss2");
|
|
345
|
+
}
|
|
346
|
+
// Plugin-registered archive feeds (`registerArchiveType({ feed })`). Gated on
|
|
347
|
+
// the `/feed` suffix so the URLPattern match only runs for feed-shaped URLs,
|
|
348
|
+
// never the hot public-render path; checked before the generic term feed so a
|
|
349
|
+
// custom `/x/y/feed` isn't misread as a term feed.
|
|
350
|
+
if (pathname.endsWith("/feed") || pathname.endsWith("/feed/atom")) {
|
|
351
|
+
const archiveFeed = matchArchiveFeed(ctx, pathname);
|
|
352
|
+
if (archiveFeed) {
|
|
353
|
+
return handleFeed(ctx, { kind: "custom", name: archiveFeed.name, params: archiveFeed.params }, archiveFeed.atom ? "atom" : "rss2");
|
|
354
|
+
}
|
|
355
|
+
}
|
|
322
356
|
const termFeed = TERM_FEED_PATTERN.exec(pathname);
|
|
323
357
|
if (termFeed) {
|
|
324
|
-
// Only a public taxonomy's archive space owns `/<taxonomy>/<
|
|
358
|
+
// Only a public taxonomy's archive space owns `/<taxonomy>/<path>/feed`;
|
|
325
359
|
// anything else (e.g. a nested page) falls through to the public router.
|
|
326
360
|
const taxonomy = publicTaxonomyByBaseSlug(ctx, termFeed[1] ?? "");
|
|
327
|
-
|
|
328
|
-
|
|
361
|
+
const path = (termFeed[2] ?? "").split("/");
|
|
362
|
+
// A nested (multi-segment) path is only a term feed when the taxonomy
|
|
363
|
+
// exposes hierarchical URLs — mirrors the archive route, which only emits
|
|
364
|
+
// `:path+` for hierarchical taxonomies.
|
|
365
|
+
if (taxonomy && (path.length === 1 || exposesHierarchicalUrls(taxonomy))) {
|
|
366
|
+
return handleFeed(ctx, { kind: "term", taxonomy: taxonomy.name, path }, termFeed[3] ? "atom" : "rss2");
|
|
329
367
|
}
|
|
330
368
|
}
|
|
331
369
|
// Normalize a public page URL to its canonical (slash-less) shape before
|
|
@@ -335,6 +373,32 @@ async function tryPublicRoutes(app, ctx, url) {
|
|
|
335
373
|
return permanentRedirect(canonical);
|
|
336
374
|
return dispatchPublicRoute(app, ctx, url);
|
|
337
375
|
}
|
|
376
|
+
// Match a `/…/feed[/atom]` request against every registered archive feed route.
|
|
377
|
+
// The `/atom` variant of each route is matched too, so a plugin declares only
|
|
378
|
+
// the base feed route to get both formats. Returns the archive name + captured
|
|
379
|
+
// params, or null when no archive feed owns the path.
|
|
380
|
+
function matchArchiveFeed(ctx, pathname) {
|
|
381
|
+
// The caller only enters on the `/feed[/atom]` suffix, and routes are declared
|
|
382
|
+
// base-only, so the format is fixed here — no need to try both variants.
|
|
383
|
+
const atom = pathname.endsWith("/atom");
|
|
384
|
+
for (const archive of ctx.plugins.archiveTypes.values()) {
|
|
385
|
+
if (!archive.feed)
|
|
386
|
+
continue;
|
|
387
|
+
for (const route of archive.feed.routes) {
|
|
388
|
+
const result = new URLPattern({
|
|
389
|
+
pathname: atom ? `${route}/atom` : route,
|
|
390
|
+
}).exec({ pathname });
|
|
391
|
+
if (!result)
|
|
392
|
+
continue;
|
|
393
|
+
return {
|
|
394
|
+
name: archive.name,
|
|
395
|
+
params: extractParams(result.pathname),
|
|
396
|
+
atom,
|
|
397
|
+
};
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
return null;
|
|
401
|
+
}
|
|
338
402
|
// The public route intent for a resolved match: an unmatched root is the front
|
|
339
403
|
// page, any other unmatched URL is a 404 (never cached).
|
|
340
404
|
function publicIntent(match, url) {
|