Skip to content

Releases: buildnbuzz/buzzform

@buildnbuzz/form-react@0.1.8

18 Apr 21:39
Immutable release. Only release title and notes can be modified.
0936b4f

Choose a tag to compare

Patch Changes

  • #132 d0e37c2 Thanks @ladparth! - Implement dynamic validation message resolution and enhanced expression support in hooks and components.

    • Update Field and LayoutField components to use resolveBooleanExpr for robust evaluation of visibility and state properties (condition, hidden, disabled, etc.).
    • Enhance useResolvedFieldText to support $fn registry calls in dynamic labels, placeholders, and descriptions.
    • Support dynamic defaultValue resolution in useForm during initialization.
    • Improve registry merging logic to ensure consistent access to custom validators and functions across all resolution contexts.
  • Updated dependencies [d0e37c2]:

    • @buildnbuzz/form-core@0.1.7

@buildnbuzz/form-core@0.1.7

18 Apr 21:39
Immutable release. Only release title and notes can be modified.
0936b4f

Choose a tag to compare

Patch Changes

  • #132 d0e37c2 Thanks @ladparth! - Add support for dynamic validation messages, validator arguments ($args), and dynamic layout properties.
    • Change validation message type from string to ExprText to enable dynamic error messages via $text, $when, and other expressions.
    • Add $args expression node and ${/args/...} template support for referencing resolved validator arguments (e.g., min, max).
    • Enhance built-in required validator to support an optional isRequired argument for dynamic toggling.
    • Introduce resolveBooleanExpr for optimized evaluation of boolean conditions like $and and $or.
    • Add resolution helpers for layout fields (tabs, collapsible) to support dynamic labels and visibility states.
    • Support dynamic defaultValue resolution in extractDefaults.

@buildnbuzz/form-react@0.1.7

16 Apr 14:22
Immutable release. Only release title and notes can be modified.
c59048e

Choose a tag to compare

Patch Changes

  • #130 dc9fd2e Thanks @ladparth! - Resolve dynamic expression values (inline functions and AST objects) for field display text.
    • Updated useResolvedFieldText to support label, placeholder, and description as dynamic Expr values.
    • Added unit tests for dynamic text resolution in React components.
    • Updated documentation examples to showcase dynamic display text.

@buildnbuzz/form-react@0.1.6

15 Apr 12:48
Immutable release. Only release title and notes can be modified.
d3a8d1b

Choose a tag to compare

Patch Changes

  • #127 d4302d9 Thanks @ladparth! - Unify runtime registries under FormRegistries and migrate to Expr.

    • Introduce FormRegistries container for fields, validators, resolvers, and fns.
    • Add registries prop to FormProvider, Form, and useForm.
    • Deprecate registry, customValidators, and optionResolvers top-level props in favor of the unified registries object.
    • Update Field and LayoutField to use unified expression evaluator.
    • Support inline functions as expressions for all dynamic field properties.
    • Update documentation and canonical examples to modern expression syntax.
  • Updated dependencies [d4302d9]:

    • @buildnbuzz/form-core@0.1.6

@buildnbuzz/form-core@0.1.6

15 Apr 12:48
Immutable release. Only release title and notes can be modified.
d3a8d1b

Choose a tag to compare

Patch Changes

  • #127 d4302d9 Thanks @ladparth! - Unify dynamic expression APIs and logic under Expr.
    • Introduce Expr<T> unified expression system replacing DynamicValue and VisibilityCondition.
    • Add $text node for string interpolation.
    • Add $when node for conditional branching (ternary).
    • Add $fn node for calling custom registry functions.
    • Introduce ExprContext with data and context properties.
    • Fix InferType for empty-name primitive arrays to produce flat arrays.
    • Deprecate evaluateVisibility, resolveDynamicValue, and old context types.

@buildnbuzz/form-react@0.1.5

12 Apr 14:04
Immutable release. Only release title and notes can be modified.
1ac6ac8

Choose a tag to compare

Patch Changes

  • #124 0c2937c Thanks @ladparth! - Implement cascading validation logic for derived checks.

    • Updated derived validation to be cumulative: "blur" mode now includes "submit" checks, and "change" mode includes both "blur" and "submit" checks.
    • Synchronized default derivedValidationMode to "submit" to match documentation and planned behavior.
  • Updated dependencies [0c2937c]:

    • @buildnbuzz/form-core@0.1.5

@buildnbuzz/form-core@0.1.5

12 Apr 14:04
Immutable release. Only release title and notes can be modified.
1ac6ac8

Choose a tag to compare

Patch Changes

  • #124 0c2937c Thanks @ladparth! - Correct primitive array type inference for named child fields.
    • Ensure that child fields with explicitly defined names are correctly inferred as wrapped objects ({ name: value }[]) rather than flat values.

@buildnbuzz/form-react@0.1.4

10 Apr 01:10
Immutable release. Only release title and notes can be modified.
c829d8c

Choose a tag to compare

Patch Changes

  • #121 fdbaf50 Thanks @ladparth! - Add support for async field options and cascading dropdowns.

    • Enhance useFieldOptions hook with async loading state and error handling.
    • Implement automatic value clearing when field dependencies change or options become invalid.
    • Add optionResolvers support to Form, Field, and FieldRenderer components.
    • Implement request deduplication for concurrent option fetches.
  • Updated dependencies [fdbaf50]:

    • @buildnbuzz/form-core@0.1.4

@buildnbuzz/form-core@0.1.4

10 Apr 01:10
Immutable release. Only release title and notes can be modified.
c829d8c

Choose a tag to compare

Patch Changes

  • #121 fdbaf50 Thanks @ladparth! - Introduce async option resolvers and enhanced dependency tracking.
    • Add OptionResolverRegistry and OptionResolver types for async data fetching.
    • Implement defineOptionResolvers helper for type-safe resolver registration.
    • Update resolveOptions to support dynamic option sources.

@buildnbuzz/form-react@0.1.3

09 Apr 02:03
Immutable release. Only release title and notes can be modified.
477054c

Choose a tag to compare

Patch Changes

  • #118 bdcbbd8 Thanks @ladparth! - - Implemented global module augmentation for @buildnbuzz/form-core to natively support ReactNode in schema labels and descriptions.
    • Re-exported core schema utilities (defineSchema, InferType), types, and common helpers to provide a seamless single-import DX.
    • Updated useResolvedFieldText and useDataField hooks to safely handle and render ReactNode elements.
    • Fixed an infinite recursion bug in resolveDynamicPaths when encountering React elements or internal objects.
    • Moved @buildnbuzz/form-core and @tanstack dependencies to direct dependencies for a "one-line install" experience.
  • Updated dependencies [bdcbbd8]:
    • @buildnbuzz/form-core@0.1.3