Task 6.1.0
- Add useAdditionalVariablesOnly parameter (#29).
Task 5.4.0
- Add useAdditionalVariablesOnly parameter (#29).
- Add links in README to migration documentation.
Task 3.12.4
- Add explicit deprecation warning.
Task 4.4.4
- Add explicit deprecation warning.
Task 6.0.6
- Fix default case sensitivity in sources and additional variables matching (#29).
- Fix default directories and files starting with a dot in sources and additional variables matching (#29).
Task 6.0.5
Task 5.3.3
- Fix telemetry account hash.
Task 4.4.3
- Fix telemetry account hash.
Task 3.12.3
- Fix telemetry account hash.
Task 6.0.4
- Update @qetza/replacetokens to 1.4.0.
- Change telemetry provider.
Task 5.3.2
- Change telemetry provider.
Task 4.4.2
- Change telemetry provider.
Task 3.12.2
- Change telemetry provider.
Task 6.0.3
- Fix minimum agent requirement to
2.206.1
(#13). - Fix paths in sources incompatible with
fast-glob
syntax on win32 (#16). - Add agent OS in telemetry (#5).
Task 5.3.1
- Add agent OS in telemetry (#5).
Task 4.4.1
- Add agent OS in telemetry (#5).
Task 3.12.1
- Add agent OS in telemetry (#5).
Task 6.0.2
- Add aliases for renamed inputs to ease upgrade (#11).
Task 6.0.1
- Fix missing default variables due to case-sensitivity (#8).
Task 6.0.0
- Breaking changes: the task was completely rewritten to use the npm package @qetza/replacetokens and be more similar with the new ReplaceTokens GitHub Actions:
- support only node 16
- updated to fast-glob for glob pattern
- renamed input targetFiles to sources
- removed support for comma-separated paths in targetFiles
- renamed encoding value
win1252
towindows1252
- merged inputs variableFiles and inlineVariables in additionalVariables
- renamed input variableSeparator to separator
- renamed input enableRecursion to recursive
- renamed input rootDirectory to root
- renamed tokenPattern value
rm
todoubleunderscores
- renamed input writeBOM to addBOM
- changed writeBOM default value to
false
- renamed input verbosity to logLevel
- renamed verbosity value
detailed
todebug
- renamed verbosity value
normal
toinfo
- removed verbosity value
off
(see new supported values for replacement)
- renamed verbosity value
- renamed input actionOnMissing to missingVarLog
- renamed actionOnMissing value
continue
tooff
- renamed actionOnMissing value
fail
toerror
- renamed actionOnMissing value
- replaced keepToken with missingVarAction with value
keep
- renamed input actionOnNoFiles to ifNoFilesFound
- renamed actionOnNoFiles value
continue
toignore
- renamed actionOnNoFiles value
fail
toerror
- renamed actionOnNoFiles value
- renamed input enableTransforms to transforms
- renamed transform
noescape
toraw
- renamed transform
- renamed input transformPrefix to transformsPrefix
- renamed input transformSuffix to transformsSuffix
- removed input useLegacyPattern
- removed input useLegacyEmptyFeature
- replaced input useDefaultValue with missingVarAction with value
replace
- removed input emptyValue
- renamed input defaultValue to missingVarDefault
- removed input enableTelemetry to telemetryOptout and inverse meaning
- renamed output tokenReplacedCount to replaced
- renamed output tokenFoundCount to tokens
- renamed output fileProcessedCount to files
- renamed output transformExecutedCount to transforms
- renamed output defaultValueCount to defaults
- Add new token pattern
githubactions
. - Add new log levels
warn
anderror
. - Add support in additionalVariables for JSON encoded environment variables.
- Add support for
REPLACETOKENS_TELEMETRY_OPTOUT
environment variable.
Task 5.3.0
- Add support for
indent
transformation with indent size and indent first line parameters (326). - Add support for
REPLACETOKENS_TELEMETRY_OPTOUT
environment variable.
Task 4.4.0
- Add support for
indent
transformation with indent size and indent first line parameters (326). - Add support for
REPLACETOKENS_TELEMETRY_OPTOUT
environment variable.
Task 3.12.0
- Add support for
indent
transformation with indent size and indent first line parameters (326). - Add support for
REPLACETOKENS_TELEMETRY_OPTOUT
environment variable.
Task 5.2.0
- Fix recursion cycle detection (#308) (contributed by Chad Smith).
- Add support for YAML multiple document files in variable files and inline variables (#287).
- Add support for JSON with comments variable files (#299).
- Add support for Node16 execution handler.
Task 4.3.0
- Fix recursion cycle detection (#308) (contributed by Chad Smith).
- Add support for YAML multiple document files in variable files and inline variables (#287).
- Add support for JSON with comments variable files (#299).
Task 3.11.0
- Fix recursion cycle detection (#308) (contributed by Chad Smith).
- Add support for YAML multiple document files in variable files and inline variables (#287).
- Add support for JSON with comments variable files (#299).
Task 4.2.1
- Fix compatibility with node 5.10.1 (#277).
Task 3.10.1
- Fix compatibility with node 5.10.1 (#277).
Task 5.1.0
- Add support for inline variables (#252).
- Add support for recursive token replacement in values (#201).
- Add optional reworked feature to simplify empty and default values (this is a breaking change if enabled as the old Empty value is not used anymore but replaced by an empty variable declaration).
Task 4.2.0
- Add support for inline variables (#252).
- Add support for recursive token replacement in values (#201).
- Add optional reworked feature to simplify empty and default values (this is a breaking change if enabled as the old Empty value is not used anymore but replaced by an empty variable declaration).
Task 3.10.0
- Add support for inline variables (#252).
- Add support for recursive token replacement in values (#201).
- Add optional reworked feature to simplify empty and default values (this is a breaking change if enabled as the old Empty value is not used anymore but replaced by an empty variable declaration).
Task 5.0.0
- Breaking change: Migrate task to Node10 execution handler needing agent
2.144.0
minimum (#228, #230).
Task 4.1.1
- Revert migrate tasks to Node10 execution handler (#233).
Task 3.9.1
- Revert migrate tasks to Node10 execution handler (#233).
Task 4.1.0
Task 3.9.0
Task 4.0.1
Task 3.8.0
-
Add support for multiple task versions.
-
Task 4.x (preview)
- Breaking change: Add output variables (#160). (some older version of TFS/Azure Pipelines doesn't support output variables when used in release pipelines)
- Breaking change: Add dropdown parameter Token pattern to select token pattern (#131). (users with customized token pattern will need to manually select one or
custom
)
- Add output variables tokenReplacedCount, tokenFoundCount and fileProcessedCount (#160).
- Add support for variable transformations with Enable tranformations (#96).
- Add default value for tokens not found with Default value (contribution from ClemensSutor).
- Group log outputs in Azure Pipelines output.
- Add support for variables in external YAML files with
.yml
or.yaml
extension (#177).
- Add parameter Use legacy pattern with default value to
false
.
- Fix issue when token prefix present but not as a token prefix (#149).
- Fix issue when variable
System.ServerType
is not defined (#147).
- Add anonymous usage telemetry.
- Ignore spaces between token prefix/suffix and variable name (#143).
- Fix JSON escaping of slash
/
(#138)
- Add summary in logs with number of tokens found and replaced (#126).
- Add support for variables in external JSON files (#113).
- Breaking change: If you were using negative pattern you need to use the semi colon
;
as a separator instead of new-line in Target files. - Fix negative pattern support (#127).
- Add support for custom output file and wildcard support (#114).
- Fix matching issue with directory (#122).
- Fix log issue with escaped secret values.
- Switch to jschardet for encoding detection when selecting
auto
in File encoding (#99). - Switch to azure-pipelines-task-lib v2.8.0.
- Add
auto
to Escape type and set it as default value. - Move Escape type, Escape character and Characters to escape to the main paramters section for easier discoverability.
- Add Verbosity parameter to allow detail logs without using
system.debug
.
- Breaking change: If you were using the character escaping feature you need to select
custom
in Escape values type parameter. - Add support to escape JSON in variable values (contributed by Justin Gould)
- Add support to escape XML in variable values (contributed by Justin Gould)
- Add
Windows 1252
andISO 8859-1
encoding to File encoding (#67)
- Add support to escape characters in variable values (#52)
- Fix issue with backslash in default target files value on mac (#50)
- Add support for comma-separator in Target files (#35).
- Add Empty value parameter to allow token replacement with an empty string (#32).
- Fix invalid file permissions after saving files.
- Breaking change: Migrated code to typescript to support cross-platform agent. This change requires the use of an agent at least in version 2.105.0 which is not compatible with TFS 2015. If you need to install the task on TFS 2015, download the vsix from the repository: https://github.com/qetza/vsts-replacetokens-task/releases/download/v1.4.1/qetza.replacetokens-1.4.1.vsix
- Breaking change: File encoding parameter is now used when reading and writing files. Previously it was only used when writing.
- Breaking change: File encoding doesn't support 'utf-32' and 'utf-32 (big endian)' anymore.
- Breaking change: Target files parameter now only uses the new line as a separator for multi-values (previously it used new-line and semi-colon).
- Removed required Root directory, an empty value is equivalent to $(System.DefaultWorkingDirectory).
- Fix missing method issue with new xplat agent (2.104.1)
- Add variables expansion in variable values.
- Escape token prefix and suffix in regex pattern.
- Fix wrong encoding constructors parameters.
- Replaced parameter Fail on missing with Action in Missing variables group.
- Add Keep token parameter in 'Missing variables' group.
- Fix issue on empty file.
- Add Root directory task parameter to configure file search root directory (contributed by Jesse Houwing).
- Update Target files task parameter to support newline-separator (contributed by Jesse Houwing).