Skip to content

Latest commit

 

History

History
170 lines (110 loc) · 5.15 KB

CHANGELOG.md

File metadata and controls

170 lines (110 loc) · 5.15 KB

Release Notes for Element API

2.6.0 - 2019-08-01

Added

  • Added the callback endpoint config setting, which enables JSONP output. (#96)

Changed

  • The defaults setting can now be set to a callable. (#98)
  • criteria endpoint settings can now specify an offset. (#99)
  • Updated Fractal to 0.18. (#109)

Deprecated

  • Deprecated craft\elementapi\resources\EntryResource. (#108)

Fixed

  • Fixed a bug where field types that return objects were getting converted to arrays by the default element transformer. Now their serialized value is used instead. (#75)

2.5.4 - 2018-07-29

Changed

  • The generateTransformsBeforePageLoad Craft config setting is now automatically enabled for all Element API endpoints. (#81)

Fixed

  • Fixed a bug where it wasn’t possible to set cache, serializer, jsonOptions, pretty, includes, and excludes endpoint config options in the defaults array. (#69)

2.5.3 - 2018-06-20

Changed

  • The cache key now takes into account the current site id. (#76)

2.5.2- 2017-12-13

Changed

  • Loosened the Craft CMS version requirement to allow any 3.x version.

2.5.1 - 2017-11-09

Changed

  • PHP 7.2 compatibility.

2.5.0 - 2017-10-31

Added

  • Added support for fetching entry drafts & versions.
  • Added craft\elementapi\resources\EntryResource.

Changed

  • Exceptions are now represented as JSON responses, with error.code and error.message properties.
  • Renamed craft\elementapi\ElementResourceAdapter to craft\elementapi\resources\ElementResource.
  • craft\elementapi\resources\ElementResource::getElementQuery() and getTransformer() are now protected methods.

2.4.3 - 2017-09-14

Fixed

  • Fixed a deprecation error that occurred on Craft 3 Beta 25 and later. (craftcms/cms#1983)

2.4.2 - 2017-08-17

Changed

  • Craft 3 Beta 24 compatibility.

2.4.1 - 2017-07-07

{note} You will need to rename your Element API config file to element-api.php when updating to Craft 3 Beta 20+ and Element API 2.4.1+.

Changed

  • Craft 3 Beta 20 compatibility.

2.4.0 - 2017-05-25

Added

  • Added the include and exclude endpoint config settings. (#42)

2.3.0 - 2017-05-24

Added

  • Added the cache endpoint config setting.

2.2.0 - 2017-05-18

Added

  • Added a JSON Feed V1 serializer.
  • Added the meta endpoint config setting.
  • Added the serializer endpoint config setting.
  • Added the jsonOptions endpoint config setting.
  • Added the pretty endpoint config setting.

Changed

  • Updated Fractal to 0.16.

Fixed

  • Fixed a bug where pagination URLs contained an extra pattern query param.

2.1.0 - 2017-05-16

Added

  • Added support for a resourceKey endpoint config setting (default is 'data').

Fixed

  • Fixed the changelog and download URLs.

2.0.2 - 2017-04-18

Fixed

  • Fixed a PHP error that occurred when paginating results. (#36)

2.0.1 - 2017-03-24

Changed

  • Craft 3 Beta 8 compatibility.

2.0.0 - 2017-02-10

Added

  • Craft 3 compatibility.
  • It’s now possible to provide custom resource adapter classes, which could be associated with other things besides elements.
  • Added craft\elementapi\ResourceAdapterInterface.
  • Added craft\elementapi\ElementResourceAdapter.

Deprecated

  • Deprecated the first endpoint config setting. Use one instead.

1.6.0 - 2017-05-25

Added

  • Added the include and exclude endpoint config settings. (#41)

1.5.0 - 2017-05-24

Added

  • Added the cache endpoint config setting.

Fixed

  • Fixed a bug where endpoint were sending JSON headers even if an exception occurred and the HTML error view was returned. (#39)

1.4.0 - 2017-05-18

Added

  • Added a JSON Feed V1 serializer.
  • Added the meta endpoint config setting.
  • Added the serializer endpoint config setting.
  • Added the jsonOptions endpoint config setting.

Changed

  • Updated Fractal to 0.16.

1.3.0 - 2017-05-16

Added

  • Added support for a resourceKey endpoint config setting (default is 'data').

1.2.1 - 2016-04-12

Changed

  • Pagination URLs will now honor any existing query string parameters.

1.2.0 - 2016-04-02

Added

  • Added the elementApi.onBeforeSendData event.

1.1.0 - 2015-12-20

Changed

  • Updated to take advantage of new Craft 2.5 plugin features.

1.0.0 - 2015-08-19

Initial release.