node-oom-heapdump 3.2.0 → 3.2.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/README.md
CHANGED
@@ -9,6 +9,7 @@ Tested on Node.js 10.x, 11.x, 12.x, 13.x, 14.x, 15.x, 16.x, 17.x and 18.x.
|
|
9
9
|
No support for Node.js < 10.x at the moment in version 3.0.0, use version 2.2.0 for if needed.
|
10
10
|
|
11
11
|
Also comes with prebuilt binaries (hosted on Github releases), thanks to Stuart Miller (https://github.com/spmiller).
|
12
|
+
From 3.1.0, prebuilt binaries are only shipped for Node.js 16.x and upwards.
|
12
13
|
|
13
14
|
## Node.js 14.18.x
|
14
15
|
https://github.com/nodejs/node/pull/33010 landed in Node.js 14.18.0, which makes this module no longer needed for heapdumps on out of memory.
|
package/build/binding.sln
CHANGED
@@ -4,14 +4,14 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "node_oom_heapdump_native",
|
|
4
4
|
EndProject
|
5
5
|
Global
|
6
6
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
7
|
-
Release|x64 = Release|x64
|
8
7
|
Debug|x64 = Debug|x64
|
8
|
+
Release|x64 = Release|x64
|
9
9
|
EndGlobalSection
|
10
10
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
11
|
-
{B44BD8E7-8AB3-68F6-9D96-154D16CEC9C0}.Release|x64.ActiveCfg = Release|x64
|
12
|
-
{B44BD8E7-8AB3-68F6-9D96-154D16CEC9C0}.Release|x64.Build.0 = Release|x64
|
13
11
|
{B44BD8E7-8AB3-68F6-9D96-154D16CEC9C0}.Debug|x64.ActiveCfg = Debug|x64
|
14
12
|
{B44BD8E7-8AB3-68F6-9D96-154D16CEC9C0}.Debug|x64.Build.0 = Debug|x64
|
13
|
+
{B44BD8E7-8AB3-68F6-9D96-154D16CEC9C0}.Release|x64.ActiveCfg = Release|x64
|
14
|
+
{B44BD8E7-8AB3-68F6-9D96-154D16CEC9C0}.Release|x64.Build.0 = Release|x64
|
15
15
|
EndGlobalSection
|
16
16
|
GlobalSection(SolutionProperties) = preSolution
|
17
17
|
HideSolutionNode = FALSE
|
@@ -94,17 +94,19 @@ void OnOOMErrorHandler()
|
|
94
94
|
exit(1);
|
95
95
|
}
|
96
96
|
|
97
|
+
#if NODE_VERSION_AT_LEAST(20, 0, 0)
|
97
98
|
void OnOOMErrorNode20(const char *location, const OOMDetails &details)
|
98
99
|
{
|
99
100
|
// Node20+
|
100
101
|
OnOOMErrorHandler();
|
101
102
|
}
|
102
|
-
|
103
|
+
#else
|
103
104
|
void OnOOMErrorNode18(const char *location, bool is_heap_oom)
|
104
105
|
{
|
105
106
|
// Up until Node18
|
106
107
|
OnOOMErrorHandler();
|
107
108
|
}
|
109
|
+
#endif
|
108
110
|
|
109
111
|
void ParseArgumentsAndSetErrorHandler(const FunctionCallbackInfo<Value> &args)
|
110
112
|
{
|
package/package.json
CHANGED