Skip to content

Commit

Permalink
typetests cleanup. (#11025)
Browse files Browse the repository at this point in the history
  • Loading branch information
sashasimic committed Jul 8, 2022
1 parent 8cae6d8 commit ccaa7a2
Show file tree
Hide file tree
Showing 72 changed files with 1,686 additions and 1,166 deletions.
1,848 changes: 935 additions & 913 deletions lerna-package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions packages/common/container-definitions/package.json
Expand Up @@ -47,7 +47,7 @@
"devDependencies": {
"@fluidframework/build-common": "^0.24.0",
"@fluidframework/build-tools": "^0.2.74327",
"@fluidframework/container-definitions-previous": "npm:@fluidframework/container-definitions@1.1.0",
"@fluidframework/container-definitions-previous": "npm:@fluidframework/container-definitions@^1.2.0",
"@fluidframework/eslint-config-fluid": "^0.28.2000",
"@microsoft/api-extractor": "^7.22.2",
"@rushstack/eslint-config": "^2.5.1",
Expand All @@ -60,7 +60,7 @@
"typescript-formatter": "7.1.0"
},
"typeValidation": {
"version": "1.2.0",
"version": "1.3.0",
"broken": {}
}
}
}
6 changes: 3 additions & 3 deletions packages/common/core-interfaces/package.json
Expand Up @@ -40,7 +40,7 @@
"devDependencies": {
"@fluidframework/build-common": "^0.24.0",
"@fluidframework/build-tools": "^0.2.74327",
"@fluidframework/core-interfaces-previous": "npm:@fluidframework/core-interfaces@1.1.0",
"@fluidframework/core-interfaces-previous": "npm:@fluidframework/core-interfaces@^1.2.0",
"@fluidframework/eslint-config-fluid": "^0.28.2000",
"@microsoft/api-extractor": "^7.22.2",
"@rushstack/eslint-config": "^2.5.1",
Expand All @@ -53,7 +53,7 @@
"typescript-formatter": "7.1.0"
},
"typeValidation": {
"version": "1.2.0",
"version": "1.3.0",
"broken": {}
}
}
}
30 changes: 4 additions & 26 deletions packages/common/driver-definitions/package.json
Expand Up @@ -44,7 +44,7 @@
"devDependencies": {
"@fluidframework/build-common": "^0.24.0",
"@fluidframework/build-tools": "^0.2.74327",
"@fluidframework/driver-definitions-previous": "npm:@fluidframework/driver-definitions@1.1.0",
"@fluidframework/driver-definitions-previous": "npm:@fluidframework/driver-definitions@^1.2.0",
"@fluidframework/eslint-config-fluid": "^0.28.2000",
"@microsoft/api-extractor": "^7.22.2",
"@rushstack/eslint-config": "^2.5.1",
Expand All @@ -56,29 +56,7 @@
"typescript-formatter": "7.1.0"
},
"typeValidation": {
"version": "1.2.0",
"broken": {
"TypeAliasDeclaration_DriverError": {
"backCompat": false
},
"EnumDeclaration_DriverErrorType": {
"backCompat": false
},
"InterfaceDeclaration_IDriverBasicError": {
"backCompat": false
},
"InterfaceDeclaration_IGenericNetworkError": {
"backCompat": false
},
"InterfaceDeclaration_IDriverErrorBase": {
"backCompat": false
},
"InterfaceDeclaration_IThrottlingWarning": {
"backCompat": false
},
"InterfaceDeclaration_IAuthorizationError": {
"backCompat": false
}
}
"version": "1.3.0",
"broken": {}
}
}
}
Expand Up @@ -35,7 +35,6 @@ declare function get_current_TypeAliasDeclaration_DriverError():
declare function use_old_TypeAliasDeclaration_DriverError(
use: TypeOnly<old.DriverError>);
use_old_TypeAliasDeclaration_DriverError(
// @ts-expect-error compatibility expected to be broken
get_current_TypeAliasDeclaration_DriverError());

/*
Expand All @@ -60,7 +59,6 @@ declare function get_current_EnumDeclaration_DriverErrorType():
declare function use_old_EnumDeclaration_DriverErrorType(
use: TypeOnly<old.DriverErrorType>);
use_old_EnumDeclaration_DriverErrorType(
// @ts-expect-error compatibility expected to be broken
get_current_EnumDeclaration_DriverErrorType());

/*
Expand Down Expand Up @@ -133,7 +131,6 @@ declare function get_current_InterfaceDeclaration_IAuthorizationError():
declare function use_old_InterfaceDeclaration_IAuthorizationError(
use: TypeOnly<old.IAuthorizationError>);
use_old_InterfaceDeclaration_IAuthorizationError(
// @ts-expect-error compatibility expected to be broken
get_current_InterfaceDeclaration_IAuthorizationError());

/*
Expand Down Expand Up @@ -422,7 +419,6 @@ declare function get_current_InterfaceDeclaration_IDriverBasicError():
declare function use_old_InterfaceDeclaration_IDriverBasicError(
use: TypeOnly<old.IDriverBasicError>);
use_old_InterfaceDeclaration_IDriverBasicError(
// @ts-expect-error compatibility expected to be broken
get_current_InterfaceDeclaration_IDriverBasicError());

/*
Expand All @@ -447,7 +443,6 @@ declare function get_current_InterfaceDeclaration_IDriverErrorBase():
declare function use_old_InterfaceDeclaration_IDriverErrorBase(
use: TypeOnly<old.IDriverErrorBase>);
use_old_InterfaceDeclaration_IDriverErrorBase(
// @ts-expect-error compatibility expected to be broken
get_current_InterfaceDeclaration_IDriverErrorBase());

/*
Expand Down Expand Up @@ -520,9 +515,32 @@ declare function get_current_InterfaceDeclaration_IGenericNetworkError():
declare function use_old_InterfaceDeclaration_IGenericNetworkError(
use: TypeOnly<old.IGenericNetworkError>);
use_old_InterfaceDeclaration_IGenericNetworkError(
// @ts-expect-error compatibility expected to be broken
get_current_InterfaceDeclaration_IGenericNetworkError());

/*
* Validate forward compat by using old type in place of current type
* If breaking change required, add in package.json under typeValidation.broken:
* "InterfaceDeclaration_ILocationRedirectionError": {"forwardCompat": false}
*/
declare function get_old_InterfaceDeclaration_ILocationRedirectionError():
TypeOnly<old.ILocationRedirectionError>;
declare function use_current_InterfaceDeclaration_ILocationRedirectionError(
use: TypeOnly<current.ILocationRedirectionError>);
use_current_InterfaceDeclaration_ILocationRedirectionError(
get_old_InterfaceDeclaration_ILocationRedirectionError());

