Skip to content

Commit

Permalink
fix(bin): add migrations for v8.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
RealShadowNova committed May 27, 2023
1 parent 20daac8 commit 4a583d5
Showing 1 changed file with 61 additions and 9 deletions.
70 changes: 61 additions & 9 deletions src/bin/lib/migrateProjectJson.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,11 @@ export function migrateProjectJson(

case '8.0.0':

case '8.0.1': {
case '8.0.1':

case '8.1.0':

case '8.1.1': {
const { variables } = projectJson as Migration.MajorSix.MinorZero.ProjectJson;

return {
Expand Down Expand Up @@ -310,7 +314,11 @@ function migrateClassJson(

case '8.0.0':

case '8.0.1': {
case '8.0.1':

case '8.1.0':

case '8.1.1': {
const { typeParameters, construct } = classJson as Migration.MajorSeven.MinorTwo.ClassJson;

return {
Expand Down Expand Up @@ -460,7 +468,11 @@ function migrateEnum(

case '8.0.0':

case '8.0.1': {
case '8.0.1':

case '8.1.0':

case '8.1.1': {
const { members } = enumJson as Migration.MajorSix.MinorZero.EnumJson;

return {
Expand Down Expand Up @@ -555,6 +567,10 @@ function migrateFunction(
case '8.0.0':

case '8.0.1':

case '8.1.0':

case '8.1.1':
return {
id,
name,
Expand Down Expand Up @@ -694,7 +710,11 @@ function migrateInterface(

case '8.0.0':

case '8.0.1': {
case '8.0.1':

case '8.1.0':

case '8.1.1': {
const { typeParameters, methods } = interfaceJson as Migration.MajorSeven.MinorOne.InterfaceJson;

return {
Expand Down Expand Up @@ -819,7 +839,11 @@ function migrateNamespace(

case '8.0.0':

case '8.0.1': {
case '8.0.1':

case '8.1.0':

case '8.1.1': {
const { variables } = namespaceJson as Migration.MajorSix.MinorZero.NamespaceJson;

return {
Expand Down Expand Up @@ -905,6 +929,10 @@ function migrateTypeAlias(
case '8.0.0':

case '8.0.1':

case '8.1.0':

case '8.1.1':
return {
id,
name,
Expand Down Expand Up @@ -979,6 +1007,10 @@ function migrateVariable(
case '8.0.0':

case '8.0.1':

case '8.1.0':

case '8.1.1':
return {
id,
name,
Expand Down Expand Up @@ -1057,7 +1089,11 @@ function migrateSourceJson(

case '8.0.0':

case '8.0.1': {
case '8.0.1':

case '8.1.0':

case '8.1.1': {
const { url } = sourceJson as Migration.MajorThree.MinorZero.Misc.SourceJson;

return {
Expand Down Expand Up @@ -1167,7 +1203,11 @@ function migrateParameterJson(

case '8.0.0':

case '8.0.1': {
case '8.0.1':

case '8.1.0':

case '8.1.1': {
const { comment, rest, optional } = parameterJson as Migration.MajorSeven.MinorTwo.Misc.ParameterJson;

return { id, name, comment, rest, optional, type: migrateTypeJson(type, typeDocJsonParserVersion) };
Expand Down Expand Up @@ -1248,7 +1288,11 @@ function migrateSignatureJson(

case '8.0.0':

case '8.0.1': {
case '8.0.1':

case '8.1.0':

case '8.1.1': {
const { comment } = signatureJson as Migration.MajorTwo.MinorThree.Misc.SignatureJson;

return {
Expand Down Expand Up @@ -1331,7 +1375,11 @@ function migrateTypeParameterJson(

case '8.0.0':

case '8.0.1': {
case '8.0.1':

case '8.1.0':

case '8.1.1': {
const { constraint } = typeParameterJson as Migration.MajorSeven.MinorZero.Misc.TypeParameterJson;

return {
Expand Down Expand Up @@ -1416,6 +1464,10 @@ export function migrateTypeJson(typeJson: Migration.MajorTwo.MinorOne.TypeJson,
case '8.0.0':

case '8.0.1':

case '8.1.0':

case '8.1.1':
return typeJson;
}

Expand Down

0 comments on commit 4a583d5

Please sign in to comment.