cacache 15.0.4 → 15.2.0

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/CHANGELOG.md DELETED
@@ -1,792 +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
- ### [15.0.4](https://github.com/npm/cacache/compare/v15.0.3...v15.0.4) (2020-06-03)
6
-
7
-
8
- ### Bug Fixes
9
-
10
- * replace move-file dep with @npmcli/move-file ([bf88af0](https://github.com/npm/cacache/commit/bf88af04e50cca9b54041151139ffc1fd415e2dc)), closes [#37](https://github.com/npm/cacache/issues/37)
11
-
12
- ### [15.0.3](https://github.com/npm/cacache/compare/v15.0.2...v15.0.3) (2020-04-28)
13
-
14
-
15
- ### Bug Fixes
16
-
17
- * actually remove move-concurrently dep ([29e6eec](https://github.com/npm/cacache/commit/29e6eec9fee73444ee09daf1c1be06ddd5fe57f6))
18
-
19
- ### [15.0.2](https://github.com/npm/cacache/compare/v15.0.1...v15.0.2) (2020-04-28)
20
-
21
-
22
- ### Bug Fixes
23
-
24
- * tacks should be a dev dependency ([93ec158](https://github.com/npm/cacache/commit/93ec15852f0fdf1753ea7f75b4b8926daf8a7565))
25
-
26
- ## [15.0.1](https://github.com/npm/cacache/compare/v15.0.0...v15.0.1) (2020-04-27)
27
-
28
- * **deps:** Use move-file instead of move-file-concurrently. ([92b125](https://github.com/npm/cacache/commit/92b1251a11b9848878b6c0d101b18bd8845acaa6))
29
-
30
- ## [15.0.0](https://github.com/npm/cacache/compare/v14.0.0...v15.0.0) (2020-02-18)
31
-
32
-
33
- ### ⚠ BREAKING CHANGES
34
-
35
- * drop figgy-pudding and use canonical option names.
36
-
37
- ### Features
38
-
39
- * remove figgy-pudding ([57d11bc](https://github.com/npm/cacache/commit/57d11bce34f979247d1057d258acc204c4944491))
40
-
41
- ## [14.0.0](https://github.com/npm/cacache/compare/v13.0.1...v14.0.0) (2020-01-28)
42
-
43
-
44
- ### ⚠ BREAKING CHANGES
45
-
46
- * **deps:** bumps engines to >= 10
47
-
48
- * **deps:** tar v6 and mkdirp v1 ([5a66e7a](https://github.com/npm/cacache/commit/5a66e7a))
49
-
50
- ### [13.0.1](https://github.com/npm/cacache/compare/v13.0.0...v13.0.1) (2019-09-30)
51
-
52
-
53
- ### Bug Fixes
54
-
55
- * **fix-owner:** chownr.sync quits on non-root uid ([08801be](https://github.com/npm/cacache/commit/08801be))
56
-
57
- ## [13.0.0](https://github.com/npm/cacache/compare/v12.0.3...v13.0.0) (2019-09-25)
58
-
59
-
60
- ### ⚠ BREAKING CHANGES
61
-
62
- * This subtly changes the streaming interface of
63
- everything in cacache that streams, which is, well, everything in
64
- cacache. Most users will probably not notice, but any code that
65
- depended on stream behavior always being deferred until next tick will
66
- need to adjust.
67
-
68
- The mississippi methods 'to', 'from', 'through', and so on, have been
69
- replaced with their Minipass counterparts, and streaming interaction
70
- with the file system is done via fs-minipass.
71
-
72
- The following modules are of interest here:
73
-
74
- - [minipass](http://npm.im/minipass) The core stream library.
75
-
76
- - [fs-minipass](http://npm.im/fs-minipass) Note that the 'WriteStream'
77
- class from fs-minipass is _not_ a Minipass stream, but rather a plain
78
- old EventEmitter that duck types as a Writable.
79
-
80
- - [minipass-collect](http://npm.im/minipass-collect) Gather up all the
81
- data from a stream. Cacache only uses Collect.PassThrough, which is a
82
- basic Minipass passthrough stream which emits a 'collect' event with
83
- the completed data just before the 'end' event.
84
-
85
- - [minipass-pipeline](http://npm.im/minipass-pipeline) Connect one or
86
- more streams into a pipe chain. Errors anywhere in the pipeline are
87
- proxied down the chain and then up to the Pipeline object itself.
88
- Writes go into the head, reads go to the tail. Used in place of
89
- pump() and pumpify().
90
-
91
- - [minipass-flush](http://npm.im/minipass-flush) A Minipass passthrough
92
- stream that defers its 'end' event until after a flush() method has
93
- completed (either calling the supplied callback, or returning a
94
- promise.) Use in place of flush-write-stream (aka mississippi.to).
95
-
96
- Streams from through2, concat-stream, and the behavior provided by
97
- end-of-stream are all implemented in Minipass itself.
98
-
99
- Features of interest to cacache, which make Minipass a particularly good
100
- fit:
101
-
102
- - All of the 'endish' events are normalized, so we can just listen on
103
- 'end' and know that finish, prefinish, and close will be handled as
104
- well.
105
- - Minipass doesn't waste time [containing
106
- zalgo](https://blog.izs.me/2013/08/designing-apis-for-asynchrony).
107
- - Minipass has built-in support for promises that indicate the end or
108
- error: stream.promise(), stream.collect(), and stream.concat().
109
- - With reliable and consistent timing guarantees, much less
110
- error-checking logic is required. We can be more confident that an
111
- error is being thrown or emitted in the correct place, rather than in
112
- a callback which is deferred, resulting in a hung promise or
113
- uncaughtException.
114
-
115
- The biggest downside of Minipass is that it lacks some of the internal
116
- characteristics of node-core streams, which many community modules use
117
- to identify streams. They have no _writableState or _readableState
118
- objects, or _read or _write methods. As a result, the is-stream module
119
- (at least, at the time of this commit) doesn't recognize Minipass
120
- streams as readable or writable streams.
121
-
122
- All in all, the changes required of downstream users should be minimal,
123
- but are unlikely to be zero. Hence the semver major change.
124
-
125
- ### Features
126
-
127
- * replace all streams with Minipass streams ([f4c0962](https://github.com/npm/cacache/commit/f4c0962))
128
- * **deps:** Add minipass and minipass-pipeline ([a6545a9](https://github.com/npm/cacache/commit/a6545a9))
129
- * **promise:** converted .resolve to native promise, converted .map and .reduce to native ([220c56d](https://github.com/npm/cacache/commit/220c56d))
130
- * **promise:** individually promisifing functions as needed ([74b939e](https://github.com/npm/cacache/commit/74b939e))
131
- * **promise:** moved .reject from bluebird to native promise ([1d56da1](https://github.com/npm/cacache/commit/1d56da1))
132
- * **promise:** removed .fromNode, removed .join ([9c457a0](https://github.com/npm/cacache/commit/9c457a0))
133
- * **promise:** removed .map, replaced with p-map. removed .try ([cc3ee05](https://github.com/npm/cacache/commit/cc3ee05))
134
- * **promise:** removed .tap ([0260f12](https://github.com/npm/cacache/commit/0260f12))
135
- * **promise:** removed .using/.disposer ([5d832f3](https://github.com/npm/cacache/commit/5d832f3))
136
- * **promise:** removed bluebird ([c21298c](https://github.com/npm/cacache/commit/c21298c))
137
- * **promise:** removed bluebird specific .catch calls ([28aeeac](https://github.com/npm/cacache/commit/28aeeac))
138
- * **promise:** replaced .reduce and .mapSeries ([478f5cb](https://github.com/npm/cacache/commit/478f5cb))
139
-
140
- ### [12.0.3](https://github.com/npm/cacache/compare/v12.0.2...v12.0.3) (2019-08-19)
141
-
142
-
143
- ### Bug Fixes
144
-
145
- * do not chown if not running as root ([2d80af9](https://github.com/npm/cacache/commit/2d80af9))
146
-
147
-
148
-
149
- ### [12.0.2](https://github.com/npm/cacache/compare/v12.0.1...v12.0.2) (2019-07-19)
150
-
151
-
152
-
153
- ### [12.0.1](https://github.com/npm/cacache/compare/v12.0.0...v12.0.1) (2019-07-19)
154
-
155
- * **deps** Abstracted out `lib/util/infer-owner.js` to
156
- [@npmcli/infer-owner](https://www.npmjs.com/package/@npmcli/infer-owner)
157
- so that it could be more easily used in other parts of the npm CLI.
158
-
159
-
160
- ## [12.0.0](https://github.com/npm/cacache/compare/v11.3.3...v12.0.0) (2019-07-15)
161
-
162
-
163
- ### Features
164
-
165
- * infer uid/gid instead of accepting as options ([ac84d14](https://github.com/npm/cacache/commit/ac84d14))
166
- * **i18n:** add another error message ([676cb32](https://github.com/npm/cacache/commit/676cb32))
167
-
168
-
169
- ### BREAKING CHANGES
170
-
171
- * the uid gid options are no longer respected or
172
- necessary. As of this change, cacache will always match the cache
173
- contents to the ownership of the cache directory (or its parent
174
- directory), regardless of what the caller passes in.
175
-
176
- Reasoning:
177
-
178
- The number one reason to use a uid or gid option was to keep root-owned
179
- files from causing problems in the cache. In npm's case, this meant
180
- that CLI's ./lib/command.js had to work out the appropriate uid and gid,
181
- then pass it to the libnpmcommand module, which had to in turn pass the
182
- uid and gid to npm-registry-fetch, which then passed it to
183
- make-fetch-happen, which passed it to cacache. (For package fetching,
184
- pacote would be in that mix as well.)
185
-
186
- Added to that, `cacache.rm()` will actually _write_ a file into the
187
- cache index, but has no way to accept an option so that its call to
188
- entry-index.js will write the index with the appropriate uid/gid.
189
- Little ownership bugs were all over the place, and tricky to trace
190
- through. (Why should make-fetch-happen even care about accepting or
191
- passing uids and gids? It's an http library.)
192
-
193
- This change allows us to keep the cache from having mixed ownership in
194
- any situation.
195
-
196
- Of course, this _does_ mean that if you have a root-owned but
197
- user-writable folder (for example, `/tmp`), then the cache will try to
198
- chown everything to root.
199
-
200
- The solution is for the user to create a folder, make it user-owned, and
201
- use that, rather than relying on cacache to create the root cache folder.
202
-
203
- If we decide to restore the uid/gid opts, and use ownership inference
204
- only when uid/gid are unset, then take care to also make rm take an
205
- option object, and pass it through to entry-index.js.
206
-
207
-
208
-
209
- ### [11.3.3](https://github.com/npm/cacache/compare/v11.3.2...v11.3.3) (2019-06-17)
210
-
211
-
212
- ### Bug Fixes
213
-
214
- * **audit:** npm audit fix ([200a6d5](https://github.com/npm/cacache/commit/200a6d5))
215
- * **config:** Add ssri config 'error' option ([#146](https://github.com/npm/cacache/issues/146)) ([47de8f5](https://github.com/npm/cacache/commit/47de8f5))
216
- * **deps:** npm audit fix ([481a7dc](https://github.com/npm/cacache/commit/481a7dc))
217
- * **standard:** standard --fix ([7799149](https://github.com/npm/cacache/commit/7799149))
218
- * **write:** avoid another cb never called situation ([5156561](https://github.com/npm/cacache/commit/5156561))
219
-
220
-
221
-
222
- <a name="11.3.2"></a>
223
- ## [11.3.2](https://github.com/npm/cacache/compare/v11.3.1...v11.3.2) (2018-12-21)
224
-
225
-
226
- ### Bug Fixes
227
-
228
- * **get:** make sure to handle errors in the .then ([b10bcd0](https://github.com/npm/cacache/commit/b10bcd0))
229
-
230
-
231
-
232
- <a name="11.3.1"></a>
233
- ## [11.3.1](https://github.com/npm/cacache/compare/v11.3.0...v11.3.1) (2018-11-05)
234
-
235
-
236
- ### Bug Fixes
237
-
238
- * **get:** export hasContent.sync properly ([d76c920](https://github.com/npm/cacache/commit/d76c920))
239
-
240
-
241
-
242
- <a name="11.3.0"></a>
243
- # [11.3.0](https://github.com/npm/cacache/compare/v11.2.0...v11.3.0) (2018-11-05)
244
-
245
-
246
- ### Features
247
-
248
- * **get:** add sync API for reading ([db1e094](https://github.com/npm/cacache/commit/db1e094))
249
-
250
-
251
-
252
- <a name="11.2.0"></a>
253
- # [11.2.0](https://github.com/npm/cacache/compare/v11.1.0...v11.2.0) (2018-08-08)
254
-
255
-
256
- ### Features
257
-
258
- * **read:** add sync support to other internal read.js fns ([fe638b6](https://github.com/npm/cacache/commit/fe638b6))
259
-
260
-
261
-
262
- <a name="11.1.0"></a>
263
- # [11.1.0](https://github.com/npm/cacache/compare/v11.0.3...v11.1.0) (2018-08-01)
264
-
265
-
266
- ### Features
267
-
268
- * **read:** add sync support for low-level content read ([b43af83](https://github.com/npm/cacache/commit/b43af83))
269
-
270
-
271
-
272
- <a name="11.0.3"></a>
273
- ## [11.0.3](https://github.com/npm/cacache/compare/v11.0.2...v11.0.3) (2018-08-01)
274
-
275
-
276
- ### Bug Fixes
277
-
278
- * **config:** add ssri config options ([#136](https://github.com/npm/cacache/issues/136)) ([10d5d9a](https://github.com/npm/cacache/commit/10d5d9a))
279
- * **perf:** refactor content.read to avoid lstats ([c5ac10e](https://github.com/npm/cacache/commit/c5ac10e))
280
- * **test:** oops when removing safe-buffer ([1950490](https://github.com/npm/cacache/commit/1950490))
281
-
282
-
283
-
284
- <a name="11.0.2"></a>
285
- ## [11.0.2](https://github.com/npm/cacache/compare/v11.0.1...v11.0.2) (2018-05-07)
286
-
287
-
288
- ### Bug Fixes
289
-
290
- * **verify:** size param no longer lost in a verify ([#131](https://github.com/npm/cacache/issues/131)) ([c614a19](https://github.com/npm/cacache/commit/c614a19)), closes [#130](https://github.com/npm/cacache/issues/130)
291
-
292
-
293
-
294
- <a name="11.0.1"></a>
295
- ## [11.0.1](https://github.com/npm/cacache/compare/v11.0.0...v11.0.1) (2018-04-10)
296
-
297
-
298
-
299
- <a name="11.0.0"></a>
300
- # [11.0.0](https://github.com/npm/cacache/compare/v10.0.4...v11.0.0) (2018-04-09)
301
-
302
-
303
- ### Features
304
-
305
- * **opts:** use figgy-pudding for opts ([#128](https://github.com/npm/cacache/issues/128)) ([33d4eed](https://github.com/npm/cacache/commit/33d4eed))
306
-
307
-
308
- ### meta
309
-
310
- * drop support for node@4 ([529f347](https://github.com/npm/cacache/commit/529f347))
311
-
312
-
313
- ### BREAKING CHANGES
314
-
315
- * node@4 is no longer supported
316
-
317
-
318
-
319
- <a name="10.0.4"></a>
320
- ## [10.0.4](https://github.com/npm/cacache/compare/v10.0.3...v10.0.4) (2018-02-16)
321
-
322
-
323
-
324
- <a name="10.0.3"></a>
325
- ## [10.0.3](https://github.com/npm/cacache/compare/v10.0.2...v10.0.3) (2018-02-16)
326
-
327
-
328
- ### Bug Fixes
329
-
330
- * **content:** rethrow aggregate errors as ENOENT ([fa918f5](https://github.com/npm/cacache/commit/fa918f5))
331
-
332
-
333
-
334
- <a name="10.0.2"></a>
335
- ## [10.0.2](https://github.com/npm/cacache/compare/v10.0.1...v10.0.2) (2018-01-07)
336
-
337
-
338
- ### Bug Fixes
339
-
340
- * **ls:** deleted entries could cause a premature stream EOF ([347dc36](https://github.com/npm/cacache/commit/347dc36))
341
-
342
-
343
-
344
- <a name="10.0.1"></a>
345
- ## [10.0.1](https://github.com/npm/cacache/compare/v10.0.0...v10.0.1) (2017-11-15)
346
-
347
-
348
- ### Bug Fixes
349
-
350
- * **move-file:** actually use the fallback to `move-concurrently` (#110) ([073fbe1](https://github.com/npm/cacache/commit/073fbe1))
351
-
352
-
353
-
354
- <a name="10.0.0"></a>
355
- # [10.0.0](https://github.com/npm/cacache/compare/v9.3.0...v10.0.0) (2017-10-23)
356
-
357
-
358
- ### Features
359
-
360
- * **license:** relicense to ISC (#111) ([fdbb4e5](https://github.com/npm/cacache/commit/fdbb4e5))
361
-
362
-
363
- ### Performance Improvements
364
-
365
- * more copyFile benchmarks ([63787bb](https://github.com/npm/cacache/commit/63787bb))
366
-
367
-
368
- ### BREAKING CHANGES
369
-
370
- * **license:** the license has been changed from CC0-1.0 to ISC.
371
-
372
-
373
-
374
- <a name="9.3.0"></a>
375
- # [9.3.0](https://github.com/npm/cacache/compare/v9.2.9...v9.3.0) (2017-10-07)
376
-
377
-
378
- ### Features
379
-
380
- * **copy:** added cacache.get.copy api for fast copies (#107) ([067b5f6](https://github.com/npm/cacache/commit/067b5f6))
381
-
382
-
383
-
384
- <a name="9.2.9"></a>
385
- ## [9.2.9](https://github.com/npm/cacache/compare/v9.2.8...v9.2.9) (2017-06-17)
386
-
387
-
388
-
389
- <a name="9.2.8"></a>
390
- ## [9.2.8](https://github.com/npm/cacache/compare/v9.2.7...v9.2.8) (2017-06-05)
391
-
392
-
393
- ### Bug Fixes
394
-
395
- * **ssri:** bump ssri for bugfix ([c3232ea](https://github.com/npm/cacache/commit/c3232ea))
396
-
397
-
398
-
399
- <a name="9.2.7"></a>
400
- ## [9.2.7](https://github.com/npm/cacache/compare/v9.2.6...v9.2.7) (2017-06-05)
401
-
402
-
403
- ### Bug Fixes
404
-
405
- * **content:** make verified content completely read-only (#96) ([4131196](https://github.com/npm/cacache/commit/4131196))
406
-
407
-
408
-
409
- <a name="9.2.6"></a>
410
- ## [9.2.6](https://github.com/npm/cacache/compare/v9.2.5...v9.2.6) (2017-05-31)
411
-
412
-
413
- ### Bug Fixes
414
-
415
- * **node:** update ssri to prevent old node 4 crash ([5209ffe](https://github.com/npm/cacache/commit/5209ffe))
416
-
417
-
418
-
419
- <a name="9.2.5"></a>
420
- ## [9.2.5](https://github.com/npm/cacache/compare/v9.2.4...v9.2.5) (2017-05-25)
421
-
422
-
423
- ### Bug Fixes
424
-
425
- * **deps:** fix lockfile issues and bump ssri ([84e1d7e](https://github.com/npm/cacache/commit/84e1d7e))
426
-
427
-
428
-
429
- <a name="9.2.4"></a>
430
- ## [9.2.4](https://github.com/npm/cacache/compare/v9.2.3...v9.2.4) (2017-05-24)
431
-
432
-
433
- ### Bug Fixes
434
-
435
- * **deps:** bumping deps ([bbccb12](https://github.com/npm/cacache/commit/bbccb12))
436
-
437
-
438
-
439
- <a name="9.2.3"></a>
440
- ## [9.2.3](https://github.com/npm/cacache/compare/v9.2.2...v9.2.3) (2017-05-24)
441
-
442
-
443
- ### Bug Fixes
444
-
445
- * **rm:** stop crashing if content is missing on rm ([ac90bc0](https://github.com/npm/cacache/commit/ac90bc0))
446
-
447
-
448
-
449
- <a name="9.2.2"></a>
450
- ## [9.2.2](https://github.com/npm/cacache/compare/v9.2.1...v9.2.2) (2017-05-14)
451
-
452
-
453
- ### Bug Fixes
454
-
455
- * **i18n:** lets pretend this didn't happen ([519b4ee](https://github.com/npm/cacache/commit/519b4ee))
456
-
457
-
458
-
459
- <a name="9.2.1"></a>
460
- ## [9.2.1](https://github.com/npm/cacache/compare/v9.2.0...v9.2.1) (2017-05-14)
461
-
462
-
463
- ### Bug Fixes
464
-
465
- * **docs:** fixing translation messup ([bb9e4f9](https://github.com/npm/cacache/commit/bb9e4f9))
466
-
467
-
468
-
469
- <a name="9.2.0"></a>
470
- # [9.2.0](https://github.com/npm/cacache/compare/v9.1.0...v9.2.0) (2017-05-14)
471
-
472
-
473
- ### Features
474
-
475
- * **i18n:** add Spanish translation for API ([531f9a4](https://github.com/npm/cacache/commit/531f9a4))
476
-
477
-
478
-
479
- <a name="9.1.0"></a>
480
- # [9.1.0](https://github.com/npm/cacache/compare/v9.0.0...v9.1.0) (2017-05-14)
481
-
482
-
483
- ### Features
484
-
485
- * **i18n:** Add Spanish translation and i18n setup (#91) ([323b90c](https://github.com/npm/cacache/commit/323b90c))
486
-
487
-
488
-
489
- <a name="9.0.0"></a>
490
- # [9.0.0](https://github.com/npm/cacache/compare/v8.0.0...v9.0.0) (2017-04-28)
491
-
492
-
493
- ### Bug Fixes
494
-
495
- * **memoization:** actually use the LRU ([0e55dc9](https://github.com/npm/cacache/commit/0e55dc9))
496
-
497
-
498
- ### Features
499
-
500
- * **memoization:** memoizers can be injected through opts.memoize (#90) ([e5614c7](https://github.com/npm/cacache/commit/e5614c7))
501
-
502
-
503
- ### BREAKING CHANGES
504
-
505
- * **memoization:** If you were passing an object to opts.memoize, it will now be used as an injected memoization object. If you were only passing booleans and other non-objects through that option, no changes are needed.
506
-
507
-
508
-
509
- <a name="8.0.0"></a>
510
- # [8.0.0](https://github.com/npm/cacache/compare/v7.1.0...v8.0.0) (2017-04-22)
511
-
512
-
513
- ### Features
514
-
515
- * **read:** change hasContent to return {sri, size} (#88) ([bad6c49](https://github.com/npm/cacache/commit/bad6c49)), closes [#87](https://github.com/npm/cacache/issues/87)
516
-
517
-
518
- ### BREAKING CHANGES
519
-
520
- * **read:** hasContent now returns an object with `{sri, size}` instead of `sri`. Use `result.sri` anywhere that needed the old return value.
521
-
522
-
523
-
524
- <a name="7.1.0"></a>
525
- # [7.1.0](https://github.com/npm/cacache/compare/v7.0.5...v7.1.0) (2017-04-20)
526
-
527
-
528
- ### Features
529
-
530
- * **size:** handle content size info (#49) ([91230af](https://github.com/npm/cacache/commit/91230af))
531
-
532
-
533
-
534
- <a name="7.0.5"></a>
535
- ## [7.0.5](https://github.com/npm/cacache/compare/v7.0.4...v7.0.5) (2017-04-18)
536
-
537
-
538
- ### Bug Fixes
539
-
540
- * **integrity:** new ssri with fixed integrity stream ([6d13e8e](https://github.com/npm/cacache/commit/6d13e8e))
541
- * **write:** wrap stuff in promises to improve errors ([3624fc5](https://github.com/npm/cacache/commit/3624fc5))
542
-
543
-
544
-
545
- <a name="7.0.4"></a>
546
- ## [7.0.4](https://github.com/npm/cacache/compare/v7.0.3...v7.0.4) (2017-04-15)
547
-
548
-
549
- ### Bug Fixes
550
-
551
- * **fix-owner:** throw away ENOENTs on chownr ([d49bbcd](https://github.com/npm/cacache/commit/d49bbcd))
552
-
553
-
554
-
555
- <a name="7.0.3"></a>
556
- ## [7.0.3](https://github.com/npm/cacache/compare/v7.0.2...v7.0.3) (2017-04-05)
557
-
558
-
559
- ### Bug Fixes
560
-
561
- * **read:** fixing error message for integrity verification failures ([9d4f0a5](https://github.com/npm/cacache/commit/9d4f0a5))
562
-
563
-
564
-
565
- <a name="7.0.2"></a>
566
- ## [7.0.2](https://github.com/npm/cacache/compare/v7.0.1...v7.0.2) (2017-04-03)
567
-
568
-
569
- ### Bug Fixes
570
-
571
- * **integrity:** use EINTEGRITY error code and update ssri ([8dc2e62](https://github.com/npm/cacache/commit/8dc2e62))
572
-
573
-
574
-
575
- <a name="7.0.1"></a>
576
- ## [7.0.1](https://github.com/npm/cacache/compare/v7.0.0...v7.0.1) (2017-04-03)
577
-
578
-
579
- ### Bug Fixes
580
-
581
- * **docs:** fix header name conflict in readme ([afcd456](https://github.com/npm/cacache/commit/afcd456))
582
-
583
-
584
-
585
- <a name="7.0.0"></a>
586
- # [7.0.0](https://github.com/npm/cacache/compare/v6.3.0...v7.0.0) (2017-04-03)
587
-
588
-
589
- ### Bug Fixes
590
-
591
- * **test:** fix content.write tests when running in docker ([d2e9b6a](https://github.com/npm/cacache/commit/d2e9b6a))
592
-
593
-
594
- ### Features
595
-
596
- * **integrity:** subresource integrity support (#78) ([b1e731f](https://github.com/npm/cacache/commit/b1e731f))
597
-
598
-
599
- ### BREAKING CHANGES
600
-
601
- * **integrity:** The entire API has been overhauled to use SRI hashes instead of digest/hashAlgorithm pairs. SRI hashes follow the Subresource Integrity standard and support strings and objects compatible with [`ssri`](https://npm.im/ssri).
602
-
603
- * This change bumps the index version, which will invalidate all previous index entries. Content entries will remain intact, and existing caches will automatically reuse any content from before this breaking change.
604
-
605
- * `cacache.get.info()`, `cacache.ls()`, and `cacache.ls.stream()` will now return objects that looks like this:
606
-
607
- ```
608
- {
609
- key: String,
610
- integrity: '<algorithm>-<base64hash>',
611
- path: ContentPath,
612
- time: Date<ms>,
613
- metadata: Any
614
- }
615
- ```
616
-
617
- * `opts.digest` and `opts.hashAlgorithm` are obsolete for any API calls that used them.
618
-
619
- * Anywhere `opts.digest` was accepted, `opts.integrity` is now an option. Any valid SRI hash is accepted here -- multiple hash entries will be resolved according to the standard: first, the "strongest" hash algorithm will be picked, and then each of the entries for that algorithm will be matched against the content. Content will be validated if *any* of the entries match (so, a single integrity string can be used for multiple "versions" of the same document/data).
620
-
621
- * `put.byDigest()`, `put.stream.byDigest`, `get.byDigest()` and `get.stream.byDigest()` now expect an SRI instead of a `digest` + `opts.hashAlgorithm` pairing.
622
-
623
- * `get.hasContent()` now expects an integrity hash instead of a digest. If content exists, it will return the specific single integrity hash that was found in the cache.
624
-
625
- * `verify()` has learned to handle integrity-based caches, and forgotten how to handle old-style cache indices due to the format change.
626
-
627
- * `cacache.rm.content()` now expects an integrity hash instead of a hex digest.
628
-
629
-
630
-
631
- <a name="6.3.0"></a>
632
- # [6.3.0](https://github.com/npm/cacache/compare/v6.2.0...v6.3.0) (2017-04-01)
633
-
634
-
635
- ### Bug Fixes
636
-
637
- * **fixOwner:** ignore EEXIST race condition from mkdirp ([4670e9b](https://github.com/npm/cacache/commit/4670e9b))
638
- * **index:** ignore index removal races when inserting ([b9d2fa2](https://github.com/npm/cacache/commit/b9d2fa2))
639
- * **memo:** use lru-cache for better mem management (#75) ([d8ac5aa](https://github.com/npm/cacache/commit/d8ac5aa))
640
-
641
-
642
- ### Features
643
-
644
- * **dependencies:** Switch to move-concurrently (#77) ([dc6482d](https://github.com/npm/cacache/commit/dc6482d))
645
-
646
-
647
-
648
- <a name="6.2.0"></a>
649
- # [6.2.0](https://github.com/npm/cacache/compare/v6.1.2...v6.2.0) (2017-03-15)
650
-
651
-
652
- ### Bug Fixes
653
-
654
- * **index:** additional bucket entry verification with checksum (#72) ([f8e0f25](https://github.com/npm/cacache/commit/f8e0f25))
655
- * **verify:** return fixOwner.chownr promise ([6818521](https://github.com/npm/cacache/commit/6818521))
656
-
657
-
658
- ### Features
659
-
660
- * **tmp:** safe tmp dir creation/management util (#73) ([c42da71](https://github.com/npm/cacache/commit/c42da71))
661
-
662
-
663
-
664
- <a name="6.1.2"></a>
665
- ## [6.1.2](https://github.com/npm/cacache/compare/v6.1.1...v6.1.2) (2017-03-13)
666
-
667
-
668
- ### Bug Fixes
669
-
670
- * **index:** set default hashAlgorithm ([d6eb2f0](https://github.com/npm/cacache/commit/d6eb2f0))
671
-
672
-
673
-
674
- <a name="6.1.1"></a>
675
- ## [6.1.1](https://github.com/npm/cacache/compare/v6.1.0...v6.1.1) (2017-03-13)
676
-
677
-
678
- ### Bug Fixes
679
-
680
- * **coverage:** bumping coverage for verify (#71) ([0b7faf6](https://github.com/npm/cacache/commit/0b7faf6))
681
- * **deps:** glob should have been a regular dep :< ([0640bc4](https://github.com/npm/cacache/commit/0640bc4))
682
-
683
-
684
-
685
- <a name="6.1.0"></a>
686
- # [6.1.0](https://github.com/npm/cacache/compare/v6.0.2...v6.1.0) (2017-03-12)
687
-
688
-
689
- ### Bug Fixes
690
-
691
- * **coverage:** more coverage for content reads (#70) ([ef4f70a](https://github.com/npm/cacache/commit/ef4f70a))
692
- * **tests:** use safe-buffer because omfg (#69) ([6ab8132](https://github.com/npm/cacache/commit/6ab8132))
693
-
694
-
695
- ### Features
696
-
697
- * **rm:** limited rm.all and fixed bugs (#66) ([d5d25ba](https://github.com/npm/cacache/commit/d5d25ba)), closes [#66](https://github.com/npm/cacache/issues/66)
698
- * **verify:** tested, working cache verifier/gc (#68) ([45ad77a](https://github.com/npm/cacache/commit/45ad77a))
699
-
700
-
701
-
702
- <a name="6.0.2"></a>
703
- ## [6.0.2](https://github.com/npm/cacache/compare/v6.0.1...v6.0.2) (2017-03-11)
704
-
705
-
706
- ### Bug Fixes
707
-
708
- * **index:** segment cache items with another subbucket (#64) ([c3644e5](https://github.com/npm/cacache/commit/c3644e5))
709
-
710
-
711
-
712
- <a name="6.0.1"></a>
713
- ## [6.0.1](https://github.com/npm/cacache/compare/v6.0.0...v6.0.1) (2017-03-05)
714
-
715
-
716
- ### Bug Fixes
717
-
718
- * **docs:** Missed spots in README ([8ffb7fa](https://github.com/npm/cacache/commit/8ffb7fa))
719
-
720
-
721
-
722
- <a name="6.0.0"></a>
723
- # [6.0.0](https://github.com/npm/cacache/compare/v5.0.3...v6.0.0) (2017-03-05)
724
-
725
-
726
- ### Bug Fixes
727
-
728
- * **api:** keep memo cache mostly-internal ([2f72d0a](https://github.com/npm/cacache/commit/2f72d0a))
729
- * **content:** use the rest of the string, not the whole string ([fa8f3c3](https://github.com/npm/cacache/commit/fa8f3c3))
730
- * **deps:** removed `format-number@2.0.2` ([1187791](https://github.com/npm/cacache/commit/1187791))
731
- * **deps:** removed inflight@1.0.6 ([0d1819c](https://github.com/npm/cacache/commit/0d1819c))
732
- * **deps:** rimraf@2.6.1 ([9efab6b](https://github.com/npm/cacache/commit/9efab6b))
733
- * **deps:** standard@9.0.0 ([4202cba](https://github.com/npm/cacache/commit/4202cba))
734
- * **deps:** tap@10.3.0 ([aa03088](https://github.com/npm/cacache/commit/aa03088))
735
- * **deps:** weallcontribute@1.0.8 ([ad4f4dc](https://github.com/npm/cacache/commit/ad4f4dc))
736
- * **docs:** add security note to hashKey ([03f81ba](https://github.com/npm/cacache/commit/03f81ba))
737
- * **hashes:** change default hashAlgorithm to sha512 ([ea00ba6](https://github.com/npm/cacache/commit/ea00ba6))
738
- * **hashes:** missed a spot for hashAlgorithm defaults ([45997d8](https://github.com/npm/cacache/commit/45997d8))
739
- * **index:** add length header before JSON for verification ([fb8cb4d](https://github.com/npm/cacache/commit/fb8cb4d))
740
- * **index:** change index filenames to sha1s of keys ([bbc5fca](https://github.com/npm/cacache/commit/bbc5fca))
741
- * **index:** who cares about race conditions anyway ([b1d3888](https://github.com/npm/cacache/commit/b1d3888))
742
- * **perf:** bulk-read get+read for massive speed ([d26cdf9](https://github.com/npm/cacache/commit/d26cdf9))
743
- * **perf:** use bulk file reads for index reads ([79a8891](https://github.com/npm/cacache/commit/79a8891))
744
- * **put-stream:** remove tmp file on stream insert error ([65f6632](https://github.com/npm/cacache/commit/65f6632))
745
- * **put-stream:** robustified and predictibilized ([daf9e08](https://github.com/npm/cacache/commit/daf9e08))
746
- * **put-stream:** use new promise API for moves ([1d36013](https://github.com/npm/cacache/commit/1d36013))
747
- * **readme:** updated to reflect new default hashAlgo ([c60a2fa](https://github.com/npm/cacache/commit/c60a2fa))
748
- * **verify:** tiny typo fix ([db22d05](https://github.com/npm/cacache/commit/db22d05))
749
-
750
-
751
- ### Features
752
-
753
- * **api:** converted external api ([7bf032f](https://github.com/npm/cacache/commit/7bf032f))
754
- * **cacache:** exported clearMemoized() utility ([8d2c5b6](https://github.com/npm/cacache/commit/8d2c5b6))
755
- * **cache:** add versioning to content and index ([31bc549](https://github.com/npm/cacache/commit/31bc549))
756
- * **content:** collate content files into subdirs ([c094d9f](https://github.com/npm/cacache/commit/c094d9f))
757
- * **deps:** `@npmcorp/move@1.0.0` ([bdd00bf](https://github.com/npm/cacache/commit/bdd00bf))
758
- * **deps:** `bluebird@3.4.7` ([3a17aff](https://github.com/npm/cacache/commit/3a17aff))
759
- * **deps:** `promise-inflight@1.0.1` ([a004fe6](https://github.com/npm/cacache/commit/a004fe6))
760
- * **get:** added memoization support for get ([c77d794](https://github.com/npm/cacache/commit/c77d794))
761
- * **get:** export hasContent ([2956ec3](https://github.com/npm/cacache/commit/2956ec3))
762
- * **index:** add hashAlgorithm and format insert ret val ([b639746](https://github.com/npm/cacache/commit/b639746))
763
- * **index:** collate index files into subdirs ([e8402a5](https://github.com/npm/cacache/commit/e8402a5))
764
- * **index:** promisify entry index ([cda3335](https://github.com/npm/cacache/commit/cda3335))
765
- * **memo:** added memoization lib ([da07b92](https://github.com/npm/cacache/commit/da07b92))
766
- * **memo:** export memoization api ([954b1b3](https://github.com/npm/cacache/commit/954b1b3))
767
- * **move-file:** add move fallback for weird errors ([5cf4616](https://github.com/npm/cacache/commit/5cf4616))
768
- * **perf:** bulk content write api ([51b536e](https://github.com/npm/cacache/commit/51b536e))
769
- * **put:** added memoization support to put ([b613a70](https://github.com/npm/cacache/commit/b613a70))
770
- * **read:** switched to promises ([a869362](https://github.com/npm/cacache/commit/a869362))
771
- * **rm:** added memoization support to rm ([4205cf0](https://github.com/npm/cacache/commit/4205cf0))
772
- * **rm:** switched to promises ([a000d24](https://github.com/npm/cacache/commit/a000d24))
773
- * **util:** promise-inflight ownership fix requests ([9517cd7](https://github.com/npm/cacache/commit/9517cd7))
774
- * **util:** use promises for api ([ae204bb](https://github.com/npm/cacache/commit/ae204bb))
775
- * **verify:** converted to Promises ([f0b3974](https://github.com/npm/cacache/commit/f0b3974))
776
-
777
-
778
- ### BREAKING CHANGES
779
-
780
- * cache: index/content directories are now versioned. Previous caches are no longer compatible and cannot be migrated.
781
- * util: fix-owner now uses Promises instead of callbacks
782
- * index: Previously-generated index entries are no longer compatible and the index must be regenerated.
783
- * index: The index format has changed and previous caches are no longer compatible. Existing caches will need to be regenerated.
784
- * hashes: Default hashAlgorithm changed from sha1 to sha512. If you
785
- rely on the prior setting, pass `opts.hashAlgorithm` in explicitly.
786
- * content: Previously-generated content directories are no longer compatible
787
- and must be regenerated.
788
- * verify: API is now promise-based
789
- * read: Switches to a Promise-based API and removes callback stuff
790
- * rm: Switches to a Promise-based API and removes callback stuff
791
- * index: this changes the API to work off promises instead of callbacks
792
- * api: this means we are going all in on promises now