- Updated to TypeScript 3.0.
- Fixed
whichso that it finds executables that can be executed by the current process, not just those that are executable by everyone. - Added
setVariablemethod tomock-runfor mocking variables during test. - Update
MockToolRunnerto emit stdout. - Added support for UNC args in
ToolRunner. - Added additional logging commands to the Node library to obtain parity with PowerShell.
- Added
getPlatformconvenience function. - Updated
vaultto use safer cipheriv encoding (stops npm from warning about encryption).
- Updated
setResultto expose optional done parameter - Updated
ToolRunnerto distinguish between events for process exit and STDIO streams closed
- Updated
FindOptionsto exposeallowBrokenSymbolicLinks.
- Updated
setVariableto fail when a secret contains multiple lines. - Added
setSecretto register a secret with the log scrubber, without registering a variable. Multi-line secrets are not supported.
- Updated
ToolRunnerto validate the specified tool can be found and is executable. - Updated
whichto validate the file is executable and also on Windows to apply PATHEXT.
- Updated
ToolRunnerto cleanupexecSyncinterface, forexecSyncto followoptions.silent, and removed all fields from the public interface. - Updated
TaskResultto includeSucceededWithIssues. - Updated
rmRFto removecontinueOnError. - Removed
startsWith,endsWith, andisEqualprototype functions forString. - Added
getSecureFiles,getSecureFileNameandgetSecureFileTicketto help tasks working with secure files.
- Updated
matchto expose optional pattern-root parameter. - Updated
findto normalize the specified path so the results are consistent. - Updated
mock-task.filterandmock-task.matchto passthru totask.filterandtask.match. - Removed
vso-node-apifrom package.json. If needed, add to your package.json. - Removed
setEnvVar. - Removed
_writeLine. Use console.log().
- Added
findMatchthat interprets the find root from a glob pattern. Supports interleaved exclude. - Updated
find,match, andfilterto change the default value for the options parameter, when undefined or null. - Updated
matchto change the behavior for exclude patterns. Interleaved exclude patterns are now supported, and exclude patterns filter results out now. - Removed
glob, usefindMatch.
- Added
legacyFindFilesfor tasks porting from the PowerShell or PowerShell3 execution handler.
- Updated
ToolRunnerto provide better arg quoting for .cmd/.bat files on Windows and also enable specifying exact command lines on Windows.
- Fixed bug in
findin introduced in 0.9.8. On Windows all subdirectories were not always traversed. Loss of precision in inode was interfering with cyclical-symlink detection logic.
- Updated
setVariableto expose an optional boolean parametersecret. - Added
getVariablesto get an array of all variables, secret and non-secret. - Updated
mkdirPto improve error messages. - Updated
findto expose options whether to follow symlinks. - Updated
matchto provide an overload that accepts an array of patterns.
- API clean up as we approach 1.0 major version
- Added typings to npm module so typescript and VS Code finds easily
tl.createToolRunner()changed totl.tool();tr.arg,tr.argIfreturns ToolRunner now for easy chainingtr.argStringchanged totr.linetr.argPathremoved. It was a compat only useless method.- changes above allow easy lines like
await tl.tool('git').arg('--version');
- Pattern change. Use async function with code in try/catch. SetResult to fail in the catch. See samples.
- setResult will not halt execution. Process.exit caused output loss in some scenarios.
- All GetInput functions will throw if required and not supplied
- Disk operations will throw if they fail
- mv and cp take options string as optional arg
- Starting API clean of deprecated method.
- tl.exit() removed. Unsafe to exit process. Script should execute
- Updated
setResultto log the message as an error issue if the result is Failed.
- Updated
getDelimitedInputto remove empty entries.
- Updated
ToolRunnerto emit lines. - Fixed initialization so that
.taskkeyfile is not left in the repo root.
- Updated
ToolRunner.argto simply append to the arg array that is passed tospawn. - Added
ToolRunner.argStringto split additional arguments, which are then appended to the arg array that is passed tospawn.