@vermeulen.solutions/eventual 0.0.0-stage → 0.18.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.
Files changed (75) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +139 -2
  3. package/astro/EventList.astro +57 -0
  4. package/astro/admin.d.mts +3 -0
  5. package/astro/admin.mjs +158 -0
  6. package/astro/blueprint.d.mts +51 -0
  7. package/astro/blueprint.mjs +236 -0
  8. package/astro/cache.ts +82 -0
  9. package/astro/descriptor.mjs +7 -0
  10. package/astro/editor-compat.mjs +197 -0
  11. package/astro/editor-i18n.d.mts +8 -0
  12. package/astro/editor-i18n.mjs +157 -0
  13. package/astro/event-details.ts +29 -0
  14. package/astro/event-list.ts +56 -0
  15. package/astro/feed.ts +201 -0
  16. package/astro/install.d.mts +9 -0
  17. package/astro/install.mjs +66 -0
  18. package/astro/schema.ts +88 -0
  19. package/dist/index.d.mts +5 -0
  20. package/dist/index.mjs +1585 -0
  21. package/dist/plugin.d.mts +6 -0
  22. package/dist/plugin.mjs +13 -0
  23. package/docs/collection-setup.md +46 -0
  24. package/docs/history.md +16 -0
  25. package/docs/native-modernization.md +99 -0
  26. package/docs/public-feed-caching.md +259 -0
  27. package/docs/registry-installation.md +13 -0
  28. package/docs/release-notes-0.14.0.md +27 -0
  29. package/docs/release-notes-0.14.1.md +40 -0
  30. package/docs/release-notes-0.15.0.md +18 -0
  31. package/docs/release-notes-0.16.0.md +7 -0
  32. package/docs/release-notes-0.17.0.md +7 -0
  33. package/docs/release-notes-0.18.0.md +8 -0
  34. package/docs/release-notes-0.18.1.md +7 -0
  35. package/docs/release-notes-0.18.2.md +6 -0
  36. package/docs/upgrade-0.13.0.md +21 -0
  37. package/docs/user-guide.md +40 -0
  38. package/emdash-plugin.jsonc +77 -0
  39. package/package.json +143 -4
  40. package/scripts/check-editor-installation.mjs +32 -0
  41. package/scripts/export-native-schema.mjs +28 -0
  42. package/scripts/upgrade-native-editor.mjs +296 -0
  43. package/src/domain/calendar-links.ts +80 -0
  44. package/src/domain/category.ts +32 -0
  45. package/src/domain/collections.ts +101 -0
  46. package/src/domain/date-time.ts +220 -0
  47. package/src/domain/description.ts +108 -0
  48. package/src/domain/event-data.ts +217 -0
  49. package/src/domain/event-expansion.ts +305 -0
  50. package/src/domain/event.ts +195 -0
  51. package/src/domain/icalendar.ts +165 -0
  52. package/src/domain/image.ts +18 -0
  53. package/src/domain/invocation-budget.ts +56 -0
  54. package/src/domain/messages.ts +8 -0
  55. package/src/domain/migration.ts +666 -0
  56. package/src/domain/native-calendar.ts +256 -0
  57. package/src/domain/native-references.ts +41 -0
  58. package/src/domain/native-source.ts +261 -0
  59. package/src/domain/native-validation.ts +366 -0
  60. package/src/domain/occurrences.ts +54 -0
  61. package/src/domain/portable-text.ts +180 -0
  62. package/src/domain/public-cache.ts +24 -0
  63. package/src/domain/recurrence-rule.ts +34 -0
  64. package/src/domain/recurrence.ts +350 -0
  65. package/src/domain/request-memo.ts +8 -0
  66. package/src/domain/schedule-history.ts +14 -0
  67. package/src/domain/text.ts +2 -0
  68. package/src/domain/time-entry.ts +23 -0
  69. package/src/domain/venue-adapter.ts +101 -0
  70. package/src/domain/venue.ts +42 -0
  71. package/src/public-event.ts +88 -0
  72. package/src/schema/blueprint.ts +315 -0
  73. package/src/storage.ts +257 -0
  74. package/transfer/index.d.mts +13 -0
  75. package/transfer/index.mjs +155 -0
