Added TypeScript support for services within the extension context (#25368)
The services exposed to API extensions using TypeScript are now fully typed instead of any, which may cause new type errors when building extensions.
Arguments of service methods are now strictly typed, which can result in type errors for broader types that would not error before:
The ItemsService constructor now expects the collection name to be a string and will error on string | undefined (or other unions).
Similarly, functions like service.readOne()/service.readMany() now expect string | number for their primary keys and will error for nullable types
As a workaround, casting the services back to any will result in the original behavior. However, it is recommended to resolve the type errors instead.
@directus/extensions-sdk
Added TypeScript support for services within the extension context (#25368 by @that1matt)
Exclude database-only tables from snapshots (#25271)
Snapshots now exclude tables not tracked in directus_collections (database-only tables).
Source Version
Target Version
Behavior
Impact
< 11.10.0
β₯ 11.10.0
Database-only tables from source will be created on target
β οΈ Tables added
β₯ 11.10.0
< 11.10.0
Database-only tables will be dropped from target
π¨ Data loss risk
β₯ 11.10.0
β₯ 11.10.0
Database-only tables are ignored in snapshots
β No changes
< 11.10.0
< 11.10.0
Database-only tables may be created or dropped
β οΈ Depends on the diff between source/target
Please review your snapshot workflows to ensure these changes will not result in unexpected behaviour.
@directus/api
Fixed replacing process.env.NODE_ENV on backend extensions (#25180 by @Nitwel)
Exclude database-only tables from snapshots (#25271 by @Nitwel)
@directus/extensions-sdk
Upgraded all dependencies of @directus/extensions-sdk to the latest major versions of Rollup and Vite, and resolved several false-positive security reports. (#25486 by @rijkvanzanten) β οΈ This change also raises the minimum supported Node.js version to 20.19.0.
Fixed replacing process.env.NODE_ENV on backend extensions (#25180 by @Nitwel)
Added support for LDAP login and enhanced parameter consistency for refresh/logout commands. Allowed overriding the mode in refresh and logout commands to be inline with login (#25132)
The login method now accepts a payload object instead of separate email and password parameters.
This enables support for both standard and LDAP authentication, but requires updates to code that previously called sdk.login(email, password).
The new usage is sdk.login({ email, password }) or sdk.login({ identifier, password }) for LDAP.
The refresh and logout command method parameters have been updated to be consistent across usage. The functions now accept an options object instead of their previous regular parameters.
For example the new usage for refresh is sdk.request(refresh({ mode: "json", refresh_token })) instead of sdk.request(refresh('json', refresh_token)).
@directus/api
Fixed manual flows to only trigger with appropriate permissions (#25354 by @br41nslug)
@directus/sdk
Added support for LDAP login and enhanced parameter consistency for refresh/logout commands. Allowed overriding the mode in refresh and logout commands to be inline with login (#25132 by @ComfortablyCoding)
inside an extension's detail page in the marketplace, the back state is not valid if it's a nullish value and it should (#24703 by @CiaccoDavide)
redirect to the extensions list
@directus/api
Fixed invalid item_duplication_fields paths existing after a field in the path is deleted (#24654 by @ComfortablyCoding)
Fixed filter_count returning incorrect values for relational filters (#24718 by @ComfortablyCoding)
@directus/system-data
Fixed invalid item_duplication_fields paths existing after a field in the path is deleted (#24654 by @ComfortablyCoding)
π Documentation
Updated incorrect UsersService example in the docs (#24726 by @br41nslug)
Ensured that the Kanban layout only resets the group title when the group field changes within the same collection (#24567 by @formfcw)
Ensured that the βShow Ungroupedβ option is disabled and that the βNo Groupβ column doesnβt appear in Kanban layouts if (#24563 by @formfcw)
the group field is not nullable
Ensured that Kanban layout groups can be reordered without admin rights when selecting a non-relational group_by field (#24537 by @formfcw)
by saving updates in the layout presets.
Improved custom translation experience by prefilling existing values (#24535 by @hanneskuettner)
Ensured that the Kanban layout refreshes after deleting a group column (#24565 by @formfcw)
Fixed trimmed fields not saving null for empty strings (#24544 by @connorwinston)
Fixed Opening of Translation Split Pane Overriding 2nd lang when not needed (#24628 by @connorwinston)
Fixed being able to input non-integer values into an integer input. (#24569 by @connorwinston)
Ensured that bulk selection and editing in the table layout of the O2M and M2M interfaces works as expected (#24540 by @formfcw)
Added customizable handling for missing data in time series charts, allowing continuous lines, gaps, or a set value. (#24529 by @connorwinston)
Added confirmation prompt to delete buttons and ensured that they behave consistently (#24462 by @formfcw)
Exposed useTranslationsStore to extensions via useStores (#24475 by @paescuj)
Added support for rendering M2A items in related values display (#24503 by @formfcw)
π Bug Fixes & Optimizations
@directus/app
Fixed a bug where text did not appear in the markdown interface when switching from preview to editor mode (#24482 by @formfcw)
Fixed a bug where thumbnails did not appear in the render template (#24480 by @formfcw)
Fixed label display not handling json field types in templates (#24437 by @connorwinston)
Fixed conditional interface options incorrectly replacing choices (#23685 by @Trup3s)
Fixed missing space between v-notice and list items in M2A interface (#24466 by @formfcw)
Ensured that permissions are applied to kanban layout actions (#24409 by @formfcw)
Ensured that custom translations used in system-input-translated-string interfaces are displayed correctly (#24495 by @formfcw)
Fixed a bug where the item limit warning would appear even if the item count was already below the limit after filtering (#24485 by @formfcw)
Fixed a bug where the header would not collapse under certain circumstances and would unexpectedly move up when (#24454 by @formfcw)
scrolling elements in the view
Fixed inconsistencies in list interfaces (#24385 by @formfcw)
Added checkboxes/radiobuttons for calendar items when in select mode (#24444 by @formfcw)
Fixed Field/Collection/Relation Stores not handling error's correctly (#24436 by @connorwinston)
Fixed alignment of SSO social icons in Safari (#24474 by @paescuj)
Added support for cc, bcc, and replyTo fields to the email operation (#24488 by @highvibesonly)
Enhanced Date Formatting Options for DateTime Interface/Display (#24504 by @connorwinston)
@directus/api
Added support for cc, bcc, and replyTo fields to the email operation (#24488 by @highvibesonly)
Reverted version bump of CSV parser dependency due to a regression (#24441 by @hanneskuettner)
Removed read permissions check during files deletion (#24511 by @licitdev)
Run cleanup in mutex error case when getting schema (#24506 by @licitdev)
Improved flow notification messages to differentiate between async and sync flow execution (#24419 by @obafemitayor)
Added the ability to toggle translation interface items to make them deleteable and ensure that defaults, conditions and (#24291 by @formfcw)
validations work as expected
@directus/extensions-sdk
Introduced new validate command in the directus-extension CLI which checks if an extension meets the requirements (#24269 by @ukmadlz)
π Bug Fixes & Optimizations
@directus/app
Cleared login error message on successful credentials when TFA is enabled (#24274 by @bwp91)
Fixed a bug in the kanban layout where setting a related values display broke the layout (#24335 by @formfcw)
Changed useRelationMultiple to only update fetched items when dependents change, not just update (#24389 by @connorwinston)
Added internationalization to rich text editor toolbar (#23308 by @SP12893678)
Fixed incorrectly rendering related-values for related items in template rendering. Fixed display-formatted-values and display-labels not handling arrays correctly. Added handling of nested fields to template rendering. (#24232 by @connorwinston)
Ensured translation fields are validated (#24220 by @formfcw)
Fixed the alignment of the select-all checkbox in the notifications drawer (#24213 by @Dominic-Marcelino)
Enhanced vertical alignment of SSO icons on login page (#24119 by @robsoncombr)
Fixed an issue with unintentional sorting after editing items in relational interfaces (#24172 by @osmandvc)
A potential licensing issue was reported in our use of TinyMCE (used for the WYSIWYG interface) after they changed licenses in the new major version. We've downgraded to the previous major which is MIT-licensed to resolve that while we look for a long term solution. (#24181 by @paescuj)
Fixed the display of relational fields in nested groups (#24183 by @formfcw)
Improved the default user created display template by using the avatar field (#24160 by @gavalierm)
Fixed thumbnails not appearing in File Library after upload (#24087 by @joselcvarela)
Ensured data in sidebar is re-fetched when switching pages while a sidebar pane is already opened (#23553 by @SP12893678)
Ensured errors occured within the cards layout are always shown (#23802 by @SP12893678)
Fixed format warnings in api/src/request/is-denied-ip.ts and app/src/interfaces/input-rich-text-html/input-rich-text-html.vue (#23584 by @ComfortablyCoding)
Fixed an issue that would cause log streaming to fail on Directus installations that use a subpath in the URL (#23569 by @JoshTheDerf)
Fixed an issue that could cause the color picker interface to crash when a invalid color was used and improved the UX of interacting with the text input of the color picker interface. (#23654 by @connorwinston)
Ensured users are redirected to the intended page after login via LDAP (#23788 by @mmsardar)
Fixed failing validation of $CURRENT_POLICIES and $CURRENT_ROLES in the filter interface (#23730 by @hanneskuettner)
Fixed the truncation of long collection names in the permission configuration interface (#23700 by @hanneskuettner)
Fixed format warnings in api/src/request/is-denied-ip.ts and app/src/interfaces/input-rich-text-html/input-rich-text-html.vue (#23584 by @ComfortablyCoding)
Ensured notifications are reloaded after manually running a Flow to provide users with the latest notifications generated by the Flow (#23381 by @Dominic-Marcelino)
Ensured warning about unsaved changes is displayed for Flows with custom confirmation config too (#23408 by @Dominic-Marcelino)
Improved selection label of the "New Tab" checkbox in the html rich text editor (#23502 by @simboonlong)
Added notice in notifications drawer when no items are found due to applied search/filter (#23428 by @paescuj)
Fixed styling issues with the related-values display (#21854 by @formfcw)