@pack/types Changelog

Release notes for every published version of @pack/types. For usage, see the @pack/types reference.

0.2.1

Released June 19, 2026

Patch Changes

  • Warn when a blocks field lists the same key in both sectionTypes and templates. The overlap is ambiguous (nested section vs inline block) and breaks saving in the customizer, so schema validation now flags it at author time.

0.2.0

Released May 21, 2026

Minor Changes

  • BlocksField schema updates for nested-sections support:

    • Add sectionTypes?: string[] so blocks fields can declare which registered section schemas editors can embed.
    • Relax templates to optional. A blocks field that only allows sectionTypes no longer needs an empty templates: {} placeholder. TypeScript note: BlocksField.templates widens from required to optional. Code that defines schemas is unaffected; code that reads field.templates on a typed BlocksField value now needs to handle undefined.
    • Enforce that at least one of templates or sectionTypes is defined — a blocks field with neither now produces a schema-validation warning at registerSection time, since editors would have nothing to add.

0.1.4

Released February 6, 2026

Patch Changes

  • Fix schema validation to be non-blocking. Replace .strict() with .passthrough() on Zod field schemas so unrecognized keys no longer prevent section registration. Validation errors are now logged as warnings while still allowing sections to register and render.

0.1.3

Released September 5, 2025

Patch Changes

  • Add missing fields to number (min, max), color (widget), date (timeFormat, dateFormat), group (defaultValue), and overall section schema (description, defaultValue, defaultItem).

0.1.2

Released September 4, 2025

Patch Changes

  • Add missing dimension, volume, weight, and money fields.

0.1.1

Released August 27, 2025

Patch Changes

  • Improve storefront setting validation. Fix toggleLabels being required on toggle fields as can be optional.

0.1.0

Released August 20, 2025

Minor Changes

  • Adds missing types to section schema.

Patch Changes

  • Add slider prop to NumberField to enable slider ui element.

0.0.4

Released June 27, 2025

Patch Changes

  • Align form field schema validation with actual FormBuilder implementation, adding support for missing properties like RadioGroup direction/variant, Number field step, function validation, field-level required, and Toggle boolean labels

0.0.3

Released April 2, 2025

Patch Changes

  • Add richtext field component.

0.0.2

Released February 20, 2025

Patch Changes

  • Add color component field props to schema validation.

0.0.1

Released February 14, 2025

Patch Changes

  • Add @pack/types.

Was this page helpful?