-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: stabilize tmp for v0.2.0 release #234
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
29642fc
update jsdoc
silkentrance 7b77436
add changelog
silkentrance 19febe2
remove SIGINT listener, simplify EXIT listener
silkentrance 05d1b43
update jsdoc
silkentrance 78c72ef
fix tests, remove obsolete tests, add missing SIGINT handlers
silkentrance f3005fc
update jsdoc
silkentrance 327eb83
include node v13 in builds
silkentrance bcb43a0
update documentation
silkentrance 5195a26
add contributors to package.json
silkentrance b63cb58
fix #213 tmp.file must not unlink file when discarding the file descr…
silkentrance 1746331
update jsdoc
silkentrance 9500e10
update jsdoc
silkentrance 7ee5bdd
fix #156 #207 #218 #176 #236 #237 #238
silkentrance ba70579
code cleanup - remove reference to process.bindings
silkentrance f3c3ab8
code cleanup - replace var by let or const
silkentrance be9df6f
code cleanup - prefix private functions with an underscore, move all …
silkentrance 5cfca26
limit minimum node version to v8.17.0 - otherwise eslint will fail
silkentrance 4a144b4
code cleanup - remove documentation on old node version error code an…
silkentrance 0664e9a
code cleanup - better error handling
silkentrance 486205b
fix #240
silkentrance 5110e94
fix regression - os.constants.errno are different from what WIN32 act…
silkentrance 2c80c6d
regression - tmp name included a trailing hyphen if no postfix was given
silkentrance c7028f2
cleanup code
silkentrance c8823e5
fix #246: remove any double quotes or single quotes from os.tmpdir al…
silkentrance File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
language: node_js | ||
node_js: | ||
- "node" | ||
- "13" | ||
- "12" | ||
- "11" | ||
- "10" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
# CHANGELOG | ||
|
||
## tmp v0.2.0 | ||
|
||
- drop support for node version < v8.17.0 | ||
|
||
***BREAKING CHANGE*** | ||
|
||
node versions < v8.17.0 are no longer supported. | ||
|
||
- [#216](https://github.com/raszi/node-tmp/issues/216) | ||
|
||
***BREAKING CHANGE*** | ||
|
||
SIGINT handler has been removed. | ||
|
||
Users must install their own SIGINT handler and call process.exit() so that tmp's process | ||
exit handler can do the cleanup. | ||
|
||
A simple handler would be | ||
|
||
``` | ||
process.on('SIGINT', process.exit); | ||
``` | ||
|
||
- [#156](https://github.com/raszi/node-tmp/issues/156) | ||
|
||
***BREAKING CHANGE*** | ||
|
||
template option no longer accepts arbitrary paths. all paths must be relative to os.tmpdir(). | ||
the template option can point to an absolute path that is located under os.tmpdir(). | ||
this can now be used in conjunction with the dir option. | ||
|
||
- [#207](https://github.com/raszi/node-tmp/issues/TBD) | ||
|
||
***BREAKING CHANGE*** | ||
|
||
dir option no longer accepts arbitrary paths. all paths must be relative to os.tmpdir(). | ||
the dir option can point to an absolute path that is located under os.tmpdir(). | ||
|
||
- [#218](https://github.com/raszi/node-tmp/issues/TBD) | ||
|
||
***BREAKING CHANGE*** | ||
|
||
name option no longer accepts arbitrary paths. name must no longer contain a path and will always be made relative | ||
to the current os.tmpdir() and the optional dir option. | ||
|
||
- [#197](https://github.com/raszi/node-tmp/issues/197) | ||
|
||
***BUG FIX*** | ||
|
||
sync cleanup callback must be returned when using the sync API functions. | ||
|
||
fs.rmdirSync() must not be called with a second parameter that is a function. | ||
|
||
- [#176](https://github.com/raszi/node-tmp/issues/176) | ||
|
||
***BUG FIX*** | ||
|
||
fail early if no os.tmpdir() was specified. | ||
previous versions of Electron did return undefined when calling os.tmpdir(). | ||
_getTmpDir() now tries to resolve the path returned by os.tmpdir(). | ||
|
||
now using rimraf for removing directory trees. | ||
|
||
- [#246](https://github.com/raszi/node-tmp/issues/246) | ||
|
||
***BUG FIX*** | ||
|
||
os.tmpdir() might return a value that includes single or double quotes, | ||
similarly so the dir option, the template option and the name option | ||
|
||
- [#240](https://github.com/raszi/node-tmp/issues/240) | ||
|
||
***DOCUMENTATION*** | ||
|
||
better documentation for `tmp.setGracefulCleanup()`. | ||
|
||
- [#206](https://github.com/raszi/node-tmp/issues/206) | ||
|
||
***DOCUMENTATION*** | ||
|
||
document name option. | ||
|
||
- [#236](https://github.com/raszi/node-tmp/issues/236) | ||
|
||
***DOCUMENTATION*** | ||
|
||
document discardDescriptor option. | ||
|
||
- [#237](https://github.com/raszi/node-tmp/issues/237) | ||
|
||
***DOCUMENTATION*** | ||
|
||
document detachDescriptor option. | ||
|
||
- [#238](https://github.com/raszi/node-tmp/issues/238) | ||
|
||
***DOCUMENTATION*** | ||
|
||
document mode option. | ||
|
||
- [#175](https://github.com/raszi/node-tmp/issues/175) | ||
|
||
***DOCUMENTATION*** | ||
|
||
document unsafeCleanup option. | ||
|
||
|
||
### Miscellaneous | ||
|
||
- stabilized tests | ||
- general clean up | ||
- update jsdoc | ||
|
||
|
||
## Previous Releases | ||
|
||
- no information available |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've just realized that Node v8 was EOL in December.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it ok to release it for v8 (as its working) and drop support in feature version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, just wanted to note.