This minor release adds support for filtering entries by isRead and isStarred statuses, improves handling of AddressField default values, and deprecates the PhoneField.phoneFormat field in favor of PhoneField.phoneFormatType (with a new GfPhoneFormat type incoming).
Important
GfFieldWithAddressSetting.defaultState and changed type from AddressFieldProvinceEnum to AddressFieldStateEnum.
While this is technically a breaking schema change, we're treating it as a bugfix, since trying to get US State values coerced into a Canadian Province would have caused users any users who had adopted this approach fatal errors.
What's Changed
- feat: Deprecate
PhoneField.phoneFormatin favor ofPhoneField.phoneFormatType, and add newGfPhoneFormattype. Props @chetanupare, @justlevine. - feat: Add support for filtering entries by
isReadandisStarredstatuses. - fix: Correctly resolve
AddressField.defaultState,AddressField.defaultProvincebased on theaddressType. H/t @byanko-bot - fix: Set the default
AddressField.inputs.labelfor the State/Province and Zip/Postal inputs based on theaddressType. H/t @byanko-bot - chore: Update Composer and NPM deps.
- tests: Improve cleanup and factory instantiation for better local isolation.
- tests: Backfill tests for Entry connection args.
Included PRs
- chore(deps): bump the github-actions-updates group with 6 updates by @dependabot[bot] in #473
- chore(deps-dev): bump wp-cli/wp-cli-bundle from 2.11.0 to 2.12.0 in the composer-dev-minor-patch group by @dependabot[bot] in #472
- chore(deps-dev): bump phpunit/phpunit from 9.6.31 to 9.6.34 by @dependabot[bot] in #474
- chore(deps): bump actions/cache from 5.0.2 to 5.0.3 in the github-actions-updates group by @dependabot[bot] in #478
- chore(deps-dev): bump phpstan/phpstan from 2.1.35 to 2.1.37 in the composer-dev-minor-patch group by @dependabot[bot] in #477
- chore(deps-dev): bump phpstan/phpstan from 2.1.37 to 2.1.38 in the composer-dev-minor-patch group by @dependabot[bot] in #480
- chore(deps-dev): bump the npm-minor-patch group across 1 directory with 3 updates by @dependabot[bot] in #481
- chore: update deps by @justlevine in #482
- fix: resolve AddressField defaults by type by @justlevine in #483
- feat: Add phone format properties to resolve issue #441 by @chetanupare in #475
- tests: improve test cleanup by @justlevine in #484
- feat: filter entries by
isReadandisStarredby @justlevine in #485 - chore: version bump by @justlevine in #486
New Contributors
- @chetanupare made their first contribution in #475
Full Changelog: v0.13.3...v0.13.4