@jpmorganchase/mosaic-cli 0.1.0-beta.97 → 1.0.0-beta.99

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 (52) hide show
  1. package/CHANGELOG.md +1768 -0
  2. package/dist/build.mjs +1 -1
  3. package/dist/chunk-4YKZMY2L.mjs +1 -0
  4. package/dist/chunk-5FTIHMJH.mjs +1 -0
  5. package/dist/chunk-6VZ6ETYU.mjs +1 -0
  6. package/dist/chunk-C62I76OF.mjs +7 -0
  7. package/dist/chunk-JZTJ6KFK.mjs +1 -0
  8. package/dist/chunk-LBGQJ2IK.mjs +1 -0
  9. package/dist/chunk-LSSCO4BP.mjs +1 -0
  10. package/dist/chunk-O4CA7KYW.mjs +1 -0
  11. package/dist/chunk-S7JRZ4XU.mjs +1 -0
  12. package/dist/chunk-VGWN7S77.mjs +2 -0
  13. package/dist/chunk-XWU2QBWI.mjs +1 -0
  14. package/dist/chunk-YQNXGMWC.mjs +5 -0
  15. package/dist/chunk-ZOJ3LTWN.mjs +1 -0
  16. package/dist/env.d.ts +49 -0
  17. package/dist/env.mjs +1 -0
  18. package/dist/index.mjs +1 -1
  19. package/dist/plugins/bitbucketRepoUrl.d.ts +23 -0
  20. package/dist/plugins/bitbucketRepoUrl.mjs +1 -0
  21. package/dist/plugins/mosaicAdminPlugin.mjs +1 -1
  22. package/dist/plugins/mosaicFastifyPlugin.d.ts +1 -0
  23. package/dist/plugins/mosaicFastifyPlugin.mjs +1 -1
  24. package/dist/plugins/mosaicWebhooksPlugin.d.ts +16 -0
  25. package/dist/plugins/mosaicWebhooksPlugin.mjs +1 -0
  26. package/dist/plugins/mosaicWorkflowsPlugin.d.ts +9 -10
  27. package/dist/plugins/mosaicWorkflowsPlugin.mjs +1 -1
  28. package/dist/plugins/resolveRawSourcePath.d.ts +102 -0
  29. package/dist/plugins/resolveRawSourcePath.mjs +1 -0
  30. package/dist/plugins/security.d.ts +24 -0
  31. package/dist/plugins/security.mjs +1 -0
  32. package/dist/plugins/workflowJobs.d.ts +91 -0
  33. package/dist/plugins/workflowJobs.mjs +1 -0
  34. package/dist/revalidateNotifier.d.ts +50 -0
  35. package/dist/revalidateNotifier.mjs +1 -0
  36. package/dist/routeInventory.d.ts +15 -0
  37. package/dist/routeInventory.mjs +1 -0
  38. package/dist/serve.d.ts +2 -1
  39. package/dist/serve.mjs +1 -1
  40. package/fs.config.js +16 -1
  41. package/package.json +19 -21
  42. package/dist/chunk-4JWFWIG4.mjs +0 -1
  43. package/dist/chunk-5Q7PLJAC.mjs +0 -3
  44. package/dist/chunk-A623VBSD.mjs +0 -1
  45. package/dist/chunk-KX3ED265.mjs +0 -1
  46. package/dist/chunk-P3RXN7HU.mjs +0 -1
  47. package/dist/chunk-XMNLIWPG.mjs +0 -1
  48. package/dist/chunk-XZI6BLBY.mjs +0 -1
  49. package/dist/upload-s3-snapshot.d.ts +0 -1
  50. package/dist/upload-s3-snapshot.mjs +0 -1
  51. package/dist/vercel-snapshot.d.ts +0 -10
  52. package/dist/vercel-snapshot.mjs +0 -1
