-
Notifications
You must be signed in to change notification settings - Fork 576
feat(container-loader): add captureFullContainerState free function #27220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 26 commits
f71f674
d7a03b1
49df699
220a846
ebe5f7f
73d1df0
8a748cc
8d89e8e
2e5c3f7
57a1a76
807f73f
aa4ce9c
2e7f66c
81d04de
a6bb56f
e4065af
1d5a51b
64c6cc4
7739827
cdda9ba
1a4bcfa
d095ae5
6e66f7b
f4621c2
0062623
c21964d
6f7f974
27123eb
ad41359
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| --- | ||
| "@fluidframework/container-loader": minor | ||
| "@fluidframework/container-runtime": minor | ||
| "__section": feature | ||
| --- | ||
| Add a new free function `captureFullContainerState` for serializing a container without loading it, for rehydrating into a future session. | ||
|
Check failure on line 6 in .changeset/wide-foxes-behave.md
|
||
|
|
||
| `captureFullContainerState` produces a self-contained pending-state artifact using only driver-level services (no runtime, no live container). The output is suitable for handing to `loadExistingContainer` or `loadFrozenContainerFromPendingState` later. | ||
|
|
||
| This change extends the serialized `IPendingContainerState` wire format with an optional `attachmentBlobContents` field carrying base64-encoded attachment-blob bytes keyed by storage id. The new field is required by `captureFullContainerState` so attachment blobs can resolve in offline / frozen-load scenarios; an older loader receiving newer pending state silently ignores it and its attachment-blob handles will fail to resolve when live storage is unreachable. | ||
|
Check warning on line 10 in .changeset/wide-foxes-behave.md
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would mention that it's a free function somewhere in the longer description as opposed to the title.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to drop the changeset, we don't need to advertise this at the moment. We can do so when promoting to beta.