Important
This release introduces several breaking changes to composer dependencies and the datastore API. See below for upgrade instructions.
Upgrade guide
- composer.json: Ensure that your project root composer.json includes
npm-asset/select2
andoomphinc/composer-installers-extender
in therequire
section, and asset-packagist in therepositories
section. See #4546 and the select2 readme for more information, or see this project template for an example. If you omit thenpm-asset/select2
dependency, your project should still build, but your metadata forms may break. - select2: You must require the development branch of select2 at a more recent commit than select2/select2#6332. There is unfortunately no stable release that is compatible with current versions of Drupal. This means that projects using DKAN must have minimum stability of
dev
in their composer files (or else omit the select2 library dependency and avoid using select2 on your forms). - API change: Using
"limit": 0
in a datastore query to get around the row limit in the datastore query endpoints will no longer work, and will produce a JSON validation error. Please update any frontend or third-party code. The only way to download a full result set from the datastore, without being affected by the row limit setting, is to use one of the download endpoints and consume the entire result as a CSV. - Config: If you save your project configuration to code, be sure to capture the changes to core.entity_form_display.node.data.default.yml as there has been an update to the JSON form plugin.
What's Changed
- Remove select2 asset from composer require. by @swirtSJW in #4546.
- Fix tagfield test by @dafeder in #4542
- Move JSON form plugin to metastore, de-DKAN-ifying json_form_widget by @dafeder in #4533
- Require dev version of select2 library by @dafeder in #4479
- Minimum of 1 for the "Limit" property in the datastore query schema by @kaise-lafrai in #4544
- dkan:harvest:register should validate options by @paul-m in #4498
- Better error-correction in HarvestUtility by @paul-m in #4268
- #4298 - Change some methods from private to protected by @stefan-korn in #4419
- Security: Update drupal/facets to ^3.0.1 by @paul-m in #4548
- Remove other unneeded properties from composer.json by @dafeder in #4547
- Update JSON Form Widget README by @janette in #4550
Full Changelog: 2.20.9...2.21.0