applyHubSettingsMigrations

Function

Apply migrations for Hub Settings

Parameters

Parameter Type Default Notes
settings Required Record<stringany>

Returns

Property Type Notes
schemaVersion number
history Optional IHubHistory

Optional history of sites/content the user has visited

notices Optional {
dismissed:
string[]
}

Track notices the user has dismissed stored as an object so we can add more types in the future

preview Optional {
workspace:
boolean
}

Features that are enabled for the user in preview mode

updated Optional number
username Optional string

Function defined in common/src/utils/internal/siteSettingsMigrations.ts:22