v2.0.0
💥 Breaking Changes! 💥
Please see the Migrations Guide to keep your preview button plugin up-to-date.
💅🏻 Enhancements
- New
draft.alwaysVisible
option to ensure the preview button for draft mode is always visible. - The
openTarget
option can now be customized per model and published state. - Dev tools for
eslint
,prettier
,jest
, and pre-commit actions.
🐛 Bug fixes
- Fixed issue where
modifiedData
was used instead ofinitialData
, which was using values not saved in the db. - Fixed issue where list view would fail to render preview buttons due to improper use of
async bootstrap
. - Remove unnecessary
Initializer
component.
⚙️ Chore
- New logo
- Bump peer dependency for Strapi to 4.9.0.
- Replace
request
usage withuseFetchClient
hook. - Install
husky
andlint-staged
to enable pre-commit actions. - Add
lint
,format
, andtest
scripts in package.json. - Some refactoring to satisfy eslint and prettier rules.