Releases: edemaine/svgink
Releases · edemaine/svgink
v0.4.0
v0.3.0
- Resolve input/output filenames to absolute paths by default
- Fixes bug when process's working directory changes between job scheduling (which happens in SVG Tiler)
- Resolve
input
andoutput
filenames to absolute paths when scheduling jobs, in case of future working directory change. - Jobs and results now include
inputAbs
andoutputAbs
attributes with these absolute paths.input
andoutput
remain the shorter names for showing to the user. - All of the above is disabled when
settings.relative
is true, available as--relative
on the command line. This might be useful to keep path names short, or as a Cygwin workaround. - Watch mode doesn't (yet) respect this setting — it still keeps paths relative — so be careful not to change the working directory or to resolve the path before starting watch mode.
Full Changelog: v0.2.4...v0.3.0
v0.2.4
- Fix (and document) handling of backslashes (
\
) in glob patterns on Windows:foo\bar
gets converted tofoo/bar
, but\*
(and other escaped glob patterns) remain as is, sofoo\*
gives a file with namefoo*
, whereasfoo/*
gives all files within directoryfoo
.
Full Changelog: v0.2.3...v0.2.4
v0.2.3
- Fix missing error message when no conversion formats specified on the command line
- Many documentation improvements
Full Changelog: v0.2.2...v0.2.3
v0.2.2
More watch-mode fixes:
- Prevent directory removal from crashing on Windows
- Prevent
fs.watch
errors from crashing all ofsvgink
Full Changelog: v0.2.1...v0.2.2
v0.2.1
Various watch-mode fixes:
- Fix detection of new files within directories
- Detect new directories with matching files in some cases (at least on Windows)
- Avoid crashing when a file gets deleted
Full Changelog: v0.2.0...v0.2.1
v0.2.0
- You can now specify a directory name to automatically convert
*.svg
within that directory, or specify an arbitrary glob pattern (e.g.figs/**/*.svg
). - This feature works especially well in combination with watch mode:
svgink
will automatically detect new matching files in addition to changed existing files. Just be sure to quote globs so that your shell doesn't expand them. - API gains
convertGlob()
for converting directories or globs. - API now has events, which includes notifications for all matching input files, all successful conversions, all successful
run
jobs, and all errors. This is an easy way to consume what happens fromconvertGlob()
andwatch()
. - BREAKING CHANGE in API:
watch()
no longer asynchronously generates results. Instead, you're encouraged to use the event interface.
Full Changelog: v0.1.0...v0.2.0
v0.1.0
- Watch feature:
svgink -w
continuously watches SVG files for changes, and then converts. (#3) - Selective conversion:
svgink
will not convert SVG files that are older than the corresponding outputs. Use-f
to override/force. (#2) - Inkscape processes now auto-close after a minute of inactivity.
- Automatically make directories specified with command-line options.
- New API methods:
convertTo
,wait
,watch
,main
,SVGProcessor
'srun
- New API settings:
outputDir*
,settle
- API improvement: resolved job data now includes original job information
- Fix idle handling and error reporting
- More documentation
Full Changelog: v0.0.0...v0.1.0