- Updated to TypeScript 3.0.
- Fixed
which
so that it finds executables that can be executed by the current process, not just those that are executable by everyone. - Added
setVariable
method tomock-run
for mocking variables during test. - Update
MockToolRunner
to emit stdout. - Added support for UNC args in
ToolRunner
. - Added additional logging commands to the Node library to obtain parity with PowerShell.
- Added
getPlatform
convenience function. - Updated
vault
to use safer cipheriv encoding (stops npm from warning about encryption).
- Updated
setResult
to expose optional done parameter - Updated
ToolRunner
to distinguish between events for process exit and STDIO streams closed
- Updated
FindOptions
to exposeallowBrokenSymbolicLinks
.
- Updated
setVariable
to fail when a secret contains multiple lines. - Added
setSecret
to register a secret with the log scrubber, without registering a variable. Multi-line secrets are not supported.
- Updated
ToolRunner
to validate the specified tool can be found and is executable. - Updated
which
to validate the file is executable and also on Windows to apply PATHEXT.
- Updated
ToolRunner
to cleanupexecSync
interface, forexecSync
to followoptions.silent
, and removed all fields from the public interface. - Updated
TaskResult
to includeSucceededWithIssues
. - Updated
rmRF
to removecontinueOnError
. - Removed
startsWith
,endsWith
, andisEqual
prototype functions forString
. - Added
getSecureFiles
,getSecureFileName
andgetSecureFileTicket
to help tasks working with secure files.
- Updated
match
to expose optional pattern-root parameter. - Updated
find
to normalize the specified path so the results are consistent. - Updated
mock-task.filter
andmock-task.match
to passthru totask.filter
andtask.match
. - Removed
vso-node-api
from package.json. If needed, add to your package.json. - Removed
setEnvVar
. - Removed
_writeLine
. Use console.log().
- Added
findMatch
that interprets the find root from a glob pattern. Supports interleaved exclude. - Updated
find
,match
, andfilter
to change the default value for the options parameter, when undefined or null. - Updated
match
to change the behavior for exclude patterns. Interleaved exclude patterns are now supported, and exclude patterns filter results out now. - Removed
glob
, usefindMatch
.
- Added
legacyFindFiles
for tasks porting from the PowerShell or PowerShell3 execution handler.
- Updated
ToolRunner
to provide better arg quoting for .cmd/.bat files on Windows and also enable specifying exact command lines on Windows.
- Fixed bug in
find
in 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
setVariable
to expose an optional boolean parametersecret
. - Added
getVariables
to get an array of all variables, secret and non-secret. - Updated
mkdirP
to improve error messages. - Updated
find
to expose options whether to follow symlinks. - Updated
match
to 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.argIf
returns ToolRunner now for easy chainingtr.argString
changed totr.line
tr.argPath
removed. 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
setResult
to log the message as an error issue if the result is Failed.
- Updated
getDelimitedInput
to remove empty entries.
- Updated
ToolRunner
to emit lines. - Fixed initialization so that
.taskkey
file is not left in the repo root.
- Updated
ToolRunner.arg
to simply append to the arg array that is passed tospawn
. - Added
ToolRunner.argString
to split additional arguments, which are then appended to the arg array that is passed tospawn
.