current
@sjsf/form
-
Replace
<FormContent bind:value={form.formValue} />
with<Content {form} />
from@sjsf/form
package -
Replace
SimpleForm
withRawForm
from@sjsf/form
package- In most cases you may remove additional styles/classes because
RawForm
uses styled form element from your theme
- In most cases you may remove additional styles/classes because
-
Replace
submitButton: <uiSchema>
with"ui:submitButton": <uiSchema>
in the definitions ofUiSchemaRoot
-
Replace
import { useMutation } from "@sjsf/form/use-mutation.svelte"
withimport { createAction } from "@sjsf/form/create-action.svelte"
mutate
is renamed toexecute
-
Replace
import { omitExtraData2 } from "@sjsf/form/legacy-omit-extra-data"
withimport { omitExtraData } from "@sjsf/form/omit-extra-data"
@sjsf/sveltekit
-
Upgrade SvelteKit package at least up to
2.12.0
-
Migrate from
meta
anduseSvelteKitForm
tocreateMeta
,createSvelteKitRequest
andcreateSvelteKitForm
- In simple cases you may use only
createMeta
andSvelteKitForm
component
- In simple cases you may use only
-
Migrate from
validateForm
tovalidateForm2
(support async validators)
1.8.0
@sjsf/form
-
Replace
useForm2
withcreateForm3
-
If custom form is used it should call
setFormContext(form.context)
before usingFormContent
andSubmitButton
components.