@instana/shared-metrics 3.21.0 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,24 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [4.0.1](https://github.com/instana/nodejs/compare/v4.0.0...v4.0.1) (2024-10-28)
7
+
8
+ **Note:** Version bump only for package @instana/shared-metrics
9
+
10
+ # [4.0.0](https://github.com/instana/nodejs/compare/v3.21.0...v4.0.0) (2024-10-23)
11
+
12
+ ### Bug Fixes
13
+
14
+ - dropped support for node v14 and v16 ([#1348](https://github.com/instana/nodejs/issues/1348)) ([aaa9ad4](https://github.com/instana/nodejs/commit/aaa9ad41ebf82b11eedcf913afc31d3addd53868))
15
+ - **shared-metrics:** replaced fs-extra with fs promises ([#1362](https://github.com/instana/nodejs/issues/1362)) ([35ec19c](https://github.com/instana/nodejs/commit/35ec19cff46cc0566646583e02eb4fec7749fa1e))
16
+
17
+ ### BREAKING CHANGES
18
+
19
+ - - Dropped support for Node.js versions 14 and 16.
20
+
21
+ * Reason: These versions have reached their end of life.
22
+ * More info: https://github.com/nodejs/Release?tab=readme-ov-file#end-of-life-releases
23
+
6
24
  # [3.21.0](https://github.com/instana/nodejs/compare/v3.20.2...v3.21.0) (2024-10-17)
7
25
 
8
26
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instana/shared-metrics",
3
- "version": "3.21.0",
3
+ "version": "4.0.1",
4
4
  "description": "Internal metrics plug-in package for Node.js monitoring with Instana",
5
5
  "author": {
6
6
  "name": "Bastian Krol",
@@ -59,15 +59,13 @@
59
59
  },
60
60
  "license": "MIT",
61
61
  "dependencies": {
62
- "@instana/core": "3.21.0",
62
+ "@instana/core": "4.0.1",
63
63
  "detect-libc": "^2.0.2",
64
64
  "event-loop-lag": "^1.4.0",
65
- "fs-extra": "^11.2.0",
66
65
  "semver": "^7.5.4",
67
66
  "tar": "^6.2.1"
68
67
  },
69
68
  "devDependencies": {
70
- "@types/fs-extra": "^11.0.4",
71
69
  "@types/tar": "^6.1.6",
72
70
  "event-loop-stats": "1.4.1",
73
71
  "gcstats.js": "1.0.0"
@@ -76,5 +74,5 @@
76
74
  "event-loop-stats": "1.4.1",
77
75
  "gcstats.js": "1.0.0"
78
76
  },
79
- "gitHead": "88f34c35252f7f71028456f408e668d7ab624e96"
77
+ "gitHead": "67d792958e4031e600dff3fd4d4fc5e91093e960"
80
78
  }
@@ -13,7 +13,6 @@ const os = require('os');
13
13
  const tar = require('tar');
14
14
  const path = require('path');
15
15
  const detectLibc = require('detect-libc');
16
- const fse = require('fs-extra');
17
16
 
18
17
  /**
19
18
  * @typedef {Object} InstanaSharedMetricsOptions
@@ -188,8 +187,8 @@ function copyPrecompiled(opts, loaderEmitter, callback) {
188
187
  `Copying the precompiled build for ${opts.nativeModuleName} ${label} from ${sourceDir} to ${targetDir}.`
189
188
  );
190
189
 
191
- fse
192
- .copy(sourceDir, targetDir)
190
+ fs.promises
191
+ .cp(sourceDir, targetDir, { recursive: true })
193
192
  .then(() => {
194
193
  // We have unpacked and copied the correct precompiled native addon. The next attempt to require the
195
194
  // dependency should work.