fluid-framework 2.112.0 → 2.113.0-411909

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1102,6 +1102,11 @@ export interface ITreeViewConfiguration<TSchema extends ImplicitFieldSchema = Im
1102
1102
  readonly schema: TSchema;
1103
1103
  }
1104
1104
 
1105
+ // @alpha
1106
+ export interface ITreeViewConfigurationAlpha<TSchema extends ImplicitFieldSchema = ImplicitFieldSchema> extends ITreeViewConfiguration<TSchema> {
1107
+ readonly stagedUpgradePolicy?: StagedSchemaUpgradePolicy;
1108
+ }
1109
+
1105
1110
  // @alpha @sealed
1106
1111
  export interface JsonArrayNodeSchema extends JsonNodeSchemaBase<NodeKind.Array, "array"> {
1107
1112
  readonly items: JsonFieldSchema;
@@ -1850,6 +1855,22 @@ export interface SnapshotSchemaCompatibilityOptions {
1850
1855
  readonly versionComparer?: (a: string, b: string) => number;
1851
1856
  }
1852
1857
 
1858
+ // @alpha @input
1859
+ export interface StagedSchemaUpgradePolicy {
1860
+ includeStaged(upgrade: SchemaUpgrade): boolean;
1861
+ includeStagedOptional(upgrade: SchemaUpgrade): boolean;
1862
+ }
1863
+
1864
+ // @alpha
1865
+ export const StagedSchemaUpgradePolicy: StagedSchemaUpgradePolicyFactory;
1866
+
1867
+ // @alpha @sealed
1868
+ export interface StagedSchemaUpgradePolicyFactory {
1869
+ enabledStagedUpgrades(...upgrades: SchemaUpgrade[]): StagedSchemaUpgradePolicy;
1870
+ readonly permissive: StagedSchemaUpgradePolicy;
1871
+ readonly restrictive: StagedSchemaUpgradePolicy;
1872
+ }
1873
+
1853
1874
  // @beta @system
1854
1875
  export namespace System_TableSchema {
1855
1876
  // @sealed @system
@@ -2489,7 +2510,6 @@ export interface TreeViewAlpha<in out TSchema extends ImplicitFieldSchema | Unsa
2489
2510
  readonly events: Listenable<TreeViewEvents & TreeBranchEvents>;
2490
2511
  // (undocumented)
2491
2512
  fork(): ReturnType<TreeBranch["fork"]> & TreeViewAlpha<TSchema>;
2492
- // (undocumented)
2493
2513
  initialize(content: InsertableField<TSchema>): void;
2494
2514
  // (undocumented)
2495
2515
  get root(): ReadableField<TSchema>;
@@ -2516,11 +2536,12 @@ export class TreeViewConfiguration<const TSchema extends ImplicitFieldSchema = I
2516
2536
 
2517
2537
  // @alpha @sealed
2518
2538
  export class TreeViewConfigurationAlpha<const TSchema extends ImplicitFieldSchema = ImplicitFieldSchema> extends TreeViewConfiguration<TSchema> implements TreeSchema {
2519
- constructor(props: ITreeViewConfiguration<TSchema>);
2539
+ constructor(props: ITreeViewConfigurationAlpha<TSchema>);
2520
2540
  // (undocumented)
2521
2541
  readonly definitions: ReadonlyMap<string, SimpleNodeSchema<SchemaType.View> & TreeNodeSchema>;
2522
2542
  // (undocumented)
2523
2543
  readonly root: FieldSchemaAlpha;
2544
+ readonly stagedUpgradePolicy: StagedSchemaUpgradePolicy;
2524
2545
  }
2525
2546
 
2526
2547
  // @public @sealed
package/dist/alpha.d.ts CHANGED
@@ -258,6 +258,7 @@ export {
258
258
  HandleConverter,
259
259
  ICodecOptions,
260
260
  ITreeAlpha,
261
+ ITreeViewConfigurationAlpha,
261
262
  IncrementalEncodingPolicy,
262
263
  IndependentViewOptions,
263
264
  IndependentViewTelemetryOptions,
@@ -326,6 +327,8 @@ export {
326
327
  SimpleObjectNodeSchema,
327
328
  SimpleRecordNodeSchema,
328
329
  SimpleTreeSchema,
330
+ StagedSchemaUpgradePolicy,
331
+ StagedSchemaUpgradePolicyFactory,
329
332
  TextAsTree,
330
333
  TransactionCallbackStatusAlpha,
331
334
  TransactionConstraintAlpha,
package/lib/alpha.d.ts CHANGED
@@ -258,6 +258,7 @@ export {
258
258
  HandleConverter,
259
259
  ICodecOptions,
260
260
  ITreeAlpha,
261
+ ITreeViewConfigurationAlpha,
261
262
  IncrementalEncodingPolicy,
262
263
  IndependentViewOptions,
263
264
  IndependentViewTelemetryOptions,
@@ -326,6 +327,8 @@ export {
326
327
  SimpleObjectNodeSchema,
327
328
  SimpleRecordNodeSchema,
328
329
  SimpleTreeSchema,
330
+ StagedSchemaUpgradePolicy,
331
+ StagedSchemaUpgradePolicyFactory,
329
332
  TextAsTree,
330
333
  TransactionCallbackStatusAlpha,
331
334
  TransactionConstraintAlpha,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fluid-framework",
3
- "version": "2.112.0",
3
+ "version": "2.113.0-411909",
4
4
  "description": "The main entry point into Fluid Framework public packages",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -57,17 +57,17 @@
57
57
  "main": "lib/index.js",
58
58
  "types": "lib/public.d.ts",
59
59
  "dependencies": {
60
- "@fluidframework/container-definitions": "~2.112.0",
61
- "@fluidframework/container-loader": "~2.112.0",
62
- "@fluidframework/core-interfaces": "~2.112.0",
63
- "@fluidframework/core-utils": "~2.112.0",
64
- "@fluidframework/driver-definitions": "~2.112.0",
65
- "@fluidframework/fluid-static": "~2.112.0",
66
- "@fluidframework/map": "~2.112.0",
67
- "@fluidframework/runtime-utils": "~2.112.0",
68
- "@fluidframework/sequence": "~2.112.0",
69
- "@fluidframework/shared-object-base": "~2.112.0",
70
- "@fluidframework/tree": "~2.112.0"
60
+ "@fluidframework/container-definitions": "2.113.0-411909",
61
+ "@fluidframework/container-loader": "2.113.0-411909",
62
+ "@fluidframework/core-interfaces": "2.113.0-411909",
63
+ "@fluidframework/core-utils": "2.113.0-411909",
64
+ "@fluidframework/driver-definitions": "2.113.0-411909",
65
+ "@fluidframework/fluid-static": "2.113.0-411909",
66
+ "@fluidframework/map": "2.113.0-411909",
67
+ "@fluidframework/runtime-utils": "2.113.0-411909",
68
+ "@fluidframework/sequence": "2.113.0-411909",
69
+ "@fluidframework/shared-object-base": "2.113.0-411909",
70
+ "@fluidframework/tree": "2.113.0-411909"
71
71
  },
72
72
  "devDependencies": {
73
73
  "@arethetypeswrong/cli": "^0.18.2",