# easy-cms ## 1.57.1 ### Patch Changes - Updated dependencies [b9d3542] - @easy-cms/admin@1.57.1 - @easy-cms/core@1.57.1 ## 1.57.0 ### Patch Changes - Updated dependencies [fed759d] - Updated dependencies [0d6260d] - @easy-cms/admin@1.57.0 - @easy-cms/core@1.57.0 ## 1.56.2 ### Patch Changes - @easy-cms/admin@1.56.2 - @easy-cms/core@1.56.2 ## 1.56.1 ### Patch Changes - Updated dependencies [f3562ba] - @easy-cms/core@1.56.1 - @easy-cms/admin@1.56.1 ## 1.56.0 ### Patch Changes - Updated dependencies [c4103eb] - @easy-cms/core@1.56.0 - @easy-cms/admin@1.56.0 ## 1.55.0 ### Patch Changes - Updated dependencies [8f795b6] - @easy-cms/core@1.55.0 - @easy-cms/admin@1.55.0 ## 1.54.0 ### Patch Changes - @easy-cms/admin@1.54.0 - @easy-cms/core@1.54.0 ## 1.53.0 ### Patch Changes - @easy-cms/admin@1.53.0 - @easy-cms/core@1.53.0 ## 1.52.2 ### Patch Changes - Updated dependencies [dcd3c84] - @easy-cms/core@1.52.2 - @easy-cms/admin@1.52.2 ## 1.52.1 ### Patch Changes - @easy-cms/admin@1.52.1 - @easy-cms/core@1.52.1 ## 1.52.0 ### Minor Changes - c3ff9ab: `easy-cms build:admin` builds admin components written in Vue (`.vue`), React (`.tsx`, `.jsx`) or Svelte (`.svelte`) into the admin's module (#443): one ES module without imports, in `admin/dist/components.js` for `admin.modules`, with a custom element per component named after its file and the component's styles in its shadow root. Components get the admin's properties as props, plus `change`, `setField` and `navigate` (typed `AdminComponentProps` from `@easy-cms/core`). The new `@easy-cms/admin-build` package holds the build (Vite); install it with the framework's Vite plugin. `--watch` builds again as files change. A missing `admin/dist/…` module now says to run `easy-cms build:admin`. The Nuxt, Next.js and standalone examples each have one (Vue, React, Svelte). ### Patch Changes - Updated dependencies [c3ff9ab] - @easy-cms/core@1.52.0 - @easy-cms/admin@1.52.0 ## 1.51.0 ### Minor Changes - 4b45bee: `admin: { enabled: false }` turns the admin UI off in every adapter (#442), for a team with an admin app of its own. Next.js's admin route answers 404 (and logs that the file can go), the Nuxt module leaves the admin out of the build, `easy-cms serve` answers 404 at the admin and at `/`, and the Workers build leaves the admin app out. The API, auth and sessions work as before; the routes only the admin UI uses (`/admin/ui/*`) answer 404. Password, invitation and verification emails link to `auth.members.pages` for everyone (warned at start when they aren't set), and provider sign-in ends on the site (the `redirect` given, when a path of the site, else `admin.siteURL` or `/`). `admin: false` is refused with this way to write it. ### Patch Changes - b9c4eda: `@easy-cms/drizzle` and `easy-cms` 1.50.0 failed to load beside `@easy-cms/core` 1.49 ("does not provide an export named 'importDefault'"), which npm installs when a project pins core and gets the newest database adapter. They look the loader up when a data migration or `easy-cms seed` needs it, and say to upgrade every package together if core is older. - Updated dependencies [4b45bee] - @easy-cms/core@1.51.0 - @easy-cms/admin@1.51.0 ## 1.50.0 ### Minor Changes - 016188f: SQL and data migrations, and `easy-cms seed` (#441). `easy-cms migrate:create --empty` writes an empty SQL migration to write yourself (your app's own tables, views, indexes), run and recorded with the others. `--data` writes the config's changes with a `.ts` data step (`export default async (tx) => {}`, typed `DataMigration`) that runs after the SQL in the same transaction, so a failure rolls both back. `migrate:status` marks migrations with a data step. `easy-cms seed` runs `easy-cms/seed.ts` (or `--file`), whose default export gets the Local API (typed `Seed`); in development it pushes the schema first unless the project has migrations. The Next.js starter template seeds with it. ### Patch Changes - Updated dependencies [53cd63a] - Updated dependencies [016188f] - @easy-cms/core@1.50.0 - @easy-cms/admin@1.50.0 ## 1.49.0 ### Patch Changes - Updated dependencies [5a1ae83] - @easy-cms/core@1.49.0 - @easy-cms/admin@1.49.0 ## 1.48.0 ### Patch Changes - Updated dependencies [4b8f02c] - @easy-cms/admin@1.48.0 - @easy-cms/core@1.48.0 ## 1.47.0 ### Minor Changes - 9e23a9e: Realtime: apps subscribe to changes in collections with `realtime: true` (ADR-0070). `GET /realtime?s=posts` is a Server-Sent Events stream of `create`, `update`, `delete`, `publish` and `unpublish`, each with the document as the subscriber reads it over REST (access, field access, drafts), and `Last-Event-ID` resumes. `createClient()` gets `subscribe()` and `live()`, `@easy-cms/next/live` and `@easy-cms/nuxt` get `useLive()`, and the Local API gets `cms.subscribe()`. Saves on any instance reach every instance's subscribers within `realtime.pollMs`. Needs a migration for the `realtime-events` table. `easy-cms serve` no longer logs "Premature close" when a client leaves a stream. ### Patch Changes - Updated dependencies [9e23a9e] - @easy-cms/core@1.47.0 - @easy-cms/admin@1.47.0 ## 1.46.1 ### Patch Changes - Updated dependencies [18777b0] - @easy-cms/admin@1.46.1 - @easy-cms/core@1.46.1 ## 1.46.0 ### Patch Changes - 04e00e5: Who may sign in, set in the admin (#409, ADR-0068). In Settings → Single sign-on, admins choose who uses a password (everyone, only admins, or break-glass accounts chosen from admins with a password) and which email domains sign themselves up with a provider, and as what role, over `auth.password` and `auth.providerSignUp`, which stay the default. Changes apply at once on every server within 30 seconds, end the password sessions of accounts that lose their password, and are in the audit log (`sign-in.rules`); the admin is told how many accounts and sessions a change affects before saving. Saving is refused when afterwards no admin, or the admin saving, could sign in; the last admin on the break-glass list can't be deleted, deactivated or demoted. Sign-up refuses domains anyone can get an address at (gmail.com, outlook.com…), `admin`, and roles that can change other accounts; the same in `auth.providerSignUp` is warned about at start and on that page. `auth.locked` keeps the config's rules, and `easy-cms reset-sign-in` forgets the admin's. No migration. - Updated dependencies [04e00e5] - @easy-cms/core@1.46.0 - @easy-cms/admin@1.46.0 ## 1.45.0 ### Minor Changes - a880162: `easy-cms build --target workers` writes what Wrangler needs to deploy the CMS, the standalone server's admin and REST API, as a Cloudflare Worker (ADR-0067): - the Worker's entry and the admin app in `.easy-cms/workers/` - `wrangler.jsonc` when the project has none: `nodejs_compat`, the `ASSETS` binding, Cron Triggers every minute for the jobs, and aliases for `sharp` and other packages that can't run there The Worker is `createWorker(config)` from `easy-cms/workers`. A Worker has no disk, so the config needs `upload.storage` and a database over HTTP, such as Turso. The admin handler takes `readFile` to read the app from somewhere other than a directory. ### Patch Changes - Updated dependencies [a880162] - @easy-cms/admin@1.45.0 - @easy-cms/core@1.45.0 ## 1.44.0 ### Patch Changes - Updated dependencies [b765b61] - Updated dependencies [fb5f6e9] - @easy-cms/core@1.44.0 - @easy-cms/admin@1.44.0 ## 1.43.1 ### Patch Changes - fa17cab: `easy-cms secrets:rotate` and `easy-cms audit:resign` run: they answered "Unknown command", so a rotated secret's connections and audit log couldn't be moved to the new one from the CLI. Every command the help lists is now checked to run. - @easy-cms/admin@1.43.1 - @easy-cms/core@1.43.1 ## 1.43.0 ### Minor Changes - b1f8284: Sign-in providers turned on in the admin (ADR-0066). `signInPlugin()` from `@easy-cms/auth-oauth` adds Google, Microsoft, GitHub and OpenID Connect to Settings → Integrations → Sign-in: an admin enters the app's keys, copies the redirect URL, tests a sign-in at the provider (nobody is signed in by it), then uses it for sign-in. The config's `auth.providers` stay the default; an admin can turn them off, and a connection with the same id takes a provider's place. `auth.locked: true` keeps sign-in as the code sets it. A change after which no admin could sign in is refused, and `easy-cms reset-sign-in` goes back to the config's providers. Turning a provider off signs out the people who used it: sessions record how they started (`password` or a provider's id). Integrations with the same `app.shared` keep one set of app keys, so Google Drive backups and signing in with Google use one Google Cloud app. `cms.signIn` lists the providers signing people in now. Needs a migration: a `method` column on `sessions` (see Upgrading → 1.43). ### Patch Changes - Updated dependencies [b1f8284] - @easy-cms/core@1.43.0 - @easy-cms/admin@1.43.0 ## 1.42.1 ### Patch Changes - Updated dependencies [eede511] - @easy-cms/core@1.42.1 - @easy-cms/admin@1.42.1 ## 1.42.0 ### Patch Changes - Updated dependencies [020e266] - @easy-cms/core@1.42.0 - @easy-cms/admin@1.42.0 ## 1.41.0 ### Patch Changes - Updated dependencies [5390273] - Updated dependencies [45216de] - Updated dependencies [6a3e15b] - Updated dependencies [51c7646] - Updated dependencies [d50e7b5] - @easy-cms/core@1.41.0 - @easy-cms/admin@1.41.0 ## 1.40.0 ### Patch Changes - Updated dependencies [1c56981] - @easy-cms/core@1.40.0 - @easy-cms/admin@1.40.0 ## 1.39.1 ### Patch Changes - Updated dependencies [2f7e8f6] - @easy-cms/core@1.39.1 - @easy-cms/admin@1.39.1 ## 1.39.0 ### Patch Changes - @easy-cms/admin@1.39.0 - @easy-cms/core@1.39.0 ## 1.38.0 ### Patch Changes - @easy-cms/admin@1.38.0 - @easy-cms/core@1.38.0 ## 1.37.0 ### Patch Changes - @easy-cms/admin@1.37.0 - @easy-cms/core@1.37.0 ## 1.36.0 ### Patch Changes - Updated dependencies [d5bdd31] - @easy-cms/core@1.36.0 - @easy-cms/admin@1.36.0 ## 1.35.1 ### Patch Changes - @easy-cms/admin@1.35.1 - @easy-cms/core@1.35.1 ## 1.35.0 ### Patch Changes - Updated dependencies [1b9b334] - Updated dependencies [512a515] - @easy-cms/core@1.35.0 - @easy-cms/admin@1.35.0 ## 1.34.0 ### Patch Changes - Updated dependencies [a0a323f] - @easy-cms/core@1.34.0 - @easy-cms/admin@1.34.0 ## 1.33.0 ### Patch Changes - Updated dependencies [69417d3] - Updated dependencies [6098969] - @easy-cms/core@1.33.0 - @easy-cms/admin@1.33.0 ## 1.32.0 ### Minor Changes - b87b819: Settings → Integrations (#311): plugins declare outside providers in `integrations` (`kind: 'fields'` to paste values, or `'oauth'` with a Connect button and a choice of accounts), and admins connect accounts to them, several per provider, test them, choose the default, turn a provider off, and disconnect. Secrets are encrypted at rest (AES-256-GCM, a key derived from `secret`), shown as `••••1234`, read again after a secret rotation, and `easy-cms secrets:rotate` encrypts them all with the new secret; an environment variable named in `env` wins. Plugins read connections with `cms.integrations.get()` and report with `markUsed` / `markError`; broken ones show in the dashboard's "needs attention". The page also shows what the code configures (email, storage, search, sign-in, payments) and official plugins to install. Admins and roles given Integrations see it; changes are audit-logged. Projects with integrations get a new internal `connections` table: run `easy-cms migrate:create`. ### Patch Changes - Updated dependencies [b87b819] - Updated dependencies [4e7b5ac] - @easy-cms/core@1.32.0 - @easy-cms/admin@1.32.0 ## 1.31.0 ### Patch Changes - Updated dependencies [c1ef8a3] - Updated dependencies [d526159] - @easy-cms/core@1.31.0 - @easy-cms/admin@1.31.0 ## 1.30.1 ### Patch Changes - Updated dependencies [4cee21d] - @easy-cms/core@1.30.1 - @easy-cms/admin@1.30.1 ## 1.30.0 ### Patch Changes - Updated dependencies [4144399] - @easy-cms/core@1.30.0 - @easy-cms/admin@1.30.0 ## 1.29.0 ### Patch Changes - Updated dependencies [644078b] - @easy-cms/core@1.29.0 - @easy-cms/admin@1.29.0 ## 1.28.0 ### Patch Changes - Updated dependencies [8a8bf1f] - @easy-cms/core@1.28.0 - @easy-cms/admin@1.28.0 ## 1.27.0 ### Patch Changes - Updated dependencies [f79a029] - @easy-cms/core@1.27.0 - @easy-cms/admin@1.27.0 ## 1.26.0 ### Patch Changes - Updated dependencies [eb5ed03] - Updated dependencies [10641f1] - Updated dependencies [dfd3ee1] - Updated dependencies [47fd251] - @easy-cms/admin@1.26.0 - @easy-cms/core@1.26.0 ## 1.25.1 ### Patch Changes - Updated dependencies [9da03cc] - @easy-cms/admin@1.25.1 - @easy-cms/core@1.25.1 ## 1.25.0 ### Patch Changes - Updated dependencies [71eeb54] - Updated dependencies [72b1b40] - Updated dependencies [e1c0a5d] - @easy-cms/admin@1.25.0 - @easy-cms/core@1.25.0 ## 1.24.0 ### Patch Changes - Updated dependencies [4871aef] - @easy-cms/core@1.24.0 - @easy-cms/admin@1.24.0 ## 1.23.1 ### Patch Changes - Updated dependencies [f786615] - @easy-cms/admin@1.23.1 - @easy-cms/core@1.23.1 ## 1.23.0 ### Patch Changes - Updated dependencies [485b932] - Updated dependencies [bc56e54] - Updated dependencies [c2d9453] - Updated dependencies [5e7e8ab] - Updated dependencies [9ae9cf5] - @easy-cms/admin@1.23.0 - @easy-cms/core@1.23.0 ## 1.22.0 ### Patch Changes - Updated dependencies [ff94e96] - Updated dependencies [c3447d9] - @easy-cms/admin@1.22.0 - @easy-cms/core@1.22.0 ## 1.21.0 ### Patch Changes - Updated dependencies [8138132] - @easy-cms/core@1.21.0 - @easy-cms/admin@1.21.0 ## 1.20.1 ### Patch Changes - @easy-cms/admin@1.20.1 - @easy-cms/core@1.20.1 ## 1.20.0 ### Patch Changes - Updated dependencies [58aeb46] - @easy-cms/core@1.20.0 - @easy-cms/admin@1.20.0 ## 1.19.0 ### Patch Changes - Updated dependencies [abeb6ff] - @easy-cms/core@1.19.0 - @easy-cms/admin@1.19.0 ## 1.18.0 ### Minor Changes - f1be781: Rotate `EASY_CMS_SECRET` without logging everyone out (#167). `previousSecrets` lists secrets used before `secret`: sessions, CSRF tokens, password and invitation links, preview tokens, links to private files, single sign-on, form tokens and audit log entries signed with them still verify, while everything new is signed with `secret`. `easy-cms audit:resign` signs the audit log entries made with an old secret with the current one, and reports entries no secret verifies. New projects read `EASY_CMS_PREVIOUS_SECRETS` (comma-separated). The Security guide has the steps. ### Patch Changes - Updated dependencies [f1be781] - @easy-cms/core@1.18.0 - @easy-cms/admin@1.18.0 ## 1.17.0 ### Patch Changes - Updated dependencies [c52bb47] - @easy-cms/core@1.17.0 - @easy-cms/admin@1.17.0 ## 1.16.0 ### Patch Changes - Updated dependencies [2ce3b98] - Updated dependencies [ac40820] - @easy-cms/core@1.16.0 - @easy-cms/admin@1.16.0 ## 1.15.1 ### Patch Changes - Updated dependencies [232d53f] - Updated dependencies [d2e2d47] - @easy-cms/core@1.15.1 - @easy-cms/admin@1.15.1 ## 1.15.0 ### Patch Changes - Updated dependencies [fed09f5] - @easy-cms/core@1.15.0 - @easy-cms/admin@1.15.0 ## 1.14.0 ### Patch Changes - Updated dependencies [b6903e8] - @easy-cms/admin@1.14.0 - @easy-cms/core@1.14.0 ## 1.13.0 ### Minor Changes - 162796e: Search adapters: `search: memorySearch()` in the config and `search: { fields }` on a collection index published documents as they change, for relevance-ranked search with `cms.search()`, `GET /search` and the admin's command palette. Thai text without spaces is found by its words. `easy-cms search:reindex` builds the index again; adapters for search engines implement `SearchAdapter`. ### Patch Changes - @easy-cms/admin@1.13.0 - @easy-cms/core@1.13.0 ## 1.12.0 ### Minor Changes - 6aaad95: `outbox: true` runs `afterChange` and `afterDelete` hooks, webhooks and `httpCache.purge` from an outbox written in the same transaction as the save. A worker runs them after the save commits and retries what fails. Failed entries show in Settings → Jobs → Outbox, where an admin can retry them. Hooks then run after the response, so they must be safe to run more than once. The default is unchanged. Needs a migration for the `outbox` table. ### Patch Changes - Updated dependencies [6aaad95] - @easy-cms/core@1.12.0 - @easy-cms/admin@1.12.0 ## 1.11.0 ### Patch Changes - Updated dependencies [0cd7227] - @easy-cms/core@1.11.0 - @easy-cms/admin@1.11.0 ## 1.10.0 ### Patch Changes - Updated dependencies [4007cfe] - @easy-cms/core@1.10.0 - @easy-cms/admin@1.10.0 ## 1.9.0 ### Patch Changes - Updated dependencies [15a201a] - @easy-cms/core@1.9.0 - @easy-cms/admin@1.9.0 ## 1.8.0 ### Patch Changes - Updated dependencies [26fa06b] - @easy-cms/core@1.8.0 - @easy-cms/admin@1.8.0 ## 1.7.1 ### Patch Changes - @easy-cms/admin@1.7.1 - @easy-cms/core@1.7.1 ## 1.7.0 ### Minor Changes - 1bd5e2d: Health checks in every setup: `/healthz` answers `ok` while the process runs, and `/readyz` answers `200` when the CMS started, its database answers and no migration is pending, `503` naming the failed check otherwise. Next.js and Nuxt get them through the API route, and they answer even when the CMS can't start. The standalone server also answers `/readyz` at the root. `healthz` and `readyz` are now reserved collection slugs and endpoint paths. ### Patch Changes - Updated dependencies [1bd5e2d] - @easy-cms/core@1.7.0 - @easy-cms/admin@1.7.0 ## 1.6.0 ### Minor Changes - 35d25ea: JSON logs and request ids. `logs: { format: 'json' }` (or `EASY_CMS_LOG_FORMAT=json`) writes one JSON object per line: `time`, `level`, `message`, the `requestId`, and `error` with its stack. Every API response has an `X-Request-Id` header, keeping a plain one from the load balancer, and with JSON logs every request gets a line with method, path, status and duration (`logs.requests: false` turns that off). Each run of the background jobs logs with its own `runId`. `easy-cms serve` follows the setting. The `Logger` methods take optional details, and `jsonLogger()` is exported; the readable default prints an error's stack under its line. ### Patch Changes - Updated dependencies [35d25ea] - @easy-cms/core@1.6.0 - @easy-cms/admin@1.6.0 ## 1.5.0 ### Patch Changes - @easy-cms/admin@1.5.0 - @easy-cms/core@1.5.0 ## 1.4.3 ### Patch Changes - Updated dependencies [5475000] - @easy-cms/admin@1.4.3 - @easy-cms/core@1.4.3 ## 1.4.2 ### Patch Changes - Updated dependencies [e34f015] - @easy-cms/core@1.4.2 - @easy-cms/admin@1.4.2 ## 1.4.1 ### Patch Changes - Updated dependencies [2d3425d] - @easy-cms/core@1.4.1 - @easy-cms/admin@1.4.1 ## 1.4.0 ### Patch Changes - Updated dependencies [234a6ae] - @easy-cms/core@1.4.0 - @easy-cms/admin@1.4.0 ## 1.3.0 ### Patch Changes - Updated dependencies [c16df9c] - @easy-cms/core@1.3.0 - @easy-cms/admin@1.3.0 ## 1.2.1 ### Patch Changes - Updated dependencies [b7657fe] - Updated dependencies [3ad78bf] - @easy-cms/core@1.2.1 - @easy-cms/admin@1.2.1 ## 1.2.0 ### Patch Changes - Updated dependencies [4b0217b] - Updated dependencies [e9eae54] - Updated dependencies [d9e2b19] - @easy-cms/admin@1.2.0 - @easy-cms/core@1.2.0 ## 1.1.0 ### Patch Changes - Updated dependencies [c3f02f4] - @easy-cms/admin@1.1.0 - @easy-cms/core@1.1.0 ## 1.0.1 ### Patch Changes - Updated dependencies [d7ce392] - @easy-cms/core@1.0.1 - @easy-cms/admin@1.0.1 ## 1.0.0 ### Patch Changes - Updated dependencies [0e7d00a] - @easy-cms/core@1.0.0 - @easy-cms/admin@1.0.0 ## 1.0.0-rc.0 ### Patch Changes - Updated dependencies [0e7d00a] - @easy-cms/core@1.0.0-rc.0 - @easy-cms/admin@1.0.0-rc.0 ## 0.68.5 ### Patch Changes - Updated dependencies [a4fbaeb] - @easy-cms/admin@0.68.5 - @easy-cms/core@0.68.5 ## 0.68.4 ### Patch Changes - @easy-cms/admin@0.68.4 - @easy-cms/core@0.68.4 ## 0.68.3 ### Patch Changes - @easy-cms/admin@0.68.3 - @easy-cms/core@0.68.3 ## 0.68.2 ### Patch Changes - @easy-cms/admin@0.68.2 - @easy-cms/core@0.68.2 ## 0.68.1 ### Patch Changes - @easy-cms/admin@0.68.1 - @easy-cms/core@0.68.1 ## 0.68.0 ### Patch Changes - @easy-cms/admin@0.68.0 - @easy-cms/core@0.68.0 ## 0.67.2 ### Patch Changes - @easy-cms/admin@0.67.2 - @easy-cms/core@0.67.2 ## 0.67.1 ### Patch Changes - @easy-cms/admin@0.67.1 - @easy-cms/core@0.67.1 ## 0.67.0 ### Patch Changes - Updated dependencies [5742428] - @easy-cms/core@0.67.0 - @easy-cms/admin@0.67.0 ## 0.66.1 ### Patch Changes - Updated dependencies [f6df483] - @easy-cms/admin@0.66.1 - @easy-cms/core@0.66.1 ## 0.66.0 ### Patch Changes - Updated dependencies [b5390b6] - @easy-cms/core@0.66.0 - @easy-cms/admin@0.66.0 ## 0.65.0 ### Minor Changes - eb1dd41: Operations (#101): - GraphQL introspection is off in production by default (`introspection: true` to keep it); `easy-cms generate:graphql` still writes the schema. - `backups.encryptionKey` encrypts backup files (AES-256-GCM, `.db.gz.enc`); admin downloads are decrypted and `easy-cms backup:decrypt ` decrypts one by hand. A backup storage with public URLs logs a warning; `create-easy-cms` adds `backups/` to `.gitignore`. - SMTP on port 587 requires STARTTLS (`requireTLS`, shown in the admin's Email settings). - Without the audit log, failed sign-ins are written to the server log; each audit check logs its last id there too. - Forms without a client IP share one rate limit of ten times `max`, instead of none. ### Patch Changes - Updated dependencies [eb1dd41] - @easy-cms/core@0.65.0 - @easy-cms/admin@0.65.0 ## 0.64.0 ### Minor Changes - 42b3c86: Browser and transport (#99): - Over HTTPS (and in production) the session, CSRF and SSO cookies are named `__Host-…`; the old names are still read, so nobody is signed out. Logging out clears both and sends `Clear-Site-Data: "cache"`, and the admin forgets drafts and recent documents it kept in the browser. - The REST API and the admin send HSTS (`max-age=31536000`) in production. - Uploaded text files are stored and served with `charset=utf-8`. - The CSRF origin check uses `X-Forwarded-Host` only with trust-proxy (`trustProxy`, `--trust-proxy`) or on Vercel and Netlify; `createRestHandler` takes `trustProxy`. - The SEO plugin's sitemap and robots.txt build their own addresses from `serverURL`, not the request's host. - The admin's switcher cookie is `Secure` over HTTPS. ### Patch Changes - Updated dependencies [42b3c86] - @easy-cms/core@0.64.0 - @easy-cms/admin@0.64.0 ## 0.63.0 ### Patch Changes - Updated dependencies [1ea78b2] - @easy-cms/core@0.63.0 - @easy-cms/admin@0.63.0 ## 0.62.0 ### Patch Changes - Updated dependencies [3530913] - @easy-cms/core@0.62.0 - @easy-cms/admin@0.62.0 ## 0.61.0 ### Patch Changes - Updated dependencies [3a8422c] - @easy-cms/core@0.61.0 - @easy-cms/admin@0.61.0 ## 0.60.0 The same code as 0.49.0, released as 0.60.0 to match the [roadmap](https://github.com/maritonx/easy-cms/blob/main/docs/ROADMAP.md): the names and shapes for 1.0. See the [upgrade guide](https://easy-cms-website.vercel.app/docs/upgrading). ## 0.49.0 ### Patch Changes - Updated dependencies [ee496b4] - @easy-cms/core@0.49.0 - @easy-cms/admin@0.49.0 ## 0.48.0 ### Minor Changes - db47c50: Security changes that may need a step when you upgrade: - **SVG is no longer included in `image/*`** (it can carry scripts). To keep allowing it, list it: `upload.mimeTypes: ['image/*', 'image/svg+xml']`. After a direct upload, the type the storage serves the file with must be the one checked (S3 reports it). - **Users changing their own password or email send their current password** (`currentPassword`); the account page asks for it. Admins changing other users don't. Accounts without a password can't change their own email. - **Single sign-on no longer signs existing staff in by email** until they link the provider from their account page, unless the provider has `linkByEmail: true` (for providers whose emails your organization controls). Site members are still matched by email. `microsoft()` no longer uses the user principal name as an email. - **`trustProxy` takes the last `X-Forwarded-For` address** (the one your proxy added), not the first, which the client can write. On Vercel and Netlify the client IP is found without it; Nuxt uses the connection's address otherwise. A warning is logged in production when logins have no client IP. - **In production, a `secret` that looks like an example or a repeated pattern is refused.** The Next.js starter no longer falls back to a fixed secret in production: without `EASY_CMS_SECRET` (and without a database URL) it uses a random one per process and says so. - **Multi-tenant: the people of a tenant, its admins included, no longer change shared collections and globals** (those not listed in `collections`/`globals`). List the ones they may change in `editShared`. The deliveries page is for system admins only. ### Patch Changes - Updated dependencies [db47c50] - @easy-cms/core@0.48.0 - @easy-cms/admin@0.48.0 ## 0.47.4 ### Patch Changes - Updated dependencies [76e22e3] - @easy-cms/core@0.47.4 - @easy-cms/admin@0.47.4 ## 0.47.3 ### Patch Changes - @easy-cms/admin@0.47.3 - @easy-cms/core@0.47.3 ## 0.47.2 ### Patch Changes - Updated dependencies [43833ab] - @easy-cms/core@0.47.2 - @easy-cms/admin@0.47.2 ## 0.47.1 ### Patch Changes - @easy-cms/admin@0.47.1 - @easy-cms/core@0.47.1 ## 0.47.0 ### Patch Changes - Updated dependencies [203e359] - @easy-cms/core@0.47.0 - @easy-cms/admin@0.47.0 ## 0.46.0 ### Patch Changes - Updated dependencies [6938928] - @easy-cms/core@0.46.0 - @easy-cms/admin@0.46.0 ## 0.45.0 ### Patch Changes - Updated dependencies [56a926b] - @easy-cms/core@0.45.0 - @easy-cms/admin@0.45.0 ## 0.44.0 ### Patch Changes - Updated dependencies [40bd4bc] - @easy-cms/core@0.44.0 - @easy-cms/admin@0.44.0 ## 0.43.0 ### Patch Changes - @easy-cms/admin@0.43.0 - @easy-cms/core@0.43.0 ## 0.42.0 ### Patch Changes - 4afac22: A kit for running Easy CMS inside any framework that handles Web `Request`s: `sharedEasyCMS(config)` (one instance per server, compared by structure, kept across hot reloads), `createApiHandler(config, { trustProxy })` (the REST API on it), `cms.auth.userFromHeaders(headers)`, and `adminHandlerFor(resolvedConfig)` in `@easy-cms/admin`. The Next.js and Nuxt packages and the standalone server now use it; Nuxt compares configs by structure like Next.js. New guide: Other frameworks. - Updated dependencies [4afac22] - @easy-cms/core@0.42.0 - @easy-cms/admin@0.42.0 ## 0.41.0 ### Patch Changes - Updated dependencies [7a43c55] - @easy-cms/core@0.41.0 - @easy-cms/admin@0.41.0 ## 0.40.0 ### Patch Changes - Updated dependencies [e24dbd1] - @easy-cms/core@0.40.0 - @easy-cms/admin@0.40.0 ## 0.39.0 ### Patch Changes - Updated dependencies [72758f0] - @easy-cms/core@0.39.0 - @easy-cms/admin@0.39.0 ## 0.38.0 ### Patch Changes - Updated dependencies [5a71c12] - @easy-cms/core@0.38.0 - @easy-cms/admin@0.38.0 ## 0.37.2 ### Patch Changes - Updated dependencies [63f0116] - @easy-cms/core@0.37.2 - @easy-cms/admin@0.37.2 ## 0.37.1 ### Patch Changes - @easy-cms/admin@0.37.1 - @easy-cms/core@0.37.1 ## 0.37.0 ### Patch Changes - Updated dependencies [cbf800c] - @easy-cms/core@0.37.0 - @easy-cms/admin@0.37.0 ## 0.36.1 ### Patch Changes - Updated dependencies [4885cc2] - @easy-cms/admin@0.36.1 - @easy-cms/core@0.36.1 ## 0.36.0 ### Patch Changes - Updated dependencies [7fbd37e] - @easy-cms/core@0.36.0 - @easy-cms/admin@0.36.0 ## 0.35.0 ### Patch Changes - Updated dependencies [892f6cf] - @easy-cms/core@0.35.0 - @easy-cms/admin@0.35.0 ## 0.34.0 ### Patch Changes - Updated dependencies [f3c65cd] - Updated dependencies [3e33a26] - @easy-cms/core@0.34.0 - @easy-cms/admin@0.34.0 ## 0.33.0 ### Patch Changes - Updated dependencies [a26533e] - @easy-cms/core@0.33.0 - @easy-cms/admin@0.33.0 ## 0.32.0 ### Minor Changes - 281435f: Database backups from the admin. - **Settings → Backups** (admins): **Back up now**, the list of backups with who made and last downloaded each, **Download** and **Delete**. - **`backups: { every, at, keep, dir, storage, sqlite }`** in the config: back up every `day` or `week` at `at` (server time), keep the newest `keep` (7). Without `every`, back up by hand. - Each backup is one compressed SQLite file (`-YYYY-MM-DD-HHmm.db.gz`) of the whole database. SQLite copies itself; Postgres is copied into a SQLite file with `backups.sqlite` (`sqlite` from `@easy-cms/db-sqlite`). - Stored privately: `backups/` by default (never the uploads folder, never served) or `backups.storage`, e.g. a private S3 bucket. Downloads go through the server, for admins only. - Scheduled backups run with scheduled jobs (every minute on a server, or from the `jobs/run` cron); one at a time. The dashboard's "Needs attention" warns when the last scheduled backup failed or none finished in two periods. - `easy-cms backup ` uses the same engine: it now backs up Postgres too, and compresses a `.gz` name. - Adds the internal `database-backups` table: create a migration (`easy-cms migrate:create backups`). ### Patch Changes - Updated dependencies [281435f] - @easy-cms/core@0.32.0 - @easy-cms/admin@0.32.0 ## 0.31.0 ### Patch Changes - Updated dependencies [36fc19b] - @easy-cms/core@0.31.0 - @easy-cms/admin@0.31.0 ## 0.30.0 ### Patch Changes - Updated dependencies [f9d5512] - @easy-cms/core@0.30.0 - @easy-cms/admin@0.30.0 ## 0.29.0 ### Patch Changes - Updated dependencies [5e92063] - @easy-cms/core@0.29.0 - @easy-cms/admin@0.29.0 ## 0.28.0 ### Patch Changes - Updated dependencies [479e17a] - @easy-cms/core@0.28.0 - @easy-cms/admin@0.28.0 ## 0.27.0 ### Patch Changes - Updated dependencies [ffa2f84] - @easy-cms/core@0.27.0 - @easy-cms/admin@0.27.0 ## 0.26.0 ### Patch Changes - Updated dependencies [bcf3c0c] - @easy-cms/core@0.26.0 - @easy-cms/admin@0.26.0 ## 0.25.0 ### Patch Changes - Updated dependencies [434599a] - @easy-cms/core@0.25.0 - @easy-cms/admin@0.25.0 ## 0.24.0 ### Patch Changes - Updated dependencies [230a347] - @easy-cms/core@0.24.0 - @easy-cms/admin@0.24.0 ## 0.23.0 ### Patch Changes - Updated dependencies [0107902] - @easy-cms/core@0.23.0 - @easy-cms/admin@0.23.0 ## 0.22.2 ### Patch Changes - @easy-cms/admin@0.22.2 - @easy-cms/core@0.22.2 ## 0.22.1 ### Patch Changes - d742afc: Package READMEs: what each package does, how to install it with npm, pnpm, Yarn or Bun, a short example and links to its guide. - Updated dependencies [d742afc] - @easy-cms/admin@0.22.1 - @easy-cms/core@0.22.1 ## 0.22.0 ### Patch Changes - Updated dependencies [63995c6] - @easy-cms/core@0.22.0 - @easy-cms/admin@0.22.0 ## 0.21.0 ### Minor Changes - 0e69436: Nested pages. - **New package `@easy-cms/plugin-nested-docs`:** pages inside pages (About → Team). Each document in the listed collections gets a `parent`, its full `path` (`/about/team`) and its `breadcrumbs`, per language when the slug is localized. When a page gets a new slug or parent, the pages under it are updated too, when it is published; with the redirects plugin their old addresses redirect. A page can't be moved under itself, levels are limited (`maxDepth`), and a page with pages under it can't be deleted (or they move up, with `onDeleteParent: 'orphan'`). `findByPath()`, `getTree()` and `GET /api/cms/tree/:collection` show pages and menus; `npx easy-cms nested:rebuild` works out the paths of pages that existed before. Needs a migration for the new fields. - **Relationship `filterOptions`:** which documents a relationship may point to, worked out on the server. The admin's picker offers only those, and saving checks them. - **Slug `uniqueWithin`:** slugs unique only among documents with the same value of another field, e.g. `uniqueWithin: 'parent'`. - **Tree lists:** `admin: { list: { tree: 'parent' } }` shows a collection's list as a tree; `list.sort` sets the list's default order. - **`update(…, { live: true })`:** upkeep of the live version that leaves a pending draft pending and adds no version. - **CLI commands from the config:** `commands: [{ name, description, run }]`, e.g. from plugins. - **SEO:** `seoMeta({ breadcrumbs })` adds BreadcrumbList JSON-LD. ### Patch Changes - Updated dependencies [0e69436] - @easy-cms/core@0.21.0 - @easy-cms/admin@0.21.0 ## 0.20.1 ### Patch Changes - @easy-cms/admin@0.20.1 - @easy-cms/core@0.20.1 ## 0.20.0 ### Patch Changes - Updated dependencies [b7564cb] - @easy-cms/core@0.20.0 - @easy-cms/admin@0.20.0 ## 0.19.0 ### Patch Changes - Updated dependencies [34d5e66] - @easy-cms/core@0.19.0 - @easy-cms/admin@0.19.0 ## 0.18.0 ### Patch Changes - @easy-cms/admin@0.18.0 - @easy-cms/core@0.18.0 ## 0.17.0 ### Minor Changes - 0507a14: SEO for the whole site, not just each page. - **Sitemap:** `sitemap(cms)` (the shape of Next.js `app/sitemap.ts`) and `sitemapXml(cms)` list the pages visitors can see: published documents with an address from `generateURL`, with `lastmod` and hreflang links to every locale. Over 50,000 addresses become a sitemap index. - **robots.txt:** `robotsTxt({ config })` keeps crawlers out of the admin and the API (not uploaded files) and points them to the sitemap; `disallowAll` for staging. - **Hide from search engines:** a new `meta.noindex` checkbox adds `robots: noindex` and leaves the page out of the sitemap. It is a new column: run `easy-cms migrate:create` after updating. - **seoMeta:** `url: (doc, locale) => …` adds hreflang links and `x-default`; `locale` adds `og:locale`; `type: 'article'` adds the published and modified times and author. It also returns `jsonLd` (BlogPosting or WebPage) and `head` for Nuxt's `useHead()`. `siteJsonLd()` makes Organization and WebSite data, and `jsonLdScript()` renders JSON-LD safely in a `