- Use type: 'module' for service worker registrations
- Add dirty() property to form fields
- Add cookies.parse method
- Add field.touched() helper to remote form fields
- Return no content for 204 responses
- Form action responses now use the HTTP status code returned from fail
- Nested server-only directories
- Add kit.paths.origin config option, remove kit.prerender.origin and the adapter-node ORIGIN environment variable
- Don't abort navigation when calling invalidate(All) during navigation
- Allow handleError to influence status code
- Forbid external redirects by default
- Experimental remote form validate({ includeUntouched }) option is now all
- Drain unconsumed request bodies so keep-alive connections don't hang
- Properly handle Date objects in form.fields.set
- Skip clean fields when programmatically validating forms
- Return undefined from fields.branch.issues() when only fields.branch.leaf has issues
Major Changes
-
breaking: return no content for 204 responses (#16200)
-
breaking: form action responses now use the HTTP status code returned from
fail(#16200) -
breaking: nested server-only directories (#15685)
-
breaking: add
kit.paths.originconfig option, removekit.prerender.originand theadapter-nodeORIGINenvironment variable (#16161) -
breaking: don't abort navigation when calling
invalidate(All)during navigation (#16188) -
breaking: allow
handleErrorto influence status code (#16162) -
breaking: forbid external redirects by default (#16198)
Minor Changes
-
feat: use
type: 'module'for service worker registrations (#16169) -
feat: add
dirty()property to form fields (#16208) -
feat: add
cookies.parsemethod (#16203)
Patch Changes
-
fix: drain unconsumed request bodies so keep-alive connections don't hang (#16170)
-
fix: properly handle Date objects in form.fields.set (#16168)
-
fix: skip clean fields when programmatically validating forms (#16208)
-
breaking: experimental remote form
validate({ includeUntouched })option is nowall(#16208) -
fix: return
undefinedfromfields.branch.issues()when onlyfields.branch.leafhas issues (#16187) -
feat: add field.touched() helper to remote form fields (#14692)