node-oom-heapdump 3.2.1 → 3.2.3

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.
@@ -11,7 +11,7 @@ jobs:
11
11
  runs-on: ${{ matrix.os }}
12
12
  strategy:
13
13
  matrix:
14
- node-version: [16.x, 17.x, 18.x, 20.x]
14
+ node-version: [18.x, 20.x, 22.2]
15
15
  os: [ubuntu-latest, macos-latest, windows-latest]
16
16
  steps:
17
17
  - uses: actions/checkout@v2
package/CHANGELOG.md CHANGED
@@ -1,4 +1,12 @@
1
- 27-10-2023 Paul Rütter
1
+ 16-05-2024 Paul Rütter
2
+ - 3.2.3
3
+ - Release to fix prebuilt binaries for node 22.x
4
+
5
+ 25-04-2024 Paul Rütter
6
+ - 3.2.2
7
+ - Release to update dependencies
8
+
9
+ 27-10-2023 Paul Rütter
2
10
  - 3.2.0
3
11
  - https://github.com/blueconic/node-oom-heapdump/issues/31: Node20 support
4
12
  - Change native code to use different method signature for Node20 and above, remain compatible for Node18 and below.
package/README.md CHANGED
@@ -5,11 +5,12 @@ Node module which will create a V8 heap snapshot right before an "Out of Memory"
5
5
 
6
6
  It can also create heapdumps and CPU profiles on request like 'v8-profiler', but does this off-process so it doesn't interfere with execution of the main process.
7
7
 
8
- Tested on Node.js 10.x, 11.x, 12.x, 13.x, 14.x, 15.x, 16.x, 17.x and 18.x.
8
+ Tested on Node.js 10.x, 11.x, 12.x, 13.x, 14.x, 15.x, 16.x, 17.x, 18.x, 20.x and 22.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
12
  From 3.1.0, prebuilt binaries are only shipped for Node.js 16.x and upwards.
13
+ From 3.2.3, prebuilt binaries are only shipped for Node.js 18.x and upwards.
13
14
 
14
15
  ## Node.js 14.18.x
15
16
  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
- Debug|x64 = Debug|x64
8
7
  Release|x64 = Release|x64
8
+ Debug|x64 = Debug|x64
9
9
  EndGlobalSection
10
10
  GlobalSection(ProjectConfigurationPlatforms) = postSolution
11
- {B44BD8E7-8AB3-68F6-9D96-154D16CEC9C0}.Debug|x64.ActiveCfg = Debug|x64
12
- {B44BD8E7-8AB3-68F6-9D96-154D16CEC9C0}.Debug|x64.Build.0 = Debug|x64
13
11
  {B44BD8E7-8AB3-68F6-9D96-154D16CEC9C0}.Release|x64.ActiveCfg = Release|x64
14
12
  {B44BD8E7-8AB3-68F6-9D96-154D16CEC9C0}.Release|x64.Build.0 = Release|x64
13
+ {B44BD8E7-8AB3-68F6-9D96-154D16CEC9C0}.Debug|x64.ActiveCfg = Debug|x64
14
+ {B44BD8E7-8AB3-68F6-9D96-154D16CEC9C0}.Debug|x64.Build.0 = Debug|x64
15
15
  EndGlobalSection
16
16
  GlobalSection(SolutionProperties) = preSolution
17
17
  HideSolutionNode = FALSE
@@ -16,14 +16,14 @@
16
16
  <RootNamespace>node_oom_heapdump_native</RootNamespace>
17
17
  <IgnoreWarnCompileDuplicatedFilename>true</IgnoreWarnCompileDuplicatedFilename>
18
18
  <PreferredToolArchitecture>x64</PreferredToolArchitecture>
19
- <WindowsTargetPlatformVersion>10.0.17763.0</WindowsTargetPlatformVersion>
19
+ <WindowsTargetPlatformVersion>10.0.22621.0</WindowsTargetPlatformVersion>
20
20
  </PropertyGroup>
21
21
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props"/>
22
22
  <PropertyGroup Label="Configuration">
23
23
  <ConfigurationType>DynamicLibrary</ConfigurationType>
24
24
  </PropertyGroup>
25
25
  <PropertyGroup Label="Locals">
26
- <PlatformToolset>v141</PlatformToolset>
26
+ <PlatformToolset>v143</PlatformToolset>
27
27
  </PropertyGroup>
28
28
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props"/>
29
29
  <Import Project="$(VCTargetsPath)\BuildCustomizations\masm.props"/>
@@ -48,7 +48,7 @@
48
48
  </PropertyGroup>
49
49
  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
50
50
  <ClCompile>
