# @easy-cms/drizzle ## 1.56.1 ### Patch Changes - Updated dependencies [f3562ba] - @easy-cms/core@1.56.1 ## 1.56.0 ### Patch Changes - Updated dependencies [c4103eb] - @easy-cms/core@1.56.0 ## 1.55.0 ### Patch Changes - Updated dependencies [8f795b6] - @easy-cms/core@1.55.0 ## 1.54.0 ### Patch Changes - @easy-cms/core@1.54.0 ## 1.53.0 ### Patch Changes - @easy-cms/core@1.53.0 ## 1.52.2 ### Patch Changes - Updated dependencies [dcd3c84] - @easy-cms/core@1.52.2 ## 1.52.1 ### Patch Changes - @easy-cms/core@1.52.1 ## 1.52.0 ### Patch Changes - Updated dependencies [c3ff9ab] - @easy-cms/core@1.52.0 ## 1.51.0 ### 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 ## 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 ## 1.49.0 ### Minor Changes - 5a1ae83: `cms.transaction(async (tx) => …)` runs several writes as one: every read and write inside joins the transaction, it commits when the function resolves and rolls back when it throws. Access rules, validation and hooks apply as usual; `before*` hooks run inside, while `after*` hooks, webhooks, `cms.on()` listeners, `cms.emit()` events and realtime events wait for the commit and are dropped on a rollback (#439, ADR-0072). `` cms.sql`select … ${value}` `` runs raw SQL with each value as a bound parameter, in the transaction when inside one. It goes around access rules, hooks, validation and versions. ### Patch Changes - Updated dependencies [5a1ae83] - @easy-cms/core@1.49.0 ## 1.48.0 ### Patch Changes - Updated dependencies [4b8f02c] - @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 ## 1.46.1 ### Patch Changes - @easy-cms/core@1.46.1 ## 1.46.0 ### Patch Changes - Updated dependencies [04e00e5] - @easy-cms/core@1.46.0 ## 1.45.0 ### Patch Changes - @easy-cms/core@1.45.0 ## 1.44.0 ### Patch Changes - fb5f6e9: Steps toward Cloudflare Workers (ADR-0067): - In production, a database whose last migration matches the config starts even without the migration files on disk. Workers have no disk, and some container images leave the files out. A config that changed since that migration is still refused. - `jiti`, used to read `easy-cms.config.ts`, is loaded only when a config file is read. Loading it at startup stopped a Worker. - On Cloudflare Workers the client's IP comes from `CF-Connecting-IP`, for rate limits and the audit log. - Updated dependencies [b765b61] - Updated dependencies [fb5f6e9] - @easy-cms/core@1.44.0 ## 1.43.1 ### Patch Changes - @easy-cms/core@1.43.1 ## 1.43.0 ### Patch Changes - Updated dependencies [b1f8284] - @easy-cms/core@1.43.0 ## 1.42.1 ### Patch Changes - Updated dependencies [eede511] - @easy-cms/core@1.42.1 ## 1.42.0 ### Patch Changes - Updated dependencies [020e266] - @easy-cms/core@1.42.0 ## 1.41.0 ### Patch Changes - Updated dependencies [5390273] - Updated dependencies [45216de] - Updated dependencies [51c7646] - Updated dependencies [d50e7b5] - @easy-cms/core@1.41.0 ## 1.40.0 ### Patch Changes - Updated dependencies [1c56981] - @easy-cms/core@1.40.0 ## 1.39.1 ### Patch Changes - Updated dependencies [2f7e8f6] - @easy-cms/core@1.39.1 ## 1.39.0 ### Patch Changes - @easy-cms/core@1.39.0 ## 1.38.0 ### Patch Changes - @easy-cms/core@1.38.0 ## 1.37.0 ### Patch Changes - @easy-cms/core@1.37.0 ## 1.36.0 ### Patch Changes - Updated dependencies [d5bdd31] - @easy-cms/core@1.36.0 ## 1.35.1 ### Patch Changes - @easy-cms/core@1.35.1 ## 1.35.0 ### Patch Changes - Updated dependencies [1b9b334] - Updated dependencies [512a515] - @easy-cms/core@1.35.0 ## 1.34.0 ### Patch Changes - Updated dependencies [a0a323f] - @easy-cms/core@1.34.0 ## 1.33.0 ### Patch Changes - Updated dependencies [69417d3] - Updated dependencies [6098969] - @easy-cms/core@1.33.0 ## 1.32.0 ### Patch Changes - Updated dependencies [b87b819] - Updated dependencies [4e7b5ac] - @easy-cms/core@1.32.0 ## 1.31.0 ### Patch Changes - Updated dependencies [c1ef8a3] - Updated dependencies [d526159] - @easy-cms/core@1.31.0 ## 1.30.1 ### Patch Changes - Updated dependencies [4cee21d] - @easy-cms/core@1.30.1 ## 1.30.0 ### Patch Changes - Updated dependencies [4144399] - @easy-cms/core@1.30.0 ## 1.29.0 ### Minor Changes - 644078b: Relationships to several collections: `{ name: 'link', type: 'relationship', to: ['posts', 'pages'] }` stores `{ relationTo, value }` (a list with `hasMany`), populates each value from its own collection with its access, and types it as a union told apart by `relationTo`. Filter with `'link.pages': { in: [3] }`, `link.relationTo` or `link.value`. In the admin, the picker switches collections beside the search, chips and columns show "Page · About", and the filter panel offers each collection. `filterOptions` gets `relationTo`. A relationship that gets more collections keeps its links: the migration assigns them to the first collection in `to` (#327). ### Patch Changes - Updated dependencies [644078b] - @easy-cms/core@1.29.0 ## 1.28.0 ### Patch Changes - Updated dependencies [8a8bf1f] - @easy-cms/core@1.28.0 ## 1.27.0 ### Patch Changes - Updated dependencies [f79a029] - @easy-cms/core@1.27.0 ## 1.26.0 ### Patch Changes - Updated dependencies [dfd3ee1] - Updated dependencies [47fd251] - @easy-cms/core@1.26.0 ## 1.25.1 ### Patch Changes - @easy-cms/core@1.25.1 ## 1.25.0 ### Patch Changes - Updated dependencies [72b1b40] - @easy-cms/core@1.25.0 ## 1.24.0 ### Minor Changes - 4871aef: List pages that hold up at 1M documents (#279). Lists show their rows first and the total after them; past 10,000 matches it reads **10,000+**. **Rows per page** (20, 50 or 100) is remembered in the browser, the page links show the first, nearby and last pages, and **Go to page** takes a number. **Next** and **Previous** go by cursor, so they stay fast deep in a large list. `cms.count()` takes `max`, stopping after `max + 1` matches, and `GET /admin/ui/total/:collection` gives the admin a list's total. ### Patch Changes - Updated dependencies [4871aef] - @easy-cms/core@1.24.0 ## 1.23.1 ### Patch Changes - @easy-cms/core@1.23.1 ## 1.23.0 ### Patch Changes - Updated dependencies [bc56e54] - Updated dependencies [5e7e8ab] - @easy-cms/core@1.23.0 ## 1.22.0 ### Patch Changes - Updated dependencies [c3447d9] - @easy-cms/core@1.22.0 ## 1.21.0 ### Patch Changes - Updated dependencies [8138132] - @easy-cms/core@1.21.0 ## 1.20.1 ### Patch Changes - @easy-cms/core@1.20.1 ## 1.20.0 ### Patch Changes - Updated dependencies [58aeb46] - @easy-cms/core@1.20.0 ## 1.19.0 ### Patch Changes - Updated dependencies [abeb6ff] - @easy-cms/core@1.19.0 ## 1.18.0 ### Patch Changes - Updated dependencies [f1be781] - @easy-cms/core@1.18.0 ## 1.17.0 ### Patch Changes - Updated dependencies [c52bb47] - @easy-cms/core@1.17.0 ## 1.16.0 ### Minor Changes - 30185cc: Filters on Postgres stay fast for every value (#257): - **`customPlans`** (on unless `prepare` is false) sends `plan_cache_mode = force_custom_plan`, so each query is planned for its own values. After a few runs Postgres otherwise moves a prepared statement to one plan for every value; at 1M posts a filter by author then took up to 40 s. Behind PgBouncer with prepared statements, which refuses the parameter, set `customPlans: false` and `ALTER ROLE … SET plan_cache_mode = force_custom_plan`. - **Statistics on each field indexed with `status`** (`CREATE STATISTICS … (mcv)`), so Postgres knows a value whose documents are all drafts, such as an author who hasn't published yet, has nothing to show, instead of reading a whole index for it (at 1M posts, about 1.6 s → under 1 ms). Postgres projects with drafts collections need a migration (`easy-cms migrate:create`); SQLite's schema doesn't change. - ac40820: Faster at 1,000,000 documents (#257): - **Relationship filters count from the index.** In collections with drafts, fields with an automatic index (relationships, uploads, `index: true`) are indexed together with `status`, which public reads filter on, so totals read only the index (at 1M posts, a filter by author: about 1 s → 3 ms). The indexes change: run `easy-cms migrate:create` after upgrading. - **`like` needs three characters on a field with `index: 'trigram'`** on Postgres: shorter searches can't use the index and read every row, so they are refused with a `400`. The admin's list and relationship searches wait for the third character, and the command palette still finds documents by id. SQLite is unchanged. - **`writeConnections` on `postgres()`:** connections kept for creates, updates and deletes, with every read they make, on top of `max`, so saves don't wait behind slow reads. Off by default. - The Blocks guide shows how to query inside blocks on large collections: copy what you filter by to an indexed field with a hook. ### Patch Changes - Updated dependencies [2ce3b98] - Updated dependencies [ac40820] - @easy-cms/core@1.16.0 ## 1.15.1 ### Patch Changes - 232d53f: Hardening from code scanning. A field can't be named `__proto__`; one named `constructor` or `prototype` warns (`EASY_CMS_DEP006`) and is refused from 2.0. Upload from URL refuses 6to4 (`2002::/16`) and Teredo (`2001::/32`) addresses, which tunnel to an IPv4 address. Outside production, a REST error that isn't an `Error` answers `Internal Server Error` instead of its text. The admin's edit form keeps a typed password out of its saved state. - Updated dependencies [232d53f] - Updated dependencies [d2e2d47] - @easy-cms/core@1.15.1 ## 1.15.0 ### Patch Changes - Updated dependencies [fed09f5] - @easy-cms/core@1.15.0 ## 1.14.0 ### Patch Changes - @easy-cms/core@1.14.0 ## 1.13.0 ### Patch Changes - @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 ## 1.11.0 ### Patch Changes - Updated dependencies [0cd7227] - @easy-cms/core@1.11.0 ## 1.10.0 ### Minor Changes - 4007cfe: `index: 'trigram'` on text, textarea and email fields: a GIN `pg_trgm` index that `like` uses on Postgres, so searching any part of a text is fast, in Thai as in English (at 100k posts, p95 25 ms instead of reading every row). Localized fields get one per locale. The first migration with one creates the `pg_trgm` extension; PGlite loads it. A warning at start says when the database's `LC_CTYPE` is `C`, where Thai letters can't be indexed. On SQLite the option does nothing. ### Patch Changes - Updated dependencies [4007cfe] - @easy-cms/core@1.10.0 ## 1.9.0 ### Minor Changes - 15a201a: Cursor pagination. `find` takes `cursor` (REST `?cursor=`): `''` for the first page, then the page's `nextCursor`. Each page takes as long as the first, however deep, with no page numbers or totals. A cursor belongs to its query (where, sort, locale) and is refused with another; sorting by a value inside blocks can't use one. The new `maxPage` option caps how deep API clients may page with `page` (the signed-in admin keeps its pages); deeper requests get 400, pointing to `cursor`. No limit by default. Database adapters can implement the optional `findAfter`. ### Patch Changes - Updated dependencies [15a201a] - @easy-cms/core@1.9.0 ## 1.8.0 ### Minor Changes - 26fa06b: Lists count less. `find` takes `count: false` (REST `?count=false`): no `totalDocs` and `totalPages` (`null`), and `hasNextPage` from one row more, for archives and infinite scroll on large collections. Counts of paginated lists are reused for `countCacheSeconds` (default 5; `0` counts every time), so a list many people open is counted once in that time; the documents are always current, only the total can be that old. Database adapters can implement the optional `findPage`; without it, `find` runs and its totals are dropped. ### Patch Changes - Updated dependencies [26fa06b] - @easy-cms/core@1.8.0 ## 1.7.1 ### Patch Changes - 2bb1d74: drizzle-orm 0.45.4. - @easy-cms/core@1.7.1 ## 1.7.0 ### Patch Changes - Updated dependencies [1bd5e2d] - @easy-cms/core@1.7.0 ## 1.6.0 ### Patch Changes - Updated dependencies [35d25ea] - @easy-cms/core@1.6.0 ## 1.5.0 ### Patch Changes - @easy-cms/core@1.5.0 ## 1.4.3 ### Patch Changes - @easy-cms/core@1.4.3 ## 1.4.2 ### Patch Changes - Updated dependencies [e34f015] - @easy-cms/core@1.4.2 ## 1.4.1 ### Patch Changes - Updated dependencies [2d3425d] - @easy-cms/core@1.4.1 ## 1.4.0 ### Patch Changes - Updated dependencies [234a6ae] - @easy-cms/core@1.4.0 ## 1.3.0 ### Patch Changes - Updated dependencies [c16df9c] - @easy-cms/core@1.3.0 ## 1.2.1 ### Patch Changes - Updated dependencies [b7657fe] - @easy-cms/core@1.2.1 ## 1.2.0 ### Patch Changes - @easy-cms/core@1.2.0 ## 1.1.0 ### Patch Changes - @easy-cms/core@1.1.0 ## 1.0.1 ### Patch Changes - Updated dependencies [d7ce392] - @easy-cms/core@1.0.1 ## 1.0.0 ### Patch Changes - Updated dependencies [0e7d00a] - @easy-cms/core@1.0.0 ## 1.0.0-rc.0 ### Patch Changes - Updated dependencies [0e7d00a] - @easy-cms/core@1.0.0-rc.0 ## 0.68.5 ### Patch Changes - @easy-cms/core@0.68.5 ## 0.68.4 ### Patch Changes - @easy-cms/core@0.68.4 ## 0.68.3 ### Patch Changes - @easy-cms/core@0.68.3 ## 0.68.2 ### Patch Changes - @easy-cms/core@0.68.2 ## 0.68.1 ### Patch Changes - @easy-cms/core@0.68.1 ## 0.68.0 ### Patch Changes - @easy-cms/core@0.68.0 ## 0.67.2 ### Patch Changes - @easy-cms/core@0.67.2 ## 0.67.1 ### Patch Changes - @easy-cms/core@0.67.1 ## 0.67.0 ### Patch Changes - Updated dependencies [5742428] - @easy-cms/core@0.67.0 ## 0.66.1 ### Patch Changes - @easy-cms/core@0.66.1 ## 0.66.0 ### Patch Changes - Updated dependencies [b5390b6] - @easy-cms/core@0.66.0 ## 0.65.0 ### Patch Changes - Updated dependencies [eb1dd41] - @easy-cms/core@0.65.0 ## 0.64.0 ### Patch Changes - Updated dependencies [42b3c86] - @easy-cms/core@0.64.0 ## 0.63.0 ### Patch Changes - Updated dependencies [1ea78b2] - @easy-cms/core@0.63.0 ## 0.62.0 ### Patch Changes - Updated dependencies [3530913] - @easy-cms/core@0.62.0 ## 0.61.0 ### Patch Changes - Updated dependencies [3a8422c] - @easy-cms/core@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 ## 0.48.0 ### Patch Changes - Updated dependencies [db47c50] - @easy-cms/core@0.48.0 ## 0.47.4 ### Patch Changes - Updated dependencies [76e22e3] - @easy-cms/core@0.47.4 ## 0.47.3 ### Patch Changes - @easy-cms/core@0.47.3 ## 0.47.2 ### Patch Changes - Updated dependencies [43833ab] - @easy-cms/core@0.47.2 ## 0.47.1 ### Patch Changes - @easy-cms/core@0.47.1 ## 0.47.0 ### Patch Changes - Updated dependencies [203e359] - @easy-cms/core@0.47.0 ## 0.46.0 ### Minor Changes - 6938928: A shop: `@easy-cms/plugin-ecommerce`. Products with variants and prices in several currencies, carts that guests keep too, checkout with Stripe (card, PromptPay) or bank transfer, orders made exactly once however often a payment is confirmed, stock taken safely and put back on cancel or refund, customer accounts, order emails, `order.*` events, a dashboard panel, and a client for pages with React hooks and Vue composables. With the multi-tenant plugin, each tenant is a shop of its own. New in the core, for other uses too: site members (`auth.members`) who sign in on the site and never get into the admin, with sign-up, email confirmation and the site's own pages for email links (`isLoggedIn` no longer counts them; `isSignedIn` does); `update()` with `where` (compare and set) and `cms.increment()`; `jobs` that run with the scheduled jobs; `events` and `cms.emit()` for webhooks; menu headings of your own (`admin.group` with a label); list cells get their row's `doc`; plugin collections are typed in configs without `collections`. The form builder's spam checks moved to the core (`formToken`, `checkFormToken`, `rateKeys`, `honeypotName`, `verifyTurnstile`). Signing up adds an `emailVerified` field to users: create a migration (`easy-cms migrate:create`) before deploying. ### Patch Changes - Updated dependencies [6938928] - @easy-cms/core@0.46.0 ## 0.45.0 ### Minor Changes - 56a926b: Multi-tenant, more complete. Uploads accept only the tenant's files, and media folders opened by an upload field's `folder` key are each tenant's own. Nested pages, redirects and forms work per tenant: paths, redirects and form slugs only differ within a tenant, `findByPath()`, `getTree()` and `resolveRedirect()` take a `context`, and documents a plugin writes take the tenant of what they point to. Admins of a tenant see its audit log. Deleting a tenant shows what goes with it and asks for its name. New documents start in the chosen tenant, and lists show a Tenant column while all tenants are shown. New in the core, for other uses too: `filterOptions` on upload fields; `uniqueWithin` with several fields; `cms.uniqueScope()`; `audit.scope`; `admin.confirmDelete` on collections; `admin.defaultValue`, `admin.column` and `admin.allowCreate` on fields; relationship columns in lists. Projects with `audit` get a `scope` column: create a migration (`easy-cms migrate:create`) before deploying. ### Patch Changes - Updated dependencies [56a926b] - @easy-cms/core@0.45.0 ## 0.44.0 ### Minor Changes - 40bd4bc: New plugin: `@easy-cms/plugin-multi-tenant`, several sites or clients in one CMS. A `tenants` collection, a `tenant` on the documents of the collections you name, members with a role in each tenant (Settings → Members), globals with a value per tenant, a tenant switcher in the admin, frontends that name their tenant by header, `?tenant=` or domain, API keys that keep their tenant, and `easy-cms tenants:assign`. New guide: Multi-tenant. The core gains what it is built on, for other uses too: `onRequest` in the config gives each request a `context` (and may change its user), which access rules, hooks, `filterOptions` and the Local API (`context`, `cms.forRequest(request)`) receive; `scoped` users and `isSystemAdmin()`; globals with a value per `scope`; `uniqueWithin` on any unique field, with a unique index per scope; and `admin.switcher`. The SEO plugin's sitemap and llms.txt read in the request's context (e.g. the tenant of the domain); `sitemap()`, `sitemapXml()`, `llmsTxt()` and `llmsFullTxt()` take a `context`. Projects with the nested-docs plugin get a unique index on `(parent, slug)`: create a migration (`easy-cms migrate:create`) before deploying. ### Patch Changes - Updated dependencies [40bd4bc] - @easy-cms/core@0.44.0 ## 0.43.0 ### Patch Changes - @easy-cms/core@0.43.0 ## 0.42.0 ### Patch Changes - Updated dependencies [4afac22] - @easy-cms/core@0.42.0 ## 0.41.0 ### Patch Changes - Updated dependencies [7a43c55] - @easy-cms/core@0.41.0 ## 0.40.0 ### Patch Changes - Updated dependencies [e24dbd1] - @easy-cms/core@0.40.0 ## 0.39.0 ### Patch Changes - Updated dependencies [72758f0] - @easy-cms/core@0.39.0 ## 0.38.0 ### Patch Changes - Updated dependencies [5a71c12] - @easy-cms/core@0.38.0 ## 0.37.2 ### Patch Changes - Updated dependencies [63f0116] - @easy-cms/core@0.37.2 ## 0.37.1 ### Patch Changes - @easy-cms/core@0.37.1 ## 0.37.0 ### Patch Changes - Updated dependencies [cbf800c] - @easy-cms/core@0.37.0 ## 0.36.1 ### Patch Changes - @easy-cms/core@0.36.1 ## 0.36.0 ### Patch Changes - Updated dependencies [7fbd37e] - @easy-cms/core@0.36.0 ## 0.35.0 ### Patch Changes - Updated dependencies [892f6cf] - @easy-cms/core@0.35.0 ## 0.34.0 ### Patch Changes - Updated dependencies [f3c65cd] - Updated dependencies [3e33a26] - @easy-cms/core@0.34.0 ## 0.33.0 ### Patch Changes - Updated dependencies [a26533e] - @easy-cms/core@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 ## 0.31.0 ### Patch Changes - Updated dependencies [36fc19b] - @easy-cms/core@0.31.0 ## 0.30.0 ### Patch Changes - Updated dependencies [f9d5512] - @easy-cms/core@0.30.0 ## 0.29.0 ### Patch Changes - Updated dependencies [5e92063] - @easy-cms/core@0.29.0 ## 0.28.0 ### Patch Changes - Updated dependencies [479e17a] - @easy-cms/core@0.28.0 ## 0.27.0 ### Patch Changes - Updated dependencies [ffa2f84] - @easy-cms/core@0.27.0 ## 0.26.0 ### Patch Changes - Updated dependencies [bcf3c0c] - @easy-cms/core@0.26.0 ## 0.25.0 ### Patch Changes - Updated dependencies [434599a] - @easy-cms/core@0.25.0 ## 0.24.0 ### Patch Changes - Updated dependencies [230a347] - @easy-cms/core@0.24.0 ## 0.23.0 ### Minor Changes - 0107902: Image galleries: upload fields with several files. - **`upload` with `hasMany: true`** keeps several files in the order editors arrange them, e.g. a gallery on a post. In the admin editors drop several files at once, pick several from the media library, drag them into order (or use the arrow buttons) and remove them. Reads return the media documents in order; it can be `localized`, and queries like `where: { gallery: { in: [id] } }` work. Needs a migration for the new field. - **`mimeTypes`** on upload fields, e.g. `['image/*']`: the media picker offers only those files, and saving refuses others ("must be an image"). - **`minRows` / `maxRows`** on upload and relationship fields with `hasMany`. - An empty list now counts as fewer than `minRows` (arrays and blocks too); drafts may still be incomplete. ### Patch Changes - Updated dependencies [0107902] - @easy-cms/core@0.23.0 ## 0.22.2 ### Patch Changes - @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/core@0.22.1 ## 0.22.0 ### Patch Changes - Updated dependencies [63995c6] - @easy-cms/core@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 ## 0.20.1 ### Patch Changes - @easy-cms/core@0.20.1 ## 0.20.0 ### Patch Changes - Updated dependencies [b7564cb] - @easy-cms/core@0.20.0 ## 0.19.0 ### Patch Changes - Updated dependencies [34d5e66] - @easy-cms/core@0.19.0 ## 0.18.0 ### Patch Changes - @easy-cms/core@0.18.0 ## 0.17.0 ### Patch Changes - Updated dependencies [0507a14] - @easy-cms/core@0.17.0 ## 0.16.1 ### Patch Changes - Updated dependencies [8b14b83] - @easy-cms/core@0.16.1 ## 0.16.0 ### Patch Changes - @easy-cms/core@0.16.0 ## 0.15.0 ### Patch Changes - Updated dependencies [fdb3985] - @easy-cms/core@0.15.0 ## 0.14.0 ### Minor Changes - 6c7eb74: `easy-cms copy --from ` copies every document, version, user and global from one database into another, for example from SQLite to Postgres (or back). Ids stay the same, so relationships, history and logins keep working. Both configs must have the same collections and fields, and the target must be empty. Also available as `copyDatabase(source.db, target.db)` from `@easy-cms/core`. ### Patch Changes - Updated dependencies [6c7eb74] - @easy-cms/core@0.14.0 ## 0.13.1 ### Patch Changes - @easy-cms/core@0.13.1 ## 0.13.0 ### Patch Changes - Updated dependencies [bf9fa90] - @easy-cms/core@0.13.0 ## 0.12.0 ### Patch Changes - Updated dependencies [070d710] - Updated dependencies [070d710] - @easy-cms/core@0.12.0 ## 0.11.0 ### Patch Changes - Updated dependencies [a035bce] - Updated dependencies [2a5a18d] - @easy-cms/core@0.11.0 ## 0.10.0 ### Minor Changes - cab02f9: `easy-cms backup ` copies a SQLite database to a new file while the CMS keeps running (a consistent snapshot through `VACUUM INTO`). Databases expose it as the optional `db.backup(file)`; for Postgres, use `pg_dump`. - cab02f9: Faster reads on large collections: collections with drafts get an index on `status` (list counts were scanning the whole table; 8× faster at 100,000 documents), and on Postgres, `equals`/`in` inside blocks use JSON containment (about 6× faster). The index changes the schema: run `easy-cms migrate:create` after upgrading. ### Patch Changes - Updated dependencies [cab02f9] - @easy-cms/core@0.10.0 ## 0.9.1 ### Patch Changes - 93202ca: SQLite: writes from separate processes to the same file now wait for each other reliably (libSQL busy timeout, `busyTimeout` option, default 10 s) instead of sometimes failing with "database is locked"; instances in one process share a write queue per file. - @easy-cms/core@0.9.1 ## 0.9.0 ### Minor Changes - ce7f66d: `sort` works on fields in lists inside blocks (`layout.items.title`), using the first value found in block and row order. - ce7f66d: SQLite: a write waits (up to 10 s) for another process writing to the same file, instead of failing with "database is locked". ### Patch Changes - @easy-cms/core@0.9.0 ## 0.8.0 ### Minor Changes - e032e1c: `where` reaches into lists inside blocks (`layout.items.title`, `layout.tags`, `layout.content.blockType`), and `sort` works on block fields (`-layout.columns`, using the first block that has the field). ### Patch Changes - e032e1c: SQLite: writes made at the same time wait for each other instead of failing with "database is locked". - Updated dependencies [e032e1c] - @easy-cms/core@0.8.0 ## 0.7.0 ### Minor Changes - da85424: `where` can look inside blocks: `layout.blockType`, `layout.heading`, `layout.heading.en`, fields in groups inside blocks, and `layout: { exists }`. - da85424: Changing `localization.defaultLocale` keeps every locale's values: migrations (and development push) move them between columns. Snapshots now record the locales; migrations created before this release don't, so create one before the first change. ### Patch Changes - Updated dependencies [da85424] - Updated dependencies [da85424] - @easy-cms/core@0.7.0 ## 0.6.0 ### Minor Changes - a76cf49: Blocks field: `{ type: 'blocks', blocks: [{ slug, fields }] }` holds rows of different kinds (`{ id, blockType, ...fields }`), validated, populated and typed as a union, with an admin editor to add, reorder and remove blocks. Inferred types now treat arrays, blocks, groups and hasMany fields as always present. - a76cf49: Localized arrays and hasMany fields: one list per locale (child tables get a `_locale` column; existing rows become the default locale's), queryable as `tags.en`. Reads with `locale: 'all'` no longer turn localized relationships into `null`. ### Patch Changes - Updated dependencies [a76cf49] - Updated dependencies [a76cf49] - Updated dependencies [a76cf49] - Updated dependencies [a76cf49] - @easy-cms/core@0.6.0 ## 0.5.0 ### Minor Changes - df8b783: Localization: `localization: { locales, defaultLocale }` in the config and `localized: true` on fields store one value per locale (one column per locale; the default locale keeps the existing column, so turning it on keeps data). Reads and writes take `locale` (or `'all'`) and `fallbackLocale`, REST takes `?locale=` and `?fallback-locale=`; queries, sorting, slugs and unique values work per locale. The admin gets a content language switcher. ### Patch Changes - Updated dependencies [df8b783] - Updated dependencies [df8b783] - @easy-cms/core@0.5.0 ## 0.4.0 ### Patch Changes - Updated dependencies [b6f8aa3] - @easy-cms/core@0.4.0 ## 0.3.0 ### Patch Changes - Updated dependencies [8dd12a8] - @easy-cms/core@0.3.0 ## 0.2.0 ### Patch Changes - Updated dependencies [d626995] - @easy-cms/core@0.2.0 ## 0.1.1 ### Patch Changes - Updated dependencies [01f3816] - @easy-cms/core@0.1.1 ## 0.1.0 ### Minor Changes - 312df64: First release of Easy CMS: an embedded, code-first headless CMS for Nuxt and Next.js with an admin UI, typed Local API, REST API, SQLite and Postgres adapters, uploads, drafts, hooks and access control. ### Patch Changes - Updated dependencies [312df64] - @easy-cms/core@0.1.0