@plone/aurora 1.0.0-alpha.6 → 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/.release-it.json CHANGED
@@ -7,7 +7,10 @@
7
7
  "pipx run towncrier build --draft --yes --version ${version} > .changelog.draft",
8
8
  "pipx run towncrier build --yes --version ${version}"
9
9
  ],
10
- "after:release": "rm .changelog.draft"
10
+ "after:release": [
11
+ "rm .changelog.draft",
12
+ "pnpm dist-tag add @plone/aurora@${version} latest"
13
+ ]
11
14
  },
12
15
  "npm": {
13
16
  "publish": false
@@ -17,13 +20,13 @@
17
20
  "changelog": "pipx run towncrier build --draft --yes --version 0.0.0",
18
21
  "requireUpstream": false,
19
22
  "requireCleanWorkingDir": false,
20
- "commitMessage": "Release @plone/aurora ${version}",
21
- "tagName": "plone-aurora-${version}",
22
- "tagAnnotation": "Release @plone/aurora ${version}"
23
+ "commitMessage": "Releasing @plone/aurora ${version}",
24
+ "tagName": "${version}",
25
+ "tagAnnotation": "${version}"
23
26
  },
24
27
  "github": {
25
28
  "release": true,
26
- "releaseName": "@plone/aurora ${version}",
29
+ "releaseName": "${version}",
27
30
  "releaseNotes": "cat .changelog.draft"
28
31
  }
29
32
  }
package/CHANGELOG.md CHANGED
@@ -8,6 +8,22 @@
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
+
21
+ ## 1.0.0-alpha.7 (2026-09-05)
22
+
23
+ ### Internal
24
+
25
+ - Re-release for adjust tag in repo and in npm automatically during the alpha phase. @sneridagh
26
+
11
27
  ## 1.0.0-alpha.6 (2026-09-05)
12
28
 
13
29
  ### Internal
@@ -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((acc, item) => ({ ...acc, ...item }), {}),
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.6",
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
- "@plone/cmsui": "1.0.0-alpha.5",
50
- "@plone/contents": "1.0.0-alpha.0",
48
+ "@plone/blocks": "1.0.0-alpha.12",
49
+ "@plone/client": "2.0.0-alpha.5",
51
50
  "@plone/components": "5.0.0-alpha.2",
52
- "@plone/plate": "1.0.0-alpha.14",
51
+ "@plone/contents": "1.0.0-alpha.0",
52
+ "@plone/agave": "1.0.0-alpha.6",
53
53
  "@plone/layout": "1.0.0-alpha.10",
54
- "@plone/client": "2.0.0-alpha.5",
55
- "@plone/blocks": "1.0.0-alpha.12",
54
+ "@plone/helpers": "2.0.0-alpha.7",
55
+ "@plone/plate": "1.0.0-alpha.15",
56
56
  "@plone/react-router": "2.0.0-alpha.5",
57
+ "@plone/publicui": "1.0.0-alpha.5",
57
58
  "@plone/registry": "4.0.0-alpha.2",
58
59
  "@plone/theming": "1.0.0-alpha.6",
59
- "@plone/helpers": "2.0.0-alpha.7",
60
- "@plone/publicui": "1.0.0-alpha.5"
60
+ "@plone/cmsui": "1.0.0-alpha.5"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@babel/core": "^7.28.5",