51
- <AdditionalIncludeDirectories>C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\20.9.0\include\node;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\20.9.0\src;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\20.9.0\deps\openssl\config;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\20.9.0\deps\openssl\openssl\include;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\20.9.0\deps\uv\include;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\20.9.0\deps\zlib;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\20.9.0\deps\v8\include;..\node_modules\nan;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
51
+ <AdditionalIncludeDirectories>C:\Users\Paul\AppData\Local\node-gyp\Cache\20.13.1\include\node;C:\Users\Paul\AppData\Local\node-gyp\Cache\20.13.1\src;C:\Users\Paul\AppData\Local\node-gyp\Cache\20.13.1\deps\openssl\config;C:\Users\Paul\AppData\Local\node-gyp\Cache\20.13.1\deps\openssl\openssl\include;C:\Users\Paul\AppData\Local\node-gyp\Cache\20.13.1\deps\uv\include;C:\Users\Paul\AppData\Local\node-gyp\Cache\20.13.1\deps\zlib;C:\Users\Paul\AppData\Local\node-gyp\Cache\20.13.1\deps\v8\include;..\node_modules\nan;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
52
52
  <AdditionalOptions>/Zc:__cplusplus -std:c++17 %(AdditionalOptions)</AdditionalOptions>
53
53
  <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
54
54
  <BufferSecurityCheck>true</BufferSecurityCheck>
@@ -60,7 +60,7 @@
60
60
  <OmitFramePointers>false</OmitFramePointers>
61
61
  <Optimization>Disabled</Optimization>
62
62
  <PrecompiledHeader>NotUsing</PrecompiledHeader>
63
- <PreprocessorDefinitions>NODE_GYP_MODULE_NAME=node_oom_heapdump_native;USING_UV_SHARED=1;USING_V8_SHARED=1;V8_DEPRECATION_WARNINGS=1;V8_DEPRECATION_WARNINGS;V8_IMMINENT_DEPRECATION_WARNINGS;_GLIBCXX_USE_CXX11_ABI=1;WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_HAS_EXCEPTIONS=0;OPENSSL_NO_PINSHARED;OPENSSL_THREADS;BUILDING_NODE_EXTENSION;DEBUG;_DEBUG;V8_ENABLE_CHECKS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
63
+ <PreprocessorDefinitions>NODE_GYP_MODULE_NAME=node_oom_heapdump_native;USING_UV_SHARED=1;USING_V8_SHARED=1;V8_DEPRECATION_WARNINGS=1;_GLIBCXX_USE_CXX11_ABI=1;WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_HAS_EXCEPTIONS=0;OPENSSL_NO_PINSHARED;OPENSSL_THREADS;BUILDING_NODE_EXTENSION;DEBUG;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
64
64
  <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
65
65
  <StringPooling>true</StringPooling>
66
66
  <SuppressStartupBanner>true</SuppressStartupBanner>
@@ -72,7 +72,7 @@
72
72
  <AdditionalOptions>/LTCG:INCREMENTAL %(AdditionalOptions)</AdditionalOptions>
73
73
  </Lib>
74
74
  <Link>
75
- <AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;DelayImp.lib;&quot;C:\\Users\\paul.BLUECONIC\\AppData\\Local\\node-gyp\\Cache\\20.9.0\\x64\\node.lib&quot;</AdditionalDependencies>
75
+ <AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;DelayImp.lib;&quot;C:\\Users\\Paul\\AppData\\Local\\node-gyp\\Cache\\20.13.1\\x64\\node.lib&quot;</AdditionalDependencies>
76
76
  <AdditionalOptions>/LTCG:INCREMENTAL %(AdditionalOptions)</AdditionalOptions>
77
77
  <EnableCOMDATFolding>true</EnableCOMDATFolding>
78
78
  <GenerateDebugInformation>true</GenerateDebugInformation>
@@ -83,13 +83,13 @@
83
83
  <TargetMachine>MachineX64</TargetMachine>
84
84
  </Link>
85
85
  <ResourceCompile>
