@plone/aurora 1.0.0-alpha.7 → 1.0.0-alpha.8
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 +10 -0
- package/app/config/types.ts +7 -0
- package/app/root.tsx +11 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,16 @@
|
|
|
8
8
|
|
|
9
9
|
<!-- towncrier release notes start -->
|
|
10
10
|
|
|
11
|
+
## 1.0.0-alpha.8 (2026-09-14)
|
|
12
|
+
|
|
13
|
+
### Breaking
|
|
14
|
+
|
|
15
|
+
- The fixed wiring up the `rootLoaderData` utility envelope in the root loader provokes a breaking change for all `rootLoaderData` utilities so they must return a `{ status, data }` envelope (matching the PloneClient response shape), but the root loader spread the whole envelope onto the root loader data instead of merging each utility's `data`. It now merges `data`, so utilities that namespace their payload (for example `{ status, data: { likes: {...} } }`) are exposed correctly. @sneridagh
|
|
16
|
+
|
|
17
|
+
### Bugfix
|
|
18
|
+
|
|
19
|
+
- Wire up the `rootLoaderData` utility envelope in the root loader. Utilities return a `{ status, data }` envelope (matching the PloneClient response shape), but the root loader spread the whole envelope onto the root loader data instead of merging each utility's `data`. It now merges `data`, so utilities that namespace their payload (for example `{ status, data: { likes: {...} } }`) are exposed correctly. Acting on `status` is left for a follow-up. @sneridagh
|
|
20
|
+
|
|
11
21
|
## 1.0.0-alpha.7 (2026-09-05)
|
|
12
22
|
|
|
13
23
|
### Internal
|
package/app/config/types.ts
CHANGED
|
@@ -9,6 +9,13 @@ declare module '@plone/types' {
|
|
|
9
9
|
interface UtilityTypeMap {
|
|
10
10
|
client: () => PloneClientUtility;
|
|
11
11
|
rootContentSubRequest: (args: LoaderUtilityArgs) => Promise<unknown>;
|
|
12
|
+
// A `rootLoaderData` utility returns a `{ status, data }` envelope — the
|
|
13
|
+
// same shape as a PloneClient response — so a utility that queries Plone
|
|
14
|
+
// can pass the response straight through. The root loader merges each
|
|
15
|
+
// utility's `data` into the root loader data (see `app/root.tsx`), so
|
|
16
|
+
// utilities should namespace their `data` under a unique key (for example
|
|
17
|
+
// `{ status, data: { likes: {...} } }`) to avoid clobbering others.
|
|
18
|
+
// NOTE: `status` is not acted upon yet (see TODO in `app/root.tsx`).
|
|
12
19
|
rootLoaderData: (
|
|
13
20
|
args: LoaderUtilityArgs,
|
|
14
21
|
) => Promise<{ status: number; data: unknown }>;
|
package/app/root.tsx
CHANGED
|
@@ -77,9 +77,19 @@ export async function loader({ params, request, context }: Route.LoaderArgs) {
|
|
|
77
77
|
site,
|
|
78
78
|
locale,
|
|
79
79
|
isAuthenticated: user !== null,
|
|
80
|
+
// Each `rootLoaderData` utility returns a `{ status, data }` envelope
|
|
81
|
+
// (see `config/types.ts`). Merge each utility's `data` into the root
|
|
82
|
+
// loader data; utilities namespace their `data` to avoid clobbering.
|
|
83
|
+
// TODO: act on `status` (e.g. propagate a non-2xx to the response).
|
|
80
84
|
...rootLoaderDataUtilitiesData
|
|
81
85
|
.filter((item) => item)
|
|
82
|
-
.reduce(
|
|
86
|
+
.reduce(
|
|
87
|
+
(acc, item) => ({
|
|
88
|
+
...acc,
|
|
89
|
+
...(item.data as Record<string, unknown>),
|
|
90
|
+
}),
|
|
91
|
+
{},
|
|
92
|
+
),
|
|
83
93
|
};
|
|
84
94
|
|
|
85
95
|
return data(loaderData, {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plone/aurora",
|
|
3
3
|
"description": "Plone Aurora is the next-generation frontend for Plone CMS",
|
|
4
|
-
"version": "1.0.0-alpha.
|
|
4
|
+
"version": "1.0.0-alpha.8",
|
|
5
5
|
"maintainers": [
|
|
6
6
|
{
|
|
7
7
|
"name": "Plone Foundation",
|
|
@@ -45,19 +45,19 @@
|
|
|
45
45
|
"react-i18next": "^15.4.1",
|
|
46
46
|
"react-router": "8.2.0",
|
|
47
47
|
"remix-i18next": "^8.0.0",
|
|
48
|
-
"@plone/agave": "1.0.0-alpha.6",
|
|
49
48
|
"@plone/blocks": "1.0.0-alpha.12",
|
|
49
|
+
"@plone/client": "2.0.0-alpha.5",
|
|
50
50
|
"@plone/components": "5.0.0-alpha.2",
|
|
51
51
|
"@plone/contents": "1.0.0-alpha.0",
|
|
52
|
-
"@plone/
|
|
52
|
+
"@plone/agave": "1.0.0-alpha.6",
|
|
53
53
|
"@plone/layout": "1.0.0-alpha.10",
|
|
54
54
|
"@plone/helpers": "2.0.0-alpha.7",
|
|
55
|
-
"@plone/plate": "1.0.0-alpha.
|
|
55
|
+
"@plone/plate": "1.0.0-alpha.15",
|
|
56
|
+
"@plone/react-router": "2.0.0-alpha.5",
|
|
56
57
|
"@plone/publicui": "1.0.0-alpha.5",
|
|
58
|
+
"@plone/registry": "4.0.0-alpha.2",
|
|
57
59
|
"@plone/theming": "1.0.0-alpha.6",
|
|
58
|
-
"@plone/
|
|
59
|
-
"@plone/react-router": "2.0.0-alpha.5",
|
|
60
|
-
"@plone/registry": "4.0.0-alpha.2"
|
|
60
|
+
"@plone/cmsui": "1.0.0-alpha.5"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@babel/core": "^7.28.5",
|