From 64c2317df2b309f8d8af2aca816ecd5c6148f2ca Mon Sep 17 00:00:00 2001 From: daesunp <138815173+daesunp@users.noreply.github.com> Date: Thu, 13 Nov 2025 21:02:59 +0000 Subject: [PATCH 1/2] Update schema factory mdx file --- .../schema-evolution/allowed-types-rollout.mdx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/docs/data-structures/tree/schema-evolution/allowed-types-rollout.mdx b/docs/docs/data-structures/tree/schema-evolution/allowed-types-rollout.mdx index 1b0c9f670199..6108535b78e7 100644 --- a/docs/docs/data-structures/tree/schema-evolution/allowed-types-rollout.mdx +++ b/docs/docs/data-structures/tree/schema-evolution/allowed-types-rollout.mdx @@ -19,7 +19,7 @@ There are some differences because this guide describes the example as a real sc We start with a schema that only supports numbers and initialize the tree with it: ```typescript // Schema A: only number allowed -const schemaA = SchemaFactoryAlpha.optional([SchemaFactoryAlpha.number]); +const schemaA = SchemaFactoryBeta.optional([SchemeFactoryBeta.number]); // initialize with schema A const configA = new TreeViewConfiguration({ @@ -36,9 +36,9 @@ To add support for reading strings, we import the alpha APIs and use [`staged`]( ```typescript // Schema B: number or string (string is staged) -const schemaB = SchemaFactoryAlpha.optional(SchemaFactoryAlpha.types([ - SchemaFactoryAlpha.number, - SchemaFactoryAlpha.staged(SchemaFactoryAlpha.string), +const schemaB = SchemeFactoryBeta.optional(SchemeFactoryBeta.types([ + SchemaFactoryBeta.number, + SchemaFactoryBeta.staged(SchemeFactoryBeta.string), ])); ``` @@ -79,9 +79,9 @@ Once client saturation has been reached, remove the [`staged()`](../../../api/fl ```typescript // Schema C: number or string, both fully allowed -const schemaC = SchemaFactoryAlpha.optional([ - SchemaFactoryAlpha.number, - SchemaFactoryAlpha.string, +const schemaC = SchemaFactoryBeta.optional([ + SchemaFactoryBeta.number, + SchemaFactoryBeta.string, ]); // view third tree with schema C From cbfb1f3f6122de8e664403a896b10cbd15cfc5c2 Mon Sep 17 00:00:00 2001 From: daesunp <138815173+daesunp@users.noreply.github.com> Date: Thu, 13 Nov 2025 21:20:54 +0000 Subject: [PATCH 2/2] fix typos --- .../tree/schema-evolution/allowed-types-rollout.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docs/data-structures/tree/schema-evolution/allowed-types-rollout.mdx b/docs/docs/data-structures/tree/schema-evolution/allowed-types-rollout.mdx index 6108535b78e7..32d65bf4ba55 100644 --- a/docs/docs/data-structures/tree/schema-evolution/allowed-types-rollout.mdx +++ b/docs/docs/data-structures/tree/schema-evolution/allowed-types-rollout.mdx @@ -19,7 +19,7 @@ There are some differences because this guide describes the example as a real sc We start with a schema that only supports numbers and initialize the tree with it: ```typescript // Schema A: only number allowed -const schemaA = SchemaFactoryBeta.optional([SchemeFactoryBeta.number]); +const schemaA = SchemaFactoryBeta.optional([SchemaFactoryBeta.number]); // initialize with schema A const configA = new TreeViewConfiguration({ @@ -36,9 +36,9 @@ To add support for reading strings, we import the alpha APIs and use [`staged`]( ```typescript // Schema B: number or string (string is staged) -const schemaB = SchemeFactoryBeta.optional(SchemeFactoryBeta.types([ +const schemaB = SchemaFactoryBeta.optional(SchemaFactoryBeta.types([ SchemaFactoryBeta.number, - SchemaFactoryBeta.staged(SchemeFactoryBeta.string), + SchemaFactoryBeta.staged(SchemaFactoryBeta.string), ])); ```