86
- <AdditionalIncludeDirectories>C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\20.9.0\include\node;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\20.9.0\src;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\20.9.0\deps\openssl\config;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\20.9.0\deps\openssl\openssl\include;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\20.9.0\deps\uv\include;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\20.9.0\deps\zlib;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\20.9.0\deps\v8\include;..\node_modules\nan;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
87
- <PreprocessorDefinitions>NODE_GYP_MODULE_NAME=node_oom_heapdump_native;USING_UV_SHARED=1;USING_V8_SHARED=1;V8_DEPRECATION_WARNINGS=1;V8_DEPRECATION_WARNINGS;V8_IMMINENT_DEPRECATION_WARNINGS;_GLIBCXX_USE_CXX11_ABI=1;WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_HAS_EXCEPTIONS=0;OPENSSL_NO_PINSHARED;OPENSSL_THREADS;BUILDING_NODE_EXTENSION;DEBUG;_DEBUG;V8_ENABLE_CHECKS;%(PreprocessorDefinitions);%(PreprocessorDefinitions)</PreprocessorDefinitions>
86
+ <AdditionalIncludeDirectories>C:\Users\Paul\AppData\Local\node-gyp\Cache\20.13.1\include\node;C:\Users\Paul\AppData\Local\node-gyp\Cache\20.13.1\src;C:\Users\Paul\AppData\Local\node-gyp\Cache\20.13.1\deps\openssl\config;C:\Users\Paul\AppData\Local\node-gyp\Cache\20.13.1\deps\openssl\openssl\include;C:\Users\Paul\AppData\Local\node-gyp\Cache\20.13.1\deps\uv\include;C:\Users\Paul\AppData\Local\node-gyp\Cache\20.13.1\deps\zlib;C:\Users\Paul\AppData\Local\node-gyp\Cache\20.13.1\deps\v8\include;..\node_modules\nan;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
87
+ <PreprocessorDefinitions>NODE_GYP_MODULE_NAME=node_oom_heapdump_native;USING_UV_SHARED=1;USING_V8_SHARED=1;V8_DEPRECATION_WARNINGS=1;_GLIBCXX_USE_CXX11_ABI=1;WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_HAS_EXCEPTIONS=0;OPENSSL_NO_PINSHARED;OPENSSL_THREADS;BUILDING_NODE_EXTENSION;DEBUG;_DEBUG;%(PreprocessorDefinitions);%(PreprocessorDefinitions)</PreprocessorDefinitions>
88
88
  </ResourceCompile>
89
89
  </ItemDefinitionGroup>
90
90
  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
91
91
  <ClCompile>
92
- <AdditionalIncludeDirectories>C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\20.9.0\include\node;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\20.9.0\src;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\20.9.0\deps\openssl\config;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\20.9.0\deps\openssl\openssl\include;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\20.9.0\deps\uv\include;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\20.9.0\deps\zlib;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\20.9.0\deps\v8\include;..\node_modules\nan;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
92
+ <AdditionalIncludeDirectories>C:\Users\Paul\AppData\Local\node-gyp\Cache\20.13.1\include\node;C:\Users\Paul\AppData\Local\node-gyp\Cache\20.13.1\src;C:\Users\Paul\AppData\Local\node-gyp\Cache\20.13.1\deps\openssl\config;C:\Users\Paul\AppData\Local\node-gyp\Cache\20.13.1\deps\openssl\openssl\include;C:\Users\Paul\AppData\Local\node-gyp\Cache\20.13.1\deps\uv\include;C:\Users\Paul\AppData\Local\node-gyp\Cache\20.13.1\deps\zlib;C:\Users\Paul\AppData\Local\node-gyp\Cache\20.13.1\deps\v8\include;..\node_modules\nan;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
93
93
  <AdditionalOptions>/Zc:__cplusplus -std:c++17 %(AdditionalOptions)</AdditionalOptions>
94
94
  <BufferSecurityCheck>true</BufferSecurityCheck>
95
95
  <DebugInformationFormat>OldStyle</DebugInformationFormat>
@@ -103,7 +103,7 @@
103
103
  <OmitFramePointers>true</OmitFramePointers>
104
104
  <Optimization>Full</Optimization>
105
105
  <PrecompiledHeader>NotUsing</PrecompiledHeader>
106
- <PreprocessorDefinitions>NODE_GYP_MODULE_NAME=node_oom_heapdump_native;USING_UV_SHARED=1;USING_V8_SHARED=1;V8_DEPRECATION_WARNINGS=1;V8_DEPRECATION_WARNINGS;V8_IMMINENT_DEPRECATION_WARNINGS;_GLIBCXX_USE_CXX11_ABI=1;WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_HAS_EXCEPTIONS=0;OPENSSL_NO_PINSHARED;OPENSSL_THREADS;BUILDING_NODE_EXTENSION;%(PreprocessorDefinitions)</PreprocessorDefinitions>
106
+ <PreprocessorDefinitions>NODE_GYP_MODULE_NAME=node_oom_heapdump_native;USING_UV_SHARED=1;USING_V8_SHARED=1;V8_DEPRECATION_WARNINGS=1;_GLIBCXX_USE_CXX11_ABI=1;WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_HAS_EXCEPTIONS=0;OPENSSL_NO_PINSHARED;OPENSSL_THREADS;BUILDING_NODE_EXTENSION;%(PreprocessorDefinitions)</PreprocessorDefinitions>
107
107
  <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
108
108
  <RuntimeTypeInfo>false</RuntimeTypeInfo>
