box-node-sdk 3.2.0 → 3.2.1

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/package.json +4 -3
  2. package/CHANGELOG.md +0 -533
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "box-node-sdk",
3
3
  "author": "Box <oss@box.com>",
4
- "version": "3.2.0",
4
+ "version": "3.2.1",
5
5
  "description": "Official SDK for Box Plaform APIs",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
@@ -39,7 +39,7 @@
39
39
  "ajv": "^6.12.3",
40
40
  "bluebird": "^3.7.2",
41
41
  "http-status": "^1.4.1",
42
- "jsonwebtoken": "^9.0.0",
42
+ "jsonwebtoken": "^9.0.2",
43
43
  "merge-options": "^1.0.1",
44
44
  "promise-queue": "^2.2.3",
45
45
  "proxy-agent": "^6.3.0",
@@ -93,6 +93,7 @@
93
93
  "overrides": {
94
94
  "leche": {
95
95
  "mocha": "^10.2.0"
96
- }
96
+ },
97
+ "tough-cookie": "^4.1.3"
97
98
  }
98
99
  }
package/CHANGELOG.md DELETED
@@ -1,533 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
-
5
- ## [3.2.0](https://github.com/box/box-node-sdk/compare/v3.1.1...v3.2.0) (2023-09-07)
6
-
7
-
8
- ### New Features and Enhancements
9
-
10
- * Support sign template ([#848](https://github.com/box/box-node-sdk/issues/848)) ([18d3413](https://github.com/box/box-node-sdk/commit/18d3413afeddf43c62dfd0caf1279e61c99b6b83))
11
-
12
- ### [3.1.1](https://github.com/box/box-node-sdk/compare/v3.1.0...v3.1.1) (2023-07-19)
13
-
14
-
15
- ## [3.1.0](https://github.com/box/box-node-sdk/compare/v3.0.0...v3.1.0) (2023-06-01)
16
-
17
-
18
- ### New Features and Enhancements
19
-
20
- * Added support for integration mappings API ([#831](https://github.com/box/box-node-sdk/issues/831)) ([a525327](https://github.com/box/box-node-sdk/commit/a525327c1362628a0ffdb36cb4bf3346ca0e0153))
21
-
22
- ### Bug Fixes
23
-
24
- * Correct types of `userId` and `groupId` for creating collaboration ([#833](https://github.com/box/box-node-sdk/issues/833)) ([f803ff8](https://github.com/box/box-node-sdk/commit/f803ff82330fd78a8dc4875452a21aab54686b2e)), closes [#832](https://github.com/box/box-node-sdk/issues/832)
25
-
26
- ## [3.0.0](https://github.com/box/box-node-sdk/compare/v2.10.0...v3.0.0) (2023-05-23)
27
-
28
- The most important change in this release is **dropping support for Node versions below 12** and changing the **support environments from Node 12 to Node 16**.
29
-
30
- ### Breaking Changes
31
-
32
- - Removed `use_index` usage. ([#812](https://github.com/box/box-node-sdk/pull/812)) ([d56799a](https://github.com/box/box-node-sdk/commit/d56799a61f42265d7785f99e92a449c58d125aef))
33
- - Removed deprecated `BoxClient.batch()` and `BoxClient.batchExec()` method.
34
- - Removed deprecated `CollaborationWhitelist` class, use `CollaborationAllowlist` instead.
35
- - Removed deprecated `CollaborationAllowlist.getWhitelistedDomain()` method, use `CollaborationAllowlist.getAllowlistedDomain()` instead.
36
- - Removed deprecated `CollaborationAllowlist.getAllWhitelistedDomains()` method, use `CollaborationAllowlist.getAllAllowlistedDomains()` instead.
37
- - Remove deprecated `Files.getThumbnail(fileID: string, options?: Record<string, any>, callback?: Function)` method, use `Files.getRepresentationContent( fileID, representationType, options, callback)` instead.
38
-
39
- Migration details can be found [here](https://github.com/box/box-node-sdk/blob/v3.0.0/docs/upgrade/2.x.x%20to%203.x.x.md)
40
-
41
- ### Dependency Upgrades
42
- - Bumped `jsonwebtoken` from 8.5.1 to 9.0.0. ([#802](https://github.com/box/box-node-sdk/pull/802)) ([5b1d4e9](https://github.com/box/box-node-sdk/pull/828/commits/5b1d4e9ec557c14c1d27695733cc0bcae49061cb))
43
- - Bumped `vm2` from 3.9.11 to 3.9.19 ([#826](https://github.com/box/box-node-sdk/pull/826)) ([220df76](https://github.com/box/box-node-sdk/commit/220df765080bc27c91daed51ac46620f6bc8b9ed))
44
-
45
- ## [2.10.0](https://github.com/box/box-node-sdk/compare/v2.9.0...v2.10.0) (2023-05-11)
46
-
47
-
48
- ### New Features and Enhancements
49
-
50
- * Added support for ethical wall API ([#822](https://github.com/box/box-node-sdk/issues/822)) ([4814af3](https://github.com/box/box-node-sdk/commit/4814af35c1741fbfe3fa03f8f0412ade8b38dfcc))
51
- * Added `name` and `signature_color` fields to `SignRequest` and `SignRequestCreateRequest` types and `login_required` field to `SignRequestCreateSigner` type ([#822](https://github.com/box/box-node-sdk/issues/822)) ([4814af3](https://github.com/box/box-node-sdk/commit/4814af35c1741fbfe3fa03f8f0412ade8b38dfcc))
52
-
53
- ## [2.9.0](https://github.com/box/box-node-sdk/compare/v2.8.1...v2.9.0) (2023-04-19)
54
-
55
-
56
- ### New Features and Enhancements
57
-
58
- * New fields in `retention-policy` and `retention-policy-assignment` ([#803](https://github.com/box/box-node-sdk/issues/803)) ([f14ba84](https://github.com/box/box-node-sdk/commit/f14ba84013985513854ad396581d085d1d4f0255))
59
-
60
- ### Bug Fixes
61
-
62
- * return empty object when `tos` status is not present ([#797](https://github.com/box/box-node-sdk/issues/797)) ([12fd9b0](https://github.com/box/box-node-sdk/commit/12fd9b053707471722f53cd1760c8cf59451fe8d))
63
-
64
- ### [2.8.1](https://github.com/box/box-node-sdk/compare/v2.8.0...v2.8.1) (2023-01-05)
65
-
66
-
67
- ### Bug Fixes
68
-
69
- * Fix `getReadStream` delay reading ([#790](https://github.com/box/box-node-sdk/issues/790)) ([6bfc1ee](https://github.com/box/box-node-sdk/commit/6bfc1eebeb9a31606ff96127eeb1ad03d2f13d9c))
70
-
71
- ## [2.8.0](https://github.com/box/box-node-sdk/compare/v2.7.2...v2.8.0) (2022-12-21)
72
-
73
-
74
- ### New Features and Enhancements
75
-
76
- * Session termination ([#782](https://github.com/box/box-node-sdk/issues/782)) ([7fb56c6](https://github.com/box/box-node-sdk/commit/7fb56c625f8eb03e6a5354b67a0debfd9e4ad7c8))
77
-
78
- ### [2.7.2](https://github.com/box/box-node-sdk/compare/v2.7.1...v2.7.2) (2022-11-10)
79
-
80
-
81
- ### Bug Fixes
82
-
83
- * Add `fields` query parameter to file and folder update ([#776](https://github.com/box/box-node-sdk/issues/776)) ([a327deb](https://github.com/box/box-node-sdk/commit/a327debc83d98a4190a5a16cf848417ea5714db9))
84
-
85
- ### [2.7.1](https://github.com/box/box-node-sdk/compare/v2.7.0...v2.7.1) (2022-10-28)
86
-
87
-
88
- ### Bug Fixes
89
-
90
- * Export missing `RetentionType` ([#774](https://github.com/box/box-node-sdk/issues/774)) ([7e6b244](https://github.com/box/box-node-sdk/commit/7e6b244ba63d363ecc921be570140c9e1ed1d032))
91
-
92
- ## [2.7.0](https://github.com/box/box-node-sdk/compare/v2.6.0...v2.7.0) (2022-10-27)
93
-
94
-
95
- ### New Features and Enhancements
96
-
97
- * Add support for modifiable retention policies & enable deleting retention policy assignment ([#769](https://github.com/box/box-node-sdk/issues/769)) ([5e8c776](https://github.com/box/box-node-sdk/commit/5e8c776fc94e9dcf313cc15c96e42fbffaf36b74))
98
-
99
- ## [2.6.0](https://github.com/box/box-node-sdk/compare/v2.5.0...v2.6.0) (2022-09-23)
100
-
101
-
102
- ### New Features and Enhancements
103
-
104
- * Add `content_type`, `redirect_url` field to Sign Request ([#758](https://github.com/box/box-node-sdk/issues/758)) ([8abb9b6](https://github.com/box/box-node-sdk/commit/8abb9b602b13cd72c6c8de549d19756ae147b403))
105
- * Add sign request webhook ([#760](https://github.com/box/box-node-sdk/issues/760)) ([e92d1ab](https://github.com/box/box-node-sdk/commit/e92d1abee5faf58166f4892d7b2e6bc3c6480ac6))
106
- * Added support for Access Only Collaboration ([#759](https://github.com/box/box-node-sdk/issues/759)) ([dd8261f](https://github.com/box/box-node-sdk/commit/dd8261f970c207854058c3ed86ccabf9bec05ea8))
107
-
108
- ## [2.5.0](https://github.com/box/box-node-sdk/compare/v2.4.0...v2.5.0) (2022-08-09)
109
-
110
-
111
- ### New Features and Enhancements
112
-
113
- * Added support update and remove user avatar ([#744](https://github.com/box/box-node-sdk/issues/744)) ([aaf6175](https://github.com/box/box-node-sdk/commit/aaf617528de5c61e19cfb25e28fe77c01532b9fa))
114
-
115
- ### Bug Fixes
116
-
117
- * Fix error while generate token using oauth ([#750](https://github.com/box/box-node-sdk/issues/750)) ([f826291](https://github.com/box/box-node-sdk/commit/f82629108a1af6c4d160de1976fd01fdf0d8dde3)), closes [#286](https://github.com/box/box-node-sdk/issues/286)
118
- * Fix lint error in test file ([#747](https://github.com/box/box-node-sdk/issues/747)) ([3b1e10d](https://github.com/box/box-node-sdk/commit/3b1e10d206aa88a8bf99989bb7ff85776a9864a4))
119
-
120
- ## [2.4.0](https://github.com/box/box-node-sdk/compare/v2.3.0...v2.4.0) (2022-07-13)
121
-
122
-
123
- ### New Features and Enhancements
124
-
125
- * Added support for file requests ([#742](https://github.com/box/box-node-sdk/issues/742)) ([30b2e76](https://github.com/box/box-node-sdk/commit/30b2e767c6c3af68e1463cc801914f9889dc593c))
126
- * Added support of `admin_logs_streaming` stream type ([#740](https://github.com/box/box-node-sdk/issues/740)) ([406950a](https://github.com/box/box-node-sdk/commit/406950a03af54a022427e0532e889a61e0d25152))
127
-
128
- ### Bug Fixes
129
-
130
- * properly handle client errors in streams ([#736](https://github.com/box/box-node-sdk/issues/736)) ([12378d6](https://github.com/box/box-node-sdk/commit/12378d6755c2e3cddcb79439cdcbbe8e1e61df13))
131
-
132
- ## [2.3.0](https://github.com/box/box-node-sdk/compare/v2.2.0...v2.3.0) (2022-04-28)
133
-
134
-
135
- ### New Features and Enhancements
136
-
137
- * Add `description` parameter to `uploadFile` methods ([#730](https://github.com/box/box-node-sdk/issues/730)) ([2596584](https://github.com/box/box-node-sdk/commit/2596584dffb44c1995c8b6b3faa67564f4d32499))
138
-
139
- ### Bug Fixes
140
-
141
- * added missing `js-docs` on shared links ([#731](https://github.com/box/box-node-sdk/issues/731)) ([3554d41](https://github.com/box/box-node-sdk/commit/3554d41d9050e7a81224c35e3e2e257604a0b41b))
142
-
143
- ## [2.2.0](https://github.com/box/box-node-sdk/compare/v2.1.0...v2.2.0) (2022-04-20)
144
-
145
-
146
- ### New Features and Enhancements
147
-
148
- * editable shared links ([#722](https://github.com/box/box-node-sdk/issues/722)) ([f0c0135](https://github.com/box/box-node-sdk/commit/f0c0135511fde46144e6c496432104321af443f6))
149
-
150
- ## [2.1.0](https://github.com/box/box-node-sdk/compare/v2.0.0...v2.1.0) (2022-03-28)
151
-
152
-
153
- ### New Features and Enhancements
154
-
155
- * Client Credentials Grant authentication method ([#709](https://github.com/box/box-node-sdk/issues/709)) ([fbf4e80](https://github.com/box/box-node-sdk/commit/fbf4e80648821e38479b24bf489e7d222ae6c18f))
156
- * Deprecating `index_name` when executing metadata query ([#686](https://github.com/box/box-node-sdk/issues/686)) ([e01cc65](https://github.com/box/box-node-sdk/commit/e01cc650e4e793955be543e93928ad82a3254492))
157
- * **test:** add support for testing with Jest ([#676](https://github.com/box/box-node-sdk/issues/676)) ([1a11759](https://github.com/box/box-node-sdk/commit/1a11759db999510c69d6a27f7becd565620bb000))
158
-
159
- ### Bug Fixes
160
-
161
- * Client Credentials Grant authentication method supports token down-scoping ([#710](https://github.com/box/box-node-sdk/issues/710)) ([730368f](https://github.com/box/box-node-sdk/commit/730368f410ff56e9a8c90feea2192b29c08df198))
162
- * Fix JWT expiration field being float instead of integer ([#715](https://github.com/box/box-node-sdk/issues/715)) ([7e950f1](https://github.com/box/box-node-sdk/commit/7e950f1265a52ce251c42a186c8196089a9ed858)), closes [#713](https://github.com/box/box-node-sdk/issues/713)
163
-
164
- ## [2.0.0](https://github.com/box/box-node-sdk/compare/v1.39.0...v2.0.0) (2021-09-29)
165
-
166
- ### ⚠ BREAKING CHANGES
167
-
168
- * Drop support for Node 6,7 ([#670](https://github.com/box/box-node-sdk/pull/670))
169
-
170
- ### New Features and Enhancements:
171
-
172
- * Add support for is_external_collab_restricted User property ([#668](https://github.com/box/box-node-sdk/pull/668))
173
- * Bump proxy-agent from 4.0.0 to 5.0.0 ([#664](https://github.com/box/box-node-sdk/pull/664))
174
-
175
- ## [1.39.0](https://github.com/box/box-node-sdk/compare/v1.38.0...v1.39.0) (2021-08-30)
176
-
177
- ### New Features and Enhancements:
178
-
179
- * Add support for Box Sign API ([#658](https://github.com/box/box-node-sdk/pull/658))
180
- * Enhance TS Imports ([#656](https://github.com/box/box-node-sdk/pull/656))
181
-
182
- ## [1.38.0](https://github.com/box/box-node-sdk/compare/v1.37.2...v1.38.0) (2021-08-05)
183
-
184
- ### New Features and Enhancements:
185
-
186
- * Add sensitive-language event types for admin invites ([#648](https://github.com/box/box-node-sdk/pull/648))
187
- * Use BetterDocs to adapt JSDocs to TypeScript ([#646](https://github.com/box/box-node-sdk/pull/646))
188
- * Change ProxyAgent import to be dynamic ([#641](https://github.com/box/box-node-sdk/pull/641))
189
- * New API for get files and file versions under retention ([#585](https://github.com/box/box-node-sdk/pull/585))
190
-
191
- ### Bug Fixes:
192
-
193
- * Deeply freeze Config except Buffers and Readable streams ([#651](https://github.com/box/box-node-sdk/pull/651))
194
- * Fix a typo in docs of src/managers/search.ts ([#649](https://github.com/box/box-node-sdk/pull/649))
195
- * Update broken documentation link ([#647](https://github.com/box/box-node-sdk/pull/647))
196
- * fix type annotations for exchangeToken functions ([#645](https://github.com/box/box-node-sdk/pull/645))
197
- * Deprecate files getThumbnail API in favor of getRepresentationContent ([#627](https://github.com/box/box-node-sdk/pull/627))
198
-
199
- ## [1.37.2](https://github.com/box/box-node-sdk/compare/v1.37.1...v1.37.2) (2021-05-20)
200
-
201
- ### Bug Fixes:
202
-
203
- * Fix backwards compatibility issue by moving some TypeScript @types as direct dependencies ([#630](https://github.com/box/box-node-sdk/pull/630))
204
-
205
- ## [1.37.1](https://github.com/box/box-node-sdk/compare/v1.37.0..v1.37.1) (2021-05-19)
206
-
207
- ### Bug Fixes:
208
-
209
- * Insensitive language: replace whitelist with allowlist ([#625](https://github.com/box/box-node-sdk/pull/625))
210
-
211
- ## [1.37.0](https://github.com/box/box-node-sdk/compare/v1.36.0...v1.37.0) (2021-04-16)
212
-
213
- ### New Features and Enhancements:
214
-
215
- * Add support for copyInstanceOnItemCopy field for metadata templates ([#572](https://github.com/box/box-node-sdk/pull/572))
216
-
217
- ### Bug Fixes:
218
-
219
- * Fix webhook signature validation ([#568](https://github.com/box/box-node-sdk/pull/568))
220
- * Update dependencies to patch security vulnerabilities ([#578](https://github.com/box/box-node-sdk/pull/578))
221
-
222
- ## [1.36.0](https://github.com/box/box-node-sdk/compare/v1.35.0...v1.36.0) (2021-01-27)
223
-
224
- ### New Features and Enhancements:
225
-
226
- * Add folder lock functionality ([#560](https://github.com/box/box-node-sdk/pull/560))
227
- * Add support for filtering groups by name ([#561](https://github.com/box/box-node-sdk/pull/561))
228
-
229
- ### Bug Fixes:
230
-
231
- * Update proxy-agent to patch proxy support issue ([#563](https://github.com/box/box-node-sdk/pull/563))
232
- * Update dependencies to patch security vulnerabilities ([#566](https://github.com/box/box-node-sdk/pull/566))
233
-
234
- ## [1.35.0](https://github.com/box/box-node-sdk/compare/v1.34.3...v1.35.0) (2020-11-02)
235
-
236
- ### New Features and Enhancements:
237
-
238
- * Add support for search param to get shared link items ([#547](https://github.com/box/box-node-sdk/pull/547))
239
-
240
- ## [1.34.3](https://github.com/box/box-node-sdk/compare/v1.34.2...v1.34.3) (2020-10-02)
241
-
242
- ### Bug Fixes:
243
-
244
- * Upgrade ajv dependency ([#545](https://github.com/box/box-node-sdk/pull/545))
245
-
246
- ## [1.34.2](https://github.com/box/box-node-sdk/compare/v1.34.1...v1.34.2) (2020-08-20)
247
-
248
- * Make iterator bug fix for uploading files non breaking ([#534](https://github.com/box/box-node-sdk/pull/534))
249
-
250
- ## [1.34.1](https://github.com/box/box-node-sdk/compare/v1.34.0...v1.34.1) (2020-08-17)
251
-
252
- * Fix iterator bug for uploading new file versions ([#531](https://github.com/box/box-node-sdk/pull/531))
253
-
254
- ## [1.34.0](https://github.com/box/box-node-sdk/compare/v1.33.0...v1.34.0) (2020-08-04)
255
-
256
- * Add zip functionality ([#525](https://github.com/box/box-node-sdk/pull/525))
257
- * Add proxy support for `http`, `https`, `socks` and `pac` protocols ([#529](https://github.com/box/box-node-sdk/pull/529))
258
-
259
- ## [1.33.0](https://github.com/box/box-node-sdk/compare/v1.32.0...v1.33.0) (2020-06-25)
260
-
261
- * Add path parameter sanitization ([#505](https://github.com/box/box-node-sdk/pull/505))
262
- * Add support for all streams for uploading files ([#519](https://github.com/box/box-node-sdk/pull/519))
263
-
264
- ## [1.32.0](https://github.com/box/box-node-sdk/compare/v1.31.0...v1.32.0) (2020-04-01)
265
-
266
- * Temporarily removed Node 4 and Node 5 builds from Travis, due to tests not passing. Will investigate, going forward ([#495](https://github.com/box/box-node-sdk/pull/495)).
267
- * Fixed an issue where an error is thrown during a retry when a response is not returned by the previous call ([#477](https://github.com/box/box-node-sdk/pull/477)).
268
- * Added the ability to [query](./docs/metadata.md#query) Box items based on their metadata ([#487](https://github.com/box/box-node-sdk/pull/487)).
269
-
270
- ## [1.31.0](https://github.com/box/box-node-sdk/compare/v1.30.0...v1.31.0) (2020-02-13)
271
-
272
- * Fixed Authentication Request Retries
273
- * Added marker-based paging for users endpoints
274
- * Added `getNextMarker()` to PagingIterator to get the next marker
275
-
276
- ## [1.30.0](https://github.com/box/box-node-sdk/compare/v1.29.1...v1.30.0) (2019-11-21)
277
-
278
- * Deprecated Batch API methods
279
- * Added support for [token exchange](./lib/box-client.js#L495) using shared links
280
-
281
- ## [1.29.1](https://github.com/box/box-node-sdk/compare/v1.29.0...v1.29.1) (2019-08-22)
282
-
283
- * Fixed an issue where JWT authentication requests could fail after being rate limited
284
-
285
- ## [1.29.0](https://github.com/box/box-node-sdk/compare/v1.28.0...v1.29.0) (2019-04-25)
286
-
287
- * Added convenience methods for setting metadata on [files](./docs/metadata.md#set-metadata-on-a-file)
288
- and [folders](./docs/metadata.md#set-metadata-on-a-folder) ([#376](https://github.com/box/box-node-sdk/pull/376))
289
-
290
- ## [1.28.0](https://github.com/box/box-node-sdk/compare/v1.27.0...v1.28.0) (2019-03-28)
291
-
292
- * Added methods for [moving](./docs/web-links.md#move-a-web-link) and [copying](./docs/web-links.md#move-a-web-link)
293
- weblinks, as well as [adding or removing from a collection](./docs/web-links.md#add-web-link-to-a-collection)
294
-
295
- ## [1.27.0](https://github.com/box/box-node-sdk/compare/v1.26.2...v1.27.0) (2019-02-28)
296
-
297
- * Added the trace ID from API response headers to error messages for easier debugging
298
- * Added more safety checks in the error flow to protect against throwing when handling a malformed request
299
- * Added support for [retrieving a user's avatar image](./docs/users.md#get-user-avatar)
300
-
301
- ## [1.26.2](https://github.com/box/box-node-sdk/compare/v1.26.1...v1.26.2) (2019-02-22)
302
-
303
- * Fixed an error where under high request rates, code in the error handling logic could throw when handling a
304
- malformed request
305
-
306
- ## [1.26.1](https://github.com/box/box-node-sdk/compare/v1.26.0...v1.26.1) (2019-02-12)
307
-
308
- * Fixed an error where some methods could throw an error when constructing an iterator
309
-
310
- ## [1.26.0](https://github.com/box/box-node-sdk/compare/v1.25.0...v1.26.0) (2019-02-12)
311
-
312
- * Added support for [replying to a comment](./docs/comments.md#reply-to-a-comment) (thanks @jpan-box!)
313
- * Fixed an issue where calling `client.events.get()` could return an iterator that would only iterate over
314
- the first chunk of events. This method will now always return the raw JSON data in order to enable manual
315
- paging. For automatic paging through events, `client.events.getEventStream()` or
316
- `client.events.getEnterpriseEventStream()` should be used instead.
317
-
318
- ## [1.25.0](https://github.com/box/box-node-sdk/compare/v1.24.1...v1.25.0) (2019-01-24)
319
-
320
- * Added the `retryStrategy` config parameter to allow customizing how the SDK retries failing requests
321
-
322
- ## [1.24.1](https://github.com/box/box-node-sdk/compare/v1.24.0...v1.24.1) (2019-01-11)
323
-
324
- * Fixed an issue where token expiration was not being correctly handled
325
-
326
- ## [1.24.0](https://github.com/box/box-node-sdk/compare/v1.23.0...v1.24.0) (2018-12-10)
327
-
328
- * Added a configuration option for populating the first-party client analytics header information
329
-
330
- ## [1.23.0](https://github.com/box/box-node-sdk/compare/vA...v1.23.0) (2018-11-21)
331
-
332
- * Added an `etag` option to common file and folder methods to allow handling race conditions
333
- * [`client.files.update()`](./docs/files.md#update-a-files-information)
334
- * [`client.files.delete()`](./docs/files.md#delete-a-file)
335
- * [`client.files.deletePermanently()`](./docs/trash.md#delete-a-file-from-the-trash)
336
- * [`client.files.deleteVersion()`](./docs/files.md#delete-a-previous-file-version)
337
- * [`client.folders.update()`](./docs/folders.md#update-a-folders-information)
338
- * [`client.folders.delete()`](./docs/folders.md#delete-a-folder)
339
- * [`client.folders.deletePermanently()`](./docs/trash.md#delete-a-folder-from-the-trash)
340
-
341
- ## [1.22.1](https://github.com/box/box-node-sdk/compare/v1.22.0...v1.22.1) (2018-11-15)
342
-
343
- * Fixed an issue where retrying JWT auth token requests would sometimes fail due to a non-unique `jti` claim
344
-
345
- ## [1.22.0](https://github.com/box/box-node-sdk/compare/v1.21.0...v1.22.0) (2018-09-17)
346
-
347
- * Chunked Uploader methods now return promises for [simpler handling of chunked uploads](./docs/files.md#automatic-uploader)
348
- * File attributes to set on the newly-uploaded file can now be
349
- [passed via `options.fileAttributes`](./docs/files.md#automatic-uploader) when creating a Chunked Uploader
350
-
351
- ## [1.21.0](https://github.com/box/box-node-sdk/compare/v1.20.0...v1.21.0) (2018-09-13)
352
-
353
- * Added the ability to close an Event Stream by calling `eventStream.destroy()` (thanks @boneskull!)
354
- * Improved error messages related to certain authentication failure cases
355
-
356
- ## [1.20.0](https://github.com/box/box-node-sdk/compare/v1.19.0...v1.20.0) (2018-08-09)
357
-
358
- * Added missing values to the `client.webhooks.triggerTypes` enum (thanks @MathersMax!)
359
- * Added support for [Metadata Cascade Policies](./docs/metadata.md#create-cascade-policy)
360
-
361
- ## [1.19.0](https://github.com/box/box-node-sdk/compare/v1.18.0...v1.19.0) (2018-06-14)
362
-
363
- * Added `generateRepresentations` option to [`files.getRepresentationContent()`](./docs/files.md#get-representation-content)
364
-
365
- ## [1.18.0](https://github.com/box/box-node-sdk/compare/v1.17.0...v1.18.0) (2018-05-24)
366
-
367
- * Updated dependencies to resolve potential security issues:
368
- * `request@2.87.0`
369
- * Transitive dependencies of `jsonwebtoken@8.2.1`
370
- * Added a static `BoxSDK.getBasicClient()` method to enable creating a client without needing
371
- to specify a client ID and secret (thanks to @cbetta)
372
-
373
- ## [1.17.0](https://github.com/box/box-node-sdk/compare/v1.16.1...v1.17.0) (2018-05-10)
374
-
375
- * Updated dependencies: `request@2.85.0`, `jsonwebtoken@8.2.1`
376
- * Added support for [Storage Policies](./docs/storage-policies.md)
377
- * Added the option to use a Token Store for caching tokens with App Auth using JWT
378
-
379
- ## [1.16.1](https://github.com/box/box-node-sdk/compare/v1.16.0...v1.16.1) (2018-04-26)
380
-
381
- * Fixed a bug where metadata template deletion would not properly return results via callback
382
-
383
- ## [1.16.0](https://github.com/box/box-node-sdk/compare/v1.15.0...v1.16.0) (2018-04-10)
384
-
385
- * Added support for [assigning Retention Policies to Metadata Templates](https://github.com/box/box-node-sdk/blob/main/docs/retention-policies.md#assign-retention-policy)
386
-
387
- ## [1.15.0](https://github.com/box/box-node-sdk/compare/v1.14.1...v1.15.0) (2018-03-29)
388
-
389
- * Fixed [`client.webhooks.validateMessage() and `sdk.validateWebhookMessage()`](https://github.com/box/box-node-sdk/blob/main/docs/webhooks.md#validate-a-webhook-message)
390
- to accept the request body as an `Object`
391
- * Fixed `sdk.configure()` to correct reconfigure all options
392
- * Improved error messages for API errors and added the request object as `error.request` for easier debugging
393
-
394
- ## [1.14.1](https://github.com/box/box-node-sdk/compare/v1.14.0...v1.14.1) (2018-03-13)
395
-
396
- * Fixed a bug when `files.getReadStream()` was called with null options
397
-
398
- ## [1.14.0](https://github.com/box/box-node-sdk/compare/v1.13.0...v1.14.0) (2018-03-12)
399
-
400
- * Added support for [getting a metadata template by ID](./docs/metadata.md#get-by-id)
401
- * Added a `byteRange` option to [file download](./docs/files.md#download-a-file) to support partial file download
402
- * Improved error messages when using promises and in authentication flows
403
-
404
- ## [1.13.0](https://github.com/box/box-node-sdk/compare/v1.12.1...v1.13.0) (2018-03-01)
405
-
406
- * Added support for getting a [stream of file representation contents](./docs/files.md#get-representation-content)
407
- * Switched to using exponential backoff for request retries
408
-
409
- ## [1.12.1](https://github.com/box/box-node-sdk/compare/v1.12.0...v1.12.1) (2018-01-25)
410
-
411
- * Fixed an issue where chunked uploader would not work with response streams from the request library
412
- (0e7014561f9cd0f7f38f98536b3f0c3946231d2e)
413
-
414
- ## [1.12.0](https://github.com/box/box-node-sdk/compare/v1.11.0...v1.12.0) (2018-01-11)
415
-
416
- * Added support for [metadata template deletion](./docs/metadata.md#delete-metadata-template)
417
-
418
- ## [1.11.0](https://github.com/box/box-node-sdk/compare/v1.10.1...v1.11.0) (2017-12-12)
419
-
420
- * Added options to preserve file timestamps on [file upload](./docs/files.md#upload-a-file)
421
- and to rename a file or preserve modification timestamp on [new version upload](./docs/files.md#upload-a-new-version-of-a-file)
422
- * Added [Collaboration Whitelist](./docs/collaboration-whitelist.md) functionality to allow enterprise admins
423
- to control which external users can collaborate on their content
424
- * Added an option to Token Exchange to generate [annotator tokens](./docs/authentication.md#annotator-tokens) for use with Box View
425
-
426
- ## [1.10.1](https://github.com/box/box-node-sdk/compare/v1.10.0...v1.10.1) (2017-11-28)
427
-
428
- * Updated to jsonwebtoken@8.1.0 to fix an issue where some users were getting
429
- an error when using App Auth
430
-
431
- ## [1.10.0](https://github.com/box/box-node-sdk/compare/v1.9.0...v1.10.0) (2017-01-14)
432
-
433
- * Added support for [Terms of Service](./docs/terms-of-service.md) endpoints
434
- * Fixed a bug where receiving a collection without paging parameters from the API
435
- would cause the SDK to throw an exception when using the `iterators` SDK option.
436
- Now, this will return an iterator over the items returned by the API.
437
- * Fixed a bug in Token Exchange where passing multiple scopes would result in an error
438
- * Added support for [getting Representations info on a file](./docs/files.md#get-representation-info)
439
-
440
- ## [1.9.0](https://github.com/box/box-node-sdk/compare/v1.8.0...v1.9.0) (2017-09-12)
441
-
442
- * Fixed token methods to return bluebird Promises instead of native Promises
443
- * Added support for the `notify` and `can_view_path` options on Collaborations
444
-
445
- ## [1.8.0](https://github.com/box/box-node-sdk/compare/v1.7.0...v1.8.0) (2017-08-21)
446
-
447
- * Added support for [Batch API](./docs/client.md#batch-api)
448
- * Fixed a bug where the Event Stream would make more API calls than necessary,
449
- potentially hitting Box API rate limits
450
- * Added Promise support to methods on the SDK object
451
- * Added Node.js version to the User-Agent header that the SDK sends
452
- * Fixed a bug where using multiple Persistent Clients instances could cause some
453
- clients to end up with expired tokens
454
-
455
- ## [1.7.0](https://github.com/box/box-node-sdk/compare/v1.6.0...v1.7.0) (2017-07-19)
456
-
457
- * Add support for passing IP to all token methods, and fixed a bug where a client's IP was not being correctly reported on token refreshes
458
-
459
- ## [1.6.0](https://github.com/box/box-node-sdk/compare/v1.5.1...v1.6.0) (2017-06-23)
460
-
461
- * Added [Recent Items](./docs/recent-items.md) support
462
- * Updated app auth expiration time default value and validation
463
-
464
- ## [1.5.1](https://github.com/box/box-node-sdk/compare/v1.5.0...v1.5.1) (2017-06-15)
465
-
466
- * Revert deep-freezing Config properties, since it was causing errors
467
-
468
- ## [1.5.0](https://github.com/box/box-node-sdk/compare/v1.4.2...v1.5.0) (2017-06-15)
469
-
470
- * Added support for [Token Exchange](./docs/authentication.md#token-exchange),
471
- which allows a client to get downscoped tokens suitable for passing to a browser
472
- app or worker process.
473
- * Ensured deeply-nested Config properties are immutable
474
-
475
- ## [1.4.2](https://github.com/box/box-node-sdk/compare/v1.4.1...v1.4.2) (2017-05-22)
476
-
477
- * Fixed `BoxSDK.getPreconfiguredInstance()` to configure webhook keys
478
-
479
- ## [1.4.1](https://github.com/box/box-node-sdk/compare/v1.4.0...v1.4.1) (2017-05-22)
480
-
481
- * Fixed `BoxSDK.getPreconfiguredInstance()` when app auth setttings are not populated
482
-
483
- ## [1.4.0](https://github.com/box/box-node-sdk/compare/v1.3.0...v1.4.0) (2017-05-19)
484
-
485
- * Added support for [file collaborations](./docs/collaborations.md#add-a-collaboration).
486
- Users can now invite others to collaborate on single files.
487
- See [the blog post](https://blog.box.com/blog/file-collaboration-api/) for more information.
488
- * Fixed an issue where users were unable to use JWT Server Auth when their computers' clocks
489
- were not synchronized with the Box API servers.
490
- * All asynchronous client methods now return Promises in addition to taking a
491
- (now-optional) callback parameter, so you can write more modern JS with the SDK.
492
- * The SDK can now be preconfigured using a JSON blob that can be downloaded in the
493
- Box Dev Console for JWT Server Authentication apps, making it easier to get started
494
- developing!
495
- * Added support for [chunked upload](./docs/files.md#chunked-upload), where a large
496
- file can be uploaded one piece at a time. This makes large file uploads much faster
497
- and more reliable, since parts can be uploaded in parallel and failed parts can be
498
- retried in isolation.
499
- * Added an `is_confirmed` option to [email alias creation](./docs/users.md#add-email-alias) for
500
- admins to auto-confirm the alias.
501
- * Added support for the [Enterprise Events stream](./docs/events.md#enterprise-events).
502
- * Added an option to have collections methods (e.g. `folders.getItems()`,
503
- `enterprise.getUsers()`, etc) return [async iterators](./README.md#iterators) that will automatically
504
- page through the collection. This conforms to the [proposed async iteration spec](https://github.com/tc39/proposal-async-iteration),
505
- which will eventually allow them to be used in ergonomic for-await-of loop syntax.
506
-
507
- ## [1.3.0](https://github.com/box/box-node-sdk/compare/v1.2.0...v1.3.0) (2017-01-24)
508
-
509
- * Added `BoxSDK.validateWebhookMessage()` and `client.webhooks.validateMessage()` for validating webhook messages from Box
510
-
511
- ## [1.2.0](https://github.com/box/box-node-sdk/compare/v1.1.0...v1.2.0) (2016-12-12)
512
-
513
- * Added methods for all API endpoints; we now have full API coverage :tada:
514
- * Added support for renaming a file or folder on copy
515
- * Added `client.asUser(userID)` and `client.asSelf()` to support making calls on behalf of managed users
516
- * Fixed event streams so they don't go into an infinite error loop when auth expires
517
- * Fixed an error where App Auth clients would not be able to authorize due to clock skew
518
- * Fixed the `mdfilters` parameter in `client.search.query()` to support metadata search
519
- * Cloned options objects to prevent modification of passed-in objects by the SDK
520
- * Added better error messaging to the sample app
521
-
522
- ## [1.1.0](https://github.com/box/box-node-sdk/compare/v1.0.0...v1.1.0) (2016-09-27)
523
-
524
- * Added endpoint to get a file's tasks
525
- * Fixed issues with stream uploads
526
- * Improved performance of file uploads
527
- * Added endpoints to delete files and folders from trash
528
- * Added endpoint to get a trashed folder
529
- * Upgraded request dependency to fix ReDoS vulnerability
530
-
531
- ## [1.0.0] (2016-07-13)
532
-
533
- Initial release.