@commonpub/layer 0.73.0 → 0.73.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commonpub/layer",
|
|
3
|
-
"version": "0.73.
|
|
3
|
+
"version": "0.73.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./nuxt.config.ts",
|
|
6
6
|
"files": [
|
|
@@ -53,17 +53,17 @@
|
|
|
53
53
|
"vue": "^3.4.0",
|
|
54
54
|
"vue-router": "^4.3.0",
|
|
55
55
|
"zod": "^4.3.6",
|
|
56
|
-
"@commonpub/docs": "0.6.3",
|
|
57
|
-
"@commonpub/config": "0.22.0",
|
|
58
|
-
"@commonpub/editor": "0.7.11",
|
|
59
56
|
"@commonpub/auth": "0.8.0",
|
|
57
|
+
"@commonpub/config": "0.22.1",
|
|
58
|
+
"@commonpub/editor": "0.7.11",
|
|
60
59
|
"@commonpub/learning": "0.5.2",
|
|
61
|
-
"@commonpub/schema": "0.40.1",
|
|
62
|
-
"@commonpub/explainer": "0.7.15",
|
|
63
60
|
"@commonpub/protocol": "0.13.0",
|
|
61
|
+
"@commonpub/schema": "0.40.1",
|
|
62
|
+
"@commonpub/theme-studio": "0.6.1",
|
|
64
63
|
"@commonpub/server": "2.84.1",
|
|
64
|
+
"@commonpub/explainer": "0.7.15",
|
|
65
65
|
"@commonpub/ui": "0.13.1",
|
|
66
|
-
"@commonpub/
|
|
66
|
+
"@commonpub/docs": "0.6.3"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@testing-library/jest-dom": "^6.9.1",
|
|
@@ -119,14 +119,19 @@ export default defineEventHandler(async (event): Promise<{ items: unknown[]; tot
|
|
|
119
119
|
// items the instance's own homepage shows. Delegate to listContent (same
|
|
120
120
|
// merge, same pagination invariants, items already in ContentCard's shape)
|
|
121
121
|
// whenever the request uses only filters listContent supports. Search-only
|
|
122
|
-
// filters (author, date range, multiple tags)
|
|
123
|
-
//
|
|
124
|
-
//
|
|
122
|
+
// filters (author, date range, multiple tags) keep the dedicated local
|
|
123
|
+
// path: federated rows aren't indexed and don't carry those fields.
|
|
124
|
+
// NOTE this branch deliberately OUTRANKS Meilisearch when federation is on:
|
|
125
|
+
// meili only ever indexes LOCAL content, so on a mirror-heavy instance a
|
|
126
|
+
// configured-but-mostly-empty index would shadow the merge and return 0
|
|
127
|
+
// (exactly what happened on commonpub.io, whose compose stack sets
|
|
128
|
+
// MEILI_URL — the first ship of this fix gated on `!meiliClient` and was
|
|
129
|
+
// inert there). `resolveContentQuery` pins status=published +
|
|
125
130
|
// visibility=public so this path can never widen what search exposes.
|
|
126
131
|
const tagList = params.tags?.split(',').map((t) => t.trim()).filter(Boolean) ?? [];
|
|
127
132
|
const usesSearchOnlyFilters = !!(params.author || params.dateFrom || params.dateTo || tagList.length > 1);
|
|
128
133
|
const CONTENT_TYPES = new Set(['project', 'article', 'blog', 'explainer']);
|
|
129
|
-
if (
|
|
134
|
+
if (config.features.seamlessFederation && !usesSearchOnlyFilters) {
|
|
130
135
|
const raw: ContentFilters = {
|
|
131
136
|
search: q,
|
|
132
137
|
type: params.type && CONTENT_TYPES.has(params.type) ? (params.type as ContentFilters['type']) : undefined,
|