From c64975029f5299fb9631dc10dc9f23378e184293 Mon Sep 17 00:00:00 2001
From: Dmitrii Bobreshev <106314398+DmitriiBobreshev@users.noreply.github.com>
Date: Thu, 9 Nov 2023 04:21:14 -0800
Subject: [PATCH] [Changelog] - add info about task-lib 4.7.0 (#992)
- Added info about task-lib 4.7.0
- Sorted the changelog in reverse chronological order
---
node/CHANGELOG.md | 89 +++++++++++++++++++++++++++++++----------------
1 file changed, 59 insertions(+), 30 deletions(-)
diff --git a/node/CHANGELOG.md b/node/CHANGELOG.md
index 90a63f6a3..7afcbd2c9 100644
--- a/node/CHANGELOG.md
+++ b/node/CHANGELOG.md
@@ -1,63 +1,92 @@
# Node.js task lib changes
-## 3.x
+## 4.x
-### 3.3.1
+### 4.7.0
-- Update minimatch to version 3.0.5 to fix vulnerability - [#836](https://github.com/microsoft/azure-pipelines-task-lib/pull/836)
+Replaced mockery - [#989](https://github.com/microsoft/azure-pipelines-task-lib/pull/989)
-### 3.4.0
+Note: If you imported mockery directly from the package then you need to replace it with `azure-pipelines-task-lib/lib-mocker`, the rest code may be kept the same.
-- Updated mockery and mocha dependencies - [#875](https://github.com/microsoft/azure-pipelines-task-lib/pull/875)
+Example:
-- Include uncought exceptions stack trace to the output logs - [#895](https://github.com/microsoft/azure-pipelines-task-lib/pull/895)
+
+
+ Before |
+ After |
+
+
+
-## 4.x
+ ```js
+ import * as mockery from 'mockery';
+ ```
+ |
+
+
+ ```js
+ import * as libMocker from 'azure-pipelines-task-lib/lib-mocker';
+ ```
+ |
+
+
-### 4.0.0-preview
+### 4.6.1
-- Introduced support for node 16 task handler - [#844](https://github.com/microsoft/azure-pipelines-task-lib/pull/844)
+- Added `getNodeMajorVersion` [#979](https://github.com/microsoft/azure-pipelines-task-lib/pull/979)
-### 4.0.1-preview
+### 4.6.0
-- Added node16 to task.schema.json - [#852](https://github.com/microsoft/azure-pipelines-task-lib/pull/852)
-- fix ToolRunner - _getSpawnSyncOptions - [#873](https://github.com/microsoft/azure-pipelines-task-lib/pull/873)
+- Replaced deprecated "sync-request" lib and Added new Async methods - [#932](https://github.com/microsoft/azure-pipelines-task-lib/pull/932)
-### 4.0.2
+### 4.5.0
-- Updated mockery because of vulnerabilities - [#878](https://github.com/microsoft/azure-pipelines-task-lib/pull/878)
+- Added `execAsync` methods that return native promises. Marked `exec` methods that return promises from the Q library as deprecated [#905](https://github.com/microsoft/azure-pipelines-task-lib/pull/905)
-## 4.1.0
+### 4.4.0
-Backported from ver.`3.4.0`:
+- Add `getBoolFeatureFlag` [#936](https://github.com/microsoft/azure-pipelines-task-lib/pull/936)
+
+### 4.3.1
+
+- Resolve CVE-2022-24999 in qs 6.9.4 [#924](https://github.com/microsoft/azure-pipelines-task-lib/pull/924)
+
+### 4.3.0
+
+- Described types for `argIf` - [#920](https://github.com/microsoft/azure-pipelines-task-lib/pull/920)
-- Include uncought exceptions stack trace to the output logs - [#895](https://github.com/microsoft/azure-pipelines-task-lib/pull/895)
-## 4.2.0
+### 4.2.0
- Added unhandledRejection event - [#912](https://github.com/microsoft/azure-pipelines-task-lib/pull/912)
-## 4.3.0
+### 4.1.0
-- Described types for `argIf` - [#920](https://github.com/microsoft/azure-pipelines-task-lib/pull/920)
+Backported from ver.`3.4.0`:
-## 4.3.1
+- Include uncought exceptions stack trace to the output logs - [#895](https://github.com/microsoft/azure-pipelines-task-lib/pull/895)
-- Resolve CVE-2022-24999 in qs 6.9.4 [#924](https://github.com/microsoft/azure-pipelines-task-lib/pull/924)
+### 4.0.2
-## 4.4.0
+- Updated mockery because of vulnerabilities - [#878](https://github.com/microsoft/azure-pipelines-task-lib/pull/878)
-- Add `getBoolFeatureFlag` [#936](https://github.com/microsoft/azure-pipelines-task-lib/pull/936)
+### 4.0.1-preview
+- Added node16 to task.schema.json - [#852](https://github.com/microsoft/azure-pipelines-task-lib/pull/852)
+- fix ToolRunner - _getSpawnSyncOptions - [#873](https://github.com/microsoft/azure-pipelines-task-lib/pull/873)
-## 4.5.0
+### 4.0.0-preview
-- Added `execAsync` methods that return native promises. Marked `exec` methods that return promises from the Q library as deprecated [#905](https://github.com/microsoft/azure-pipelines-task-lib/pull/905)
+- Introduced support for node 16 task handler - [#844](https://github.com/microsoft/azure-pipelines-task-lib/pull/844)
-## 4.6.0
+## 3.x
-- Replaced deprecated "sync-request" lib and Added new Async methods - [#932](https://github.com/microsoft/azure-pipelines-task-lib/pull/932)
+### 3.4.0
-## 4.6.1
+- Updated mockery and mocha dependencies - [#875](https://github.com/microsoft/azure-pipelines-task-lib/pull/875)
+
+- Include uncought exceptions stack trace to the output logs - [#895](https://github.com/microsoft/azure-pipelines-task-lib/pull/895)
+
+### 3.3.1
-- Added `getNodeMajorVersion` [#979](https://github.com/microsoft/azure-pipelines-task-lib/pull/979)
\ No newline at end of file
+- Update minimatch to version 3.0.5 to fix vulnerability - [#836](https://github.com/microsoft/azure-pipelines-task-lib/pull/836)
\ No newline at end of file