@sjsf/form
@sjsf/form
3.0.0-next.12
Major Changes
-
- Remove
form.valueproperty (#221) - Remove
getSnapshotform option - Add
setValue,getValueSnapshotform methods - Use
ValidationResult<Output>as the return type forvalidateFormValueandvalidateFormValueAsyncmethods
- Remove
-
Introduce
FormValidatortype (#222)
3.0.0-next.11
3.0.0-next.10
Major Changes
-
- Reuse merger options definition in
getDefaultFieldStateparameters (b5a5c86) - Move
includeUndefinedValuesoption from merger instance tomergeFormDataAndSchemaDefaultsmethod options
- Reuse merger options definition in
Patch Changes
-
Disable
clearandclearEditaction buttons for read-only fields and disabled forms (c303125) -
Fix oneOf/anyOf fields (
ed0a797)
3.0.0-next.9
Major Changes
-
Add field actions support (#216)
-
- Add
fields/extra/*submodule (#216) - Remove the
templatesuffix from component names in thetemplates/*submodule - Replace the
fields/resolversubmodule with thethemesubmodule
- Add
-
Distinguish between missing and
undefinedvalues inui:options(#216)
3.0.0-next.8
Major Changes
-
Turn
create*form methods intoqueries(#215) -
Turn
validateandvalidateAsyncmethods into queries (#215) -
Use more fine-grained type augmentation (#215)
3.0.0-next.7
Major Changes
-
Rename
isObjectPrototoisRecordProto(#213) -
Make
eventoptional forform.resetmethod (#213) -
Port https://github.com/rjsf-team/react-jsonschema-form/pull/4490 (#211)
-
Add schema consistency checks during merge (#211)
-
- Change signature of
getSchemaDefinitionByPath(#213) - Remove
getRootSchemaTitleByPathfunction - Change
valueReftype inFieldcomponent from{ value: FieldValue }toRef<FieldValue>
- Change signature of
-
Refactor translation types (#213)
-
Separate state related functions into queries and commands (#211)
Minor Changes
-
Add assert adapters for extra fields (#211)
-
Add
ariahelpers functions (#214) -
Add
HiddenIdPrefixInputform component (#213)
Patch Changes
-
Fix generation of default value for additional property (#211)
-
Fix handling of
dependenciesandif,then,elsekeywords ingetSchemaDefinitionByPathfunction (#213) -
Fix combination field logic (#211)
-
Make
combinationfield SRR friendly (#211) -
Fix deduplication in intersection algorithms (#211)
3.0.0-next.6
Patch Changes
- Remove tracking when calling
updateErrors(b735108)
3.0.0-next.5
Major Changes
-
- Added a required
pathproperty to theConfigtype (#207) - Updated the
JsonPathstype to return a union ofPaths - Replaced the
nameprop withpathin theFieldcomponent
- Added a required
-
Remove generic validator parameter (#207)
-
- Added a new required
createFormparameter:createIdBuilder(#205) - Removed the
idSeparatorandidPseudoSeparatorparameters - Removed the following types:
IdPrefixOptionIdSeparatorOptionIdPseudoSeparatorIdOptionsPathToIdOptions
focus-on-first-errormodule changes:- Updated signatures of
getErrorsListandgetFocusAction - Removed the
GetFocusActionOptionstype
- Updated signatures of
- Added a new required
-
- Replace
idproperty withpathinConfigtype (#209) - Remove
from.errorsproperty - Remove form
errorsbindable option - Replace
idFromPathwithcreateIdfunction - Replace
createChildIdwithcreateChildPathfunction - Replace
getErrorswithgetFieldErrorsfunction - Add
updateErrors,hasErrors,getErrorsfunctions
- Replace
-
Remove
createprefix from creatable form options (#208) -
Change the error type to simple
string(#207) -
Replace the
validateandvalidateAsyncform methods with separate functions (#209)
Minor Changes
- Allow to return update callback from form validator methods (#207)
3.0.0-next.4
Patch Changes
- Fix field state cleanup (
ca11ecb)
3.0.0-next.3
Patch Changes
- Fix SSR rendering (
d60f113)
3.0.0-next.2
Major Changes
-
Bump minimal
svelteversion to5.39.0(#202) -
Add support for nullable schemas (#202)
-
Refactor standard schema validator factory signature (#202)
-
- The
makeEventHandlersfunction signature has been updated (181c3ce) - Added the
hasFieldStatefunction to check a field’s state - The
isSubmittedandisChangedproperties are nowreadonly isSubmittedis reset after successful processing (validation +onSubmithandler)isChangedbecomestrueafter any interaction before the form is submitted or reset
- The
-
Make
itemValueparameter ofItemTitlefunction required (#202) -
Extract handlers application into
handlersAttachmenthelper (#202) -
Remove
@sjsf/form/extra-fields/date-fieldextra field definition (3c90ec2) -
Remove
validatemethod formObjectContextandArrayContextinterfaces (3ac49c9)
Minor Changes
-
Export
createArrayComparatorandascComparatorfunctions (#202) -
Add and implement
collectErrorsUI option fortagsfield (#202) -
Add
aggregatedFieldfield andaggregatedWidgetwidget definition (3100b4d)
Patch Changes
3.0.0-next.1
Major Changes
- Add
unknownschema type (#200)
Minor Changes
-
Allow to extend
SchemaValuetype (#200) -
Add
AsyncFileListValidatorvalidator (#200) -
Add node.js support for
lib/file(#200) -
Add
nativeFile*fields (#200) -
Add
validators/file-sizevalidator (#200)
Patch Changes
- Fix changes propagation in keyed array (
b649510)
3.0.0-next.0
Major Changes
-
- Add
mergeSchemasmethod to theMergerinterface (#177) - Update
resolveAllReferencesand related functions to accept aMergerinstance for schema merging - Make
mergerform option required
- Add
-
Refactor array field context to make it extendable (#198)
-
Refactor
KeyedArrayinterface (#198) -
Refactor object field context to make it extendable (#198)
-
Add
length,setandvalidatemethods toArrayContextinterface (#198) -
Replace
validatorandmergerwith requiredcreateValidatorandcreateMergeroptions. (#177) Consider all options as reactive. -
Remove deprecated code (#196)
-
Replace
FormInternalContextwithFormState(#197)
Minor Changes
-
Add
validateandvalidateAsyncform methods (#198) -
Add
createValidatorandcreateMergerform options for convenient use as defaults values. (#177) Adderrorsoption for creating controlled forms. RenameformHandlerstohandlers.
2.4.0
Minor Changes
-
Add
RefandBindtypes (#190) -
Export mergers from
form/mergers(#191) -
Add
json-schema,math,ord,traverserlibs, newarrayfunctions (#191)
2.3.0
Minor Changes
-
Pass item value to
itemTitlefunction (#178) -
Add
keyedArraysMapform option (#180) -
Add
keyedArrayoption tocreateArrayContext,createTupleContextfunctions. (#182)
Patch Changes
-
Port https://github.com/rjsf-team/react-jsonschema-form/pull/4757 (
8772516) -
Fix population of missing tuple items (
66ca1a5) -
Port https://github.com/rjsf-team/react-jsonschema-form/pull/4745 (
123fc70)
2.2.4
Patch Changes
- Revert “[form] Preserve array keys by injecting default values instead of state replacing” (
bab9bce)
2.2.3
Patch Changes
-
Fix omitting dependency arrays in the schema transformer (
8be9383) -
Preserve array keys by injecting default values instead of state replacing (#170)
2.2.2
2.2.1
Patch Changes
-
Port https://github.com/rjsf-team/react-jsonschema-form/pull/4710 (
9cf65bd) -
Deprecate
from.contextproperty (#159)
2.2.0
Minor Changes
Patch Changes
- Migrate to
task.sveltelib (803d56d)
2.1.2
Patch Changes
-
Clarify the empty field name warning in the
Fieldcomponent (35afc7b) -
Fix display of custom enum names in
booleanSelectField(f2f1cbc)
2.1.1
2.1.0
2.0.2
Patch Changes
-
Port https://github.com/rjsf-team/react-jsonschema-form/pull/4665 (
d06b974) -
Fix generation of
d.tsfile forFieldcomponent (e9f95fe) -
Remove the use of
effect.preto set the object’s default values (#138)
2.0.1
Patch Changes
2.0.0
Major Changes
-
Add support for
$refin UI schema (#100) -
Add
labelcomponent (b215668) -
Remove
lib/deep-equalsubmodule (3f780ca) -
Add
useLabelproperty for thefieldTemplatecomponent (e8eaae3) -
Extract array field logic into
createArrayContextfunction (99b77fb) -
Remove
forIdfrom theerrorListcomponent props (f6588ff) -
Remove
uiOptionsproperty fromConfig(#100) -
Bump peer and dev dependencies (
21e47cc) -
Rename
fields/extra-widgets/file-widgettofields/extra-widgets/file(d75d847) -
Remove
nameproperty fromConfig(1da5c84) -
Make
checkboxesandfilewidgets optional (8fa706b) -
Replace
asyncProxywithcreateAsyncBinding(#119) -
Refactor action logic: (
8606f26)- Remove
debouncecombinator - Add
untrackcombinator result
- Remove
-
The
DefaultFormMergerclass has been replaced by thecreateFormMergerfactory. (43c86da) -
Update
initialValuetype inFormOptionsto bePartial<T>(#135) -
Rename
FoundationalComponenttoFoundationalComponentType(9ca2d7f) -
Relax component compatibility checks. (
cb176ac) Add atypediscriminator for field, template, and widget properties. RemoveEqualandExpandAndEqualtypes fromlib/types -
Remove
use-mutationsubmodule (c616f00) -
Remove
proxyfunction fromlib/svelte.svelte(1138f61) -
Migrate to
resolverbased providers (dfd96e7) -
Bump svelte to 5.25.0, relax patch versions of peer dependencies. (
33fcab1) -
Refactor form API: (
daabc32)- Renames:
form.validation->form.submissionvalidationCombinator->submissionCombinatorvalidationDelayedMs->submissionDelayedMsvalidationTimeoutMs->submissionTimeoutMs
form.submitnow returnsvoid
- Renames:
-
Add support for extra attributes in input, textarea, and select attribute functions (
ef7ea00) -
Move
checkboxesandfilewidgets to extra folder (701c3fc) -
Remove the UI options
submitButtonTextandadditionalPropertyKeyPrefixin favor of the newtranslationsoption. (f30da6d) -
Fix https://github.com/x0k/svelte-jsonschema-form/issues/103 (
1c75328)Renames in the following submodules:
@sjsf/form/fields/array/*@sjsf/form/fields/object/*@sjsf/form/templates/*
-
Remove
legacy-omit-extra-datasubmodule (3c865f3) -
Refactor action logic: (
d958dfc)runmethods now returnsvoid- Added
runAsyncmethod that returnsPromise<R> - Fixed
state_referenced_locallywarning
-
Remove
asSnippetfunction (a9dc859) -
Rename
FormTagtoForm(#100) -
Rename
setFromContexttosetFormContext(e9a861b) -
Remove
UiSchemaRootContenttype (49e4b89) -
Extract object field logic into
createObjectContextfunction (73ee1fb) -
Add support for
patternPropertieskeyword (162b001) -
Rename submodule
prevent-data-losstoprevent-page-reload(1ae4972) -
Replace action
Statusenum with string literals (5e85a87) -
Remove
validateandvalidateAsyncform state methods (#130) -
Remove
AnyKeytype (d569453) -
Migrate to a new
Validatortype model (dfd96e7) -
Remove
requiredandforIdfrom thetitlecomponent props (52676ca) -
Remove
getValueByPathfunction (1516c2d)
Minor Changes
-
Add
fromFactoriesfunction tolib/resolver(61b8dab) -
Add
tagsFieldextra field andtagsWidgetextra widget definition (cff3574) -
Add
envlib (#71) -
Add combobox widget type (
4abf5d6) -
The
getValueByPathfunction has been returned. (f37bf4a) -
Add
csslib (#71) -
Add
extraUiOptionsproperty to form options (1a552e8) -
Pass
widgetTypeproperty to thefieldTemplatecomponent (749a333) -
Add
useDatePickerForDateFormatfunction tofields/extra-widgets/date-picker(768f8c2) -
Use
untrackinside the followingActionmethods:run,runAsync, andabort. (5206095) -
Export
JsonPathstype form@sjsf/form/lib/types(#135) -
Add
getSchemaDefinitionByPathfunction (eb9ad24) -
Add
validators/precompilesubmodule (9882dd8) -
Add
Fieldcomponent (#135) -
Add
lib/componentsubmodule (#100) -
Add
matchesmethod toActionfor type narrowing (f626bd8) -
Add
arraySubSchemasMergeTypeoption formergeSchemasfunction (b2c896b) -
Add
getUiSchemaByPathfunction (283d6de) -
Add
resolverlib (d5c93c3) -
Add options parameter to
createFormMergerfactory (0bcf9c6) -
Add support for
discriminatorschema property (f6fd57c) -
Add standard schema form value validator (
c43eb93) -
Add
registryform option (#100) -
Add function
getRootSchemaTitleByPath(84f9ff9)
Patch Changes
-
Port https://github.com/rjsf-team/react-jsonschema-form/pull/4617 (
38ae583) -
Fix https://github.com/x0k/svelte-jsonschema-form/issues/72 (
f1c6d71) -
Port https://github.com/rjsf-team/react-jsonschema-form/pull/4644 (
00a1ea1) -
Refactor async logic in file fields (#118)
-
Port https://github.com/rjsf-team/react-jsonschema-form/pull/4637 (
ba140fb) -
Improve focusable element detection (
ebb8315) -
Fix theme resolver type (
b1221f9) -
Port https://github.com/rjsf-team/react-jsonschema-form/pull/4570 (#100)
-
Port https://github.com/rjsf-team/react-jsonschema-form/pull/4600 (
1e641de) -
Refactor matching logic to improve validation performance and accuracy (
69535c3) -
Fixed
enumFieldrecognition incompatresolver (6f4942b) -
Fix type of
fieldsresolver (8f33350) -
Port https://github.com/rjsf-team/react-jsonschema-form/pull/4626 (
50c357a)
2.0.0-next.15
Major Changes
Patch Changes
-
Port https://github.com/rjsf-team/react-jsonschema-form/pull/4644 (
00a1ea1) -
Refactor async logic in file fields (#118)
-
Port https://github.com/rjsf-team/react-jsonschema-form/pull/4637 (
ba140fb)
2.0.0-next.14
2.0.0-next.13
2.0.0-next.12
Major Changes
-
Remove the UI options
submitButtonTextandadditionalPropertyKeyPrefixin favor of the newtranslationsoption. (f30da6d) -
Fix https://github.com/x0k/svelte-jsonschema-form/issues/103 (
1c75328)Renames in the following submodules:
@sjsf/form/fields/array/*@sjsf/form/fields/object/*@sjsf/form/templates/*
Patch Changes
-
Port https://github.com/rjsf-team/react-jsonschema-form/pull/4617 (
38ae583) -
Port https://github.com/rjsf-team/react-jsonschema-form/pull/4600 (
1e641de) -
Port https://github.com/rjsf-team/react-jsonschema-form/pull/4626 (
50c357a)
2.0.0-next.11
Major Changes
- Add support for
patternPropertieskeyword (162b001)
Minor Changes
- Add support for
discriminatorschema property (f6fd57c)
2.0.0-next.10
Major Changes
-
Add support for
$refin UI schema (#100) -
Remove
uiOptionsproperty fromConfig(#100) -
Rename
FormTagtoForm(#100)
Minor Changes
Patch Changes
2.0.0-next.9
Major Changes
-
Extract array field logic into
createArrayContextfunction (99b77fb) -
Extract object field logic into
createObjectContextfunction (73ee1fb)
Minor Changes
-
Add
validators/precompilesubmodule (9882dd8) -
Add
arraySubSchemasMergeTypeoption formergeSchemasfunction (b2c896b)
2.0.0-next.8
Major Changes
-
Rename
fields/extra-widgets/file-widgettofields/extra-widgets/file(d75d847) -
Rename
FoundationalComponenttoFoundationalComponentType(9ca2d7f) -
Relax component compatibility checks. (
cb176ac) Add atypediscriminator for field, template, and widget properties. RemoveEqualandExpandAndEqualtypes fromlib/types -
Add support for extra attributes in input, textarea, and select attribute functions (
ef7ea00) -
Remove
UiSchemaRootContenttype (49e4b89)
Minor Changes
-
Add
fromFactoriesfunction tolib/resolver(61b8dab) -
Add
tagsFieldextra field andtagsWidgetextra widget definition (cff3574) -
Add
extraUiOptionsproperty to form options (1a552e8) -
Add
useDatePickerForDateFormatfunction tofields/extra-widgets/date-picker(768f8c2)
2.0.0-next.7
Major Changes
-
Add
labelcomponent (b215668) -
Add
useLabelproperty for thefieldTemplatecomponent (e8eaae3) -
Remove
forIdfrom theerrorListcomponent props (f6588ff) -
Remove
proxyfunction fromlib/svelte.svelte(1138f61) -
Remove
requiredandforIdfrom thetitlecomponent props (52676ca)
Minor Changes
- Pass
widgetTypeproperty to thefieldTemplatecomponent (749a333)
Patch Changes
2.0.0-next.6
Patch Changes
- Fixed
enumFieldrecognition incompatresolver (6f4942b)
2.0.0-next.5
Major Changes
- Bump svelte to 5.25.0, relax patch versions of peer dependencies. (
33fcab1)
Patch Changes
- Refactor matching logic to improve validation performance and accuracy (
69535c3)
2.0.0-next.4
Minor Changes
-
The
getValueByPathfunction has been returned. (f37bf4a) -
Add standard schema form value validator (
c43eb93) -
Add function
getRootSchemaTitleByPath(84f9ff9)
2.0.0-next.3
Major Changes
-
The
DefaultFormMergerclass has been replaced by thecreateFormMergerfactory. (#83) -
Remove
AnyKeytype (#83) -
Remove
getValueByPathfunction (#83)
Minor Changes
-
Add
getSchemaDefinitionByPathfunction (#83) -
Add
getUiSchemaByPathfunction (#83) -
Add options parameter to
createFormMergerfactory (0bcf9c6)
2.0.0-next.2
2.0.0-next.1
Major Changes
-
Make
checkboxesandfilewidgets optional (#81) -
Move
checkboxesandfilewidgets to extra folder (#81)
Patch Changes
2.0.0-next.0
Major Changes
-
Remove
lib/deep-equalsubmodule (#78) -
Remove
use-mutationsubmodule (#78) -
Migrate to
resolverbased providers (#78) -
Remove
legacy-omit-extra-datasubmodule (#78) -
Remove
asSnippetfunction (#78) -
Rename submodule
prevent-data-losstoprevent-page-reload(#78) -
Migrate to a new
Validatortype model (#78)
Minor Changes
1.9.2
Patch Changes
-
Port https://github.com/rjsf-team/react-jsonschema-form/pull/4461 (#69)
-
Port https://github.com/rjsf-team/react-jsonschema-form/pull/4462 (#70)
1.9.1
Patch Changes
- Use keyed array inside an array field to preserve items state (#65)
1.9.0
Minor Changes
-
Add omit extra data submodule (#56)
-
Add create action submodule (#61)
-
Add
fake-validatorsubmodule (#60) -
Add
FormElement,RawForm,Form2components (#60)
Patch Changes
-
Fix nested additional properties id’s inference (#62)
-
Port https://github.com/rjsf-team/react-jsonschema-form/pull/4388 (#58)
-
Port https://github.com/rjsf-team/react-jsonschema-form/pull/4425 fix (#59)
1.8.0
Minor Changes
-
Add
isSchemaValueDeepEqualandisSchemaDeepEqualfunctions (#55) -
Add
createForm3function (#54)Migration
- Replace
useForm2withcreateForm3. - If custom form is used it should call
setFormContext(form.context)before usingFormContentandSubmitButtoncomponents.
- Replace
Patch Changes
1.7.0
Minor Changes
-
Add
constAsDefaultsoption to get default form state function. (#34)This is a port of this PR Adding feature to support const as default bug fix seeming like a regression.
-
Pass arguments of
mutation.runto theonSuccessandonFailurehandlers. (#39) -
Add
lib/memoizesubmodule (#36) -
Implement array and object fields revalidation (#41)
-
Add support for async validation (#39)
-
Add
debounceandthrottlemutation combinators (#39)
Patch Changes
-
Fix
arraybased inputs validation (#40) -
Do not consider
constinreadonlyattribute calculation. (#34)
1.6.1
Patch Changes
- Port fix for
getArrayDefaults(753a8bd)
1.6.0
Minor Changes
1.5.1
Patch Changes
-
d8b4211Thanks @x0k! - Fix multi-field selectorThis is not a proper fix (array of multi-fields is still broken) but it’s a good place to start.
1.5.0
Minor Changes
-
#26
c75aa31Thanks @x0k! - AddpreventDataLossfunction for handlingbeforeunloadevent -
#26
dad20e1Thanks @x0k! - Allow to pass multiple arguments tomutation.runmethod -
#26
a6606d1Thanks @x0k! - Add form optionpseudoIdSeparator
Patch Changes
-
#26
34b2481Thanks @x0k! - Changed the value ofDEFAULT_ID_SEPARATORThis change may be a BREAKING change for you if you code implicitly depends on this constant.
-
#26
89a3e04Thanks @x0k! - Remove forcedundefinedforvalueinonSubmithandler of the form -
#26
0084022Thanks @x0k! - Allow to pass aMapandArrayto theinitialErrorsform option
1.4.0
Minor Changes
-
56a406aThanks @x0k! - AddisChangedproperty to the from state -
5ac9c3fThanks @x0k! - AddupdateErrorsByPathmethod to theFormState -
d0d7d36Thanks @x0k! - Addsubmitandresetmethods to theFormState
1.3.0
Minor Changes
-
fe35ad2Thanks @x0k! - Reset form value in default reset handler -
#22
6144b9aThanks @x0k! - ImplementuseFormAPI, AddFormContentandSubmitButtoncomponents -
e2c9d61Thanks @x0k! - Allow to augmentInputAttributestype
Patch Changes
-
23f37abThanks @x0k! - Port a bunch of fixes forgetDefaultFormState: -
b88b944Thanks @x0k! - Use the stricterComputeDefaultsProps2type
1.2.0
Patch Changes
1.1.2
Patch Changes
1.1.1
Patch Changes
1.1.0
Minor Changes
Patch Changes
-
#16
81b6952Thanks @x0k! - Port fix ofgetClosestMatchingOptionto improve the scoring of sub-property objects -
2e08cd4Thanks @x0k! - Make fields ofconstproperty readonly
1.0.0
Major Changes
0.2.7
Patch Changes
0.2.6
Patch Changes
0.2.5
Patch Changes
0.2.4
Patch Changes
0.2.3
0.2.2
Patch Changes
0.2.1
Patch Changes
0.2.0
Minor Changes
0.1.0
Minor Changes
0.0.6
Patch Changes
0.0.5
Patch Changes
0.0.4
Patch Changes
-
8c337bbThanks @x0k! - Removescheduler-polyfilldue SSR errors -
ae990a7Thanks @x0k! - Move options mapping helpers toformpackage -
7d0cd8aThanks @x0k! - Move datalist creation logic to form fields