@microsoft/managed-apps 0.5.19 → 0.5.21

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.
Files changed (2) hide show
  1. package/README.md +2 -19
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @microsoft/managed-apps
2
2
 
3
- The client SDK for Microsoft managed apps. Code running inside a managed app imports this package to talk to the host — app context, the typed data client (Dataverse and connector operations), and developer telemetry. The SDK runs in the app iframe and communicates with the host over the channel protocol.
3
+ The client SDK for Microsoft managed apps. Import it in your app to access the app context, the signed-in user, the typed data client (Dataverse and connector operations), and developer telemetry.
4
4
 
5
5
  The package has no root entry; import from one of the subpaths below. Usage and full API details are covered in the [Microsoft managed apps documentation](https://go.microsoft.com/fwlink/?LinkId=2369054).
6
6
 
@@ -12,14 +12,12 @@ The package has no root entry; import from one of the subpaths below. Usage and
12
12
 
13
13
  `getUser`, `IUser`.
14
14
 
15
- `getUser()` returns the signed-in user's `fullName`, `objectId`, and `tenantId` supplied
16
- by the host:
15
+ `getUser()` returns the signed-in user's `fullName`, `objectId`, and `tenantId`:
17
16
 
18
17
  ```typescript
19
18
  import { getUser } from '@microsoft/managed-apps/auth';
20
19
 
21
20
  const user = await getUser();
22
- // Example host-supplied identity:
23
21
  // {
24
22
  // fullName: 'Alex Example',
25
23
  // objectId: '11111111-1111-4111-8111-111111111111',
@@ -27,21 +25,6 @@ const user = await getUser();
27
25
  // }
28
26
  ```
29
27
 
30
- Results are cached for the app-frame session only when both IDs contain
31
- non-whitespace characters. The SDK relies on the host's typed response contract;
32
- these checks determine cache eligibility, not response validation. An empty
33
- `fullName` is valid when both IDs are present. Subsequent calls return the same
34
- cached object without another host request; field values are never trimmed or normalized.
35
-
36
- For compatibility, blank or partial identities still resolve successfully but are
37
- not cached. A later explicit `getUser()` call requests identity from the host again;
38
- there are no automatic retries. Genuine host/channel failures still reject.
39
-
40
- An SDK-only update cannot supply IDs omitted by an older host or missing from the
41
- signed-in account. Upgrade the host to receive its identity-wiring fix and open a
42
- fresh host/app frame. Identity belongs to that lifetime; account changes also require
43
- a fresh host/frame.
44
-
45
28
  ### `@microsoft/managed-apps/data`
46
29
 
47
30
  `getClient`, `DataClient`, `IOperationOptions`, `IOperationResult`, `serializeMultiSelectPicklistFields`, `deserializeMultiSelectPicklistFields`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/managed-apps",
3
- "version": "0.5.19",
3
+ "version": "0.5.21",
4
4
  "type": "module",
5
5
  "description": "Client SDK for Microsoft Managed Apps",
6
6
  "license": "MIT",
@@ -36,7 +36,7 @@
36
36
  "clean": "bun ../../scripts/clean.ts dist .turbo tsconfig.tsbuildinfo tsconfig.build.tsbuildinfo"
37
37
  },
38
38
  "dependencies": {
39
- "@microsoft/managed-apps-common": "0.26.0"
39
+ "@microsoft/managed-apps-common": "0.28.0"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@repo/repo-config": "0.0.0",