diff --git a/.changeset/cms-authors-collection.md b/.changeset/cms-authors-collection.md deleted file mode 100644 index 7aa434e4..00000000 --- a/.changeset/cms-authors-collection.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -"directus-cms-starter": major -"directus-cms-i18n-starter": major ---- - -Post bylines now come from a new `authors` collection, not `directus_users`, and the Public policy no longer reads `directus_users`. On core, that rule exposed every user's profile and email (#145). - -- `posts.author` points at `authors` (`name`, `avatar`, `bio`). Authors don't need a Studio account. -- Public and Live Preview read `authors`. Content - Manage has full access. -- Licensed: writers own the posts they created (`user_created`) and can't hand them to someone else. Who's credited (`author`) is separate from who can edit. -- Frontends fetch `author: ['id', 'name', 'avatar']` and render `author.name`. - -To upgrade an existing project: - -1. Security fix on its own: remove the Public policy's read access to Directus Users. Post bylines stop resolving until the steps below. -2. Create an `authors` collection (`name`, `avatar`, `bio`). Give the Public and Content - Live Preview policies read access to it, and Content - Manage full access. -3. Add an author for each user credited on posts. Reusing the user's id keeps existing `posts.author` values valid. -4. Repoint `posts.author` through the API. The Studio can't change an existing relation's related collection, and deleting the field there deletes the author values. - - `DELETE /relations/posts/author` (drops the relation, keeps the column) - - `DELETE /fields/directus_users/posts` - - `POST /relations` with collection `posts`, field `author`, related_collection `authors`, `schema.on_delete` `SET NULL` and `meta.one_field` `posts` - - `POST /fields/authors` with an o2m alias field named `posts` -5. Set the `posts.author` interface and display template to `{{avatar.$thumbnail}} {{name}}`. The old `{{first_name}} {{last_name}}` template shows no names once the field points at `authors`. -6. Frontend: fetch `author: ['id', 'name', 'avatar']` and render `author.name`. -7. Licensed: remove the Writer posts create preset (`author: $CURRENT_USER`), filter Writer read and update on `user_created` instead of `author`, and take `user_created` and `user_updated` out of the Writer update fields. diff --git a/.changeset/cms-i18n-translation-access.md b/.changeset/cms-i18n-translation-access.md deleted file mode 100644 index ee195c1f..00000000 --- a/.changeset/cms-i18n-translation-access.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"directus-cms-i18n-starter": patch ---- - -Editors and writers can now edit translations, and the Public policy no longer returns translations of draft pages and posts. - -- Content - Manage gets the same access to every `*_translations` collection as to its parent, reads `languages`, and sees `translations` on Globals. -- Writers can create, read, update and delete translations on posts they created. -- Public reads page and post translations only when the parent is published. diff --git a/.changeset/directus-12-6-1.md b/.changeset/directus-12-6-1.md deleted file mode 100644 index 97dedcea..00000000 --- a/.changeset/directus-12-6-1.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"directus-cms-starter": patch -"directus-cms-i18n-starter": patch -"directus-blank-starter": patch -"directus-help-center-starter": patch -"directus-simple-crm-starter": patch -"directus-simple-ecommerce-starter": patch ---- - -Update Directus to 12.6.1 (#149). diff --git a/.changeset/licensed-user-reads-email.md b/.changeset/licensed-user-reads-email.md deleted file mode 100644 index a4d542f3..00000000 --- a/.changeset/licensed-user-reads-email.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"directus-cms-starter": patch -"directus-cms-i18n-starter": patch -"directus-blank-starter": patch ---- - -Licensed Team users read only profile fields on `directus_users` (no `auth_data`), and `EMAIL_TRANSPORT` defaults to `sendmail` so notifications no longer fail with a 500 when it's unset (#144). diff --git a/.changeset/switch-to-changesets.md b/.changeset/switch-to-changesets.md deleted file mode 100644 index a845151c..00000000 --- a/.changeset/switch-to-changesets.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/blank/CHANGELOG.md b/blank/CHANGELOG.md index 356303e4..e8ce6240 100644 --- a/blank/CHANGELOG.md +++ b/blank/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 1.1.1 + +### Patch Changes + +- 0a06977: Update Directus to 12.6.1 (#149). +- 0a06977: Licensed Team users read only profile fields on `directus_users` (no `auth_data`), and `EMAIL_TRANSPORT` defaults to `sendmail` so notifications no longer fail with a 500 when it's unset (#144). + ## [1.1.0](https://github.com/directus-labs/starters/compare/blank-v1.0.1...blank-v1.1.0) (2026-08-12) diff --git a/blank/package.json b/blank/package.json index c04c6234..6f134415 100644 --- a/blank/package.json +++ b/blank/package.json @@ -1,6 +1,6 @@ { "name": "directus-blank-starter", - "version": "1.1.0", + "version": "1.1.1", "private": true, "description": "", "scripts": { diff --git a/cms-i18n/CHANGELOG.md b/cms-i18n/CHANGELOG.md index c344058d..b0b0329a 100644 --- a/cms-i18n/CHANGELOG.md +++ b/cms-i18n/CHANGELOG.md @@ -12,6 +12,41 @@ * add frontend bot email ([#130](https://github.com/directus-labs/starters/issues/130)) ([6886590](https://github.com/directus-labs/starters/commit/688659039666515c2a477f1a96d8e4f648e18ce2)) +## 2.0.0 + +### Major Changes + +- 0a06977: Post bylines now come from a new `authors` collection, not `directus_users`, and the Public policy no longer reads `directus_users`. On core, that rule exposed every user's profile and email (#145). + + - `posts.author` points at `authors` (`name`, `avatar`, `bio`). Authors don't need a Studio account. + - Public and Live Preview read `authors`. Content - Manage has full access. + - Licensed: writers own the posts they created (`user_created`) and can't hand them to someone else. Who's credited (`author`) is separate from who can edit. + - Frontends fetch `author: ['id', 'name', 'avatar']` and render `author.name`. + + To upgrade an existing project: + + 1. Security fix on its own: remove the Public policy's read access to Directus Users. Post bylines stop resolving until the steps below. + 2. Create an `authors` collection (`name`, `avatar`, `bio`). Give the Public and Content - Live Preview policies read access to it, and Content - Manage full access. + 3. Add an author for each user credited on posts. Reusing the user's id keeps existing `posts.author` values valid. + 4. Repoint `posts.author` through the API. The Studio can't change an existing relation's related collection, and deleting the field there deletes the author values. + - `DELETE /relations/posts/author` (drops the relation, keeps the column) + - `DELETE /fields/directus_users/posts` + - `POST /relations` with collection `posts`, field `author`, related_collection `authors`, `schema.on_delete` `SET NULL` and `meta.one_field` `posts` + - `POST /fields/authors` with an o2m alias field named `posts` + 5. Set the `posts.author` interface and display template to `{{avatar.$thumbnail}} {{name}}`. The old `{{first_name}} {{last_name}}` template shows no names once the field points at `authors`. + 6. Frontend: fetch `author: ['id', 'name', 'avatar']` and render `author.name`. + 7. Licensed: remove the Writer posts create preset (`author: $CURRENT_USER`), filter Writer read and update on `user_created` instead of `author`, and take `user_created` and `user_updated` out of the Writer update fields. + +### Patch Changes + +- 104d297: Editors and writers can now edit translations, and the Public policy no longer returns translations of draft pages and posts. + + - Content - Manage gets the same access to every `*_translations` collection as to its parent, reads `languages`, and sees `translations` on Globals. + - Writers can create, read, update and delete translations on posts they created. + - Public reads page and post translations only when the parent is published. +- 0a06977: Update Directus to 12.6.1 (#149). +- 0a06977: Licensed Team users read only profile fields on `directus_users` (no `auth_data`), and `EMAIL_TRANSPORT` defaults to `sendmail` so notifications no longer fail with a 500 when it's unset (#144). + ## 1.0.0 (2026-05-13) diff --git a/cms-i18n/package.json b/cms-i18n/package.json index 7e27e998..c1ada177 100644 --- a/cms-i18n/package.json +++ b/cms-i18n/package.json @@ -1,6 +1,6 @@ { "name": "directus-cms-i18n-starter", - "version": "1.1.0", + "version": "2.0.0", "private": true, "description": "", "scripts": { diff --git a/cms/CHANGELOG.md b/cms/CHANGELOG.md index eb6f2403..d5f69b79 100644 --- a/cms/CHANGELOG.md +++ b/cms/CHANGELOG.md @@ -1,5 +1,35 @@ # Changelog +## 2.0.0 + +### Major Changes + +- 0a06977: Post bylines now come from a new `authors` collection, not `directus_users`, and the Public policy no longer reads `directus_users`. On core, that rule exposed every user's profile and email (#145). + + - `posts.author` points at `authors` (`name`, `avatar`, `bio`). Authors don't need a Studio account. + - Public and Live Preview read `authors`. Content - Manage has full access. + - Licensed: writers own the posts they created (`user_created`) and can't hand them to someone else. Who's credited (`author`) is separate from who can edit. + - Frontends fetch `author: ['id', 'name', 'avatar']` and render `author.name`. + + To upgrade an existing project: + + 1. Security fix on its own: remove the Public policy's read access to Directus Users. Post bylines stop resolving until the steps below. + 2. Create an `authors` collection (`name`, `avatar`, `bio`). Give the Public and Content - Live Preview policies read access to it, and Content - Manage full access. + 3. Add an author for each user credited on posts. Reusing the user's id keeps existing `posts.author` values valid. + 4. Repoint `posts.author` through the API. The Studio can't change an existing relation's related collection, and deleting the field there deletes the author values. + - `DELETE /relations/posts/author` (drops the relation, keeps the column) + - `DELETE /fields/directus_users/posts` + - `POST /relations` with collection `posts`, field `author`, related_collection `authors`, `schema.on_delete` `SET NULL` and `meta.one_field` `posts` + - `POST /fields/authors` with an o2m alias field named `posts` + 5. Set the `posts.author` interface and display template to `{{avatar.$thumbnail}} {{name}}`. The old `{{first_name}} {{last_name}}` template shows no names once the field points at `authors`. + 6. Frontend: fetch `author: ['id', 'name', 'avatar']` and render `author.name`. + 7. Licensed: remove the Writer posts create preset (`author: $CURRENT_USER`), filter Writer read and update on `user_created` instead of `author`, and take `user_created` and `user_updated` out of the Writer update fields. + +### Patch Changes + +- 0a06977: Update Directus to 12.6.1 (#149). +- 0a06977: Licensed Team users read only profile fields on `directus_users` (no `auth_data`), and `EMAIL_TRANSPORT` defaults to `sendmail` so notifications no longer fail with a 500 when it's unset (#144). + ## [1.1.0](https://github.com/directus-labs/starters/compare/cms-v1.0.1...cms-v1.1.0) (2026-08-12) diff --git a/cms/package.json b/cms/package.json index 1efa406a..8612bde9 100644 --- a/cms/package.json +++ b/cms/package.json @@ -1,6 +1,6 @@ { "name": "directus-cms-starter", - "version": "1.1.0", + "version": "2.0.0", "private": true, "description": "", "scripts": { diff --git a/help-center/CHANGELOG.md b/help-center/CHANGELOG.md index fb42c089..06a9cb0a 100644 --- a/help-center/CHANGELOG.md +++ b/help-center/CHANGELOG.md @@ -1,5 +1,11 @@ # directus-help-center-starter +## 1.0.1 + +### Patch Changes + +- 0a06977: Update Directus to 12.6.1 (#149). + ## 1.0.0 First release in starters, moved over from directus-templates and re-exported for Directus 12 (#142). A multilingual help center with articles and collections. diff --git a/help-center/package.json b/help-center/package.json index cd6a3179..f964d730 100644 --- a/help-center/package.json +++ b/help-center/package.json @@ -1,6 +1,6 @@ { "name": "directus-help-center-starter", - "version": "1.0.0", + "version": "1.0.1", "private": true, "description": "A multilingual help center with articles and collections.", "directus:template": { diff --git a/package-lock.json b/package-lock.json index 17becf22..f4839bb1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,19 +14,19 @@ }, "blank": { "name": "directus-blank-starter", - "version": "1.1.0" + "version": "1.1.1" }, "cms": { "name": "directus-cms-starter", - "version": "1.1.0" + "version": "2.0.0" }, "cms-i18n": { "name": "directus-cms-i18n-starter", - "version": "1.1.0" + "version": "2.0.0" }, "help-center": { "name": "directus-help-center-starter", - "version": "1.0.0" + "version": "1.0.1" }, "node_modules/@changesets/apply-release-plan": { "version": "8.1.1", @@ -586,11 +586,11 @@ }, "simple-crm": { "name": "directus-simple-crm-starter", - "version": "1.0.0" + "version": "1.0.1" }, "simple-ecommerce": { "name": "directus-simple-ecommerce-starter", - "version": "1.0.0" + "version": "1.0.1" } } } diff --git a/simple-crm/CHANGELOG.md b/simple-crm/CHANGELOG.md index c730f65b..e997edef 100644 --- a/simple-crm/CHANGELOG.md +++ b/simple-crm/CHANGELOG.md @@ -1,5 +1,11 @@ # directus-simple-crm-starter +## 1.0.1 + +### Patch Changes + +- 0a06977: Update Directus to 12.6.1 (#149). + ## 1.0.0 First release in starters, moved over from directus-templates and re-exported for Directus 12 (#142). A simple CRM for managing contacts, organizations, and deals. diff --git a/simple-crm/package.json b/simple-crm/package.json index e61a2c2e..d9c20d7e 100644 --- a/simple-crm/package.json +++ b/simple-crm/package.json @@ -1,6 +1,6 @@ { "name": "directus-simple-crm-starter", - "version": "1.0.0", + "version": "1.0.1", "private": true, "description": "A simple CRM for managing contacts, organizations, and deals.", "directus:template": { diff --git a/simple-ecommerce/CHANGELOG.md b/simple-ecommerce/CHANGELOG.md index ee955098..5ea15ca5 100644 --- a/simple-ecommerce/CHANGELOG.md +++ b/simple-ecommerce/CHANGELOG.md @@ -1,5 +1,11 @@ # directus-simple-ecommerce-starter +## 1.0.1 + +### Patch Changes + +- 0a06977: Update Directus to 12.6.1 (#149). + ## 1.0.0 First release in starters, moved over from directus-templates and re-exported for Directus 12 (#142). A simple eCommerce template for products, orders, and customers. diff --git a/simple-ecommerce/package.json b/simple-ecommerce/package.json index 0e875926..6508e98c 100644 --- a/simple-ecommerce/package.json +++ b/simple-ecommerce/package.json @@ -1,6 +1,6 @@ { "name": "directus-simple-ecommerce-starter", - "version": "1.0.0", + "version": "1.0.1", "private": true, "description": "A simple eCommerce template for products, orders, and customers.", "directus:template": {