@@ -0,0 +1,259 @@
1
+ # Opt-in caching of event pages
2
+
3
+ Eventual 0.15.0 supplies dependency evidence for host-rendered HTML. It
4
+ does not enable caching, change a site's route rules, or purge a host cache from
5
+ the plugin. Existing feed fields and `fetchPublicFeed()` calls still work.
6
+
7
+ Use **EmDash 1.4.0 or later in the 1.x line** for this integration; the verified
8
+ baseline is EmDash 1.4.0, Astro 7.3.2, Node adapter 11.1.5 and Node/workerd runner
9
+ 0.9.6. This is a caching integration requirement, not a change to Eventual's
10
+ existing >=1.2.0 rendering compatibility. Later hosts still need acceptance
11
+ testing. Registry hosts also need their normal Worker Loader/PluginBridge setup.
12
+
13
+ ## Feed contract
14
+
15
+ Successful native `/publicEvents` results add optional `cache`:
16
+
17
+ ```ts
18
+ interface PublicFeedCache {
19
+ version: 1;
20
+ dependencies: string[];
21
+ generatedAt: string; // canonical absolute UTC ISO instant, before source reads
22
+ expiresAt: string; // must re-render by this instant; never extend on receipt
23
+ }
24
+ ```
25
+
26
+ `dependencies` contains the actual event collection slug, its schema's venue and
27
+ organizer reference targets, and `emdash:settings`. For example a site using
28
+ `activities`, `locations`, `hosts` receives those names, not hardcoded `events`.
29
+ Collection dependencies cover **all entry IDs** in those collections, including
30
+ translations, missing references, filtered-out entries and empty results. There
31
+ are no per-event dependency reads or unbounded lists of entry tags. Directory
32
+ collection tags conservatively remain present when no event currently uses them.
33
+
34
+ The metadata describes public results only. Legacy private-storage feeds and
35
+ unsuccessful results carry no cache evidence. No draft identity, schedule or
36
+ revision is revealed by metadata. Native announcement text, schedule, occurrence
37
+ exceptions, categories, slugs, featured-media references and translations are
38
+ covered by the event collection. Venue and organizer public projections are
39
+ covered by their collections. Site URL/locale settings are conservatively covered
40
+ by the site settings tag. Host schema/URL-pattern changes and Eventual's collection
41
+ bindings have no supported purge tag; expiry bounds those changes.
42
+
43
+ Source freshness is a separate requirement: EmDash 1.4.0 initializes the plugin's
44
+ `ctx.site` identity when the runtime/runner starts. A site URL/identity change can
45
+ purge HTML without refreshing that snapshot. Follow the host's runtime restart
46
+ procedure for such changes before refilling pages; expiry cannot repair stale
47
+ source inputs. The local settings acceptance covers live page settings and plugin
48
+ collection bindings, not hot-reloading `ctx.site`. Upstream would need to refresh
49
+ site identity per invocation (or rebuild the runner on identity changes).
50
+
51
+ **Expiry is at most 15 seconds after generation.** This is a correctness ceiling,
52
+ not a chosen route TTL: it bounds missing host invalidation and purge failures.
53
+ The host may choose anything shorter, or keep event pages uncached. Metadata has
54
+ no `maxAge`, `swr`, validator or directly usable Astro `tags` property.
55
+
56
+ `fetchPublicFeed()` still uses a fresh `fetch` with `cache: "no-store"`. It returns
57
+ validated metadata when available. Its new optional `pluginId` addresses a
58
+ Registry-generated installation ID; the default remains `eventual`:
59
+
60
+ ```ts
61
+ const feed = await fetchPublicFeed(origin, from, through, '', {
62
+ pluginId: installedPluginId, locale: 'fr', publicUrls: false,
63
+ });
64
+ ```
65
+
66
+ For in-process dispatch use the **request-scoped public handler**, then the same
67
+ validator. Do not fetch the site's own Worker over HTTP:
68
+
69
+ ```ts
70
+ const requestUrl = new URL(`/_emdash/api/plugins/${encodeURIComponent(pluginId)}/publicEvents`, Astro.url);
71
+ requestUrl.search = new URLSearchParams({ from, through, locale: 'fr', publicUrls: 'false' }).toString();
72
+ const feed = parsePublicFeed(await Astro.locals.emdash.handlePublicPluginApiRoute(
73
+ pluginId, 'GET', 'publicEvents', new Request(requestUrl),
74
+ ));
75
+ ```
76
+
77
+ Both functions preserve old results without metadata. Invalid event lists and
78
+ unsuccessful envelopes throw `FeedError` as before; missing, unknown-version or
79
+ malformed cache evidence is discarded and the content can still render.
80
+
81
+ ## Small Astro example
82
+
83
+ Configure the appropriate Astro provider explicitly (`memoryCache()` from
84
+ `astro/config` on Node, `cacheCloudflare()` from `@astrojs/cloudflare/cache` on
85
+ Cloudflare). Keep route eligibility under host control. Here the host elects to
86
+ cache only anonymous `/events` HTML for up to 15 seconds, with no stale serving:
87
+
88
+ ```astro
89
+ ---
90
+ import { parsePublicFeed, publicFeedCacheOptions, publicEventTimeBoundary } from '@vermeulen.solutions/eventual/astro';
91
+ const pluginId = import.meta.env.EVENTUAL_PLUGIN_ID ?? 'eventual';
92
+ const requestUrl = new URL(`/_emdash/api/plugins/${encodeURIComponent(pluginId)}/publicEvents`, Astro.url);
93
+ requestUrl.search = new URLSearchParams({ locale: 'fr', publicUrls: 'false' }).toString();
94
+ const result = await Astro.locals.emdash.handlePublicPluginApiRoute(
95
+ pluginId, 'GET', 'publicEvents', new Request(requestUrl),
96
+ );
97
+ const feed = parsePublicFeed(result);
98
+ const boundary = publicEventTimeBoundary(feed.events);
99
+ const eligible = Astro.url.pathname === '/events'
100
+ && Astro.request.method === 'GET'
101
+ && !Astro.locals.user
102
+ && !Astro.request.headers.has('authorization')
103
+ && !Astro.request.headers.has('cookie')
104
+ && !Astro.url.searchParams.has('_preview')
105
+ && !Astro.url.searchParams.has('_edit');
106
+ const cacheOptions = eligible ? publicFeedCacheOptions([feed], {
107
+ maxAge: 15, boundaries: boundary ? [boundary] : [],
108
+ }) : false;
109
+ if (Astro.cache?.enabled) Astro.cache.set(cacheOptions);
110
+ Astro.response.headers.set('Cache-Control', cacheOptions ? 'no-cache' : 'private, no-store');
111
+ ---
112
+ <html><body>{feed.events.map(event => <h2>{event.title}</h2>)}</body></html>
113
+ ```
114
+
115
+ In a real layout, aggregate every query first and apply the final decision in
116
+ host middleware **after** rendering. Buffer the HTML if components render
117
+ asynchronously, recalculate remaining lifetime at that point, and verify status
118
+ 200, HTML content type, no Set-Cookie and the host's full eligibility rules. Catch
119
+ feed/render errors and call `cache.set(false)` with `private, no-store`, even if
120
+ the host renders a friendly error with status 200. The production test fixture in
121
+ `scripts/verify-public-cache.mjs` demonstrates that final guard.
122
+
123
+ Astro merges scalar options with last-write-wins and can re-enable caching after
124
+ `set(false)`. No later layout/helper should widen TTL or turn caching back on.
125
+ Register other CMS query hints (menus, settings, widgets, etc.) only inside the
126
+ same eligible branch, and include their own expiry constraints. Never pass raw
127
+ feed metadata as a cache hint. A tags-only Astro hint can enable Cloudflare's
128
+ implicit two-hour lifetime without a route rule. Do not use a root catch-all rule
129
+ that includes `/_emdash/`, forms, operational, authenticated or preview routes.
130
+
131
+ The guard prevents storing a private render. A provider can serve an already
132
+ cached anonymous response **before middleware runs**, including to signed-in
133
+ editors. The stock Cloudflare provider cannot bypass a cache hit by cookies.
134
+ If BBHC requires every authenticated request to execute the Worker, keep these
135
+ routes uncached until the host/provider supplies that bypass. Do not put
136
+ session-dependent UI in the shared representation. The local privacy tests
137
+ demonstrate private misses never populate the cache, not a Cloudflare cookie bypass.
138
+
139
+ `publicFeedCacheOptions(feeds, { maxAge, boundaries?, now? })` returns explicit
140
+ `{ tags, maxAge, swr: 0 }` or `false`. A positive finite host TTL is mandatory. It
141
+ validates all parts, unions dependencies and floors the shortest remaining
142
+ duration to seconds. Any absent/expired/future-generated/invalid/unsupported
143
+ metadata, failed part, invalid boundary, empty input, or less than one remaining
144
+ second disables storage. Keep every successful split in the array, **including
145
+ empty splits**, and fail the whole page if any split fails. Do not reset expiry
146
+ when retrying, merging, filtering or slicing results. `now` is for deterministic
147
+ tests; production should use the current host clock and synchronized clocks.
148
+
149
+ Tags only invalidate caches attached to the same source host/provider. A remote
150
+ HTTP consumer cannot receive the source site's purge automatically; its bounded
151
+ expiry is the supported fallback. Browser caches are never purged by these tags.
152
+ Use browser `no-cache`, or a browser TTL no longer than the final remaining page
153
+ lifetime; a fresh 15-second browser TTL on an already-aged CDN hit could extend
154
+ staleness. Do not add stale-if-error or stale-while-revalidate at another layer.
155
+
156
+ ## Time without writes
157
+
158
+ - An omitted `from` uses **UTC today**, preserving existing feed semantics. Its
159
+ `expiresAt` is additionally capped at the next UTC midnight, including empty
160
+ feeds. An omitted `through` is `from + 180` calendar days; with explicit `from`
161
+ this adds no clock dependency.
162
+ - Explicit range expansion, recurrence and exceptions use event timezones but
163
+ do not filter against the current instant. Membership does not change simply
164
+ because an event starts or ends. Local civil-date and DST behavior is unchanged.
165
+ - A renderer adding upcoming/ongoing/ended labels should include
166
+ `publicEventTimeBoundary(events)`. Timed boundaries use their absolute start/end
167
+ instants. All-day end dates are **inclusive**: the ending boundary is midnight
168
+ after the last day in the event's timezone, including 23/25-hour DST days.
169
+ - A renderer grouping/filtering by local today should also include
170
+ `publicCalendarDateBoundary(timezone)`. Relative text, navigation, other data and
171
+ timezones need their own boundaries. A skipped/unresolvable local midnight
172
+ throws: leave that response uncached rather than guessing an offset.
173
+ - The public published-only content API does not expose all future scheduled
174
+ drafts. Exact future publication boundaries cannot be promised without reading
175
+ private schedules. The 15-second ceiling bounds a missed scheduler purge from
176
+ when publication actually happens; it does not guarantee scheduler punctuality.
177
+ No new cron job is needed. On Node the scheduler itself has no route purge.
178
+
179
+ ## Verified host contract and upstream requirements
180
+
181
+ The following trace is for **installed EmDash 1.4.0**, not an assumed sandbox API.
182
+ See [EmDash route caching](https://docs.emdashcms.com/deployment/route-caching/),
183
+ [Astro caching](https://docs.astro.build/en/guides/caching/) and
184
+ [sandbox boundaries](https://docs.emdashcms.com/deployment/plugin-sandbox/).
185
+
186
+ | Mutation path | Native route invalidation | Plugin/bridge path |
187
+ | --- | --- | --- |
188
+ | Create/duplicate draft | None needed | None needed; never public |
189
+ | Save draft revision | No purge for draft-only save | `content.update` is draft-aware; no route purge |
190
+ | Save live fields in a collection without drafts | `[collection, canonicalId]` | Generic `content.update` does **not** purge |
191
+ | Publish/unpublish | `[collection, canonicalId]` | Versioned publication actions purge when a request/event invalidator is supplied |
192
+ | Trash/delete | `[collection, canonicalId]` | Generic `content.delete` does **not** purge |
193
+ | Restore from trash (restored as draft) | `[collection, canonicalId]`; stays private until republished | Versioned restore action uses supplied invalidator |
194
+ | Schedule/unschedule | `[collection, canonicalId]` | Versioned action uses supplied invalidator |
195
+ | Scheduler promotes a revision | Cloudflare Cron purges published collection/ID batches | Node timer has no route invalidation; TTL fallback |
196
+ | Restore an older revision | No route invalidation | TTL fallback |
197
+ | Native site settings | `emdash:settings` | Plugin settings/KV writes have **no** matching route purge |
198
+ | Schema/URL pattern, media library/byline edits | No general matching route purge | TTL fallback; renderers must cover additional data they resolve |
199
+
200
+ Native REST routes own their invalidation; runtime `handleContent*` calls alone
201
+ are not equivalent. Eventual's native schedule/occurrence controls save via generic
202
+ `ctx.content.update`; native publication is the later step that makes draft
203
+ changes public and purges. Its legacy MCP/storage writes are not CMS collection
204
+ writes. Collection settings affect source selection, while legacy opt-in only
205
+ affects the fallback lane. Both settings paths lack route invalidation.
206
+
207
+ Source trace: `emdash/src/astro/routes/api/content/`,
208
+ `emdash/src/cache/route-cache.ts`, `emdash/src/plugins/context.ts`,
209
+ `emdash/src/emdash-runtime.ts` (`runPluginContentAction`),
210
+ `emdash/src/astro/public-plugin-api-routes.ts`,
211
+ `@emdash-cms/cloudflare/src/sandbox/{bridge,runtime-bridge,wrapper}.ts`,
212
+ `@emdash-cms/cloudflare/src/worker.ts`, and
213
+ `@emdash-cms/sandbox-workerd/src/sandbox/bridge-handler.ts`.
214
+
215
+ There is **no public sandbox `ctx.cache`**. Plugin KV/storage and the EmDash object
216
+ cache are distinct from Astro's rendered route cache. The supported integration
217
+ is the host's `Astro.cache.set()` plus native-route invalidation and bounded
218
+ expiry. For reliable immediate invalidation of every mutation, upstream must
219
+ carry the request/event route invalidator into generic content update/delete
220
+ on both bridges, invalidate only committed live changes, provide a documented
221
+ plugin-settings/binding tag on every settings write path, and connect Node
222
+ scheduled publication to its cache provider. Revisions, schema and URL-pattern
223
+ changes also need documented tags if hosts want longer lifetimes. No currently
224
+ released version is claimed to solve these gaps. No purge endpoint is added.
225
+
226
+ Purge errors are deliberately swallowed by EmDash after successful writes.
227
+ Cloudflare purges can be rate limited. The ceiling remains required even when
228
+ all tested purge paths work. Concurrent rendering/publication can also refill a
229
+ cache after its purge; bounded TTL covers that race.
230
+
231
+ Keep HTML, public JSON, calendar subscriptions/downloads and images as separate
232
+ representations with independent policies. The existing JSON 60-second HTTP
233
+ policy and raw calendar/image policies are unchanged; feed expiry does not make
234
+ those HTTP headers into HTML dependencies. A stale upstream JSON body has aged
235
+ metadata and cannot refill a parent cache. Never derive an HTML/feed ETag or
236
+ Last-Modified solely from the currently visible event timestamps: deleted entries,
237
+ new matches, dependencies and settings would be missed.
238
+
239
+ ## BBHC adoption checklist (no site change made here)
240
+
241
+ - Upgrade the helper package and backend together to 0.15.0;
242
+ 0.14.0/0.14.1 responses have no metadata. Verify EmDash/provider versions first.
243
+ - Retain the local configured npm backend and Cloudflare Registry backend lanes,
244
+ using each installation's actual plugin ID. Verify collection tags against
245
+ BBHC's deployed schemas; do not rename collections or rewrite content.
246
+ - Keep the current range bisection. Union evidence from **all** results and choose
247
+ earliest expiry plus host/renderer constraints. Avoid per-event queries.
248
+ - Opt in only the agreed anonymous homepage/event HTML routes, with <=15-second
249
+ remaining TTL and zero stale serving. Preserve all existing private/form,
250
+ editing, preview and operational exclusions. Register all other rendered data.
251
+ - Add renderer boundaries for labels, local today and navigation; decide browser
252
+ caching separately. Audit layouts for tags-only hints and later TTL overrides.
253
+ - Before enabling on hosted Cloudflare, demonstrate cached parent hits, native
254
+ publish/live edit/unpublish/delete/restore, first matching publication, venue,
255
+ organizer and settings changes; draft/privacy, clock expiry, errors and failed
256
+ purges. Verify scheduled visibility, Registry ID and actual CDN purge limits.
257
+ - Require fresh renders within the chosen TTL when purge is unavailable. Hosted
258
+ Workers Cache behavior and deployed Registry installation remain **unverified**
259
+ by the local acceptance; keep BBHC uncached until its hosted gate passes.
@@ -0,0 +1,13 @@
1
+ # Eventual RSVP – Core 0.18.2
2
+
3
+ Requires EmDash **>=1.2.0 <2.0.0** for event management. **1.4.0 is recommended** for nested forms and Cloudflare plugin mutations, and required for the optional cache integration.
4
+
5
+ In **Plugins → Registry**, find **Eventual RSVP – Core** by **vermeulen.solutions**, review permissions and install or update. Version 0.18.2 asks for no new permissions; since 0.18.0 Core uses `network:request` to `cdn.jsdelivr.net` for the admin's language packs. It adds no MCP tools. Enable intended tools separately under **Agent access**.
6
+
7
+ Open **Event settings**, select compatible event, venue and organizer collections, then **Save settings**. Installation does not create schemas or migrate content. Site builders: [collection setup](https://github.com/Vermeulen-Solutions/eventual-rsvp-core/blob/main/docs/collection-setup.md).
8
+
9
+ Save an announcement, open **Dates, venue & repeat**, save changed sections, reload, then publish in EmDash. [Editor guide](https://github.com/Vermeulen-Solutions/eventual-rsvp-core/blob/main/docs/user-guide.md).
10
+
11
+ Keep **Show old events saved inside the plugin** off for native collections. Enable it only to serve legacy plugin data without a connected collection. Upgrades from 0.12.x or earlier need a backup and [native migration](https://github.com/Vermeulen-Solutions/eventual-rsvp-core/blob/main/docs/upgrade-0.13.0.md).
12
+
13
+ Your site builder connects visitor pages, optionally with the npm helpers `@vermeulen.solutions/eventual` at the same version. **Caching stays opt-in**: Core supplies dependencies and a maximum 15-second expiry, not site-wide cache rules. Use matching source helpers, explicit eligibility and no stale serving. Read the [integration guide and host limitations](https://github.com/Vermeulen-Solutions/eventual-rsvp-core/blob/main/docs/public-feed-caching.md) before enabling it.
@@ -0,0 +1,27 @@
1
+ # Eventual 0.14.0
2
+
3
+ Released 14 October 2026. Requires EmDash **>=1.2.0 <2.0.0**.
4
+
5
+ ## The change
6
+
7
+ When no native event collection is connected, public reads now report a setup problem instead of automatically showing old events stored inside the plugin. Those copies can lack language information and appear with an unexpected `[EN]` title prefix.
8
+
9
+ | Your site | What to do |
10
+ | --- | --- |
11
+ | Events are editable in an EmDash collection | Update normally; keep **Show old events saved inside the plugin** off. |
12
+ | Events remain only in old plugin storage | Prefer [copying them into a collection](upgrade-0.13.0.md). Temporarily, enable the switch in **Eventual → Settings**, then choose **Save switch**. |
13
+ | A selected collection has disappeared | Restore or reconnect it. The switch does not override a broken explicit selection. |
14
+
15
+ Native collections remain authoritative even while empty. The switch neither merges both sources nor makes legacy rows editable.
16
+
17
+ The unconfigured-feed error is:
18
+
19
+ > Eventual is not connected to a content type. Choose one under Eventual settings, or turn on "Show old events saved inside the plugin".
20
+
21
+ ## For administrators and developers
22
+
23
+ Existing 0.13.x native schemas need no migration. Earlier versions require the [native-content upgrade](upgrade-0.13.0.md). Review changed MCP tool consent; installation does not enable agent access.
24
+
25
+ The setting is `legacyReads` in `getSettings`/`updateSettings`; the admin action is `save-legacy-reads`. Stored values enable reads only when strictly boolean `true`, and both save paths invalidate the request memo. The gate covers JSON, calendar reconciliation and subscriptions; disabled legacy images return 404. Administrative inspection, migration and legacy write tools retain their existing permissions.
26
+
27
+ Acceptance restored French weekday labels and refreshed the settings screenshot. See [using Eventual](user-guide.md), [developer integration](native-modernization.md) and the [release evidence](../audit/releases/0.14.0/README.md).
@@ -0,0 +1,40 @@
1
+ # Eventual 0.14.1
2
+
3
+ Released 30 October 2026. Requires EmDash **>=1.2.0 <2.0.0**.
4
+
5
+ This is a compatibility release. It changes no runtime API, capability, schema, route or MCP tool. Existing sites need no data migration.
6
+
7
+ ## Host compatibility
8
+
9
+ | EmDash | Status | Notes |
10
+ | --- | --- | --- |
11
+ | 1.2.0 | Supported, unit-tested | The schedule panel's Enter key and validation are scoped to the surrounding entry form; Cloudflare plugin mutations can fail across Worker isolates. |
12
+ | 1.3.x | Supported, untested | Same form and Cloudflare limitations. Includes the plugin-storage cursor fix. |
13
+ | 1.4.x | Supported, full acceptance | Recommended. Fixes nested Block Kit forms and Cloudflare plugin mutations. |
14
+
15
+ **Use EmDash 1.4.0 or later for the corrected schedule-panel form behaviour and reliable create/publish across Cloudflare Worker isolates.** The Registry install range stays `>=1.2.0 <2.0.0`; 1.2/1.3 remain installable but retain the host limitations above.
16
+
17
+ ## What changed
18
+
19
+ - The source `eventual/install` editor transform handles both Block Kit renderers:
20
+ - 1.2/1.3 render plugin forms as `<form>` inside the content editor's form.
21
+ - 1.4 renders `div[role="group"]` with its own Enter handling.
22
+ - The transform keeps Eventual's form-value resync, stable field keys and date-label association, which the host renderer does not provide.
23
+ - The source editor version gate accepts EmDash/Admin/Block Kit 1.2.0 and 1.4.0.
24
+ - The local test site is on EmDash 1.4.0 and now runs a native-collection gate in development and production.
25
+
26
+ Registry installs never execute the source transform; their rendering comes from the host's `@emdash-cms/blocks`. That is why the 1.4.0 host upgrade, not a Registry-time patch, delivers the form fix.
27
+
28
+ ## Verification
29
+
30
+ - Full plugin suite on EmDash 1.2.0 and 1.4.0: 26 files, 228 tests, plus 24 tooling tests.
31
+ - Packed-consumer packaging and editor acceptance on EmDash 1.4.0.
32
+ - Local test site on EmDash 1.4.0 in development and production: plugin registration, MCP consent, admin pages/widget, public feed, event detail and JSON-LD, per-event ICS, native `getEvent`, and draft duplication through native content creation (six groups).
33
+
34
+ ### Known limitation
35
+
36
+ The full-year calendar subscription can exceed EmDash's ten-bridge-call sandbox budget on a larger native dataset. The local 1.4.0 site recorded a 503 for `/_emdash/api/plugins/eventual/calendar` with five native events; the JSON feed and per-event ICS route were unaffected. Narrower feeds, background jobs and bulk APIs remain open work ([Eventual #5](https://github.com/Vermeulen-Solutions/eventual-rsvp-core/issues/5), [EmDash #4004](https://github.com/emdash-cms/emdash/issues/4004)).
37
+
38
+ ## Upgrade
39
+
40
+ Update normally in **Plugins → Registry**. No capability consent, schema or data change is required. Sites on EmDash 1.2/1.3 can update Eventual but should upgrade EmDash to 1.4.0 for the form and Cloudflare fixes. Earlier Eventual versions still need the [native-content upgrade](upgrade-0.13.0.md).
@@ -0,0 +1,18 @@
1
+ # Eventual 0.15.0 — public feed cache evidence
2
+
3
+ - Native public feeds now include optional versioned collection dependencies and
4
+ absolute expiry. Empty feeds retain their dependencies. Existing fields,
5
+ locale/recurrence semantics and legacy rendering stay unchanged.
6
+ - `eventual/astro` preserves validated evidence, parses direct runtime results,
7
+ combines split feeds with an explicit host TTL, and supplies optional event
8
+ label/local-midnight boundaries. HTTP calls can specify a Registry `pluginId`.
9
+ - Hosts explicitly choose eligible routes. The supported integration requires
10
+ EmDash >=1.4.0 in the 1.x line and caps remaining lifetime at 15 seconds with no
11
+ stale serving, because generic plugin writes, settings and Node scheduling
12
+ lack complete route invalidation. No sandbox cache API or purge route is added.
13
+ - No identities, schemas, stored content or media references are changed.
14
+ Small validator/date-window consolidations preserve the
15
+ Registry bundle reserve without changing its limits or removing translations.
16
+ - Disposable Node/Astro HTML and local Worker Loader/PluginBridge tests accompany
17
+ the [integration guide and BBHC checklist](public-feed-caching.md). Hosted
18
+ Cloudflare acceptance is separate; no BBHC deployment is part of this release.
@@ -0,0 +1,7 @@
1
+ # Eventual 0.16.0 — parallel feed resolution and direct imageMedia metadata
2
+
3
+ - **Parallelized feed resolution**: `hydrateNativeAssets` now resolves `getPublicUrl` across all events concurrently using `Promise.all`. `loadCollectionBindings` parallelizes reading `eventsCollection`, `venuesCollection`, and `organizersCollection` storage keys. In `readPublicEvents`, venue and asset hydration branches run concurrently.
4
+ - **Cache headers for public media**: The `publicEventImage` route handler (`/_emdash/api/plugins/eventual/publicEventImage?eventId=...`) now returns `Cache-Control: public, max-age=3600, must-revalidate` on successful image responses.
5
+ - **Optional direct `imageMedia` metadata**: `PublicEvent` now carries an optional `imageMedia?: { src: string; width?: number; height?: number; alt?: string }` property when native `featured_image` data contains a `storageKey` or direct URL. Frontends using Astro `<Image>` or `getImage()` can use this direct path (`/_emdash/api/media/file/<storageKey>`) and native dimensions to generate responsive WebP variants without an extra host-side CMS collection round-trip.
6
+ - **Backwards compatibility**: `imageUrl` continues to supply the `publicEventImage` URL as before; all existing feed consumers and recurrence/locale behavior remain fully compatible.
7
+ - **No capability or schema changes**: EmDash `>=1.2.0 <2.0.0` compatibility is preserved. No new capabilities, MCP tools, or schema fields are added.
@@ -0,0 +1,7 @@
1
+ # Eventual 0.17.0 — multi-locale UI dictionaries, universal calendar links, and single-event query hydration
2
+
3
+ - **Expanded UI localizations**: Added complete native interface message dictionaries for German (`de`), Dutch (`nl`), and Spanish (`es`) alongside the existing French (`fr`) and English dictionaries. Locale resolution now normalizes regional language codes (e.g. `de-CH`, `fr-CH`, `nl-BE`, `es-ES`) to their primary dictionary with graceful fallback to English.
4
+ - **Universal 1-click "Add to Calendar" links**: Added `buildCalendarLinks` generator and attached `calendarLinks` to all `PublicEvent` payloads and the `<EventList showCalendarLinks={true} />` Astro component. Emits standard, accessible 1-click URLs for Google Calendar, Outlook Web (Live), Office 365, and direct Apple/desktop iCal (`.ics`) downloads with RFC 5545-compliant UTC date formatting and all-day exclusive end boundaries.
5
+ - **Single-event query hydration**: The `publicEvents` route (`/_emdash/api/plugins/eventual/publicEvents?eventId=...`) now accepts an optional `eventId` query parameter, enabling frontends and headless consumers to fetch single event details and specific occurrences without scanning the entire date range.
6
+ - **Backwards compatibility**: All existing public feed consumers, MCP tools, and storage schemas remain 100% backwards compatible. No new capabilities or permissions required.
7
+ - **Compatibility**: EmDash `>=1.2.0 <2.0.0` (tested on EmDash 1.4.0).
@@ -0,0 +1,8 @@
1
+ # Eventual RSVP – Core 0.18.0 — new name, 21 admin languages and a sturdier public calendar
2
+
3
+ - **New name**: Eventual became **Eventual RSVP – Core**, part of the Eventual RSVP suite with Eventual RSVP – Registrations and Eventual RSVP – Tickets. The plugin ID stays `eventual`, so sites update in place and their routes, data and settings are unchanged. Admin texts point to the **Event settings** page.
4
+ - **Admin in 21 languages**: English, French, German, Dutch, Spanish, Italian, Portuguese (Portugal and Brazil), Polish, Czech, Swedish, Danish, Norwegian Bokmål, Finnish, Japanese, Simplified Chinese, Korean, Turkish, Ukrainian, Arabic and Hebrew, with right-to-left layout for Arabic and Hebrew. The admin follows the EmDash UI language. English is built in; the other languages are language packs from the `@vermeulen.solutions/eventual-locales` npm package, downloaded on first use, checked against a hash built into this release and kept in plugin storage. Table buttons and status badges in the events list and the dates panel are translated too.
5
+ - **New permission**: `network:request` to `cdn.jsdelivr.net`, only for those language packs. Administrators approve the plugin again when they update. Without network access the admin stays in English and tries again a few minutes later.
6
+ - **Busy months no longer break the public calendar**: the events feed and the calendar subscription asked EmDash for each event's web address separately, so about eight events in one range exceeded the sandbox's 10 calls and visitors saw "Events are temporarily unavailable". Core now asks once per language and builds the other addresses from the collection's URL pattern. Patterns with date placeholders are looked up one by one while calls remain; events past that are listed without a link instead of failing the feed.
7
+ - **Contacts**: `support@eventual.rsvp` and `security@eventual.rsvp`.
8
+ - **Compatibility**: EmDash `>=1.2.0 <2.0.0` (tested on EmDash 1.4.0). No schema changes and no new MCP tools.
@@ -0,0 +1,7 @@
1
+ # Eventual RSVP – Core 0.18.1 — on npm
2
+
3
+ - **On npm**: the optional Astro, schema and transfer helpers are published as [`@vermeulen.solutions/eventual`](https://www.npmjs.com/package/@vermeulen.solutions/eventual). Site builders install them with `npm install @vermeulen.solutions/eventual@0.18.1` instead of downloading a source archive from GitHub.
4
+ - **New import paths**: `eventual/astro` becomes `@vermeulen.solutions/eventual/astro`, and likewise for `/schema`, `/transfer`, `/install`, `/admin` and `/astro/EventList.astro`. The schema exporter is `node_modules/@vermeulen.solutions/eventual/scripts/export-native-schema.mjs` (or `npx eventual-schema`).
5
+ - **Nothing changes for administrators**: the plugin ID stays `eventual`, so Registry installations update in place and routes, data, settings and permissions are unchanged.
6
+ - **Language packs** come from `@vermeulen.solutions/eventual-locales` 0.1.10. Core's own dictionaries are unchanged.
7
+ - **Compatibility**: EmDash `>=1.2.0 <2.0.0` (tested on EmDash 1.4.0). No schema changes and no new MCP tools.
@@ -0,0 +1,6 @@
1
+ # Eventual RSVP – Core 0.18.2 — registry page
2
+
3
+ - **New registry screenshots**: the event editor with **Dates, venue & repeat**, the public calendar, an event page, and **Event settings**.
4
+ - **Registry description tab** with links to [eventual.rsvp](https://eventual.rsvp/), the documentation, the install guide and support.
5
+ - **Setup guide link**: the button on the Event settings page now points to [github.com/Vermeulen-Solutions/eventual-rsvp-core](https://github.com/Vermeulen-Solutions/eventual-rsvp-core), the repository's new name. The old address redirects.
6
+ - **Nothing else changes**: no runtime, permission or schema changes, and no new MCP tools. EmDash `>=1.2.0 <2.0.0` (tested on EmDash 1.4.0).
@@ -0,0 +1,21 @@
1
+ # Upgrade to Eventual 0.14.0
2
+
3
+ ## From 0.13.x
4
+
5
+ Update Eventual in EmDash's plugin administration and review tool-consent changes. Native collections need no schema migration for 0.14.0. Keep **Show old events saved inside the plugin** off when native events are connected. Verify a published event, its image, and the JSON/calendar feeds. See the [0.14.0 changes](release-notes-0.14.0.md).
6
+
7
+ Sites without a native event collection now receive a setup error unless an administrator explicitly enables the old-events switch. That switch does not make old records editable or repair a disappeared explicitly selected collection.
8
+
9
+ ## From 0.12.x or earlier — site-builder work
10
+
11
+ The native-content change introduced in 0.13.0 is a breaking upgrade. Back up the CMS/database, media, configuration, drafts and calendar state; rehearse on a copy of the site. Eventual's record export is not a complete backup.
12
+
13
+ 1. Prepare EmDash **>=1.2.0 <2.0.0** and its sandbox runner. Remove historical `eventual/install`, `eventual/admin` and source-transform editor adapters targeting EmDash 1.0.1. Registry installations use one Registry backend; optional Astro helpers are separate site code.
14
+ 2. Compare existing schemas with [setup](collection-setup.md). Preserve rich text, locale flags, reference targets/edges, and populated migration/calendar identity. A blueprint does not upgrade stored rows or revisions.
15
+ 3. For legacy migration, export with **`--legacy-compatibility`**. The clean new-site blueprint omits migration identity/snapshot fields. Reused directories also need compatible fields.
16
+ 4. Preview `migrateToNative` with `{"dryRun":true,"locale":"fr","limit":1}`. Review all results and preview cursors. Execute after review and follow the execution's own `nextCursor`; a preview cursor is not an execution checkpoint. Legacy records remain intact. Organizer directories and manual legacy translations may need separate preparation.
17
+ 5. Connect the collections and check migrated entries, drafts, translations, recurrence, cancellation/restoration and existing subscriber UIDs before production.
18
+
19
+ A native collection becomes authoritative even while empty; coordinate schema creation, migration and source activation. The migrator defaults to 25 items and accepts 1–100, but those bounds do **not** guarantee a batch fits deployed RPC/CPU limits. Cloudflare and large migrations need a tested, host-appropriate plan; smaller batches alone may not resolve the limit.
20
+
21
+ Retain the backup until acceptance. Rollback may require matching host, schema, database and calendar state; reconcile later edits before restoring a database. Earlier implementation details are in [Git history](history.md).
@@ -0,0 +1,40 @@
1
+ # Managing events
2
+
3
+ Use this guide once Eventual is connected to your site's event collection. A **collection** is the list of entries under **Content** in EmDash. Its name may be Events, Activities, or a name chosen for your site. For installation, see [setup](collection-setup.md).
4
+
5
+ ## Create and publish
6
+
7
+ 1. Open **Eventual → Events** and choose **Create event**, or open your collection under **Content**.
8
+ 2. Write the title and description, choose an image, and save the draft.
9
+ 3. Open **Dates, venue & repeat**. Under **When**, enter dates and times and choose the event's time zone. For all-day events, the end date is the **last day included**.
10
+ 4. Under **Where**, choose a saved venue or organizer. Online meeting links belong in the main event form.
11
+ 5. Save each panel section you change, reload the editor, review the announcement and schedule, then choose **Publish** in EmDash.
12
+
13
+ Panel saves update a draft; publication makes it visible to visitors. Save announcement changes before using the panel. New events must be saved before their panel can work.
14
+
15
+ Some schedule, reference and JSON fields also appear in EmDash's main form. Use the panel for repeat schedules and individual-date changes; you do not need to write JSON.
16
+
17
+ ## Repeat or change one date
18
+
19
+ Under **Repeat**, choose daily, weekly or monthly, set the interval, and choose the **Last repeat date**. Weekly schedules can use several weekdays; monthly schedules can use a day number or a weekday position, such as the second Tuesday. Save, reload, and publish.
20
+
21
+ Under **Individual dates**, display the period you need, then cancel, restore, reschedule, or change the announcement for one date. The inspector shows a 90-day window; move it to see other dates. These changes also need publication.
22
+
23
+ To reuse an announcement, choose **Duplicate** in Eventual's event list. The copy starts as a draft.
24
+
25
+ ## Venues, organizers and languages
26
+
27
+ **Eventual → Venues** and **Organizers** link to their collections. Create and publish referenced entries before publishing an event that uses them. Published meeting/contact URLs appear in public feeds; use links intended for visitors.
28
+
29
+ Use EmDash's translation controls for other languages. Each language has its own title, description and individual-date announcement. Published schedules and venue/organizer selections are shared across translations. Your site's translation service is a separate choice.
30
+
31
+ ## When the calendar looks wrong
32
+
33
+ | What you see | What to do |
34
+ | --- | --- |
35
+ | An event is missing | Check publication, displayed dates, language/category filters and publication of referenced venues/organizers. |
36
+ | An empty calendar | No published events may match. A connected collection stays authoritative even while empty. |
37
+ | “Connect Eventual to content types” or a feed error | Ask an administrator to select compatible collections in **Eventual → Settings**. A disappeared selected collection must be restored or reconnected. |
38
+ | You need events stored inside an older plugin | An administrator can enable **Show old events saved inside the plugin**, then choose **Save switch**. This permits old data only when no native event collection is connected. Prefer the [upgrade path](upgrade-0.13.0.md) to make those entries editable. |
39
+
40
+ An **Add to calendar** download copies one event. A **subscription** lets the calendar app fetch updates; refresh timing depends on that app. Public feeds may be cached for up to five minutes. If the website calendar or subscription stays wrong after publication, ask your administrator to check the feed.
@@ -0,0 +1,77 @@
1
+ {
2
+ "$schema": "./node_modules/@emdash-cms/plugin-cli/schemas/emdash-plugin.schema.json",
3
+
4
+ "slug": "eventual",
5
+ "publisher": "did:plc:g2hei4vcwndrdl3gdbb6np6c", // vermeulen.solutions
6
+
7
+ "license": "MIT",
8
+ "author": { "name": "Jaap Vermeulen", "url": "https://eventual.rsvp/", "email": "support@eventual.rsvp" },
9
+ "security": { "email": "security@eventual.rsvp" },
10
+ "name": "Eventual RSVP – Core",
11
+ "description": "Native EmDash events with rich text, localization, friendly recurrence, saved venues and multilingual calendar feeds.",
12
+ "keywords": ["events", "calendar", "event management", "iCalendar", "venues"],
13
+ "sections": {
14
+ "description": { "file": "./docs/registry-description.md" },
15
+ "installation": { "file": "./docs/registry-installation.md" },
16
+ "changelog": { "file": "./docs/registry-changelog.md" }
17
+ },
18
+ "repo": "https://github.com/Vermeulen-Solutions/eventual-rsvp-core",
19
+ "release": {
20
+ "requires": { "env:emdash": ">=1.2.0 <2.0.0" },
21
+ "artifacts": {
22
+ "icon": { "file": "./images/registry/icon-v2.png" },
23
+ "banner": { "file": "./images/registry/banner-v2.png" },
24
+ "screenshots": [
25
+ { "file": "./images/registry/screenshots-v1/1-event-editor.png" },
26
+ { "file": "./images/registry/screenshots-v1/2-public-calendar.png" },
27
+ { "file": "./images/registry/screenshots-v1/3-event-page.png" },
28
+ { "file": "./images/registry/screenshots-v1/4-settings.png" }
29
+ ]
30
+ }
31
+ },
32
+
33
+ // Trust contract — what runtime APIs the plugin asks for.
34
+ // Empty arrays mean no extra privileges beyond logging,
35
+ // KV, and route/hook registration. Changing these between
36
+ // releases requires a version bump because installed
37
+ // users have consented to the old contract.
38
+ "capabilities": [
39
+ "media:read",
40
+ "media:bytes:read",
41
+ "content:read",
42
+ "content:write",
43
+ "content:publish",
44
+ "content:revisions:read",
45
+ "schema:read",
46
+ "hooks.content-policy:register",
47
+ "network:request"
48
+ ],
49
+ // Language packs only: translations are downloaded once from the public npm CDN,
50
+ // checked against SHA-256 hashes pinned in this bundle, and kept in plugin KV.
51
+ "allowedHosts": ["cdn.jsdelivr.net"],
52
+ "storage": {
53
+ "events": { "indexes": ["start", "published", ["published", "start"], "venueId", "organizerId"] },
54
+ "venues": { "indexes": ["name"] },
55
+ "organizers": { "indexes": ["name"] },
56
+ "calendar_cancellations": { "indexes": ["eventId", "cancelledAt"] }
57
+ },
58
+ "admin": {
59
+ "widgets": [
60
+ { "id": "upcoming-events", "title": "Upcoming events", "size": "half" }
61
+ ],
62
+ "pages": [
63
+ { "path": "/events", "label": "Eventual RSVP", "icon": "calendar" },
64
+ { "path": "/venues", "label": "Venues", "icon": "map-pin" },
65
+ { "path": "/organizers", "label": "Organizers", "icon": "users" },
66
+ { "path": "/settings", "label": "Event settings", "icon": "settings" }
67
+ ],
68
+ "editorPanels": [
69
+ {
70
+ "id": "event-schedule",
71
+ "title": "Dates, venue & repeat",
72
+ "route": "admin/editor/schedule",
73
+ "order": 10
74
+ }
75
+ ]
76
+ }
77
+ }