Skip to content

v0.18.0

Choose a tag to compare

@github-actions github-actions released this 23 Sep 14:40
· 34 commits to main since this release

What's Changed

Fixed

  • fields-validate no longer requires block.json for kind: block on a
    Drupal project.
    KindLinter skipped straight to erroring on a
    WordPress-only file; it now checks definition-kit.yaml's drupal:
    section (the same signal every other Drupal-conditional behaviour uses) and
    skips the requirement there, leaving the paragraph-mapping check where it
    already lived — fields-lint-drupal (see ADR 0003).
  • fields-migrate against a Drupal config export (--drupal-config) now
    writes role: field for every field it derives.
    DrupalParagraphReader
    produced fields with no role: key at all, which fields-lint's
    ContractLinter reports as UNTYPED regardless of any declared role — the
    same role: field AcfJsonReader already writes for a real ACF field
    (Rule 10), now written consistently on the Drupal side too.

Added

  • A field can now be scoped to some of a component's aliased Drupal
    bundles: drupal: { bundles: [...] }.
    Without it, a field is expected on
    every bundle drupal.bundle_aliases maps onto the component — which made a
    field present on only one aliased bundle's paragraph type (not another's)
    an unresolvable DRIFT. fields-lint-drupal and fields-generate --target=drupal now skip the field entirely for a bundle not in its
    drupal.bundles, and fields-migrate --drupal-config merges every
    aliased bundle it finds in the export and writes drupal.bundles
    automatically for a field it finds on only some of them.

Pull Requests

  • #85 — Fix Drupal adoption gaps: KindLinter WP-only block.json, migrate role: field, per-field bundle scoping

Full Changelog: v0.17.0...v0.18.0