package/CHANGELOG.md ADDED
@@ -0,0 +1,1768 @@
1
+ # @jpmorganchase/mosaic-cli
2
+
3
+ ## 1.0.0-beta.99
4
+
5
+ ### Major Changes
6
+
7
+ - 97827d1: Require Node.js 24 or later. Node.js 22 is no longer supported. `@jpmorganchase/mosaic-from-http-request` no longer depends on the `AbortController` and `EventTarget` polyfills, because Node.js provides both.
8
+ - 5476067: Remove the `snapshot-s3` mode and the `mosaic upload` command
9
+
10
+ S3 snapshot support was unused, so Mosaic now has two content modes,
11
+ `active` and `snapshot-file`, and no longer depends on the AWS SDK.
12
+
13
+ ### Breaking changes
14
+
15
+ **`@jpmorganchase/mosaic-cli`**
16
+
17
+ - `mosaic upload` and its `-S` / `--snapshot` option are removed. The CLI
18
+ no longer depends on `@aws-sdk/client-s3` or `globby`.
19
+
20
+ **`@jpmorganchase/mosaic-site-middleware`**
21
+
22
+ - The loaders (`getMdxRaw`, `getSharedConfig`, `getSearchData`,
23
+ `loadSitemap`, …) no longer read snapshots from S3. The package no
24
+ longer depends on `@aws-sdk/client-s3`, `@aws-sdk/types` or `md5`.
25
+
26
+ **`@jpmorganchase/mosaic-types`**
27
+
28
+ - `MosaicMode` is now `'active' | 'snapshot-file'`.
29
+
30
+ **`@jpmorganchase/mosaic-schemas`**
31
+
32
+ - `snapshotS3EnvSchema` and the `S3LoaderProcessEnv` type are removed. The
33
+ `MOSAIC_S3_BUCKET`, `MOSAIC_S3_REGION`, `MOSAIC_S3_ACCESS_KEY_ID` and
34
+ `MOSAIC_S3_SECRET_ACCESS_KEY` variables are no longer read.
35
+
36
+ **Reference site (`packages/site`)**
37
+
38
+ - The `build:static:s3` and `serve:snapshot:s3` scripts are removed (and
39
+ the root `serve:snapshot:s3` script). `next.config.js` refuses any
40
+ `MOSAIC_MODE` other than `active` or `snapshot-file`, so a leftover
41
+ `snapshot-s3` fails at start-up instead of falling back to active-mode
42
+ fetches with no content URL.
43
+
44
+ ### Migration
45
+
46
+ Use `snapshot-file` (or `active`) instead of `snapshot-s3`. To keep your
47
+ snapshots in S3, sync the folder yourself:
48
+
49
+ - Upload after `mosaic build`, for example
50
+ `aws s3 sync snapshots/latest s3://your-bucket`.
51
+ - Download before building the site, for example
52
+ `aws s3 sync s3://your-bucket snapshots/latest`, then set
53
+ `MOSAIC_MODE=snapshot-file` and `MOSAIC_SNAPSHOT_DIR` to that folder,
54
+ relative to the site's folder.
55
+ - 915b9ae: Secure the content server and editor, fix the save flow, and slim the App Router site
56
+
57
+ ### Breaking changes
58
+
59
+ **`@jpmorganchase/mosaic-cli`**
60
+
61
+ - The `/workflows` WebSocket only runs workflows for messages carrying
62
+ `token` = `MOSAIC_WORKFLOWS_SECRET`; without that env var no workflow
63
+ runs, and the placeholder from `.env.development` only counts when
64
+ `NODE_ENV=development`. Messages are validated (workflow name, user,
65
+ route) and capped at 5 MB.
66
+ - Admin endpoints other than `/_mosaic_/tags/list` require
67
+ `MOSAIC_ADMIN_SECRET`: sent as `x-mosaic-admin-secret`, a bearer token,
68
+ or the password of the browser login prompt (HTTP Basic). Without the
69
+ env var they are open when `NODE_ENV=development` and disabled
70
+ otherwise.
71
+ - CORS headers are no longer sent to every origin. Allow specific
72
+ origins with `MOSAIC_CORS_ORIGINS` (comma-separated).
73
+
74
+ **Reference site (`packages/site`)**
75
+
76
+ - Editing requires `MOSAIC_EDITORS` (emails, `@domains` or `*`); when it
77
+ is unset nobody can sign in or edit in production. Set
78
+ `MOSAIC_EDITORS=*` to keep the previous "anyone who can sign in"
79
+ behaviour. Emails and `@domains` only match GitHub emails that
80
+ GitHub has verified.
81
+ - Saves need `MOSAIC_WORKFLOWS_URL` and `MOSAIC_WORKFLOWS_SECRET`
82
+ (renamed from `NEXT_PUBLIC_MOSAIC_WORKFLOWS_URL`).
83
+ - The committed `.env.local` is now `.env.development`, which Next.js
84
+ only loads for `next dev`. Production builds no longer pick up its
85
+ placeholder `AUTH_SECRET` or dev-only flags, and the site refuses the
86
+ placeholder secrets when `NODE_ENV=production`.
87
+ - `.env.prod` is renamed to `.env.production`, the name Next.js actually
88
+ loads for `next build` / `next start`. Production builds therefore now
89
+ default to `MOSAIC_MODE=snapshot-file`; set `MOSAIC_MODE=active` for
90
+ deployments that read from a running Mosaic CLI.
91
+
92
+ ### Fixes
93
+
94
+ - **Saving works again.** The CLI echoes the caller's channel (the site
95
+ had switched to a different channel hash, so every progress message
96
+ was dropped and saves never finished), new pages can be created in the
97
+ source whose `prefixDir` contains them (the CLI required the route to
98
+ exist already, and the editor had no route for a new page), and saves
99
+ time out (`MOSAIC_WORKFLOWS_TIMEOUT_MS`, default 5 minutes) and always
100
+ close their socket.
101
+ - Workflow failures are reported to the editor instead of crashing the
102
+ CLI with an unhandled rejection. The GitHub workflow accepts the
103
+ site's `sid` when no `id` is sent.
104
+ - Routes are validated before they are forwarded, and workflows refuse
105
+ to write or rename files outside the source's content folder.
106
+ - Symlinks inside a content folder can no longer publish files from
107
+ outside it (local-folder and git-repo sources, and the CLI's
108
+ `/_mosaic-raw/*` route).
109
+ - Admin responses no longer overwrite git credentials in the live
110
+ config with the redacted value.
111
+ - Search results escape the indexed text before highlighting (it was
112
+ rendered as HTML), escape the query before building a regex, and
113
+ search the current input rather than the previous keystroke.
114
+ - Frontmatter edits are kept when the author leaves the Frontmatter tab
115
+ before saving, and frontmatter-only or first source-mode edits now
116
+ count as unsaved changes.
117
+ - `LayoutProvider` accepts the server's `isEditing` state, so
118
+ prerendered pages render their real layout (sidebar, breadcrumbs,
119
+ header controls) in the HTML instead of falling back to client
120
+ rendering.
121
+ - The Lexical editor is no longer part of every page's JavaScript:
122
+ `@jpmorganchase/mosaic-content-editor-plugin` exposes subpath exports
123
+ (`/useEditMode`, `/LayoutNamesContext`, `/components/EditorControls`,
124
+ …) and the site lazy-loads the editor from a Client Component.
125
+ - Loader caches never store not-found results. Active mode can opt in to
126
+ cross-request caching with `MOSAIC_ACTIVE_MODE_CACHE=true`. Compiled
127
+ MDX is cached by content hash.
128
+ - `/api/revalidate` expires the content cache immediately
129
+ (`{ expire: 0 }`) rather than serving stale content once more.
130
+ - Per-page stores are released when the page unmounts (`disposeStore`)
131
+ instead of leaking a store and a `storage` listener per navigation.
132
+
133
+ ### Additions
134
+
135
+ - `@jpmorganchase/mosaic-content-editor-plugin`: `EditModeProvider`,
136
+ `useIsEditing` and `useEditModeActions`; `<Editor route>` prop.
137
+ - `@jpmorganchase/mosaic-store`: `registerStore` and `disposeStore`.
138
+ - `@jpmorganchase/mosaic-site-middleware`, `-layouts` and
139
+ `-site-components` now declare `next` as a peer dependency.
140
+ - 79a39db: Validate the environment when the site and the CLI start
141
+
142
+ Environment variables are still the only configuration, but each process
143
+ now checks them in one place when it starts and lists every problem as
144
+ `NAME: reason`, instead of failing later with a feature that silently
145
+ does nothing.
146
+
147
+ ### Breaking changes
148
+
149
+ **`@jpmorganchase/mosaic-cli`**
150
+
151
+ `mosaic serve` now exits with code 1, before any source loads, when its
152
+ environment is invalid. Configurations it used to accept that now stop
153
+ it:
154
+
155
+ - `MOSAIC_REVALIDATE_URL` without `MOSAIC_REVALIDATE_SECRET`. Before,
156
+ the revalidate notifier was quietly disabled. The secret on its own is
157
+ still fine, since the site and the CLI can share an env file.
158
+ - `MOSAIC_REVALIDATE_URL` or `BITBUCKET_API_URL` that isn't an absolute
159
+ http(s) URL.
160
+ - A `MOSAIC_CORS_ORIGINS` entry that isn't an origin
161
+ (`scheme://host[:port]`), such as `example.com`, `*` or
162
+ `https://example.com/`. Browsers never send those, so they never
163
+ matched; the error suggests the origin to use.
164
+ - A blank (whitespace-only) `MOSAIC_ADMIN_SECRET`,
165
+ `MOSAIC_WORKFLOWS_SECRET`, `MOSAIC_BITBUCKET_WEBHOOK_SECRET` or
166
+ `MOSAIC_REVALIDATE_SECRET`.
167
+ - A `MOSAIC_SOURCE_BOOT_TIMEOUT_MS` that isn't a whole number of
168
+ milliseconds (`0` still waits forever).
169
+ - A `MOSAIC_WORKFLOWS_TIMEOUT_MS` that isn't a whole number of
170
+ milliseconds between 1 and 2147483647. Larger values made every save
171
+ time out at once.
172
+
173
+ The placeholder `MOSAIC_WORKFLOWS_SECRET` from `.env.development` is not
174
+ an error: outside `NODE_ENV=development` it still counts as unset.
175
+
176
+ **Reference site (`packages/site`)**
177
+
178
+ `src/instrumentation.ts` validates the env (through `src/lib/config.ts`)
179
+ when a server starts: `next start`, the standalone `server.js` and
180
+ `next dev`. With `NODE_ENV=production` an invalid configuration prints
181
+ one error and exits with code 1 (left alone, Next.js would log the error
182
+ and answer every request with a 500); `next dev` logs the same list and
183
+ keeps running.
184
+ `next build` and the static export don't check runtime variables, so
185
+ images can still be built without them. Configurations that now stop a
186
+ production server:
187
+
188
+ - `MOSAIC_MODE` other than `active` or `snapshot-file`,
189
+ and `MOSAIC_OUTPUT` other than `export` or `standalone`.
190
+ - A missing `MOSAIC_ACTIVE_MODE_URL` in active mode (the default when
191
+ `MOSAIC_MODE` is unset), or `MOSAIC_SNAPSHOT_DIR` in `snapshot-file`
192
+ mode. Every page failed to load without them.
193
+ - `MOSAIC_ACTIVE_MODE_URL` or `NEXT_PUBLIC_SITE_URL` that isn't an
194
+ absolute http(s) URL (an invalid `NEXT_PUBLIC_SITE_URL` used to fall
195
+ back to `http://localhost:3000` with a warning), and
196
+ `MOSAIC_WORKFLOWS_URL` that isn't a ws(s) or http(s) URL.
197
+ - `MOSAIC_WORKFLOWS_URL` without `MOSAIC_WORKFLOWS_SECRET`.
198
+ - A flag other than `true` or `false` (`MOSAIC_AUTH_ENABLED`,
199
+ `MOSAIC_ACTIVE_MODE_CACHE`, `MOSAIC_DISABLE_LOADER_CACHE`,
200
+ `NEXT_PUBLIC_ENABLE_LOGIN`, `NEXT_PUBLIC_OPTIMIZE_IMAGES`,
201
+ `MOSAIC_DEV_FAKE_AUTH`, `MOSAIC_DEV_BYPASS_CAPABILITY_GATE`). Only
202
+ `true` ever turned one on, so `TRUE` or `1` silently meant off.
203
+ - A `MOSAIC_EDITORS` entry that isn't an email address, an `@domain` or
204
+ `*`, such as `*@corp.com`, which never matched anyone.
205
+
206
+ Valid configurations behave as before. The placeholder `AUTH_SECRET` and
207
+ `MOSAIC_REVALIDATE_SECRET` from `.env.development` are still ignored in
208
+ production rather than rejected; that logic now lives in
209
+ `lib/config.ts`. The site's `serve` script no longer sets the revalidate
210
+ variables itself: `.env.development` now holds both. The full variable
211
+ reference, with types and defaults, is in `packages/site/README.md` and
212
+ `docs/configure/admin`.
213
+ - 5d69155: Run editor saves over HTTP and Server-Sent Events instead of a WebSocket
214
+
215
+ Some infrastructure doesn't allow WebSockets but does allow Server-Sent
216
+ Events (SSE). Saves now start with a plain HTTP request and stream their
217
+ progress over SSE, which also reconnects by itself and resumes where it
218
+ left off.
219
+
220
+ ### Breaking changes
221
+
222
+ **`@jpmorganchase/mosaic-cli`**
223
+
224
+ - The `/workflows` WebSocket endpoint is removed, along with the
225
+ `@fastify/websocket` and `md5` dependencies. Start a workflow with
226
+ `POST /workflows/jobs` (JSON body: `name`, `user`, `route`, `markdown`,
227
+ and optionally `frontmatter`, `targetRoute` and `isNewPage`), which
228
+ responds `202 { jobId }`. Follow it with
229
+ `GET /workflows/jobs/:jobId/events?user=<user id>`, a `text/event-stream`
230
+ of `progress` events and a final `done` event with
231
+ `{ status: 'SUCCESS' | 'ERROR', message }`. Reconnecting with
232
+ `Last-Event-ID` replays only the missed events.
233
+ - Both endpoints need `MOSAIC_WORKFLOWS_SECRET` as a bearer token
234
+ (`Authorization: Bearer <secret>`) instead of a `token` in each message.
235
+ They respond `503` when the secret isn't configured and `401` when it is
236
+ wrong. Invalid requests get `400 { error }`, a missing page `404` and an
237
+ existing new page `409`; the `channel` field is gone.
238
+ - `MOSAIC_WORKFLOWS_TIMEOUT_MS` (default 5 minutes) is now read by the
239
+ CLI, which fails jobs that run longer. Values must be integers from
240
+ 1 to 2147483647. The site no longer reads it.
241
+ - Jobs are kept in memory (finished jobs for 10 minutes, at most 100 jobs
242
+ and 500 events per job), so they are lost when the CLI restarts. With
243
+ several CLI instances, a job's events must be read from the instance
244
+ that started it.
245
+
246
+ **Reference site (`packages/site`)**
247
+
248
+ - `MOSAIC_WORKFLOWS_URL` is the CLI's base HTTP URL, e.g.
249
+ `http://localhost:8080`. A trailing `/workflows` is dropped. A `ws://` /
250
+ `wss://` URL still works: it is converted to `http://` / `https://` and
251
+ a deprecation warning is logged once.
252
+ - The `persistContent` Server Action is replaced by `startSave`, which
253
+ returns `{ jobId }` or `{ error }`. The new
254
+ `/api/workflows/[jobId]/events` route streams the save's progress to the
255
+ signed-in editor who started it. Proxies must not buffer
256
+ `text/event-stream` responses.
257
+
258
+ **`@jpmorganchase/mosaic-types`**
259
+
260
+ - `SourceWorkflowMessageEvent` no longer has a `channel` field.
261
+
262
+ **`@jpmorganchase/mosaic-workflows`**
263
+
264
+ - GitHub and Bitbucket workflows send `COMPLETE` with
265
+ `{ pullRequestUrl }` instead of provider-specific response data. Custom
266
+ event consumers should read this browser-facing URL. The action return
267
+ values are unchanged, and `subscribeToSave` still accepts older GitHub
268
+ URL strings and Bitbucket `links.self` messages.
269
+
270
+ ### Fixes
271
+
272
+ - Saving an existing page no longer reports "Workflow save has started"
273
+ when no source owns the page: the CLI now waits for the workflow and
274
+ reports its real outcome. `triggerWorkflow` in
275
+ `@jpmorganchase/mosaic-core` resolves when the workflow finishes rather
276
+ than when it starts.
277
+ - Actions returning `false` or reporting `ERROR` remain failed through
278
+ the source and job layers instead of being reported as successful.
279
+ - GitHub and Bitbucket saves accept a new page with frontmatter and an
280
+ empty body, as the editor does. Empty edits are still rejected.
281
+ - The editor shows a successful result and disables repeat submission
282
+ even when the successful workflow returns no pull request URL.
283
+
284
+ ### Additions
285
+
286
+ - `@jpmorganchase/mosaic-content-editor-plugin`: `subscribeToSave(jobId)`
287
+ follows a save over SSE as the `PersistEvent`s that `<Editor persist>`
288
+ returns, letting `EventSource` reconnect a few times before reporting an
289
+ error. The `PersistEvent` type is exported too. The `persist` prop is
290
+ unchanged.
291
+
292
+ ### Minor Changes
293
+
294
+ - b581d8b: Refresh git repo sources as soon as Bitbucket reports a push
295
+
296
+ ### Additions
297
+
298
+ **`@jpmorganchase/mosaic-cli`**
299
+
300
+ - `POST /_mosaic_/webhooks/bitbucket` receives Bitbucket Data Center
301
+ "Repository → Push" webhooks. It refreshes the running git repo sources
302
+ whose `repo` (project key and slug, in any of the `/scm/`, SSH or
303
+ `/projects/…/repos/…` URL forms) and `branch` match the push, so merged
304
+ changes appear within seconds instead of at the next scheduled check
305
+ (30 minutes by default). Pushes within 5 seconds of each other refresh a
306
+ source once. The CLI replies `202` straight away and refreshes in the
307
+ background; the site is then revalidated as for any other update.
308
+ - The endpoint only exists when `MOSAIC_BITBUCKET_WEBHOOK_SECRET` is set. It
309
+ doesn't use `MOSAIC_ADMIN_SECRET`: requests must carry a valid
310
+ `X-Hub-Signature` (HMAC-SHA256 of the body with the secret) or get `401`.
311
+ Bodies are capped at 1 MB.
312
+
313
+ **`@jpmorganchase/mosaic-core`**
314
+
315
+ - `refreshSource(name)` asks a running source to check for changes now.
316
+ Unlike `restartSource`, the source keeps serving its pages and its caches.
317
+ It resolves to `false` for sources that can't refresh on demand.
318
+ - `getSourceDefinition(name)` returns the definition a running source was
319
+ started with.
320
+
321
+ **`@jpmorganchase/mosaic-types`**
322
+
323
+ - Sources can implement an optional `refresh(options)` hook, which
324
+ `refreshSource` calls in the source's worker.
325
+
326
+ **`@jpmorganchase/mosaic-source-git-repo`**
327
+
328
+ - Implements `refresh`: it fetches and pulls new commits the same way a
329
+ scheduled check does.
330
+ - `Repo.checkForChanges()` runs that check on demand. Checks no longer
331
+ overlap: one requested while another runs (a webhook during a scheduled
332
+ fetch) runs once more afterwards.
333
+
334
+ Scheduled checks are unchanged and remain the fallback for missed
335
+ deliveries. See "Refresh on push" in the git repo source docs.
336
+ - 97827d1: Add source-specific commit message defaults and editable messages in the save dialog, with an
337
+ authenticated, side-effect-free workflow defaults endpoint. Existing custom hosts and workflows
338
+ can continue saving without opting into message editing.
339
+
340
+ Both Git providers now use neutral create/update/rename defaults and preserve configured or
341
+ submitted text. Pull request titles use the message's first nonempty line with the configured
342
+ `titlePrefix`; commits retain the full message. Messages are validated before Git writes, with
343
+ CRLF normalized to LF and an 8 KiB UTF-8 limit.
344
+
345
+ Commit without Git whitespace cleanup so author spacing and blank lines survive in the stored
346
+ commit message. Git supplies a terminal newline when the message has none.
347
+
348
+ Preserve the pristine save baseline when the first visual-editor visit follows source edits,
349
+ so changing modes cannot incorrectly disable saving the draft.
350
+
351
+ ### Patch Changes
352
+
353
+ - 97827d1: Generate snapshots through one awaited operation after all selected sources publish their first content and startup mounts their volumes. Propagate failures to the CLI's error handler and always release sources and subscriptions. Write aliases using absolute destination paths without changing the process working directory.
354
+ - 0c4d822: Migrate the Mosaic site from Next.js Pages Router to App Router (React Server Components, Auth.js v5, server-compiled MDX, optional static export)
355
+
356
+ ## What changed
357
+
358
+ The reference Mosaic site (`@jpmorganchase/mosaic-site`) and the shared
359
+ packages it depends on have been ported from the Next.js Pages Router to
360
+ the App Router. Pages-Router-only APIs in the shared packages have been
361
+ removed, and a new static-export build target has been added.
362
+
363
+ ### Breaking changes
364
+
365
+ **`@jpmorganchase/mosaic-site-middleware` — major**
366
+
367
+ - **The Pages Router middleware chain is removed.** `withMosaicMode`,
368
+ `withMDXContent`, `withSharedConfig`, `withSearchIndex`, `withSession`,
369
+ `middlewarePresets`, `createMiddlewareRunner` and the
370
+ `fromGetServerSidePropsContext` adapter are gone.
371
+ - **Replaced by cached loaders** that App Router routes call directly
372
+ (in parallel): `getMdxRaw`, `getSharedConfig`,
373
+ `getMdxRawSource`, `getTagSuggestions`, `loadSitemap` and
374
+ `resolveMosaicMode`. Each is deduplicated per request with
375
+ `React.cache` and cached across requests with `unstable_cache`, tagged
376
+ `MOSAIC_CONTENT_CACHE_TAG` (also exported from the side-effect-free
377
+ `@jpmorganchase/mosaic-site-middleware/cache-tags` subpath).
378
+ - **MDX is compiled with `serializeMdxForClient`** (built on
379
+ `next-mdx-remote-client/serialize`, with server-side shiki
380
+ highlighting). It returns a JSON-safe `{ compiledSource, frontmatter, scope }` payload that a client `<MDXClient />` renders.
381
+
382
+ **`@jpmorganchase/mosaic-site-components` — major**
383
+
384
+ - **`Body` removed.** Render MDX with a renderer from
385
+ `createMdxRenderer({ components })` fed by `serializeMdxForClient`.
386
+ See `packages/site/src/app/[...route]/BodyServer.tsx` and
387
+ `MdxComponents.ts` for the reference implementation.
388
+ - **`Document` removed.** App Router has no `_document.tsx`; the file
389
+ was transitively pulling `next/document` and breaking App Router
390
+ builds. Inline what you need into your `app/layout.tsx`.
391
+ - **Subpath exports widened** (`./*`) so consumers can deep-import
392
+ individual modules (e.g.
393
+ `@jpmorganchase/mosaic-site-components/Metadata`) without paying for
394
+ the full bundle.
395
+
396
+ **`@jpmorganchase/mosaic-layouts` — major**
397
+
398
+ - **`useIsLoading` hook removed.** `router.events` no longer exists in
399
+ the App Router.
400
+ - **`Fade` component removed** (was only consumed by `LayoutBase` via
401
+ `useIsLoading`).
402
+ - **`Edit` layout** is selected by `LayoutProvider` from the edit mode
403
+ instead of reacting to `router.events.routeChangeStart`.
404
+
405
+ ### Non-breaking additions
406
+
407
+ **`@jpmorganchase/mosaic-site` (App Router cut-over)**
408
+
409
+ - New file tree under `src/app/` (`layout.tsx`, `providers.tsx`,
410
+ `[...route]/page.tsx`, `not-found.tsx`, `error.tsx`, `robots.ts`,
411
+ `sitemap.ts`, `api/auth/[...nextauth]/route.ts`,
412
+ `api/revalidate/route.ts`).
413
+ - The editor's preview compile and save are Server Actions
414
+ (`previewAction.ts`, `persistAction.ts`), replacing the
415
+ `/api/content/preview` route and the browser-side workflows WebSocket.
416
+ - **Auth.js v5** wiring in `src/auth.ts` (`handlers`, `auth`, `signIn`,
417
+ `signOut`), replacing `next-auth` v4. `AUTH_SECRET` is required when
418
+ auth is enabled; `NEXTAUTH_SECRET` continues to work as a fallback.
419
+ - **Static-export build target.** `yarn build:static:file` produces a
420
+ fully-static `out/` directory servable from any CDN with no Node
421
+ runtime. Gated behind `MOSAIC_OUTPUT=export` and
422
+ `MOSAIC_MODE=snapshot-file`.
423
+ - **`next.config.js`** refactored into `baseConfig` / `dynamicOnlyConfig`
424
+ / `exportConfig`.
425
+
426
+ **`@jpmorganchase/mosaic-cli` — patch**
427
+
428
+ - New `revalidateNotifier`: when `MOSAIC_REVALIDATE_URL` and
429
+ `MOSAIC_REVALIDATE_SECRET` are set, the CLI's `serve` command POSTs to
430
+ the site's `/api/revalidate` whenever a source emits an update, so
431
+ tagged caches are flushed automatically. No-op when the env vars are
432
+ absent.
433
+
434
+ ## Benefits
435
+
436
+ - **Parallel data loading.** Frontmatter, shared config and the search
437
+ index are resolved in parallel rather than serially through
438
+ `getServerSideProps`, and identical reads collapse onto one fetch.
439
+ - **Server-side MDX work.** Parsing, compiling and syntax highlighting
440
+ run on the server; the browser only evaluates the compiled page.
441
+ - **Static export** unlocks CDN-only deployments (S3 + CloudFront,
442
+ nginx, …). A reference Docker image lives at
443
+ `examples/docker/static-export/`.
444
+ - **Revalidate notifier** keeps sites' caches fresh when sources push
445
+ updates.
446
+ - **Node 24** across all in-repo Dockerfiles.
447
+
448
+ ## Migration guide
449
+
450
+ 1. Replace `pages/_app.tsx` with `app/layout.tsx` + `app/providers.tsx`
451
+ (`'use client'`). Mount `<SessionProvider>` without a server-resolved
452
+ session.
453
+ 2. Replace `pages/[...route].tsx` with `app/[...route]/page.tsx`, calling
454
+ the `@jpmorganchase/mosaic-site-middleware` loaders.
455
+ 3. Replace every `from 'next/router'` import with `next/navigation` and
456
+ mark the file `'use client'`.
457
+ 4. Convert `pages/api/*.ts` to `app/api/*/route.ts`.
458
+ 5. Add `AUTH_SECRET` to your env if you enable Auth.js.
459
+
460
+ The full guide, including environment variable and CLI changes, is in
461
+ `docs/getting-started/migrate-to-app-router.mdx`.
462
+
463
+ For static-export deployments, see
464
+ `docs/configure/modes/static-export.mdx`.
465
+ - 2ecdf25: Subscribe to source updates before starting snapshot builds so a fast source cannot publish its first update before the CLI listens. Wait for every enabled source's first update and completed startup before writing or scoping the snapshot, then stop the sources. Repeated updates from one source cannot stand in for another source.
466
+ - 97827d1: Clearer CLI and plugin diagnostics
467
+
468
+ - `mosaic serve` now prints why it couldn't listen, with the host and
469
+ port, instead of exiting silently through the disabled Fastify logger.
470
+ - `FragmentPlugin` keeps expanding fragments after a page it can't parse,
471
+ then reports every failing page in one error. Previously the first bad
472
+ page stopped fragments expanding in every page after it. Its warnings
473
+ also name the page that contains the bad directive.
474
+ - The core plugin runner names the page when a plugin error carries one.
475
+ - The Sidebar warning says why a folder has no grouping: it has no pages,
476
+ its pages are all in subfolders, or every page directly in it sets
477
+ `sidebar.exclude: true`.
478
+ - 97827d1: Use the published page's source for raw editor reads, save defaults and workflow writes.
479
+ When sources publish the same path, all three operations now follow the actual mounted
480
+ filesystem order, including sources that finish starting in a different order. Scoped
481
+ content servers also keep workflow defaults and writes within their allowed namespaces.
482
+ New pages continue to choose the source with the longest matching prefix.
483
+ - 97827d1: Publish a versioned snapshot route inventory independently of SEO sitemap settings. Add public inventory loading, validation and static-param selection helpers, preserving aliases, backing extensions and completed-generation cache identity. Regenerate snapshots before adopting the new static-param helper.
484
+ - 97827d1: Keep namespace-scoped content reads aligned with the live source mount order when
485
+ sources stop or are replaced. Scoped servers now serve the same source selected
486
+ for raw editor reads, save defaults, and workflow writes after lifecycle changes.
487
+ Raw reads of unpublished sidecar files also use the current registered sources.
488
+ - 97827d1: Serve the docs as Markdown for agents
489
+
490
+ The new `LlmsTxtPlugin`, in the default config, writes `llms.txt` (an index
491
+ of the pages), `llms-full.txt` (every page in one file) and
492
+ `markdown-pages.json` (each page as Markdown, with frontmatter). MDX is
493
+ converted to plain Markdown: `{meta.*}` expressions are resolved, `Callout`
494
+ becomes a quote, other components are replaced with their children, and
495
+ relative links are made absolute. Sites convert their own components with the
496
+ `componentsModulePath` option, and leave pages out with `exclude` or
497
+ `llms: { exclude: true }` frontmatter.
498
+
499
+ `createLlmsHandler()` from `@jpmorganchase/mosaic-site-middleware` is a route
500
+ handler that serves these files from the snapshot or the active-mode content
501
+ server. The reference site serves `/llms.txt`, `/llms-full.txt` and
502
+ `/<page>.md`, and a page's own URL to requests that accept `text/markdown`.
503
+ - 97827d1: Keep each source generation's pages and configuration together during publication, propagate failed file reads and permit retry, and start workers when parent memory settings are configured. Correct default page filtering and shared-config ancestry so sibling or unrelated folders do not inherit settings. Resolve raw editor reads from the scoped content owner and support search configurations with match metadata disabled.
504
+ - 3b956ae: Keep repository credentials out of command failures and Bitbucket save errors. Capture one Git revision per timestamp batch and consume the bulk map directly, avoiding a subprocess for every cached page.
505
+
506
+ Retry failed site invalidations with a request deadline and bounded backoff, preserve updates arriving during delivery, and cancel notification work when the server closes. Add `mosaic serve --host` with the existing loopback default so container deployments can explicitly bind to `0.0.0.0`.
507
+ - 915b9ae: Fix request timeouts, background work that failed silently, snapshot cleanup, and editor capability spoofing
508
+
509
+ - **`requestTimeout` now works** for the HTTP, Readme, Storybook and Figma
510
+ sources. rxjs `fromFetch` replaced the Request's own abort signal, so the
511
+ timeout was ignored and a hung endpoint stalled the source. `fromHttpRequest`
512
+ takes a new `{ timeout }` option. It starts a fresh timer for every request,
513
+ including each scheduled poll, and covers reading the response body.
514
+ - **Symlinks are applied before the source update continues.** Core no longer
515
+ starts symlink creation without awaiting it, so `afterUpdate` plugins see
516
+ every alias, and a failure is reported for that source instead of crashing
517
+ the process with an unhandled rejection.
518
+ - **`BrokenLinksPlugin`** still checks links in the background, but checks at
519
+ most four pages at a time. A page that fails to parse or check is logged
520
+ instead of causing an unhandled rejection.
521
+ - **`mosaic build`** now empties the snapshot folder completely. Previously
522
+ sub-folders were never removed, so deleted or renamed pages lingered. A
523
+ `--name` that resolves to the output directory itself or outside it (for
524
+ example `.` or `../x`) is rejected, because that folder is emptied.
525
+ - **`StickyHeader`** removes its scroll listener on unmount.
526
+ - **Editor capabilities come only from the source.** Content could turn on the
527
+ editor for a source that doesn't declare `writable`, either by setting
528
+ `sourceCapabilities` or `sharedConfig.sourceCapabilities` in frontmatter,
529
+ by pulling one in with a `$ref`, or by receiving another source's namespace
530
+ shared config. Core and the site ignore capabilities in page frontmatter.
531
+ The `SharedConfigPlugin` now sets `sourceCapabilities` in every
532
+ `shared-config.json` from the source's declared capabilities after refs are
533
+ resolved, and no longer copies them into another source.
534
+ - 79a39db: Keep the reference site's development revalidation URL alongside its shared secret, so source updates still invalidate the site cache after moving settings into environment files. Validate the committed defaults in regression tests and align site validation with the supported active and snapshot-file modes.
535
+ - 97827d1: Migrate the built-in header to section-level search and retire the legacy Fuse search path.
536
+
537
+ Server sites query `/api/search`; static exports lazily load `search-records.json` and the existing browser search engine. Results include section links, loading/error states, safe text highlighting, and protection against stale responses. `SearchProvider` configures server/browser mode, custom endpoints, namespace preference, and disabling search independently of the page store.
538
+
539
+ `SearchIndexPlugin` now emits only records. Remove its legacy `keys`, `relevancy`, `maxLineLength`, and `maxLineCount` options, and regenerate existing snapshots. `getSearchData`, `useSearchIndex`, the store's search types/fields, and the unused header search fields are removed. Replace them with `SearchProvider`, `createSearchHandler`, or `createSearchIndex`. The reference site no longer loads legacy search data into its namespace/404 stores and cleans up previously generated legacy public assets.
540
+ - 97827d1: Fail snapshot builds before writing content or a generation identity when plugins record errors, preserving source, plugin, lifecycle and original diagnostics across worker boundaries.
541
+
542
+ Fix portable SearchProvider declarations and expose browser index policies and browser/server query limits. Export the typed search context for custom controls.
543
+
544
+ Include the dependencies referenced by public Mosaic types in the published manifest, including the glob declaration types needed by strict external consumers.
545
+
546
+ Export the sidebar tree builder with sorting and page/group metadata hooks, allowing consumers to own persistence without copying traversal. Preserve nested groups, independent group priorities and status badges.
547
+ - 2a2f07e: Update dependencies with security fixes: `fastify` 5.12.8, `@fastify/middie` 9.3.6, `undici` 8.12.4 and `@apidevtools/json-schema-ref-parser` 16.
548
+ - 97827d1: Add section-level site search
549
+
550
+ `SearchIndexPlugin` writes `search-records.json`: one record for each
551
+ page's introduction and one for each section, with the section's heading path,
552
+ prose (without code), and the frontmatter fields set with the new
553
+ `records.fields` option, as plain text. By default these are `description` (falling back to
554
+ `data.description`) and `keywords`. Section anchors use the same ids as the
555
+ rendered headings and the table of contents, so results link to
556
+ `route#anchor`. To leave a page out, set `search: { exclude: true }` in its
557
+ frontmatter; to turn the file off, set `records: false`. The built-in UI migration retires the legacy search files. The record format, `SearchRecord` and
558
+ `SearchRecordsFile`, is exported from `@jpmorganchase/mosaic-types`. The
559
+ default config now runs the plugin at priority `-1.5`, after `$RefPlugin`, so
560
+ titles and fields that come from `$ref`s are resolved.
561
+
562
+ `@jpmorganchase/mosaic-site-middleware/search` exports `createSearchIndex`,
563
+ which searches the records on the server or in the browser. It is built on
564
+ MiniSearch and ranks results by Algolia-style tie-breaks: words matched, exact
565
+ title (ignoring plurals, stop words and spaces), current namespace, typos,
566
+ synonyms, where the words matched, exact heading, page rank, then relevance.
567
+ Results are grouped (one per page by default) with their other matching
568
+ sections, and include a snippet and the matched terms for `highlight`.
569
+
570
+ `createSearchHandler()` is a `GET` route handler over the records, from the
571
+ snapshot or the active-mode content server. It takes `q`, `namespace`,
572
+ `namespaces`, `limit` and `sections` query parameters and responds with
573
+ `{ query, results }`. The index is kept in memory: snapshot mode reloads it
574
+ when the file changes, and active mode checks the content server every
575
+ `maxAge` while answering from the loaded index. `loadSearchRecords()` reads the
576
+ records without searching them.
577
+ - 97827d1: Key persistent snapshot loader caches by the resolved snapshot root and a published generation ID, preventing MDX and shared configuration from surviving a snapshot change under the same directory name. The CLI writes reserved `mosaic-snapshot.json` metadata after content and aliases are complete. Legacy snapshots without valid metadata remain readable and bypass persistent caching while retaining request memoization.
578
+ - 97827d1: Merge all contributors to colliding JSON files when building snapshots. Select scoped sources before generation so sitemap, search and Markdown artifacts are included and contain only the requested namespaces. Reject empty or unknown scopes before clearing an existing snapshot.
579
+ - 97827d1: Resolve `{meta.*}` tokens anywhere in table-of-contents headings, and give those headings matching ids
580
+
581
+ `TableOfContentsPlugin` only resolved a heading that was a single
582
+ `{meta.*}` token, threw when the token didn't resolve, and ran before
583
+ `$RefPlugin` resolved `$ref`s. It now replaces every token in a heading,
584
+ keeps tokens that don't resolve as they are, and rebuilds the table of
585
+ contents in `$beforeSend` for pages whose tokens need `$ref` values. The
586
+ default config runs it at priority `-1.5`, between `$RefPlugin` and
587
+ `LazyPagePlugin`.
588
+
589
+ `serializeMdxForClient` resolves the same tokens before `rehype-slug`, so
590
+ a heading such as `## Examples for {meta.title}` gets the id the table of
591
+ contents links to instead of `examples-for-`. Repeated headings are now
592
+ numbered the same way in both.
593
+ - Updated dependencies [b581d8b]
594
+ - Updated dependencies [0c4d822]
595
+ - Updated dependencies [97827d1]
596
+ - Updated dependencies [97827d1]
597
+ - Updated dependencies [97827d1]
598
+ - Updated dependencies [97827d1]
599
+ - Updated dependencies [97827d1]
600
+ - Updated dependencies [97827d1]
601
+ - Updated dependencies [97827d1]
602
+ - Updated dependencies [97827d1]
603
+ - Updated dependencies [2ecdf25]
604
+ - Updated dependencies [97827d1]
605
+ - Updated dependencies [97827d1]
606
+ - Updated dependencies [97827d1]
607
+ - Updated dependencies [3b956ae]
608
+ - Updated dependencies [915b9ae]
609
+ - Updated dependencies [5476067]
610
+ - Updated dependencies [168391e]
611
+ - Updated dependencies [97827d1]
612
+ - Updated dependencies [97827d1]
613
+ - Updated dependencies [915b9ae]
614
+ - Updated dependencies [2a2f07e]
615
+ - Updated dependencies [0c4d822]
616
+ - Updated dependencies [97827d1]
617
+ - Updated dependencies [168391e]
618
+ - Updated dependencies [97827d1]
619
+ - Updated dependencies [41e8af3]
620
+ - Updated dependencies [97827d1]
621
+ - Updated dependencies [5d69155]
622
+ - @jpmorganchase/mosaic-core@1.0.0-beta.99
623
+ - @jpmorganchase/mosaic-source-git-repo@1.0.0-beta.99
624
+ - @jpmorganchase/mosaic-source-local-folder@1.0.0-beta.99
625
+ - @jpmorganchase/mosaic-schemas@1.0.0-beta.99
626
+ - @jpmorganchase/mosaic-plugins@1.0.0-beta.99
627
+
628
+ ## 0.1.0-beta.98
629
+
630
+ ### Patch Changes
631
+
632
+ - @jpmorganchase/mosaic-core@0.1.0-beta.98
633
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.98
634
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.98
635
+
636
+ ## 0.1.0-beta.97
637
+
638
+ ### Patch Changes
639
+
640
+ - @jpmorganchase/mosaic-core@0.1.0-beta.97
641
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.97
642
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.97
643
+
644
+ ## 0.1.0-beta.96
645
+
646
+ ### Patch Changes
647
+
648
+ - Updated dependencies [5e42846]
649
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.96
650
+ - @jpmorganchase/mosaic-core@0.1.0-beta.96
651
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.96
652
+
653
+ ## 0.1.0-beta.95
654
+
655
+ ### Patch Changes
656
+
657
+ - 18bdd6a: Modernise the build and remove un-used site generator
658
+
659
+ - update yarn to 4.10.3
660
+ - pip dependencies to allow for internal JPM build
661
+ - removed `create-site` as un-used, `site` directory can be copied, refer to docs for more details
662
+ - remove packages `@mosaicjs/create-site` and `@jpmorganchase/mosaic-standard-generator` as they are no longer needed
663
+ - `fsconfig.js` has moved from `@jpmorganchase/mosaic-standard-generator` to `@jpmorganchase/mosaic-cli`
664
+
665
+ ```diff
666
+ - import mosaicConfig from '@jpmorganchase/mosaic-standard-generator/dist/fs.config.js';
667
+ + import mosaicConfig from '@jpmorganchase/mosaic-cli/fs.config.js';
668
+ ```
669
+
670
+ - Updated dependencies [18bdd6a]
671
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.95
672
+ - @jpmorganchase/mosaic-core@0.1.0-beta.95
673
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.95
674
+
675
+ ## 0.1.0-beta.94
676
+
677
+ ### Patch Changes
678
+
679
+ - Updated dependencies [8c04c22a]
680
+ - @jpmorganchase/mosaic-core@0.1.0-beta.94
681
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.94
682
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.94
683
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.94
684
+
685
+ ## 0.1.0-beta.93
686
+
687
+ ### Patch Changes
688
+
689
+ - @jpmorganchase/mosaic-core@0.1.0-beta.93
690
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.93
691
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.93
692
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.93
693
+
694
+ ## 0.1.0-beta.92
695
+
696
+ ### Patch Changes
697
+
698
+ - @jpmorganchase/mosaic-core@0.1.0-beta.92
699
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.92
700
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.92
701
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.92
702
+
703
+ ## 0.1.0-beta.91
704
+
705
+ ### Patch Changes
706
+
707
+ - 43650506: add actuator keepalive response for server health monitor
708
+ - @jpmorganchase/mosaic-core@0.1.0-beta.91
709
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.91
710
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.91
711
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.91
712
+
713
+ ## 0.1.0-beta.90
714
+
715
+ ### Patch Changes
716
+
717
+ - Updated dependencies [adfb33a7]
718
+ - Updated dependencies [61180b78]
719
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.90
720
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.90
721
+ - @jpmorganchase/mosaic-core@0.1.0-beta.90
722
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.90
723
+
724
+ ## 0.1.0-beta.89
725
+
726
+ ### Patch Changes
727
+
728
+ - Updated dependencies [3dcd0dc0]
729
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.89
730
+ - @jpmorganchase/mosaic-core@0.1.0-beta.89
731
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.89
732
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.89
733
+
734
+ ## 0.1.0-beta.88
735
+
736
+ ### Patch Changes
737
+
738
+ - Updated dependencies [738940d9]
739
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.88
740
+ - @jpmorganchase/mosaic-core@0.1.0-beta.88
741
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.88
742
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.88
743
+
744
+ ## 0.1.0-beta.87
745
+
746
+ ### Patch Changes
747
+
748
+ - @jpmorganchase/mosaic-core@0.1.0-beta.87
749
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.87
750
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.87
751
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.87
752
+
753
+ ## 0.1.0-beta.86
754
+
755
+ ### Patch Changes
756
+
757
+ - b8361977: Feat: add GithubPullRequestWorkflow
758
+
759
+ This workflow requires a [fine-grained github personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens) so that the github rest API can be used to create Pull Requests.
760
+
761
+ - Updated dependencies [89245d87]
762
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.86
763
+ - @jpmorganchase/mosaic-core@0.1.0-beta.86
764
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.86
765
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.86
766
+
767
+ ## 0.1.0-beta.85
768
+
769
+ ### Patch Changes
770
+
771
+ - @jpmorganchase/mosaic-core@0.1.0-beta.85
772
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.85
773
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.85
774
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.85
775
+
776
+ ## 0.1.0-beta.84
777
+
778
+ ### Patch Changes
779
+
780
+ - @jpmorganchase/mosaic-core@0.1.0-beta.84
781
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.84
782
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.84
783
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.84
784
+
785
+ ## 0.1.0-beta.83
786
+
787
+ ### Patch Changes
788
+
789
+ - Updated dependencies [24551c8d]
790
+ - Updated dependencies [182a4307]
791
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.83
792
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.83
793
+ - @jpmorganchase/mosaic-core@0.1.0-beta.83
794
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.83
795
+
796
+ ## 0.1.0-beta.82
797
+
798
+ ### Patch Changes
799
+
800
+ - @jpmorganchase/mosaic-core@0.1.0-beta.82
801
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.82
802
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.82
803
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.82
804
+
805
+ ## 0.1.0-beta.81
806
+
807
+ ### Patch Changes
808
+
809
+ - @jpmorganchase/mosaic-core@0.1.0-beta.81
810
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.81
811
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.81
812
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.81
813
+
814
+ ## 0.1.0-beta.80
815
+
816
+ ### Patch Changes
817
+
818
+ - @jpmorganchase/mosaic-core@0.1.0-beta.80
819
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.80
820
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.80
821
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.80
822
+
823
+ ## 0.1.0-beta.79
824
+
825
+ ### Patch Changes
826
+
827
+ - @jpmorganchase/mosaic-core@0.1.0-beta.79
828
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.79
829
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.79
830
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.79
831
+
832
+ ## 0.1.0-beta.78
833
+
834
+ ### Patch Changes
835
+
836
+ - @jpmorganchase/mosaic-core@0.1.0-beta.78
837
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.78
838
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.78
839
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.78
840
+
841
+ ## 0.1.0-beta.77
842
+
843
+ ### Patch Changes
844
+
845
+ - Updated dependencies [3cc2ea94]
846
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.77
847
+ - @jpmorganchase/mosaic-core@0.1.0-beta.77
848
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.77
849
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.77
850
+
851
+ ## 0.1.0-beta.76
852
+
853
+ ### Patch Changes
854
+
855
+ - Updated dependencies [727fcd54]
856
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.76
857
+ - @jpmorganchase/mosaic-core@0.1.0-beta.76
858
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.76
859
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.76
860
+
861
+ ## 0.1.0-beta.75
862
+
863
+ ### Patch Changes
864
+
865
+ - Updated dependencies [fd6d715d]
866
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.75
867
+ - @jpmorganchase/mosaic-core@0.1.0-beta.75
868
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.75
869
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.75
870
+
871
+ ## 0.1.0-beta.74
872
+
873
+ ### Patch Changes
874
+
875
+ - @jpmorganchase/mosaic-core@0.1.0-beta.74
876
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.74
877
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.74
878
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.74
879
+
880
+ ## 0.1.0-beta.73
881
+
882
+ ### Patch Changes
883
+
884
+ - @jpmorganchase/mosaic-core@0.1.0-beta.73
885
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.73
886
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.73
887
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.73
888
+
889
+ ## 0.1.0-beta.72
890
+
891
+ ### Patch Changes
892
+
893
+ - @jpmorganchase/mosaic-core@0.1.0-beta.72
894
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.72
895
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.72
896
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.72
897
+
898
+ ## 0.1.0-beta.71
899
+
900
+ ### Patch Changes
901
+
902
+ - Updated dependencies [c21f28e7]
903
+ - Updated dependencies [30a19145]
904
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.71
905
+ - @jpmorganchase/mosaic-core@0.1.0-beta.71
906
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.71
907
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.71
908
+
909
+ ## 0.1.0-beta.70
910
+
911
+ ### Patch Changes
912
+
913
+ - @jpmorganchase/mosaic-core@0.1.0-beta.70
914
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.70
915
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.70
916
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.70
917
+
918
+ ## 0.1.0-beta.69
919
+
920
+ ### Patch Changes
921
+
922
+ - @jpmorganchase/mosaic-core@0.1.0-beta.69
923
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.69
924
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.69
925
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.69
926
+
927
+ ## 0.1.0-beta.68
928
+
929
+ ### Patch Changes
930
+
931
+ - @jpmorganchase/mosaic-core@0.1.0-beta.68
932
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.68
933
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.68
934
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.68
935
+
936
+ ## 0.1.0-beta.67
937
+
938
+ ### Patch Changes
939
+
940
+ - Updated dependencies [6abf1910]
941
+ - Updated dependencies [30e2f038]
942
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.67
943
+ - @jpmorganchase/mosaic-core@0.1.0-beta.67
944
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.67
945
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.67
946
+
947
+ ## 0.1.0-beta.66
948
+
949
+ ### Patch Changes
950
+
951
+ - @jpmorganchase/mosaic-core@0.1.0-beta.66
952
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.66
953
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.66
954
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.66
955
+
956
+ ## 0.1.0-beta.65
957
+
958
+ ### Patch Changes
959
+
960
+ - @jpmorganchase/mosaic-core@0.1.0-beta.65
961
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.65
962
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.65
963
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.65
964
+
965
+ ## 0.1.0-beta.64
966
+
967
+ ### Patch Changes
968
+
969
+ - @jpmorganchase/mosaic-core@0.1.0-beta.64
970
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.64
971
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.64
972
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.64
973
+
974
+ ## 0.1.0-beta.63
975
+
976
+ ### Patch Changes
977
+
978
+ - Updated dependencies [680eb0eb]
979
+ - @jpmorganchase/mosaic-core@0.1.0-beta.63
980
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.63
981
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.63
982
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.63
983
+
984
+ ## 0.1.0-beta.62
985
+
986
+ ### Patch Changes
987
+
988
+ - @jpmorganchase/mosaic-core@0.1.0-beta.62
989
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.62
990
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.62
991
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.62
992
+
993
+ ## 0.1.0-beta.61
994
+
995
+ ### Patch Changes
996
+
997
+ - cec89401: add `pluginTimeout` (20 secs) to fastify to prevent loading timeout
998
+ - Updated dependencies [cec89401]
999
+ - @jpmorganchase/mosaic-core@0.1.0-beta.61
1000
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.61
1001
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.61
1002
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.61
1003
+
1004
+ ## 0.1.0-beta.60
1005
+
1006
+ ### Patch Changes
1007
+
1008
+ - a3da0830: New Readme Source
1009
+
1010
+ This source pulls a single Readme.md from a remote Source repo.
1011
+ Typically used for third-party repos which exist already or don't want to
1012
+ create a full document hierachy and use `@jpmorganchase/mosaic-source-git-repo`.
1013
+ By pulling a single page, we can add metadata to that page via the source's config.
1014
+ It's also more performant as we do not need to pull a whole source repo.
1015
+
1016
+ - Updated dependencies [a3da0830]
1017
+ - @jpmorganchase/mosaic-core@0.1.0-beta.60
1018
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.60
1019
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.60
1020
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.60
1021
+
1022
+ ## 0.1.0-beta.59
1023
+
1024
+ ### Patch Changes
1025
+
1026
+ - @jpmorganchase/mosaic-core@0.1.0-beta.59
1027
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.59
1028
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.59
1029
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.59
1030
+
1031
+ ## 0.1.0-beta.58
1032
+
1033
+ ### Patch Changes
1034
+
1035
+ - @jpmorganchase/mosaic-core@0.1.0-beta.58
1036
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.58
1037
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.58
1038
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.58
1039
+
1040
+ ## 0.1.0-beta.57
1041
+
1042
+ ### Patch Changes
1043
+
1044
+ - d214d112: Add catch-all default exports for
1045
+
1046
+ - `@jpmorganchase/mosaic-store`
1047
+ - `@jpmorganchase/mosaic-theme`
1048
+ - `@jpmorganchase/mosaic-workflows`
1049
+
1050
+ This resolves an issue when running tests from an external repo which depends on these packages
1051
+
1052
+ - Updated dependencies [d214d112]
1053
+ - @jpmorganchase/mosaic-core@0.1.0-beta.57
1054
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.57
1055
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.57
1056
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.57
1057
+
1058
+ ## 0.1.0-beta.56
1059
+
1060
+ ### Patch Changes
1061
+
1062
+ - 6d30e29f: Add new Storybook source
1063
+
1064
+ Storybook stories can be extracted from Storybook and embedded into Mosaic pages.
1065
+
1066
+ The stories are extracted based on a configured filter or matching tags.
1067
+
1068
+ With a page created for each Story, the author can create a dynamic index of matching stories.
1069
+
1070
+ eg. An index of patterns which match a specific tag
1071
+
1072
+ - Updated dependencies [7c94fb06]
1073
+ - Updated dependencies [6d30e29f]
1074
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.56
1075
+ - @jpmorganchase/mosaic-core@0.1.0-beta.56
1076
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.56
1077
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.56
1078
+
1079
+ ## 0.1.0-beta.55
1080
+
1081
+ ### Patch Changes
1082
+
1083
+ - @jpmorganchase/mosaic-core@0.1.0-beta.55
1084
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.55
1085
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.55
1086
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.55
1087
+
1088
+ ## 0.1.0-beta.54
1089
+
1090
+ ### Patch Changes
1091
+
1092
+ - Updated dependencies [5c83b602]
1093
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.54
1094
+ - @jpmorganchase/mosaic-core@0.1.0-beta.54
1095
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.54
1096
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.54
1097
+
1098
+ ## 0.1.0-beta.53
1099
+
1100
+ ### Patch Changes
1101
+
1102
+ - Updated dependencies [d7098baa]
1103
+ - @jpmorganchase/mosaic-core@0.1.0-beta.53
1104
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.53
1105
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.53
1106
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.53
1107
+
1108
+ ## 0.1.0-beta.52
1109
+
1110
+ ### Patch Changes
1111
+
1112
+ - 9ad7418c: Use a websocket for workflows
1113
+ - Updated dependencies [9ad7418c]
1114
+ - @jpmorganchase/mosaic-core@0.1.0-beta.52
1115
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.52
1116
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.52
1117
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.52
1118
+
1119
+ ## 0.1.0-beta.51
1120
+
1121
+ ### Patch Changes
1122
+
1123
+ - @jpmorganchase/mosaic-core@0.1.0-beta.51
1124
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.51
1125
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.51
1126
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.51
1127
+
1128
+ ## 0.1.0-beta.50
1129
+
1130
+ ### Patch Changes
1131
+
1132
+ - 2f015976: ### Feat
1133
+
1134
+ `enableSourcePush` is now a property of the Mosaic Config file. This functionality was previously configured using an environment variable `process.env.MOSAIC_ENABLE_SOURCE_PUSH`
1135
+
1136
+ ### Fix
1137
+
1138
+ The Admin API that returned the Mosaic config file now strips credentials from git reo sources
1139
+
1140
+ ### Refactor
1141
+
1142
+ Fastify is now used as the web server powering the `serve` functionality of the Mosaic CLI.
1143
+
1144
+ - Updated dependencies [2f015976]
1145
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.50
1146
+ - @jpmorganchase/mosaic-core@0.1.0-beta.50
1147
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.50
1148
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.50
1149
+
1150
+ ## 0.1.0-beta.49
1151
+
1152
+ ### Patch Changes
1153
+
1154
+ - Updated dependencies [425b5a00]
1155
+ - @jpmorganchase/mosaic-core@0.1.0-beta.49
1156
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.49
1157
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.49
1158
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.49
1159
+
1160
+ ## 0.1.0-beta.48
1161
+
1162
+ ### Patch Changes
1163
+
1164
+ - Updated dependencies [0eca1d6e]
1165
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.48
1166
+ - @jpmorganchase/mosaic-core@0.1.0-beta.48
1167
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.48
1168
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.48
1169
+
1170
+ ## 0.1.0-beta.47
1171
+
1172
+ ### Patch Changes
1173
+
1174
+ - 8c5cead5: ### Feat
1175
+
1176
+ Add admin API to retrieve the entire mosaic filesystem as JSON
1177
+
1178
+ ### Fix
1179
+
1180
+ Ensure that the pages from a restarted source are added to the global filesystem
1181
+
1182
+ - Updated dependencies [6caa661a]
1183
+ - Updated dependencies [8c5cead5]
1184
+ - @jpmorganchase/mosaic-core@0.1.0-beta.47
1185
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.47
1186
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.47
1187
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.47
1188
+
1189
+ ## 0.1.0-beta.46
1190
+
1191
+ ### Patch Changes
1192
+
1193
+ - Updated dependencies [9a2aacb5]
1194
+ - @jpmorganchase/mosaic-core@0.1.0-beta.46
1195
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.46
1196
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.46
1197
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.46
1198
+
1199
+ ## 0.1.0-beta.45
1200
+
1201
+ ### Patch Changes
1202
+
1203
+ - @jpmorganchase/mosaic-core@0.1.0-beta.45
1204
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.45
1205
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.45
1206
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.45
1207
+
1208
+ ## 0.1.0-beta.44
1209
+
1210
+ ### Patch Changes
1211
+
1212
+ - e768f4b: ### Fixes
1213
+
1214
+ Strip credentials when using the list sources admin API
1215
+
1216
+ - Updated dependencies [e768f4b]
1217
+ - @jpmorganchase/mosaic-core@0.1.0-beta.44
1218
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.44
1219
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.44
1220
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.44
1221
+
1222
+ ## 0.1.0-beta.43
1223
+
1224
+ ### Patch Changes
1225
+
1226
+ - 682c784: Add Admin endpoints
1227
+ - 0ced179: ## Feature
1228
+
1229
+ Any exception raised by plugins during any part of the plugin lifecycle are converted to instances of PluginError and tracked by the source that is running the plugins. This means plugin errors do not cause the source to close and content will continue to be served by Mosaic.
1230
+
1231
+ Plugin authors should be encouraged to throw a `PluginError` as should an error occur when processing a particular page, then the full path to the page can be included in the error descriptor.
1232
+
1233
+ Plugin errors are not currently surfaced to a Mosaic site but can be viewed using the list sources admin API.
1234
+
1235
+ ## Fix
1236
+
1237
+ The `saveContent` plugin lifecycle method is removed. This concept was replaced with workflows some time ago and should have been removed then.
1238
+
1239
+ - Updated dependencies [d3b8b3a]
1240
+ - Updated dependencies [7013042]
1241
+ - Updated dependencies [682c784]
1242
+ - Updated dependencies [c0ee0f3]
1243
+ - Updated dependencies [0ced179]
1244
+ - @jpmorganchase/mosaic-core@0.1.0-beta.43
1245
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.43
1246
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.43
1247
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.43
1248
+
1249
+ ## 0.1.0-beta.42
1250
+
1251
+ ### Patch Changes
1252
+
1253
+ - Updated dependencies [3491f29]
1254
+ - Updated dependencies [a62b028]
1255
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.42
1256
+ - @jpmorganchase/mosaic-core@0.1.0-beta.42
1257
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.42
1258
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.42
1259
+
1260
+ ## 0.1.0-beta.41
1261
+
1262
+ ### Patch Changes
1263
+
1264
+ - Updated dependencies [898c9ad]
1265
+ - Updated dependencies [5cd5a87]
1266
+ - @jpmorganchase/mosaic-core@0.1.0-beta.41
1267
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.41
1268
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.41
1269
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.41
1270
+
1271
+ ## 0.1.0-beta.40
1272
+
1273
+ ### Patch Changes
1274
+
1275
+ - @jpmorganchase/mosaic-core@0.1.0-beta.40
1276
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.40
1277
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.40
1278
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.40
1279
+
1280
+ ## 0.1.0-beta.39
1281
+
1282
+ ### Patch Changes
1283
+
1284
+ - Updated dependencies [d2ff626]
1285
+ - Updated dependencies [2b3948d]
1286
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.39
1287
+ - @jpmorganchase/mosaic-core@0.1.0-beta.39
1288
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.39
1289
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.39
1290
+
1291
+ ## 0.1.0-beta.38
1292
+
1293
+ ### Patch Changes
1294
+
1295
+ - Updated dependencies [dc993df]
1296
+ - @jpmorganchase/mosaic-core@0.1.0-beta.38
1297
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.38
1298
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.38
1299
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.38
1300
+
1301
+ ## 0.1.0-beta.37
1302
+
1303
+ ### Patch Changes
1304
+
1305
+ - Updated dependencies [feb5b9e]
1306
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.37
1307
+ - @jpmorganchase/mosaic-core@0.1.0-beta.37
1308
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.37
1309
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.37
1310
+
1311
+ ## 0.1.0-beta.36
1312
+
1313
+ ### Patch Changes
1314
+
1315
+ - @jpmorganchase/mosaic-core@0.1.0-beta.36
1316
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.36
1317
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.36
1318
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.36
1319
+
1320
+ ## 0.1.0-beta.35
1321
+
1322
+ ### Patch Changes
1323
+
1324
+ - Updated dependencies [00a9408]
1325
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.35
1326
+ - @jpmorganchase/mosaic-core@0.1.0-beta.35
1327
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.35
1328
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.35
1329
+
1330
+ ## 0.1.0-beta.34
1331
+
1332
+ ### Patch Changes
1333
+
1334
+ - @jpmorganchase/mosaic-core@0.1.0-beta.34
1335
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.34
1336
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.34
1337
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.34
1338
+
1339
+ ## 0.1.0-beta.33
1340
+
1341
+ ### Patch Changes
1342
+
1343
+ - Updated dependencies [cb18c31]
1344
+ - Updated dependencies [e6d9594]
1345
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.33
1346
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.33
1347
+ - @jpmorganchase/mosaic-core@0.1.0-beta.33
1348
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.33
1349
+
1350
+ ## 0.1.0-beta.32
1351
+
1352
+ ### Patch Changes
1353
+
1354
+ - a56eadb: ## Source Pushing
1355
+
1356
+ The Mosaic CLI provides an endpoint `/sources/add/` that allows a new source to be pushed to a running instance of Mosaic.
1357
+
1358
+ To do this you make a POST request with a JSON body composed of
1359
+
1360
+ - a `name` property
1361
+ - a `definition` property
1362
+
1363
+ ### Example request body
1364
+
1365
+ Pushing a new git repo source:
1366
+
1367
+ ```
1368
+ {
1369
+ "name":"my-docs-preview",
1370
+ "definition": {
1371
+ "modulePath": "@jpmorganchase/mosaic-source-git-repo",
1372
+ "namespace": "my-docs",
1373
+ "options": {
1374
+ "credentials":<access-token>,
1375
+ "prefixDir": "my-docs",
1376
+ "cache": true,
1377
+ "subfolder": "docs",
1378
+ "repo": <repo-url>,
1379
+ "branch": "main",
1380
+ "extensions": [".mdx"],
1381
+ "remote": "origin"
1382
+ }
1383
+ }
1384
+ }
1385
+ ```
1386
+
1387
+ ## Notes
1388
+
1389
+ By default, these sources are marked as a "preview" which means `preview-` is appended to the source namespace and certain plugins will not be run on this source e.g. search and sitemap plugins.
1390
+
1391
+ You can disabled this behavior in 2 ways:
1392
+
1393
+ 1. send the property `isPreview` with the value of false as part of the POST request body
1394
+ 2. modify plugin definitions in the mosaic config file to set `previewDisabled` to be false for all plugins you wish have run on this source.
1395
+
1396
+ - Updated dependencies [a56eadb]
1397
+ - Updated dependencies [7ed1ee7]
1398
+ - Updated dependencies [8c854fd]
1399
+ - @jpmorganchase/mosaic-core@0.1.0-beta.32
1400
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.32
1401
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.32
1402
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.32
1403
+
1404
+ ## 0.1.0-beta.31
1405
+
1406
+ ### Patch Changes
1407
+
1408
+ - b609fd0: Added support for containerization of the site and cli as well as providing config for kubernetes development (skaffold)
1409
+
1410
+ ## @jpmorganchase/mosaic-cli
1411
+
1412
+ The cli package has been updated to support containerization.
1413
+
1414
+ - Updated dependencies [b609fd0]
1415
+ - Updated dependencies [0f702ad]
1416
+ - @jpmorganchase/mosaic-core@0.1.0-beta.31
1417
+ - @jpmorganchase/mosaic-plugins@0.1.0-beta.31
1418
+ - @jpmorganchase/mosaic-source-local-folder@0.1.0-beta.31
1419
+ - @jpmorganchase/mosaic-standard-generator@0.1.0-beta.31
1420
+
1421
+ ## 0.1.0-beta.30
1422
+
1423
+ ### Patch Changes
1424
+
1425
+ - 18ef436: The git repo source no longer generates a double slash between the repo host and repo path.
1426
+ - Updated dependencies [18ef436]
1427
+ - @jpmorganchase/mosaic-core@0.1.0-beta.30
1428
+
1429
+ ## 0.1.0-beta.29
1430
+
1431
+ ### Minor Changes
1432
+
1433
+ - c78deb4: Flatten Sidebar
1434
+ Search Optimisation
1435
+ Public Assets Plugin
1436
+ TOC Indentation
1437
+
1438
+ ### Patch Changes
1439
+
1440
+ - Updated dependencies [c78deb4]
1441
+ - @jpmorganchase/mosaic-core@0.1.0-beta.29
1442
+
1443
+ ## 0.1.0-beta.28
1444
+
1445
+ ### Patch Changes
1446
+
1447
+ - 27ac914: 1. Layout improvements. 2. Fix: if a user hits a url that lands on a directory, the index file within that directory is resolved as the content. 3. Fix: improve Table of Contents component highlighting.
1448
+ - Updated dependencies [27ac914]
1449
+ - @jpmorganchase/mosaic-core@0.1.0-beta.28
1450
+
1451
+ ## 0.1.0-beta.27
1452
+
1453
+ ### Patch Changes
1454
+
1455
+ - b465413: Improvements to vercel deployments
1456
+ - Updated dependencies [b465413]
1457
+ - @jpmorganchase/mosaic-core@0.1.0-beta.27
1458
+
1459
+ ## 0.1.0-beta.26
1460
+
1461
+ ### Minor Changes
1462
+
1463
+ - 531c87a: ## Mosaic Theme
1464
+
1465
+ The theme variables are now globally scoped and prefixed with `mosaic`.
1466
+
1467
+ ## BrokenLinksPlugin
1468
+
1469
+ The `BrokenLinksPlugin` uses a running instance of mosaic to verify that all links in the source pages are alive.
1470
+
1471
+ If mosaic is running behind a corporate proxy, the `proxyEndpoint` option is required to fetch external URLs.
1472
+
1473
+ Configuration:
1474
+
1475
+ ```json
1476
+ {
1477
+ modulePath: '@jpmorganchase/mosaic-plugins/BrokenLinksPlugin',
1478
+ priority: -1,
1479
+ // Exclude this plugin in builds
1480
+ runTimeOnly: true,
1481
+ options: {
1482
+ baseUrl: process.env.MOSAIC_ACTIVE_MODE_URL || 'http://localhost:8080',
1483
+ proxyEndpoint: 'http://some-proxy-url'
1484
+ }
1485
+ }
1486
+ ```
1487
+
1488
+ ## Next/Prev button
1489
+
1490
+ The next and prev buttons are visible again on pages that have a layout that uses these buttons.
1491
+
1492
+ ### Patch Changes
1493
+
1494
+ - Updated dependencies [531c87a]
1495
+ - @jpmorganchase/mosaic-core@0.1.0-beta.26
1496
+
1497
+ ## 0.1.0-beta.25
1498
+
1499
+ ### Minor Changes
1500
+
1501
+ - 93e9b07: The theme contract provided by the `@jpmorganchase/mosaic-theme` package now uses locally scoped variable names via a Vanilla Extract [Theme Contract](https://vanilla-extract.style/documentation/api/create-theme-contract/). Previously the theme variables were globally scoped resulting in conflicts with other design systems.
1502
+
1503
+ ### Patch Changes
1504
+
1505
+ - a36219c: - Next/Prev page buttons were not appearing at the bottom of a page sequence
1506
+ - Removed redundant snapshot page api
1507
+ - Updated dependencies [a36219c]
1508
+ - Updated dependencies [93e9b07]
1509
+ - @jpmorganchase/mosaic-core@0.1.0-beta.25
1510
+
1511
+ ## 0.1.0-beta.24
1512
+
1513
+ ### Patch Changes
1514
+
1515
+ - 049d9af: 1. Pip Salt version 2. Issues 155, make 500 error more specific 3. button and sidebar styles 4. search opt-out
1516
+ - Updated dependencies [049d9af]
1517
+ - @jpmorganchase/mosaic-core@0.1.0-beta.24
1518
+
1519
+ ## 0.1.0-beta.23
1520
+
1521
+ ### Patch Changes
1522
+
1523
+ - 513d45f: Sidebar behavior and styling changes.
1524
+ Add Client-side search feature.
1525
+ Relax node engine requirements.
1526
+ Removal of patches from the site package.
1527
+ Update site generator templates.
1528
+ - Updated dependencies [513d45f]
1529
+ - @jpmorganchase/mosaic-core@0.1.0-beta.23
1530
+
1531
+ ## 0.1.0-beta.22
1532
+
1533
+ ### Patch Changes
1534
+
1535
+ - be89e4f: fix markdown tables and update generator's Salt patches
1536
+
1537
+ - Salt patches in generator were out of sync with Mosaic repo
1538
+ - Markdown now support github flavoured markdown, such as Tables
1539
+
1540
+ - Updated dependencies [be89e4f]
1541
+ - @jpmorganchase/mosaic-core@0.1.0-beta.22
1542
+
1543
+ ## 0.1.0-beta.21
1544
+
1545
+ ### Patch Changes
1546
+
1547
+ - f75fd5e: fix sidebar which was generated after `beforeSend` had completed
1548
+ - Updated dependencies [f75fd5e]
1549
+ - @jpmorganchase/mosaic-core@0.1.0-beta.21
1550
+
1551
+ ## 0.1.0-beta.20
1552
+
1553
+ ### Patch Changes
1554
+
1555
+ - 9c7b8ff: pip to beta.20
1556
+ - Updated dependencies [9c7b8ff]
1557
+ - @jpmorganchase/mosaic-core@0.1.0-beta.20
1558
+
1559
+ ## 0.1.0-beta.19
1560
+
1561
+ ### Patch Changes
1562
+
1563
+ - ad06d4c: ensure spinner is removed after page has loaded
1564
+ - Updated dependencies [ad06d4c]
1565
+ - @jpmorganchase/mosaic-core@0.1.0-beta.19
1566
+
1567
+ ## 0.1.0-beta.18
1568
+
1569
+ ### Patch Changes
1570
+
1571
+ - 066efed: Update docs with quick-start guide
1572
+
1573
+ Sample docs now include a 'quick-start' guide to onboarding to AWS.
1574
+
1575
+ Also
1576
+
1577
+ - generator default directory is the current directory
1578
+ - after generating a site, it will run `yarn` in the created directory. This simplifies the generator call to just `yarn mosaic-create-site`
1579
+
1580
+ - Updated dependencies [066efed]
1581
+ - @jpmorganchase/mosaic-core@0.1.0-beta.18
1582
+
1583
+ ## 0.1.0-beta.17
1584
+
1585
+ ### Patch Changes
1586
+
1587
+ - b2f6d52: Fix `pre` block code block rendering
1588
+ - Updated dependencies [b2f6d52]
1589
+ - @jpmorganchase/mosaic-core@0.1.0-beta.17
1590
+
1591
+ ## 0.1.0-beta.16
1592
+
1593
+ ### Patch Changes
1594
+
1595
+ - 3a5c88a: add missing `@types/node` dependency for generator
1596
+ - Updated dependencies [3a5c88a]
1597
+ - @jpmorganchase/mosaic-core@0.1.0-beta.16
1598
+
1599
+ ## 0.1.0-beta.15
1600
+
1601
+ ### Patch Changes
1602
+
1603
+ - aaaf255: initial release of HTTP Source package.
1604
+
1605
+ An HTTP source accepts a collection of endpoints and a path to a transformer module.
1606
+ The response from fetching is transformed and merged together into 1 single collection of pages.
1607
+ Should 1 of the endpoints request fail then it will have no impact on the other requests.
1608
+
1609
+ - Updated dependencies [aaaf255]
1610
+ - @jpmorganchase/mosaic-core@0.1.0-beta.15
1611
+
1612
+ ## 0.1.0-beta.14
1613
+
1614
+ ### Patch Changes
1615
+
1616
+ - dde3b5a: Feature release
1617
+
1618
+ - Enhanced generators now have defaults.
1619
+ With one command (`yarn mosaic-create-site create`) it will generate a fully working site with both local and remote sources
1620
+ - Fix an issue where we could not clone from the master branch of git repos
1621
+ - Migrate to Next 13 image
1622
+
1623
+ - Updated dependencies [dde3b5a]
1624
+ - @jpmorganchase/mosaic-core@0.1.0-beta.14
1625
+
1626
+ ## 0.1.0-beta.13
1627
+
1628
+ ### Patch Changes
1629
+
1630
+ - d4da1df: incremental improvements
1631
+
1632
+ - move colormode into store
1633
+ - ensure breadcrumbs and sidebar data is only added to frontmatter for pages which use a layout that has breadcrumbs or a sidebar
1634
+ - improve changeset so it can work standalone without a monorepo
1635
+ - resolev json5 vulnerability
1636
+
1637
+ - Updated dependencies [d4da1df]
1638
+ - @jpmorganchase/mosaic-core@0.1.0-beta.13
1639
+
1640
+ ## 0.1.0-beta.12
1641
+
1642
+ ### Patch Changes
1643
+
1644
+ - 9ec358b: Upgrade React to version 18 and NextJs to version 13
1645
+ - Updated dependencies [9ec358b]
1646
+ - @jpmorganchase/mosaic-core@0.1.0-beta.12
1647
+
1648
+ ## 0.1.0-beta.11
1649
+
1650
+ ### Patch Changes
1651
+
1652
+ - 146a4bb: fix SSR Initial render
1653
+
1654
+ removed Salt Core patch
1655
+ added Salt Labs patch (Cascading Menu) to support SSR
1656
+
1657
+ - fc5d7b5: Generators can now interactively add sources
1658
+
1659
+ Previously we were making local edits to our own site or examples to implement new features.
1660
+ What we wanted was the ability to create a local rig, A local rig can be used for development purposes,
1661
+ without touching our site code.
1662
+
1663
+ We have added Mosaic repo commands, to enable us to generates local rigs (`yarn gen:rig`) and deploy our own
1664
+ tech docs via snapshot (`yarn gen`)
1665
+
1666
+ To generate a site+snapshot from sources defined in `mosaic-generators.js`, run `yarn gen`
1667
+ To generate a dynamic site from sources defined in `mosaic-generators.js`, run `yarn gen:site`
1668
+ To generate a rig `yarn gen:rig`
1669
+
1670
+ Equally these changes can be used to generate sites in other repos via the `mosaic-create-site` command.
1671
+
1672
+ `yarn mosaic-create-site init` will create a `mosaic.generators.js`.
1673
+
1674
+ Configure the `mosaic.generators.js` with your generator and sources, then run.
1675
+
1676
+ `yarn mosaic-create-site create -i -o path/to/my-site`
1677
+
1678
+ When this command is run, it will present an interactive menu of generators and output the site to `path/to/my-site`.
1679
+
1680
+ - Updated dependencies [146a4bb]
1681
+ - Updated dependencies [fc5d7b5]
1682
+ - @jpmorganchase/mosaic-core@0.1.0-beta.11
1683
+
1684
+ ## 0.1.0-beta.10
1685
+
1686
+ ### Patch Changes
1687
+
1688
+ - af2f579: Converted repo to ESM and Salt DS nomenclature
1689
+
1690
+ - Switch UITK nomenclature to Salt DS
1691
+ Upgraded to first stable version of Salt DS version 1.0.0
1692
+ - CommonJS code switched to ESM and upgraded to Node 16
1693
+ - Removed example-nextjs-ssr package as un-required, can be replaced by documentation
1694
+ - Sites can now generate immutable snapshots of content that loads content like a SGS (statically generated site)
1695
+ Snapshots can be used as a serverless solution when deployed to Vercel.
1696
+ - New Middleware package `@jpmorganchase/mosaic-site-middleware`
1697
+
1698
+ - Updated dependencies [af2f579]
1699
+ - @jpmorganchase/mosaic-core@0.1.0-beta.10
1700
+
1701
+ ## 0.1.0-beta.9
1702
+
1703
+ ### Minor Changes
1704
+
1705
+ - c3fee89: initial components package
1706
+
1707
+ - added JSDOM testing
1708
+
1709
+ ## 0.1.0-beta.8
1710
+
1711
+ ### Minor Changes
1712
+
1713
+ - 2dca0b1: initial release of Mosaic store package
1714
+
1715
+ ## 0.1.0-beta.7
1716
+
1717
+ ### Minor Changes
1718
+
1719
+ - f82c397: Initial release of theme and client side search
1720
+
1721
+ We are iterating towards deploying our site code.
1722
+
1723
+ This release includes
1724
+
1725
+ - initial work for client-side search support
1726
+ - Mosaic theme.
1727
+
1728
+ ## 0.1.0-beta.6
1729
+
1730
+ ### Patch Changes
1731
+
1732
+ - c103b24: Release fixes for snapshot serve
1733
+
1734
+ ## 0.1.0-beta.5
1735
+
1736
+ ### Patch Changes
1737
+
1738
+ - 61a246c: This releases add support for generate / build and serve snapshots
1739
+
1740
+ ## 0.1.0-beta.4
1741
+
1742
+ ### Patch Changes
1743
+
1744
+ - bd285df: added dist to package.json
1745
+
1746
+ ## 0.1.0-beta.3
1747
+
1748
+ ### Patch Changes
1749
+
1750
+ - 457df5e: switch to public package
1751
+
1752
+ ## 0.1.0-beta.2
1753
+
1754
+ ### Patch Changes
1755
+
1756
+ - e1bbbe7: Initial release of Mosaic Core file-system.
1757
+
1758
+ Mosaic is a content aggregating service which pulls content from heterogeneous data sources.
1759
+
1760
+ - 4b2bc51: pipped to 0.1.0-beta.1 for publishing to NPM
1761
+
1762
+ ## 0.1.0
1763
+
1764
+ ### Patch Changes
1765
+
1766
+ - e1bbbe7: Initial release of Mosaic Core file-system.
1767
+
1768
+ Mosaic is a content aggregating service which pulls content from heterogeneous data sources.