Version 3.1.0
May 4, 2025
Added
- Console command that generates TypeScript types for all element types.
- Add event to adjust generated types and to add types.
- Query API now requires Craft CMS 5.7 or higher.
Improved
- Native link fields do return all data now and not just url and element type.
- Native field detection does work better now.
- Small refactorings for better readability.
Version 3.0.1
April 30, 2025
- Fix permission error in allRoutes api endpoint and add tests for this endpoint.
- Change some namings of allRoutes logic to enhance readability.
Version 3.0.0
March 23, 2025
Breaking
- Added bearer token logic, including schemas and tokens. A bearer token is now required to query data.
- Changed plugin handle from
craft-query-api
toquery-api
.
Added
- Control Panel section for schemas.
- Control Panel section for tokens.
- Permission logic based on schema scope.
- Clear "Query API data cache" option in
/admin/utilities/clear-caches
. - CLI commands to create a public schema and token.
- Support for admin() parameter in user queries.
Improved
- The
getFullUriFromUrl
utility no longer throws an error when querying entries without a section. - Now the ready-to-rock JSON output is cached instead of the raw database query result.
- API error responses are more accurate now.
Version 2.0.2
March 16, 2025
- Change plugin name from 'Craft Query API' to 'Query API' and fix grammar in composer description.
Version 2.0.1
March 11, 2025
- Add fullUri property to metadata of entry to enhance dx experience in js frameworks.
Version 2.0.0
February 24, 2025
Breaking
- Query API respects your field limit now. Relational fields with a max relation of 1 will not return an array anymore. They will return an object now.
Added
- Support for Color Field
- Support for Country Field
Bug Fixes
- Fix failing query of url encoded arrays for siteIds.
Version 1.1.4
January 9, 2024
- Fix missing property declaration in base transformer.
Version 1.1.3
December 20, 2024
- Add support for search query.
- Add
EVENT_REGISTER_ELEMENT_TYPES
for defining custom element types. - Add settings for cache duration and exclude Field Classes.
- Change file and class name of
FieldTransformerEvent
toRegisterFieldTransformersEvent
.
Version 1.1.2
November 23, 2024
- Add support for level, sectionId and type for entry queries.
- Add
EVENT_REGISTER_FIELD_TRANSFORMERS
for defining custom field transformer. - Update Readme Typo.
Version 1.1.1
November 15, 2024
- Minimize JSON response data by deleting metadata that is not really useful.
- Fix a bug of the entry transformer when entries without section get queried.
Version 1.1.0
November 8, 2024
- Change API endpoints from
/<version>/api/controlername
to/<version>/api/queryApi/controlername
. - Cache duration is now the default Craft cache duration defined in
/config/general.php
. - Update readme.
- Fix formatting issues in all PHP files.
- Fix missing title field in matrix transformer.
Version 1.0.3
October 31, 2024
- Change composer package name to my real repo name.
Version 1.0.2
October 30, 2024
- Add more information to the readme. Change Changelog format.
Version 1.0.1
October 30, 2024
- Add icon to plugin and more information in the readme.
Version 1.0.0
October 30, 2024
- Initial release.