You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: client/release/RELEASE-NOTES
+26-4
Original file line number
Diff line number
Diff line change
@@ -11,10 +11,6 @@
11
11
12
12
- **Deleting Archived Items:** The SDK now supports deleting items from the archive.
13
13
14
-
## IMPROVED
15
-
16
-
* The return type of the listing functions has changed from `SdkIterable<T>` to `T[]`.
17
-
18
14
### ⚠️ BREAKING CHANGES ⚠️
19
15
This release contains breaking changes for two functions in the JS SDK.
20
16
@@ -29,6 +25,19 @@ with:
29
25
const vaults = await client.vaults.list();
30
26
```
31
27
28
+
* The return type of the vault listing functions has changed from `SdkIterable<VaultOverview>` to `VaultOverview[]`. To use this in your code, replace:
29
+
```js
30
+
for await (const vault of vaults) {
31
+
console.log(vault.id + " " + vault.title);
32
+
}
33
+
```
34
+
with:
35
+
```js
36
+
for (const vault of vaults) {
37
+
console.log(vault.id + " " + vault.title);
38
+
}
39
+
```
40
+
32
41
**Item listing**
33
42
34
43
* The function name has changed from `listAll` to `list`. To use this in your code, replace:
* The return type of the item listing functions has changed from `SdkIterable<ItemOverview>` to `ItemOverview[]`. To use this in your code, replace:
56
+
```js
57
+
for await (const overview of overviews) {
58
+
console.log(overview.id + " " + overview.title);
59
+
}
60
+
```
61
+
with:
62
+
```js
63
+
for (const overview of overviews) {
64
+
console.log(overview.id + " " + overview.title);
65
+
}
66
+
```
67
+
46
68
This does not affect any code that's already deployed, and will not take effect in your codebase until you choose to update to version 0.3.0 or later of the 1Password JS SDK.
0 commit comments