Skip to content

Latest commit

 

History

History
208 lines (109 loc) · 10.7 KB

CHANGELOG.md

File metadata and controls

208 lines (109 loc) · 10.7 KB

0.10.0-beta.0 (2024-06-20)

Adds modify utility for better customizations (#75)

0.9.1-beta.0 (2024-03-26)

Bug Fixes
  • select/radio: Allow numbers in oneOf (#49) (04c2598a)

0.9.0-beta.0 (2024-03-11)

Breaking changes
  • Rename value -> forcedValue. This is in regards to the json-logic, where a "forced value" will now be returned in each relevant field (i.e. fields where the schema const and default are the same) with forcedValue over value. (#66) (77c445a9)

0.8.2-beta.0 (2024-02-13)

Bug Fixes
  • helpers: getFieldOptions - return empty array if oneOf missing in radio (#67) (6511330f)

0.8.1-beta.0 (2024-02-12)

Bug Fixes
  • conditionals: Certain conditions in a JSON schema were failing. This bugfix adds missing field context to the evaluation to prevent the error. (#65) (6755a2fd)

0.8.0-beta.0 (2024-02-01)

Bug Fixes
  • fieldset: Support customProperties with sub-fields clashing with reserved words. (#64) (8340cdea)

0.7.6-beta.0 (2024-01-23)

Chores

BREAKING CHANGES:

  • select: Remove creatable logic (#62) (0a6273c6) Added in 0.7.1

0.7.5-beta.0 (2023-11-15)

Chores
  • Follow-up of #57. Ignore internal attributes from conditional attributes removal (visibilityCondition) (#59) (57fe4468)

0.7.4-beta.0 (2023-11-07)

Chores
  • Follow-up of #57. Ignore internal attributes from conditional attributes removal (Component, calculateDynamicProperties) (#58) (ee762c2e)

0.7.3-beta.0 (2023-11-07)

Bug Fixes
  • Remove conditional attributes after the condition is unmatched (#57) (8bac7145)

0.7.2-beta.0 (2023-11-06)

Bug Fixes
  • select/radio: Support oneOf[].pattern validation (#47) (5a4bb592)

0.7.1-beta.0 (2023-10-31)

Bug Fixes

0.7.0-beta.0 (2023-10-23)

Chores

BREAKING CHANGES:

  • Description/Extra/Statement fields: We have removed the sorrounding spans that we output in these fields (#17) (6257533)
-description: '<span class="jsf-description">Write in <b>hh:ss</b> format</span>',
+description: 'Write in <b>hh:ss</b> format',

0.6.6-beta.0 (2023-10-17)

Chores
  • github: Add template for issues and pull requests (#45) (621e3338)
Bug Fixes

0.6.5-beta.0 (2023-09-18)

Changes
  • json-logic: Add conditional logic checking. (#41) (6292b01e)
Full API additions now supported from 0.6.5 onwards.
  • New custom JSON Schema keyword x-jsf-logic added to support cross-field validations. Built on top of JsonLogic.

  • x-jsf-logic can contain:

    • validations - JsonLogic rules that validate fields and return booleans
    • computedValues - JsonLogic rules that compute dynamic values
    • allOf.if/then/else - Conditional logic using validations and computedValues
  • New property x-jsf-logic-validations added to individual schema properties. Lists the validation names that should run on that property.

  • New property x-jsf-logic-computedAttrs added to individual schema properties. Allows computed values to be used for attributes like title, description, const, etc.

  • Computed values and validations defined in x-jsf-logic can reference schema properties using vars and any syntax supported from JsonLogic.

  • Conditional logic blocks allow selectively requiring fields or applying attributes based on validations/computed values.

While docs are underway, you can read examples from all the tests along with the sample schemas.

In short: x-jsf-logic is added to support complex conditional cross-field validations. Properties like x-jsf-logic-validations allow hooking those up to individual fields.

0.6.4-beta.0 (2023-09-15)

Changes
  • json-logic: computedAttrs - handle inline rules (#40) (860ad91b)

0.6.1-beta.0 (2023-09-13)

Changes
  • json-logic: Computed string based values (#37) (6e042ea5)

0.5.0-beta.0 (2023-09-12)

Changes
  • json-logic: Computed Attributes (#36) (80c29589)
  • json-logic: Initial skeleton implementation (#35) (63149ae8)

0.4.5-beta.0 (2023-08-31)

Bug fixes

0.4.4-beta.0 (2023-08-30)

Chores
  • fieldset: ignore values not matching the field type (#44) (f0af54e5)

0.4.3-beta.0 (2023-08-09)

Bug fixes
  • conditions: Validate a deeply nested if (e.g. checking an object with a number property) in an if property now doesn't break the form. (#33) (e34cfcc)

0.4.2-beta.0 (2023-07-20)

Bug Fixes
  • date: Validate based on minDate and maxDate (#30) (01c0143e)

0.4.1-beta.0 (2023-07-03)

Bug Fixes
  • fieldset: support root conditionals for fieldsets (#23) (65d87b3a)
  • select/radio: Accept just the values in options (plus '' and null for backward-compatibility) (#18) (37501d2d)

0.4.0-beta.0 (2023-06-22)

New Features

BREAKING CHANGES:

  • Radio/Select: In each option, spread x-jsf-presentation value to option root (#17) (367688c2)

0.3.0-beta.0 (2023-06-21)

Fixes
  • Text: Fix validation to only accept strings (#12) (00017c0)
Chores

0.2.0-beta.0 (2023-06-20)

New Features
  • Add Typescript declarations to the library (2404188c)
Fixes
Chores
  • Add json-schema-form meta schema (#6) (414a5fe2)

0.1.0-beta.0 (2023-05-18)

New Features