|
2 | 2 |
|
3 | 3 | ## tmp v0.2.0 |
4 | 4 |
|
| 5 | +- drop support for node version < v8 |
| 6 | + |
| 7 | + ***BREAKING CHANGE*** |
| 8 | + |
| 9 | + node version < v8 are no longer supported. |
| 10 | + |
5 | 11 | - [#216](https://github.com/raszi/node-tmp/issues/216) |
6 | 12 |
|
7 | 13 | ***BREAKING CHANGE*** |
|
11 | 17 | Users must install their own SIGINT handler and call process.exit() so that tmp's process |
12 | 18 | exit handler can do the cleanup. |
13 | 19 |
|
14 | | - The simplest handler possible would be |
| 20 | + A simple handler would be |
15 | 21 |
|
16 | 22 | ``` |
17 | 23 | process.on('SIGINT', process.exit); |
18 | 24 | ``` |
19 | 25 |
|
20 | | -- [#206](https://github.com/raszi/node-tmp/issues/206) |
| 26 | +- [#156](https://github.com/raszi/node-tmp/issues/156) |
21 | 27 |
|
22 | | - document name option. |
| 28 | + ***BREAKING CHANGE*** |
| 29 | + |
| 30 | + template option no longer accepts arbitrary paths. all paths must be relative to os.tmpdir(). |
| 31 | + the template option can point to an absolute path that is located under os.tmpdir(). |
| 32 | + this can now be used in conjunction with the dir option. |
| 33 | + |
| 34 | +- [#207](https://github.com/raszi/node-tmp/issues/TBD) |
| 35 | + |
| 36 | + ***BREAKING CHANGE*** |
| 37 | + |
| 38 | + dir option no longer accepts arbitrary paths. all paths must be relative to os.tmpdir(). |
| 39 | + the dir option can point to an absolute path that is located under os.tmpdir(). |
| 40 | + |
| 41 | +- [#218](https://github.com/raszi/node-tmp/issues/TBD) |
| 42 | + |
| 43 | + ***BREAKING CHANGE*** |
| 44 | + |
| 45 | + name option no longer accepts arbitrary paths. name must no longer contain a path and will always be made relative |
| 46 | + to the current os.tmpdir() and the optional dir option. |
23 | 47 |
|
24 | 48 | - [#197](https://github.com/raszi/node-tmp/issues/197) |
25 | 49 |
|
| 50 | + ***BUG FIX*** |
| 51 | + |
26 | 52 | sync cleanup callback must be returned when using the sync API functions. |
27 | 53 |
|
28 | 54 | fs.rmdirSync() must not be called with a second parameter that is a function. |
29 | 55 |
|
30 | | -- [#179](https://github.com/raszi/node-tmp/issues/179) |
| 56 | +- [#176](https://github.com/raszi/node-tmp/issues/176) |
| 57 | + |
| 58 | + ***BUG FIX*** |
31 | 59 |
|
32 | | - template option no longer accepts arbitrary paths. |
| 60 | + fail early if no os.tmpdir() was specified. |
| 61 | + previous versions of Electron did return undefined when calling os.tmpdir(). |
| 62 | + _getTmpDir() now tries to resolve the path returned by os.tmpdir(). |
| 63 | + |
| 64 | + now using rimraf for removing directory trees. |
33 | 65 |
|
34 | | -- [#176](https://github.com/raszi/node-tmp/issues/176) |
| 66 | +- [#206](https://github.com/raszi/node-tmp/issues/206) |
35 | 67 |
|
36 | | - fail early if no tmp dir was specified. |
| 68 | + **DOCUMENTATION** |
37 | 69 |
|
38 | | - use rimraf for removing directory trees. |
| 70 | + document name option. |
| 71 | + |
| 72 | +- [#236](https://github.com/raszi/node-tmp/issues/236) |
| 73 | + |
| 74 | + **DOCUMENTATION** |
| 75 | + |
| 76 | + document discardDescriptor option. |
| 77 | + |
| 78 | +- [#237](https://github.com/raszi/node-tmp/issues/237) |
| 79 | + |
| 80 | + **DOCUMENTATION** |
| 81 | + |
| 82 | + document detachDescriptor option. |
| 83 | + |
| 84 | +- [#238](https://github.com/raszi/node-tmp/issues/238) |
| 85 | + |
| 86 | + **DOCUMENTATION** |
| 87 | + |
| 88 | + document mode option. |
39 | 89 |
|
40 | 90 | - [#175](https://github.com/raszi/node-tmp/issues/175) |
41 | 91 |
|
42 | | - add unsafeCleanup option to jsdoc. |
| 92 | + **DOCUMENTATION** |
43 | 93 |
|
44 | | -- drop support for node version < v8 |
| 94 | + document unsafeCleanup option. |
45 | 95 |
|
46 | | - ***BREAKING CHANGE*** |
47 | | - |
48 | | - node version < v8 are no longer supported. |
| 96 | +### Miscellaneous |
49 | 97 |
|
50 | 98 | - stabilized tests |
51 | | - |
52 | 99 | - general clean up |
53 | | - |
54 | 100 | - update jsdoc |
55 | 101 |
|
56 | 102 |
|
|
0 commit comments