1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Bump to v4

Preparing for adding support to v3.5 and above
This commit is contained in:
Zhiyuan Zheng
2022-04-28 22:52:47 +02:00
parent 1995f32dfd
commit bceb70e805
8 changed files with 111 additions and 96 deletions

View File

@ -4,6 +4,7 @@ import { InstanceV5 } from './v5'
import { InstanceV6 } from './v6'
import { InstanceV7 } from './v7'
import { InstanceV8 } from './v8'
import { InstanceV9 } from './v9'
const instancesMigration = {
4: (state: InstanceV3): InstanceV4 => {
@ -87,6 +88,17 @@ const instancesMigration = {
}
})
}
},
9: (state: InstanceV8): { instances: InstanceV9[] } => {
return {
// @ts-ignore
instances: state.instances.map(instance => {
return {
...instance,
version: '0'
}
})
}
}
}