Skip to content

Commit

Permalink
update type tests on release branch (#23649)
Browse files Browse the repository at this point in the history
Update type tests on release branch according to our wiki.
  • Loading branch information
dannimad authored Jan 27, 2025
1 parent b1ffc24 commit ad78897
Show file tree
Hide file tree
Showing 68 changed files with 2,744 additions and 2,258 deletions.
2 changes: 1 addition & 1 deletion azure/packages/azure-service-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
"@arethetypeswrong/cli": "^0.17.1",
"@biomejs/biome": "~1.9.3",
"@fluid-tools/build-cli": "^0.51.0",
"@fluidframework/azure-service-utils-previous": "npm:@fluidframework/azure-service-utils@2.13.0",
"@fluidframework/azure-service-utils-previous": "npm:@fluidframework/azure-service-utils@2.20.0",
"@fluidframework/build-common": "^2.0.3",
"@fluidframework/build-tools": "^0.51.0",
"@fluidframework/eslint-config-fluid": "^5.6.0",
Expand Down
2 changes: 1 addition & 1 deletion experimental/dds/attributable-map/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
"devDependencies": {
"@arethetypeswrong/cli": "^0.17.1",
"@biomejs/biome": "~1.9.3",
"@fluid-experimental/attributable-map-previous": "npm:@fluid-experimental/attributable-map@2.13.0",
"@fluid-experimental/attributable-map-previous": "npm:@fluid-experimental/attributable-map@2.20.0",
"@fluid-internal/mocha-test-setup": "workspace:~",
"@fluid-private/stochastic-test-utils": "workspace:~",
"@fluid-private/test-dds-utils": "workspace:~",
Expand Down
2 changes: 1 addition & 1 deletion packages/common/client-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
"devDependencies": {
"@arethetypeswrong/cli": "^0.17.1",
"@biomejs/biome": "~1.9.3",
"@fluid-internal/client-utils-previous": "npm:@fluid-internal/client-utils@2.13.0",
"@fluid-internal/client-utils-previous": "npm:@fluid-internal/client-utils@2.20.0",
"@fluid-internal/mocha-test-setup": "workspace:~",
"@fluid-tools/build-cli": "^0.51.0",
"@fluidframework/build-common": "^2.0.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/common/container-definitions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
"@fluid-tools/build-cli": "^0.51.0",
"@fluidframework/build-common": "^2.0.3",
"@fluidframework/build-tools": "^0.51.0",
"@fluidframework/container-definitions-previous": "npm:@fluidframework/container-definitions@2.13.0",
"@fluidframework/container-definitions-previous": "npm:@fluidframework/container-definitions@2.20.0",
"@fluidframework/eslint-config-fluid": "^5.6.0",
"@microsoft/api-extractor": "7.47.8",
"concurrently": "^8.2.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/common/core-interfaces/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"@fluid-tools/build-cli": "^0.51.0",
"@fluidframework/build-common": "^2.0.3",
"@fluidframework/build-tools": "^0.51.0",
"@fluidframework/core-interfaces-previous": "npm:@fluidframework/core-interfaces@2.13.0",
"@fluidframework/core-interfaces-previous": "npm:@fluidframework/core-interfaces@2.20.0",
"@fluidframework/eslint-config-fluid": "^5.6.0",
"@microsoft/api-extractor": "7.47.8",
"@types/node": "^18.19.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/common/core-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
"@fluid-tools/build-cli": "^0.51.0",
"@fluidframework/build-common": "^2.0.3",
"@fluidframework/build-tools": "^0.51.0",
"@fluidframework/core-utils-previous": "npm:@fluidframework/core-utils@2.13.0",
"@fluidframework/core-utils-previous": "npm:@fluidframework/core-utils@2.20.0",
"@fluidframework/eslint-config-fluid": "^5.6.0",
"@microsoft/api-extractor": "7.47.8",
"@types/mocha": "^10.0.10",
Expand Down
2 changes: 1 addition & 1 deletion packages/common/driver-definitions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
"@fluid-tools/build-cli": "^0.51.0",
"@fluidframework/build-common": "^2.0.3",
"@fluidframework/build-tools": "^0.51.0",
"@fluidframework/driver-definitions-previous": "npm:@fluidframework/driver-definitions@2.13.0",
"@fluidframework/driver-definitions-previous": "npm:@fluidframework/driver-definitions@2.20.0",
"@fluidframework/eslint-config-fluid": "^5.6.0",
"@microsoft/api-extractor": "7.47.8",
"concurrently": "^8.2.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/dds/cell/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
"@fluid-tools/build-cli": "^0.51.0",
"@fluidframework/build-common": "^2.0.3",
"@fluidframework/build-tools": "^0.51.0",
"@fluidframework/cell-previous": "npm:@fluidframework/cell@2.13.0",
"@fluidframework/cell-previous": "npm:@fluidframework/cell@2.20.0",
"@fluidframework/container-definitions": "workspace:~",
"@fluidframework/eslint-config-fluid": "^5.6.0",
"@fluidframework/test-runtime-utils": "workspace:~",
Expand Down
2 changes: 1 addition & 1 deletion packages/dds/counter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
"@fluidframework/build-common": "^2.0.3",
"@fluidframework/build-tools": "^0.51.0",
"@fluidframework/container-definitions": "workspace:~",
"@fluidframework/counter-previous": "npm:@fluidframework/counter@2.13.0",
"@fluidframework/counter-previous": "npm:@fluidframework/counter@2.20.0",
"@fluidframework/eslint-config-fluid": "^5.6.0",
"@fluidframework/test-runtime-utils": "workspace:~",
"@microsoft/api-extractor": "7.47.8",
Expand Down
2 changes: 1 addition & 1 deletion packages/dds/map/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
"@fluidframework/build-tools": "^0.51.0",
"@fluidframework/container-definitions": "workspace:~",
"@fluidframework/eslint-config-fluid": "^5.6.0",
"@fluidframework/map-previous": "npm:@fluidframework/map@2.13.0",
"@fluidframework/map-previous": "npm:@fluidframework/map@2.20.0",
"@fluidframework/test-runtime-utils": "workspace:~",
"@microsoft/api-extractor": "7.47.8",
"@types/mocha": "^10.0.10",
Expand Down
2 changes: 1 addition & 1 deletion packages/dds/matrix/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
"@fluidframework/build-tools": "^0.51.0",
"@fluidframework/container-definitions": "workspace:~",
"@fluidframework/eslint-config-fluid": "^5.6.0",
"@fluidframework/matrix-previous": "npm:@fluidframework/matrix@2.13.0",
"@fluidframework/matrix-previous": "npm:@fluidframework/matrix@2.20.0",
"@fluidframework/test-runtime-utils": "workspace:~",
"@microsoft/api-extractor": "7.47.8",
"@tiny-calc/micro": "0.0.0-alpha.5",
Expand Down
62 changes: 2 additions & 60 deletions packages/dds/merge-tree/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
"@fluidframework/build-common": "^2.0.3",
"@fluidframework/build-tools": "^0.51.0",
"@fluidframework/eslint-config-fluid": "^5.6.0",
"@fluidframework/merge-tree-previous": "npm:@fluidframework/merge-tree@2.13.0",
"@fluidframework/merge-tree-previous": "npm:@fluidframework/merge-tree@2.20.0",
"@fluidframework/test-runtime-utils": "workspace:~",
"@microsoft/api-extractor": "7.47.8",
"@types/diff": "^3.5.1",
Expand All @@ -177,65 +177,7 @@
"typescript": "~5.4.5"
},
"typeValidation": {
"broken": {
"Class_BaseSegment": {
"backCompat": false
},
"Class_Marker": {
"backCompat": false
},
"Class_TextSegment": {
"backCompat": false
},
"Class_TrackingGroup": {
"backCompat": false
},
"ClassStatics_BaseSegment": {
"backCompat": false
},
"ClassStatics_Marker": {
"backCompat": false
},
"ClassStatics_TextSegment": {
"backCompat": false
},
"ClassStatics_TrackingGroup": {
"backCompat": false
},
"Interface_IMergeTreeDeltaCallbackArgs": {
"backCompat": false
},
"Interface_IMergeTreeMaintenanceCallbackArgs": {
"backCompat": false
},
"Interface_IMergeTreeSegmentDelta": {
"backCompat": false
},
"Interface_ISegment": {
"backCompat": false
},
"Interface_ITrackingGroup": {
"backCompat": false
},
"TypeAlias_MergeTreeDeltaRevertible": {
"backCompat": false
},
"TypeAlias_Trackable": {
"backCompat": false
},
"Interface_IMergeNodeCommon": {
"forwardCompat": false,
"backCompat": false
},
"Interface_IMoveInfo": {
"forwardCompat": false,
"backCompat": false
},
"Interface_IRemovalInfo": {
"forwardCompat": false,
"backCompat": false
}
},
"broken": {},
"entrypoint": "legacy"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,8 @@ declare type old_as_current_for_Class_BaseSegment = requireAssignableTo<TypeOnly
* typeValidation.broken:
* "Class_BaseSegment": {"backCompat": false}
*/
// @ts-expect-error compatibility expected to be broken
declare type current_as_old_for_Class_BaseSegment = requireAssignableTo<TypeOnly<current.BaseSegment>, TypeOnly<old.BaseSegment>>

/*
* Validate backward compatibility by using the current type in place of the old type.
* If this test starts failing, it indicates a change that is not backward compatible.
* To acknowledge the breaking change, add the following to package.json under
* typeValidation.broken:
* "Class_LocalReferenceCollection": {"backCompat": false}
*/
declare type current_as_old_for_Class_LocalReferenceCollection = requireAssignableTo<TypeOnly<current.LocalReferenceCollection>, TypeOnly<old.LocalReferenceCollection>>

/*
* Validate forward compatibility by using the old type in place of the current type.
* If this test starts failing, it indicates a change that is not forward compatible.
Expand All @@ -59,7 +49,6 @@ declare type old_as_current_for_Class_Marker = requireAssignableTo<TypeOnly<old.
* typeValidation.broken:
* "Class_Marker": {"backCompat": false}
*/
// @ts-expect-error compatibility expected to be broken
declare type current_as_old_for_Class_Marker = requireAssignableTo<TypeOnly<current.Marker>, TypeOnly<old.Marker>>

/*
Expand All @@ -78,7 +67,6 @@ declare type old_as_current_for_Class_TextSegment = requireAssignableTo<TypeOnly
* typeValidation.broken:
* "Class_TextSegment": {"backCompat": false}
*/
// @ts-expect-error compatibility expected to be broken
declare type current_as_old_for_Class_TextSegment = requireAssignableTo<TypeOnly<current.TextSegment>, TypeOnly<old.TextSegment>>

/*
Expand All @@ -97,7 +85,6 @@ declare type old_as_current_for_Class_TrackingGroup = requireAssignableTo<TypeOn
* typeValidation.broken:
* "Class_TrackingGroup": {"backCompat": false}
*/
// @ts-expect-error compatibility expected to be broken
declare type current_as_old_for_Class_TrackingGroup = requireAssignableTo<TypeOnly<current.TrackingGroup>, TypeOnly<old.TrackingGroup>>

/*
Expand Down Expand Up @@ -125,26 +112,15 @@ declare type current_as_old_for_Class_TrackingGroupCollection = requireAssignabl
* typeValidation.broken:
* "ClassStatics_BaseSegment": {"backCompat": false}
*/
// @ts-expect-error compatibility expected to be broken
declare type current_as_old_for_ClassStatics_BaseSegment = requireAssignableTo<TypeOnly<typeof current.BaseSegment>, TypeOnly<typeof old.BaseSegment>>

/*
* Validate backward compatibility by using the current type in place of the old type.
* If this test starts failing, it indicates a change that is not backward compatible.
* To acknowledge the breaking change, add the following to package.json under
* typeValidation.broken:
* "ClassStatics_LocalReferenceCollection": {"backCompat": false}
*/
declare type current_as_old_for_ClassStatics_LocalReferenceCollection = requireAssignableTo<TypeOnly<typeof current.LocalReferenceCollection>, TypeOnly<typeof old.LocalReferenceCollection>>

/*
* Validate backward compatibility by using the current type in place of the old type.
* If this test starts failing, it indicates a change that is not backward compatible.
* To acknowledge the breaking change, add the following to package.json under
* typeValidation.broken:
* "ClassStatics_Marker": {"backCompat": false}
*/
// @ts-expect-error compatibility expected to be broken
declare type current_as_old_for_ClassStatics_Marker = requireAssignableTo<TypeOnly<typeof current.Marker>, TypeOnly<typeof old.Marker>>

/*
Expand All @@ -154,7 +130,6 @@ declare type current_as_old_for_ClassStatics_Marker = requireAssignableTo<TypeOn
* typeValidation.broken:
* "ClassStatics_TextSegment": {"backCompat": false}
*/
// @ts-expect-error compatibility expected to be broken
declare type current_as_old_for_ClassStatics_TextSegment = requireAssignableTo<TypeOnly<typeof current.TextSegment>, TypeOnly<typeof old.TextSegment>>

/*
Expand All @@ -164,7 +139,6 @@ declare type current_as_old_for_ClassStatics_TextSegment = requireAssignableTo<T
* typeValidation.broken:
* "ClassStatics_TrackingGroup": {"backCompat": false}
*/
// @ts-expect-error compatibility expected to be broken
declare type current_as_old_for_ClassStatics_TrackingGroup = requireAssignableTo<TypeOnly<typeof current.TrackingGroup>, TypeOnly<typeof old.TrackingGroup>>

/*
Expand Down Expand Up @@ -401,26 +375,6 @@ declare type old_as_current_for_Interface_IMarkerDef = requireAssignableTo<TypeO
*/
declare type current_as_old_for_Interface_IMarkerDef = requireAssignableTo<TypeOnly<current.IMarkerDef>, TypeOnly<old.IMarkerDef>>

/*
* Validate forward compatibility by using the old type in place of the current type.
* If this test starts failing, it indicates a change that is not forward compatible.
* To acknowledge the breaking change, add the following to package.json under
* typeValidation.broken:
* "Interface_IMergeNodeCommon": {"forwardCompat": false}
*/
// @ts-expect-error compatibility expected to be broken
declare type old_as_current_for_Interface_IMergeNodeCommon = requireAssignableTo<TypeOnly<old.IMergeNodeCommon>, TypeOnly<current.IMergeNodeCommon>>

/*
* Validate backward compatibility by using the current type in place of the old type.
* If this test starts failing, it indicates a change that is not backward compatible.
* To acknowledge the breaking change, add the following to package.json under
* typeValidation.broken:
* "Interface_IMergeNodeCommon": {"backCompat": false}
*/
// @ts-expect-error compatibility expected to be broken
declare type current_as_old_for_Interface_IMergeNodeCommon = requireAssignableTo<TypeOnly<current.IMergeNodeCommon>, TypeOnly<old.IMergeNodeCommon>>

/*
* Validate forward compatibility by using the old type in place of the current type.
* If this test starts failing, it indicates a change that is not forward compatible.
Expand Down Expand Up @@ -491,7 +445,6 @@ declare type old_as_current_for_Interface_IMergeTreeDeltaCallbackArgs = requireA
* typeValidation.broken:
* "Interface_IMergeTreeDeltaCallbackArgs": {"backCompat": false}
*/
// @ts-expect-error compatibility expected to be broken
declare type current_as_old_for_Interface_IMergeTreeDeltaCallbackArgs = requireAssignableTo<TypeOnly<current.IMergeTreeDeltaCallbackArgs>, TypeOnly<old.IMergeTreeDeltaCallbackArgs>>

/*
Expand Down Expand Up @@ -564,7 +517,6 @@ declare type old_as_current_for_Interface_IMergeTreeMaintenanceCallbackArgs = re
* typeValidation.broken:
* "Interface_IMergeTreeMaintenanceCallbackArgs": {"backCompat": false}
*/
// @ts-expect-error compatibility expected to be broken
declare type current_as_old_for_Interface_IMergeTreeMaintenanceCallbackArgs = requireAssignableTo<TypeOnly<current.IMergeTreeMaintenanceCallbackArgs>, TypeOnly<old.IMergeTreeMaintenanceCallbackArgs>>

/*
Expand Down Expand Up @@ -655,29 +607,8 @@ declare type old_as_current_for_Interface_IMergeTreeSegmentDelta = requireAssign
* typeValidation.broken:
* "Interface_IMergeTreeSegmentDelta": {"backCompat": false}
*/
// @ts-expect-error compatibility expected to be broken
declare type current_as_old_for_Interface_IMergeTreeSegmentDelta = requireAssignableTo<TypeOnly<current.IMergeTreeSegmentDelta>, TypeOnly<old.IMergeTreeSegmentDelta>>

/*
* Validate forward compatibility by using the old type in place of the current type.
* If this test starts failing, it indicates a change that is not forward compatible.
* To acknowledge the breaking change, add the following to package.json under
* typeValidation.broken:
* "Interface_IMoveInfo": {"forwardCompat": false}
*/
// @ts-expect-error compatibility expected to be broken
declare type old_as_current_for_Interface_IMoveInfo = requireAssignableTo<TypeOnly<old.IMoveInfo>, TypeOnly<current.IMoveInfo>>

/*
* Validate backward compatibility by using the current type in place of the old type.
* If this test starts failing, it indicates a change that is not backward compatible.
* To acknowledge the breaking change, add the following to package.json under
* typeValidation.broken:
* "Interface_IMoveInfo": {"backCompat": false}
*/
// @ts-expect-error compatibility expected to be broken
declare type current_as_old_for_Interface_IMoveInfo = requireAssignableTo<TypeOnly<current.IMoveInfo>, TypeOnly<old.IMoveInfo>>

/*
* Validate forward compatibility by using the old type in place of the current type.
* If this test starts failing, it indicates a change that is not forward compatible.
Expand Down Expand Up @@ -714,26 +645,6 @@ declare type old_as_current_for_Interface_IRelativePosition = requireAssignableT
*/
declare type current_as_old_for_Interface_IRelativePosition = requireAssignableTo<TypeOnly<current.IRelativePosition>, TypeOnly<old.IRelativePosition>>

/*
* Validate forward compatibility by using the old type in place of the current type.
* If this test starts failing, it indicates a change that is not forward compatible.
* To acknowledge the breaking change, add the following to package.json under
* typeValidation.broken:
* "Interface_IRemovalInfo": {"forwardCompat": false}
*/
// @ts-expect-error compatibility expected to be broken
declare type old_as_current_for_Interface_IRemovalInfo = requireAssignableTo<TypeOnly<old.IRemovalInfo>, TypeOnly<current.IRemovalInfo>>

/*
* Validate backward compatibility by using the current type in place of the old type.
* If this test starts failing, it indicates a change that is not backward compatible.
* To acknowledge the breaking change, add the following to package.json under
* typeValidation.broken:
* "Interface_IRemovalInfo": {"backCompat": false}
*/
// @ts-expect-error compatibility expected to be broken
declare type current_as_old_for_Interface_IRemovalInfo = requireAssignableTo<TypeOnly<current.IRemovalInfo>, TypeOnly<old.IRemovalInfo>>

/*
* Validate forward compatibility by using the old type in place of the current type.
* If this test starts failing, it indicates a change that is not forward compatible.
Expand All @@ -750,7 +661,6 @@ declare type old_as_current_for_Interface_ISegment = requireAssignableTo<TypeOnl
* typeValidation.broken:
* "Interface_ISegment": {"backCompat": false}
*/
// @ts-expect-error compatibility expected to be broken
declare type current_as_old_for_Interface_ISegment = requireAssignableTo<TypeOnly<current.ISegment>, TypeOnly<old.ISegment>>

/*
Expand Down Expand Up @@ -787,7 +697,6 @@ declare type old_as_current_for_Interface_ITrackingGroup = requireAssignableTo<T
* typeValidation.broken:
* "Interface_ITrackingGroup": {"backCompat": false}
*/
// @ts-expect-error compatibility expected to be broken
declare type current_as_old_for_Interface_ITrackingGroup = requireAssignableTo<TypeOnly<current.ITrackingGroup>, TypeOnly<old.ITrackingGroup>>

/*
Expand Down Expand Up @@ -977,7 +886,6 @@ declare type old_as_current_for_TypeAlias_MergeTreeDeltaRevertible = requireAssi
* typeValidation.broken:
* "TypeAlias_MergeTreeDeltaRevertible": {"backCompat": false}
*/
// @ts-expect-error compatibility expected to be broken
declare type current_as_old_for_TypeAlias_MergeTreeDeltaRevertible = requireAssignableTo<TypeOnly<current.MergeTreeDeltaRevertible>, TypeOnly<old.MergeTreeDeltaRevertible>>

/*
Expand Down Expand Up @@ -1086,7 +994,6 @@ declare type old_as_current_for_TypeAlias_Trackable = requireAssignableTo<TypeOn
* typeValidation.broken:
* "TypeAlias_Trackable": {"backCompat": false}
*/
// @ts-expect-error compatibility expected to be broken
declare type current_as_old_for_TypeAlias_Trackable = requireAssignableTo<TypeOnly<current.Trackable>, TypeOnly<old.Trackable>>

/*
Expand Down
Loading

0 comments on commit ad78897

Please sign in to comment.