Skip to content

Commit

Permalink
Add explicit deprecation warning (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
qetza authored May 9, 2024
1 parent 767111f commit 4a916f6
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
## 5.0.8
- Add links in README to migration documentation.

Task 3.12.4
- Add explicit deprecation warning.

Task 4.4.4
- Add explicit deprecation warning.

## 5.0.7
Task 6.0.6
- Fix default case sensitivity in sources and additional variables matching ([#29](https://github.com/qetza/replacetokens-task/issues/29)).
Expand Down
3 changes: 3 additions & 0 deletions tasks/ReplaceTokensV3/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Changelog
## 3.12.4
- Add explicit deprecation warning.

## 3.12.3
- Fix telemetry account hash.

Expand Down
5 changes: 5 additions & 0 deletions tasks/ReplaceTokensV3/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,11 @@ var normalize = function (p: string): string {
};

async function run() {
// depreciation warnings
tl.warning(
'This version is deprecated. Use v5 (node10) or v6 (node16) versions instead. For help see https://github.com/qetza/replacetokens-task/discussions/33 and https://github.com/qetza/replacetokens-task/discussions/34'
);

// initialize telemetry (outside of try as needed in catch and finally)
let telemetryEnabled = false;
let telemetryEvent = new TelemetryEvent(
Expand Down
3 changes: 1 addition & 2 deletions tasks/ReplaceTokensV3/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@
"version": {
"Major": 3,
"Minor": 12,
"Patch": 3
"Patch": 4
},
"instanceNameFormat": "Replace tokens in $(targetFiles)",
"minimumAgentVersion": "2.105.0",
"deprecated": true,
"deprecationMessage": "The replacetokens@3 task has been deprecated. Use replacetokens@5 (node10) or replacetokens@6 (node16) task instead.",
"groups": [
{
"name": "validations",
Expand Down
3 changes: 3 additions & 0 deletions tasks/ReplaceTokensV4/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Changelog
## 4.4.4
- Add explicit deprecation warning.

## 4.4.3
- Fix telemetry account hash.

Expand Down
5 changes: 5 additions & 0 deletions tasks/ReplaceTokensV4/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,11 @@ var normalize = function (p: string): string {
};

async function run() {
// depreciation warnings
tl.warning(
'This version is deprecated. Use v5 (node10) or v6 (node16) versions instead. For help see https://github.com/qetza/replacetokens-task/discussions/33 and https://github.com/qetza/replacetokens-task/discussions/34'
);

// initialize telemetry (outside of try as needed in catch and finally)
let telemetryEnabled = false;
let telemetryEvent = new TelemetryEvent(
Expand Down
3 changes: 1 addition & 2 deletions tasks/ReplaceTokensV4/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@
"version": {
"Major": 4,
"Minor": 4,
"Patch": 3
"Patch": 4
},
"releaseNotes": "Added output variables (breaking change).<br/>Added token pattern dropdown (breaking change).",
"instanceNameFormat": "Replace tokens in $(targetFiles)",
"minimumAgentVersion": "2.105.0",
"deprecated": true,
"deprecationMessage": "The replacetokens@4 task has been deprecated. Use replacetokens@5 (node10) or replacetokens@6 (node16) task instead.",
"groups": [
{
"name": "validations",
Expand Down

0 comments on commit 4a916f6

Please sign in to comment.