github microsoft/FluidFramework client_v2.103.0
Fluid Framework v2.103.0 (minor)

16 hours ago

Contents

  • ⚠️ Deprecations
    • Deprecate ICreateAndLoadContainerProps in favor of composable building blocks (#27347)

⚠️ Deprecations

Deprecate ICreateAndLoadContainerProps in favor of composable building blocks (#27347)

ICreateAndLoadContainerProps is now @deprecated. It remains as a structurally-identical alias and the props types that previously extended it (ILoadExistingContainerProps, ICreateDetachedContainerProps, IRehydrateDetachedContainerProps) now extend the building blocks directly, so no caller migration is required for those.

Callers writing new props types should compose from the building blocks directly:

import type {
  IContainerHostProps,
  IContainerDriverServices,
} from "@fluidframework/container-loader/legacy";

// Equivalent to the old ICreateAndLoadContainerProps
type MyProps = IContainerHostProps & IContainerDriverServices;

// Add only what you need
interface MyHostOnlyProps extends IContainerHostProps {
  readonly extraOption: boolean;
}
  • IContainerHostProps covers the code loader plus optional policy / observability fields (options, scope, logger, configProvider, protocolHandlerBuilder, allowReconnect, clientDetailsOverride).
  • IContainerDriverServices covers the urlResolver + documentServiceFactory pair.

ICreateAndLoadContainerProps will be removed in a future major release.

Change details

Commit: 4091373

Affected packages:

  • @fluidframework/container-loader

⬆️ Table of contents

🛠️ Start Building Today!

Please continue to engage with us on GitHub Discussion and Issue pages as you adopt Fluid Framework!

Don't miss a new FluidFramework release

NewReleases is sending notifications on new releases.