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.
This major release upgrades TypeScript from 3.5.3 to 4.8.4 (#6346). It is intended to be as non-breaking as possible, but it technically has breaking changes for users of
typescript<4.4
. All other users should be unaffected.When compiling projects that depend on TFJS with
typescript<4.4
, the following error will appear.This can be fixed by upgrading TypeScript to 4.4.2 or greater, or by adding the file
predefined_color_space.d.ts
(name and path can be changed) with the following contents to your project to define the missing type. If this file is added, it will need to be removed when TypeScript is upgraded past 4.3.typescript<3.7
has the following additional error.Enabling
skipLibCheck
suppresses this error, and upgrading to at least TypeScript 3.6.2 fixes it (although the above fix forPredefinedColorSpace
will also need to be applied).To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.
This change is