V1.0.0: Simplify STDIO and File transports
Breaking Changes!!!
- Simplified the outputs of both stdio and file to remove the starting/stopping braces and leading comma.
- The file format is now simply a line-delimited JSON elements.
- This allows for more versatile handling of dump files with the rest of the unix toolset.
- For example, it would now be valid to restore a dumpfile from arbitrary lines without appending the starting and stopping brace characters.
- Created one file transport that combines both file and stdio... as in unix-land, they are more-or-less the same thing.
- We will now also throw an error if a file to write to already exists, and will no longer overwrite existing files (safety first!)
- This tool now requires nodejs
v1.0.0
(iojs) or higher to function due to changes in how steams are handled.
Converting old dump files.
To convert an old dump file, in a text-editor of your choice, do the following:
- remove the first line (which should just be
[
) - remove the last ling (which should just be
]
) - skip the fist line, and then remove the first character of every remaining line (which should just be
,
)