# @easy-cms/plugin-multi-tenant ## 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 - Updated dependencies [4b45bee] - @easy-cms/core@1.51.0 ## 1.50.0 ### Patch Changes - Updated dependencies [53cd63a] - Updated dependencies [016188f] - @easy-cms/core@1.50.0 ## 1.49.0 ### 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 ### 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 - 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 - 51c7646: A log of emails sent, in Settings → Email: when, to whom (blind copies only counted), the subject, its kind and how it went (sent, waiting with its tries, or not sent with why), searchable and filtered by state and kind, for admins of the whole site. It never keeps an email's content, whose links sign people in. Kept 30 days (`emailLog: { keepDays }`, or `emailLog: false` for none). `EmailMessage.tag` names an email's kind and isn't sent; Easy CMS's own emails and the shop's, forms' and teams' are tagged. Needs a migration: a new `email-log` table for apps with `email` (see Upgrading → 1.41). - 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 ### Patch 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). - 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 ### 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 ### Patch Changes - Updated dependencies [2ce3b98] - Updated dependencies [ac40820] - @easy-cms/core@1.16.0 ## 1.15.1 ### Patch Changes - 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 ### 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 ### Patch Changes - Updated dependencies [4007cfe] - @easy-cms/core@1.10.0 ## 1.9.0 ### Patch Changes - Updated dependencies [15a201a] - @easy-cms/core@1.9.0 ## 1.8.0 ### Patch Changes - Updated dependencies [26fa06b] - @easy-cms/core@1.8.0 ## 1.7.1 ### Patch Changes - @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 ### Minor Changes - b5390b6: Multi-tenant hygiene (#102): - Staff of a tenant see others' memberships in that tenant only; people still see all their own. - Checking the audit log's integrity is for admins of the whole system (not of one tenant); the admin hides the button for others. - A plugin's collections listed only partly per tenant (forms without their submissions, some of the shop's) log a warning on the first request. - `unique` on a field inside a group, array or block logs a config warning: it is enforced on top-level fields only. ### 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 ### 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 ## 0.47.4 ### Patch Changes - 76e22e3: Security fixes: - Site members never read drafts, through any API (the Local API now applies the rule REST already had). - A sign-up for an account still waiting for its email takes the new password and sends a new link; signing in with a provider confirms such an account and drops the password set before. Email confirmation links work once. - Only system admins unlink someone else's single sign-on account. - Request bodies sent without a length are refused once past the limit, instead of being read whole first. Endpoints get `req.text()` for raw bodies (at most 1 MB). - Upload from URL also refuses IPv4 addresses inside IPv6 (NAT64, `::a.b.c.d`) that are private. - Shop: changing an order's status (paid, sent, cancelled, refunded) needs update access to the order. - Multi-tenant: a tenant's admins can't add site members or people with access to all tenants to it; adding someone who already has an account answers as for someone new and emails them. - Updated dependencies [76e22e3] - @easy-cms/core@0.47.4 ## 0.47.3 ### Patch Changes - b753c14: Security fix: site members (`auth.members`, such as shop customers) never get the rights of users with access to all tenants, whatever `publicReads` is, and see only their own user record. Update now if you use the multi-tenant plugin together with members. - @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 ### Minor Changes - 203e359: The admin grows with your plugins. The menu has groups that fold, two levels deep (`admin.nav`, and `admin.group` on collections, globals and pages): Content, the media library, each plugin's group (Shop › Catalog, Sales, Customers; Forms) and Settings › Site, Users & access, System. Each person can fold groups, pin items and collapse the menu to icons. Badges show what needs attention (`admin.badge`, e.g. orders to send), and a **+** creates a document from the menu. ⌘K opens search and commands: go anywhere, create, find documents by title in every collection, reopen recent ones, and run commands, plugins' too (`admin.commands`). Shortcuts: ⌘S saves, ⌘⇧P publishes, `[` collapses the menu, `?` lists them. Edit pages take tabs, sections that fold and rows (`admin.layout`, by field name), help below fields (`admin.description`), widths (`admin.width`) and fields shown only when they apply (`admin.condition`, which the server reads too: a hidden field isn't required). A failed save lists what to fix and opens the right tab; unsaved changes are kept in the browser and offered back. The SEO plugin puts its fields in an SEO tab (`tab: false` keeps them below). Lists remember their filters and scroll, and say what a collection is for while empty (`admin.empty`). Configs keep working as they are; nothing changes in the database. ### 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