@fluidframework/azure-client 2.1.0-274160 → 2.1.0-276326

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.
package/README.md CHANGED
@@ -106,7 +106,7 @@ const schema = {
106
106
  ],
107
107
  };
108
108
  const azureClient = new AzureClient(props);
109
- const { container, services } = await azureClient.createContainer(schema);
109
+ const { container, services } = await azureClient.createContainer(schema, "2" /* compatibilityMode */);
110
110
 
111
111
  // Set any default data on the container's `initialObjects` before attaching
112
112
  // Returned ID can be used to fetch the container via `getContainer` below
@@ -121,7 +121,7 @@ Using the `AzureClient` object the developer can create and get Fluid containers
121
121
  import { AzureClient } from "@fluidframework/azure-client";
122
122
 
123
123
  const azureClient = new AzureClient(props);
124
- const { container, services } = await azureClient.getContainer("_unique-id_", schema);
124
+ const { container, services } = await azureClient.getContainer("_unique-id_", schema, "2" /* compatibilityMode */);
125
125
  ```
126
126
 
127
127
  **Note:** When using the `AzureClient` with `tenantId` set to `"local"`, all containers that have been created will be deleted when the instance of the local Azure Fluid Relay service (not client) that was run from the terminal window is closed. However, any containers created when running against a remote Azure Fluid Relay service will be persisted. Container IDs **cannot** be reused between local and remote Azure Fluid Relay services to fetch back the same container.
@@ -143,7 +143,7 @@ const schema = {
143
143
  };
144
144
 
145
145
  // Fetch back the container that had been created earlier with the same ID and schema
146
- const { container, services } = await azureClient.getContainer("_unique-id_", schema);
146
+ const { container, services } = await azureClient.getContainer("_unique-id_", schema, "2" /* compatibilityMode */);
147
147
 
148
148
  // Get our list of initial objects that we had defined in the schema. initialObjects here will have the same signature
149
149
  const initialObjects = container.initialObjects;
@@ -168,7 +168,7 @@ const schema = {
168
168
  dynamicObjectTypes: [SharedString],
169
169
  };
170
170
 
171
- const { container, services } = await azureClient.getContainer("_unique-id_", schema);
171
+ const { container, services } = await azureClient.getContainer("_unique-id_", schema, "2" /* compatibilityMode */);
172
172
  const map1 = container.initialObjects.map1;
173
173
 
174
174
  const text1 = await container.create(SharedString);
@@ -92,4 +92,6 @@ export { IUser }
92
92
 
93
93
  export { ScopeType }
94
94
 
95
+ // (No @packageDocumentation comment for this package)
96
+
95
97
  ```
package/dist/legacy.d.ts CHANGED
@@ -28,7 +28,7 @@ export {
28
28
  ITokenResponse,
29
29
  IUser,
30
30
 
31
- // @alpha APIs
31
+ // @legacy APIs
32
32
  ITokenClaims,
33
33
  ScopeType
34
34
  } from "./index.js";
package/lib/legacy.d.ts CHANGED
@@ -28,7 +28,7 @@ export {
28
28
  ITokenResponse,
29
29
  IUser,
30
30
 
31
- // @alpha APIs
31
+ // @legacy APIs
32
32
  ITokenClaims,
33
33
  ScopeType
34
34
  } from "./index.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/azure-client",
3
- "version": "2.1.0-274160",
3
+ "version": "2.1.0-276326",
4
4
  "description": "A tool to enable creation and loading of Fluid containers using the Azure Fluid Relay service",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -57,32 +57,32 @@
57
57
  "main": "lib/index.js",
58
58
  "types": "lib/public.d.ts",
59
59
  "dependencies": {
60
- "@fluidframework/container-definitions": "2.1.0-274160",
61
- "@fluidframework/container-loader": "2.1.0-274160",
62
- "@fluidframework/core-interfaces": "2.1.0-274160",
63
- "@fluidframework/core-utils": "2.1.0-274160",
64
- "@fluidframework/driver-definitions": "2.1.0-274160",
65
- "@fluidframework/driver-utils": "2.1.0-274160",
66
- "@fluidframework/fluid-static": "2.1.0-274160",
67
- "@fluidframework/map": "2.1.0-274160",
68
- "@fluidframework/routerlicious-driver": "2.1.0-274160",
69
- "@fluidframework/runtime-utils": "2.1.0-274160",
70
- "@fluidframework/telemetry-utils": "2.1.0-274160",
60
+ "@fluidframework/container-definitions": "2.1.0-276326",
61
+ "@fluidframework/container-loader": "2.1.0-276326",
62
+ "@fluidframework/core-interfaces": "2.1.0-276326",
63
+ "@fluidframework/core-utils": "2.1.0-276326",
64
+ "@fluidframework/driver-definitions": "2.1.0-276326",
65
+ "@fluidframework/driver-utils": "2.1.0-276326",
66
+ "@fluidframework/fluid-static": "2.1.0-276326",
67
+ "@fluidframework/map": "2.1.0-276326",
68
+ "@fluidframework/routerlicious-driver": "2.1.0-276326",
69
+ "@fluidframework/runtime-utils": "2.1.0-276326",
70
+ "@fluidframework/telemetry-utils": "2.1.0-276326",
71
71
  "axios": "^1.6.2"
72
72
  },
73
73
  "devDependencies": {
74
74
  "@arethetypeswrong/cli": "^0.15.2",
75
75
  "@biomejs/biome": "^1.7.3",
76
76
  "@fluid-tools/build-cli": "^0.39.0",
77
- "@fluidframework/aqueduct": "2.1.0-274160",
77
+ "@fluidframework/aqueduct": "2.1.0-276326",
78
78
  "@fluidframework/azure-client-previous": "npm:@fluidframework/azure-client@2.0.0-rc.5.0.0",
79
- "@fluidframework/azure-local-service": "2.1.0-274160",
79
+ "@fluidframework/azure-local-service": "2.1.0-276326",
80
80
  "@fluidframework/build-common": "^2.0.3",
81
81
  "@fluidframework/build-tools": "^0.39.0",
82
82
  "@fluidframework/eslint-config-fluid": "^5.3.0",
83
- "@fluidframework/test-runtime-utils": "2.1.0-274160",
84
- "@fluidframework/test-utils": "2.1.0-274160",
85
- "@fluidframework/tree": "2.1.0-274160",
83
+ "@fluidframework/test-runtime-utils": "2.1.0-276326",
84
+ "@fluidframework/test-utils": "2.1.0-276326",
85
+ "@fluidframework/tree": "2.1.0-276326",
86
86
  "@microsoft/api-extractor": "^7.45.1",
87
87
  "@types/mocha": "^9.1.1",
88
88
  "@types/node": "^18.19.0",
@@ -104,8 +104,8 @@
104
104
  },
105
105
  "scripts": {
106
106
  "api": "fluid-build . --task api",
107
- "api-extractor:commonjs": "flub generate entrypoints --outFileAlpha legacy --outDir ./dist",
108
- "api-extractor:esnext": "flub generate entrypoints --outFileAlpha legacy --outDir ./lib --node10TypeCompat",
107
+ "api-extractor:commonjs": "flub generate entrypoints --outDir ./dist",
108
+ "api-extractor:esnext": "flub generate entrypoints --outDir ./lib --node10TypeCompat",
109
109
  "build": "fluid-build . --task build",
110
110
  "build:commonjs": "fluid-build . --task commonjs",
111
111
  "build:compile": "fluid-build . --task compile",