Changes to windows-cpu
will be recorded in this file.
- NEW: Moved
wmic
constant to class propertycpu.wmic
to allow overriding the location ofwmic.exe
and to handle certain issues when testing on non-Windows systems. - FIX: The default
wmic
path now contains a default/
ifprocess.env.SystemRoot
isundefined
. (#14) - Removed
command-join
dependency which was used for escaping shell input infindLoad()
. This has been replaced with a more simple solution which makes this module dependency-free again. - Added
_shellEscape()
method that is a simple way to escape possible malicious input to thefindLoad()
method. - Added tests for
_shellEscape()
. - Misc. cleanup.
- Removed OS limitation from package.json to prevent issues with installation when windows-cpu is used as an optional dependency (#13).
- BREAKING:
checkPlatform()
has been renamed toisSupported()
and is no longer called in the constructor. - BREAKING:
processLoad()
has been renamed tothisLoad()
. - BREAKING: Minimum supported Node version 8.x+
- BREAKING: All methods that originally used callbacks now returns Promises.
- NEW: Now checks if
wmic.exe
exists when checking for support - NEW:
findLoad()
will now return all processes and their load if no argument is provided. - Fix command line injection vulnerability (thanks Daniel Bond)
- Refactor to ES6
- Added dependency
command-join
to assist with escaping malicious input tofindLoad()
. - Added CI for testing new releases.
- Removed OS limitation from package.json to prevent issues with installation when windows-cpu is used as an optional dependency (#13).
- Added
command-join
dependency. - Fix command line injection vulnerability - CWE-94 (thanks Daniel Bond).
totalLoad
crashing when no results returned (@driedger - #6)- Updated README to reflect Windows 8 support
- Performance improvements for functions that call
wmic.exe
(thanks @SkyLined - #3)- Updated
totalLoad
function to callwmic.exe
directly - Updated
cpuInfo
function to callwmic.exe
directly
- Updated
- Updated
totalMemoryUsage
function to improve performance - Misc. clean up
- Added HISTORY.md
- Added
totalMemoryUsage
function (@scriptnull)- Added tests and updated Readme
- Minor cleanup of unused variables
- Initial commit of windows-cpu