Repository navigation
DF-1509: Add a v5 to v6 migration guide - #512
Open
alexluckett wants to merge 3 commits into
Open
alexluckett wants to merge 3 commits into
alexluckett wants to merge 3 commits into
Conversation
A JSDoc type can still mark a property optional, as in a parameter's object type. Only a class field declared in JavaScript is always present.
alexluckett
force-pushed
the
docs/df-1509-v5-to-v6-guide
branch
from
November 25, 2026 09:03
0476ec6 to
66d9e11
Compare
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Proposed change
The last PR of the TypeScript to JavaScript migration (v6), stacked on the components PR, adds
docs/migration-v5-to-v6.mdin the same form as the v4 to v5 guide and links to it fromdocs/reference.md.The guide covers the six changes that applications may need to make, each with who it applies to and why it was needed:
T | undefined, with the full list of classes and fields;@defra/forms-engine-plugin/types, with a before-and-after example for code that used module augmentation;LocationFieldBaseis no longerabstractin the types;SchemaValidationError.causeis enumerable;FileUploadFieldDetailitemhas been renamedFileUploadFieldDetailItem, with a before-and-after import;ADDITIONAL_IDENTIFIERis no longer an enum, with a before-and-after example for code that used one of its members as a type.It also lists the changes to the type declarations that need no action.
Jira ticket: DF-1509
Type of change
Checklist
README.mdanddocs/*(where appropriate, e.g. new features).npm run test).npm run lint).npm run format).