newrelic 8.9.0 → 8.9.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/NEWS.md +8 -0
- package/README.md +2 -0
- package/lib/shim/shim.js +3 -4
- package/package.json +1 -1
package/NEWS.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
### v8.9.1 (2022-03-22)
|
|
2
|
+
|
|
3
|
+
* Fixed `shim.wrapReturn` to call `Reflect.construct` in construct Proxy trap. Also including `newTarget` to work with inherited classes.
|
|
4
|
+
|
|
5
|
+
* Added link to New Relic Node.js Examples repository.
|
|
6
|
+
|
|
7
|
+
* Excluded installing dependencies in `versioned-external` folders when running integration tests.
|
|
8
|
+
|
|
1
9
|
### v8.9.0 (2022-03-15)
|
|
2
10
|
|
|
3
11
|
* Added support for `initializeUnorderedBulkOp`, and `initializeOrderedBulkOp` in mongodb v3 instrumentation.
|
package/README.md
CHANGED
|
@@ -145,6 +145,8 @@ Here are some resources for learning more about the agent:
|
|
|
145
145
|
|
|
146
146
|
- [The changelog](https://github.com/newrelic/node-newrelic/blob/main/NEWS.md)
|
|
147
147
|
|
|
148
|
+
- [Example applications](https://github.com/newrelic/newrelic-node-examples) - Working examples of New Relic features in Node.js.
|
|
149
|
+
|
|
148
150
|
## Support
|
|
149
151
|
|
|
150
152
|
Should you need assistance with New Relic products, you are in good hands with several support channels.
|
package/lib/shim/shim.js
CHANGED
|
@@ -639,10 +639,9 @@ function wrapReturn(nodule, properties, spec, args) {
|
|
|
639
639
|
}
|
|
640
640
|
return true
|
|
641
641
|
},
|
|
642
|
-
construct: function constructTrap(
|
|
643
|
-
// Call the underlying function
|
|
644
|
-
|
|
645
|
-
let ret = new Target(...proxyArgs)
|
|
642
|
+
construct: function constructTrap(target, proxyArgs, newTarget) {
|
|
643
|
+
// Call the underlying function via Reflect.
|
|
644
|
+
let ret = Reflect.construct(target, proxyArgs, newTarget)
|
|
646
645
|
|
|
647
646
|
// Assemble the arguments to hand to the spec.
|
|
648
647
|
const _args = [shim, fn, fnName, ret]
|