/*
* Validate back compat by using current type in place of old type
* If breaking change required, add in package.json under typeValidation.broken:
* "InterfaceDeclaration_ILocationRedirectionError": {"backCompat": false}
*/
declare function get_current_InterfaceDeclaration_ILocationRedirectionError():
TypeOnly<current.ILocationRedirectionError>;
declare function use_old_InterfaceDeclaration_ILocationRedirectionError(
use: TypeOnly<old.ILocationRedirectionError>);
use_old_InterfaceDeclaration_ILocationRedirectionError(
get_current_InterfaceDeclaration_ILocationRedirectionError());

/*
* Validate forward compat by using old type in place of current type
* If breaking change required, add in package.json under typeValidation.broken:
Expand Down Expand Up @@ -665,7 +683,6 @@ declare function get_current_InterfaceDeclaration_IThrottlingWarning():
declare function use_old_InterfaceDeclaration_IThrottlingWarning(
use: TypeOnly<old.IThrottlingWarning>);
use_old_InterfaceDeclaration_IThrottlingWarning(
// @ts-expect-error compatibility expected to be broken
get_current_InterfaceDeclaration_IThrottlingWarning());

/*
Expand Down
6 changes: 3 additions & 3 deletions packages/dds/cell/package.json
Expand Up @@ -72,7 +72,7 @@
"@fluid-internal/test-dds-utils": "^1.3.0",
"@fluidframework/build-common": "^0.24.0",
"@fluidframework/build-tools": "^0.2.74327",
"@fluidframework/cell-previous": "npm:@fluidframework/cell@1.1.0",
"@fluidframework/cell-previous": "npm:@fluidframework/cell@^1.2.0",
"@fluidframework/eslint-config-fluid": "^0.28.2000",
"@fluidframework/mocha-test-setup": "^1.3.0",
"@fluidframework/test-runtime-utils": "^1.3.0",
Expand All @@ -91,7 +91,7 @@
"typescript-formatter": "7.1.0"
},
"typeValidation": {
"version": "1.2.0",
"version": "1.3.0",
"broken": {}
}
}
}
6 changes: 3 additions & 3 deletions packages/dds/counter/package.json
Expand Up @@ -69,7 +69,7 @@
"devDependencies": {
"@fluidframework/build-common": "^0.24.0",
"@fluidframework/build-tools": "^0.2.74327",
"@fluidframework/counter-previous": "npm:@fluidframework/counter@1.1.0",
"@fluidframework/counter-previous": "npm:@fluidframework/counter@^1.2.0",
"@fluidframework/eslint-config-fluid": "^0.28.2000",
"@fluidframework/mocha-test-setup": "^1.3.0",
"@fluidframework/test-runtime-utils": "^1.3.0",
Expand All @@ -87,7 +87,7 @@
"typescript": "~4.5.5"
},
"typeValidation": {
"version": "1.2.0",
"version": "1.3.0",
"broken": {}
}
}
}
6 changes: 3 additions & 3 deletions packages/dds/ink/package.json
Expand Up @@ -73,7 +73,7 @@
"@fluidframework/build-common": "^0.24.0",
"@fluidframework/build-tools": "^0.2.74327",
"@fluidframework/eslint-config-fluid": "^0.28.2000",
"@fluidframework/ink-previous": "npm:@fluidframework/ink@1.1.0",
"@fluidframework/ink-previous": "npm:@fluidframework/ink@^1.2.0",
"@fluidframework/mocha-test-setup": "^1.3.0",
"@fluidframework/test-runtime-utils": "^1.3.0",
"@microsoft/api-extractor": "^7.22.2",
Expand All @@ -90,7 +90,7 @@
"typescript-formatter": "7.1.0"
},
"typeValidation": {
"version": "1.2.0",
"version": "1.3.0",
"broken": {}
}
}
}
6 changes: 3 additions & 3 deletions packages/dds/map/package.json
Expand Up @@ -77,7 +77,7 @@
"@fluidframework/build-common": "^0.24.0",
"@fluidframework/build-tools": "^0.2.74327",
"@fluidframework/eslint-config-fluid": "^0.28.2000",
"@fluidframework/map-previous": "npm:@fluidframework/map@1.1.0",
"@fluidframework/map-previous": "npm:@fluidframework/map@^1.2.0",
"@fluidframework/mocha-test-setup": "^1.3.0",
"@fluidframework/test-runtime-utils": "^1.3.0",
"@microsoft/api-extractor": "^7.22.2",
Expand All @@ -95,7 +95,7 @@
"typescript-formatter": "7.1.0"
},
"typeValidation": {
"version": "1.2.0",
"version": "1.3.0",
"broken": {}
}
}
}

0 comments on commit ccaa7a2

Please sign in to comment.