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)