Skip to content

Commit 4987cd5

Browse files
committed
update type tests in release branch
1 parent 12c4d07 commit 4987cd5

File tree

69 files changed

+957
-994
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+957
-994
lines changed

azure/packages/azure-service-utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
"@arethetypeswrong/cli": "^0.17.1",
9696
"@biomejs/biome": "~1.9.3",
9797
"@fluid-tools/build-cli": "^0.55.0",
98-
"@fluidframework/azure-service-utils-previous": "npm:@fluidframework/azure-service-utils@2.33.0",
98+
"@fluidframework/azure-service-utils-previous": "npm:@fluidframework/azure-service-utils@2.40.0",
9999
"@fluidframework/build-common": "^2.0.3",
100100
"@fluidframework/build-tools": "^0.55.0",
101101
"@fluidframework/eslint-config-fluid": "^5.7.3",

examples/data-objects/table-tree/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,10 @@
9393
"library": "main"
9494
}
9595
}
96+
},
97+
"typeValidation": {
98+
"disabled": true,
99+
"broken": {},
100+
"entrypoint": "legacy"
96101
}
97102
}

experimental/dds/attributable-map/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
"devDependencies": {
100100
"@arethetypeswrong/cli": "^0.17.1",
101101
"@biomejs/biome": "~1.9.3",
102-
"@fluid-experimental/attributable-map-previous": "npm:@fluid-experimental/attributable-map@2.33.0",
102+
"@fluid-experimental/attributable-map-previous": "npm:@fluid-experimental/attributable-map@2.40.0",
103103
"@fluid-internal/mocha-test-setup": "workspace:~",
104104
"@fluid-private/stochastic-test-utils": "workspace:~",
105105
"@fluid-private/test-dds-utils": "workspace:~",

packages/common/client-utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
"devDependencies": {
134134
"@arethetypeswrong/cli": "^0.17.1",
135135
"@biomejs/biome": "~1.9.3",
136-
"@fluid-internal/client-utils-previous": "npm:@fluid-internal/client-utils@2.33.0",
136+
"@fluid-internal/client-utils-previous": "npm:@fluid-internal/client-utils@2.40.0",
137137
"@fluid-internal/mocha-test-setup": "workspace:~",
138138
"@fluid-tools/build-cli": "^0.55.0",
139139
"@fluidframework/build-common": "^2.0.3",

packages/common/container-definitions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
"@fluid-tools/build-cli": "^0.55.0",
101101
"@fluidframework/build-common": "^2.0.3",
102102
"@fluidframework/build-tools": "^0.55.0",
103-
"@fluidframework/container-definitions-previous": "npm:@fluidframework/container-definitions@2.33.0",
103+
"@fluidframework/container-definitions-previous": "npm:@fluidframework/container-definitions@2.40.0",
104104
"@fluidframework/eslint-config-fluid": "^5.7.3",
105105
"@microsoft/api-extractor": "7.52.5",
106106
"concurrently": "^8.2.1",

packages/common/core-interfaces/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
"@fluid-tools/build-cli": "^0.55.0",
126126
"@fluidframework/build-common": "^2.0.3",
127127
"@fluidframework/build-tools": "^0.55.0",
128-
"@fluidframework/core-interfaces-previous": "npm:@fluidframework/core-interfaces@2.33.0",
128+
"@fluidframework/core-interfaces-previous": "npm:@fluidframework/core-interfaces@2.40.0",
129129
"@fluidframework/eslint-config-fluid": "^5.7.3",
130130
"@microsoft/api-extractor": "7.52.5",
131131
"@types/mocha": "^10.0.10",

packages/common/core-interfaces/src/test/types/validateCoreInterfacesPrevious.generated.ts

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,24 @@ declare type current_as_old_for_Interface_IFluidHandleContext = requireAssignabl
159159
*/
160160
declare type current_as_old_for_Interface_IFluidHandleErased = requireAssignableTo<TypeOnly<current.IFluidHandleErased<never>>, TypeOnly<old.IFluidHandleErased<never>>>
161161

162+
/*
163+
* Validate forward compatibility by using the old type in place of the current type.
164+
* If this test starts failing, it indicates a change that is not forward compatible.
165+
* To acknowledge the breaking change, add the following to package.json under
166+
* typeValidation.broken:
167+
* "Interface_IFluidHandleEvents": {"forwardCompat": false}
168+
*/
169+
declare type old_as_current_for_Interface_IFluidHandleEvents = requireAssignableTo<TypeOnly<old.IFluidHandleEvents>, TypeOnly<current.IFluidHandleEvents>>
170+
171+
/*
172+
* Validate backward compatibility by using the current type in place of the old type.
173+
* If this test starts failing, it indicates a change that is not backward compatible.
174+
* To acknowledge the breaking change, add the following to package.json under
175+
* typeValidation.broken:
176+
* "Interface_IFluidHandleEvents": {"backCompat": false}
177+
*/
178+
declare type current_as_old_for_Interface_IFluidHandleEvents = requireAssignableTo<TypeOnly<current.IFluidHandleEvents>, TypeOnly<old.IFluidHandleEvents>>
179+
162180
/*
163181
* Validate forward compatibility by using the old type in place of the current type.
164182
* If this test starts failing, it indicates a change that is not forward compatible.
@@ -177,6 +195,24 @@ declare type old_as_current_for_Interface_IFluidHandleInternal = requireAssignab
177195
*/
178196
declare type current_as_old_for_Interface_IFluidHandleInternal = requireAssignableTo<TypeOnly<current.IFluidHandleInternal>, TypeOnly<old.IFluidHandleInternal>>
179197

198+
/*
199+
* Validate forward compatibility by using the old type in place of the current type.
200+
* If this test starts failing, it indicates a change that is not forward compatible.
201+
* To acknowledge the breaking change, add the following to package.json under
202+
* typeValidation.broken:
203+
* "Interface_IFluidHandlePayloadPending": {"forwardCompat": false}
204+
*/
205+
declare type old_as_current_for_Interface_IFluidHandlePayloadPending = requireAssignableTo<TypeOnly<old.IFluidHandlePayloadPending<never>>, TypeOnly<current.IFluidHandlePayloadPending<never>>>
206+
207+
/*
208+
* Validate backward compatibility by using the current type in place of the old type.
209+
* If this test starts failing, it indicates a change that is not backward compatible.
210+
* To acknowledge the breaking change, add the following to package.json under
211+
* typeValidation.broken:
212+
* "Interface_IFluidHandlePayloadPending": {"backCompat": false}
213+
*/
214+
declare type current_as_old_for_Interface_IFluidHandlePayloadPending = requireAssignableTo<TypeOnly<current.IFluidHandlePayloadPending<never>>, TypeOnly<old.IFluidHandlePayloadPending<never>>>
215+
180216
/*
181217
* Validate backward compatibility by using the current type in place of the old type.
182218
* If this test starts failing, it indicates a change that is not backward compatible.
@@ -186,6 +222,42 @@ declare type current_as_old_for_Interface_IFluidHandleInternal = requireAssignab
186222
*/
187223
declare type current_as_old_for_Interface_IFluidLoadable = requireAssignableTo<TypeOnly<current.IFluidLoadable>, TypeOnly<old.IFluidLoadable>>
188224

225+
/*
226+
* Validate forward compatibility by using the old type in place of the current type.
227+
* If this test starts failing, it indicates a change that is not forward compatible.
228+
* To acknowledge the breaking change, add the following to package.json under
229+
* typeValidation.broken:
230+
* "Interface_ILocalFluidHandle": {"forwardCompat": false}
231+
*/
232+
declare type old_as_current_for_Interface_ILocalFluidHandle = requireAssignableTo<TypeOnly<old.ILocalFluidHandle<never>>, TypeOnly<current.ILocalFluidHandle<never>>>
233+
234+
/*
235+
* Validate backward compatibility by using the current type in place of the old type.
236+
* If this test starts failing, it indicates a change that is not backward compatible.
237+
* To acknowledge the breaking change, add the following to package.json under
238+
* typeValidation.broken:
239+
* "Interface_ILocalFluidHandle": {"backCompat": false}
240+
*/
241+
declare type current_as_old_for_Interface_ILocalFluidHandle = requireAssignableTo<TypeOnly<current.ILocalFluidHandle<never>>, TypeOnly<old.ILocalFluidHandle<never>>>
242+
243+
/*
244+
* Validate forward compatibility by using the old type in place of the current type.
245+
* If this test starts failing, it indicates a change that is not forward compatible.
246+
* To acknowledge the breaking change, add the following to package.json under
247+
* typeValidation.broken:
248+
* "Interface_ILocalFluidHandleEvents": {"forwardCompat": false}
249+
*/
250+
declare type old_as_current_for_Interface_ILocalFluidHandleEvents = requireAssignableTo<TypeOnly<old.ILocalFluidHandleEvents>, TypeOnly<current.ILocalFluidHandleEvents>>
251+
252+
/*
253+
* Validate backward compatibility by using the current type in place of the old type.
254+
* If this test starts failing, it indicates a change that is not backward compatible.
255+
* To acknowledge the breaking change, add the following to package.json under
256+
* typeValidation.broken:
257+
* "Interface_ILocalFluidHandleEvents": {"backCompat": false}
258+
*/
259+
declare type current_as_old_for_Interface_ILocalFluidHandleEvents = requireAssignableTo<TypeOnly<current.ILocalFluidHandleEvents>, TypeOnly<old.ILocalFluidHandleEvents>>
260+
189261
/*
190262
* Validate forward compatibility by using the old type in place of the current type.
191263
* If this test starts failing, it indicates a change that is not forward compatible.
@@ -627,6 +699,24 @@ declare type old_as_current_for_TypeAlias_Off = requireAssignableTo<TypeOnly<old
627699
*/
628700
declare type current_as_old_for_TypeAlias_Off = requireAssignableTo<TypeOnly<current.Off>, TypeOnly<old.Off>>
629701

702+
/*
703+
* Validate forward compatibility by using the old type in place of the current type.
704+
* If this test starts failing, it indicates a change that is not forward compatible.
705+
* To acknowledge the breaking change, add the following to package.json under
706+
* typeValidation.broken:
707+
* "TypeAlias_PayloadState": {"forwardCompat": false}
708+
*/
709+
declare type old_as_current_for_TypeAlias_PayloadState = requireAssignableTo<TypeOnly<old.PayloadState>, TypeOnly<current.PayloadState>>
710+
711+
/*
712+
* Validate backward compatibility by using the current type in place of the old type.
713+
* If this test starts failing, it indicates a change that is not backward compatible.
714+
* To acknowledge the breaking change, add the following to package.json under
715+
* typeValidation.broken:
716+
* "TypeAlias_PayloadState": {"backCompat": false}
717+
*/
718+
declare type current_as_old_for_TypeAlias_PayloadState = requireAssignableTo<TypeOnly<current.PayloadState>, TypeOnly<old.PayloadState>>
719+
630720
/*
631721
* Validate forward compatibility by using the old type in place of the current type.
632722
* If this test starts failing, it indicates a change that is not forward compatible.

packages/common/core-utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
"@fluid-tools/build-cli": "^0.55.0",
123123
"@fluidframework/build-common": "^2.0.3",
124124
"@fluidframework/build-tools": "^0.55.0",
125-
"@fluidframework/core-utils-previous": "npm:@fluidframework/core-utils@2.33.0",
125+
"@fluidframework/core-utils-previous": "npm:@fluidframework/core-utils@2.40.0",
126126
"@fluidframework/eslint-config-fluid": "^5.7.3",
127127
"@microsoft/api-extractor": "7.52.5",
128128
"@types/mocha": "^10.0.10",

packages/common/driver-definitions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
"@fluid-tools/build-cli": "^0.55.0",
9696
"@fluidframework/build-common": "^2.0.3",
9797
"@fluidframework/build-tools": "^0.55.0",
98-
"@fluidframework/driver-definitions-previous": "npm:@fluidframework/driver-definitions@2.33.0",
98+
"@fluidframework/driver-definitions-previous": "npm:@fluidframework/driver-definitions@2.40.0",
9999
"@fluidframework/eslint-config-fluid": "^5.7.3",
100100
"@microsoft/api-extractor": "7.52.5",
101101
"concurrently": "^8.2.1",

packages/dds/cell/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
"@fluid-tools/build-cli": "^0.55.0",
114114
"@fluidframework/build-common": "^2.0.3",
115115
"@fluidframework/build-tools": "^0.55.0",
116-
"@fluidframework/cell-previous": "npm:@fluidframework/cell@2.33.0",
116+
"@fluidframework/cell-previous": "npm:@fluidframework/cell@2.40.0",
117117
"@fluidframework/container-definitions": "workspace:~",
118118
"@fluidframework/eslint-config-fluid": "^5.7.3",
119119
"@fluidframework/test-runtime-utils": "workspace:~",

0 commit comments

Comments
 (0)