109
109
  <StringPooling>true</StringPooling>
@@ -116,7 +116,7 @@
116
116
  <AdditionalOptions>/LTCG:INCREMENTAL %(AdditionalOptions)</AdditionalOptions>
117
117
  </Lib>
118
118
  <Link>
119
- <AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;DelayImp.lib;&quot;C:\\Users\\paul.BLUECONIC\\AppData\\Local\\node-gyp\\Cache\\20.9.0\\x64\\node.lib&quot;</AdditionalDependencies>
119
+ <AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;DelayImp.lib;&quot;C:\\Users\\Paul\\AppData\\Local\\node-gyp\\Cache\\20.13.1\\x64\\node.lib&quot;</AdditionalDependencies>
120
120
  <AdditionalOptions>/LTCG:INCREMENTAL %(AdditionalOptions)</AdditionalOptions>
121
121
  <EnableCOMDATFolding>true</EnableCOMDATFolding>
122
122
  <GenerateDebugInformation>true</GenerateDebugInformation>
@@ -127,8 +127,8 @@
127
127
  <TargetMachine>MachineX64</TargetMachine>
128
128
  </Link>
129
129
  <ResourceCompile>
130
- <AdditionalIncludeDirectories>C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\20.9.0\include\node;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\20.9.0\src;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\20.9.0\deps\openssl\config;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\20.9.0\deps\openssl\openssl\include;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\20.9.0\deps\uv\include;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\20.9.0\deps\zlib;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\20.9.0\deps\v8\include;..\node_modules\nan;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
131
- <PreprocessorDefinitions>NODE_GYP_MODULE_NAME=node_oom_heapdump_native;USING_UV_SHARED=1;USING_V8_SHARED=1;V8_DEPRECATION_WARNINGS=1;V8_DEPRECATION_WARNINGS;V8_IMMINENT_DEPRECATION_WARNINGS;_GLIBCXX_USE_CXX11_ABI=1;WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_HAS_EXCEPTIONS=0;OPENSSL_NO_PINSHARED;OPENSSL_THREADS;BUILDING_NODE_EXTENSION;%(PreprocessorDefinitions);%(PreprocessorDefinitions)</PreprocessorDefinitions>
130
+ <AdditionalIncludeDirectories>C:\Users\Paul\AppData\Local\node-gyp\Cache\20.13.1\include\node;C:\Users\Paul\AppData\Local\node-gyp\Cache\20.13.1\src;C:\Users\Paul\AppData\Local\node-gyp\Cache\20.13.1\deps\openssl\config;C:\Users\Paul\AppData\Local\node-gyp\Cache\20.13.1\deps\openssl\openssl\include;C:\Users\Paul\AppData\Local\node-gyp\Cache\20.13.1\deps\uv\include;C:\Users\Paul\AppData\Local\node-gyp\Cache\20.13.1\deps\zlib;C:\Users\Paul\AppData\Local\node-gyp\Cache\20.13.1\deps\v8\include;..\node_modules\nan;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
131
+ <PreprocessorDefinitions>NODE_GYP_MODULE_NAME=node_oom_heapdump_native;USING_UV_SHARED=1;USING_V8_SHARED=1;V8_DEPRECATION_WARNINGS=1;_GLIBCXX_USE_CXX11_ABI=1;WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_HAS_EXCEPTIONS=0;OPENSSL_NO_PINSHARED;OPENSSL_THREADS;BUILDING_NODE_EXTENSION;%(PreprocessorDefinitions);%(PreprocessorDefinitions)</PreprocessorDefinitions>
132
132
  </ResourceCompile>
133
133
  </ItemDefinitionGroup>
134
134
  <ItemGroup>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-oom-heapdump",
3
- "version": "3.2.1",
3
+ "version": "3.2.3",
4
4
  "description": "Create a V8 heap snapshot when an \"Out of Memory\" error occurs, or create a heap snapshot or CPU profile on request.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -19,7 +19,7 @@
19
19
  "host": "https://github.com/blueconic/node-oom-heapdump/releases/download/{version}"
20
20
  },
21
21
  "engines": {
22
- "node": ">=7.0.0"
22
+ "node": ">=10.0.0"
23
23
  },
24
24
  "keywords": [
25
25
  "nodejs",
@@ -43,8 +43,8 @@
43
43
  "@mapbox/node-pre-gyp": "^1.0.11",
44
44
  "bindings": "^1.5.0",
45
45
  "chrome-remote-interface": "^0.33.0",
46
- "nan": "^2.18.0",
46
+ "nan": "^2.19.0",
47
47
  "require-main-filename": "^2.0.0",
48
- "ws": "^8.14.2"
48
+ "ws": "^8.16.0"
49
49
  }
50
50
  }