All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Move tests to seperate directory bd3fabb
- Uninstall
patch-package
package 5b6cc97
- Verify SHA256 checksum 1b22c2a
- Coerce version prerelease type to string 992aa86
- Detect build flavor during run mode. b4dbb64
- Get file path to NW.js directory. 5b37b6d
- Spawned process inherits stdout and is not detached. df9fdc3
- Correctly parse the prerelease object. 9802fb8
- Upgrade Axios b63ceaa
- Simplify prelease detection logic f35e2f5
- Close zip file after reading all entries 5c481a7
- Allow passing unknown options to
nw
viacommander
acting as parser. 466494a
findpath
looks for actual path and not symlink. On Windows, if user does not have Administrator privileges, symlink is not created, thenfindpath
fails to find the file path.findpath
is async with return typePromise<string>
and has a secondary options argument. This is useful when you have multiple binaries. Here's an example of how to get the file path to ChromeDriver. 75a9fc0
const nwPath = await findpath('chromedriver', { flavor: 'sdk' });
- Correct default path to NW.js binary
- Fix module import.
- Fix undefined
version
in parsing logic.
- Allow user to run specific binaries by specifing version, flavor, platform, arch and cacheDir options via CLI.
- Fix run mode and remove workaround for disappearing Node manifest.
- mac_plist and mac_icon CLI options.
- Publish
sdk
version first.
- Re-add support for
file://
which had been accidently removed in the previous release. - Expose
get
function as public API
import { get } from 'nw';
await get({
// options
});
-
Option to specify cache directory by setting
nwjs_cache_dir
in.npmrc
orNWJS_CACHE_DIR
as ENV variable. Defaults to./node_modules/nw
. -
Option to customise caching behaviour by enabling/disabling
nwjs_cache
in.npmrc
orNWJS_CACHE
as ENV variable. Defaults tofalse
. -
Option to download community ffmpeg by enabling/disabling
nwjs_ffmpeg
in.npmrc
orNWJS_FFMPEG
as ENV variable. Defaults tofalse
. -
Option to download NW.js Node headers by enabling/disabling
nwjs_native_addon
in.npmrc
orNWJS_NATIVE_ADDON
as ENV variable. Defaults tofalse
.
Switch from CJS to ESM.
ESM import:
import { findpath } from 'nw';
Previous CJS import:
const { findpath } = require('nw');
Current CJS import:
let nw;
import('nw').then(object => {
nw = object;
});
- CJS support.
compressing
package.cli-progress
package.
- Handle error when trying to create symlink on Windows as non-Administrator aca09ab
- Symlink
nwjs
directory tonwjs-VERSION-PLATFORM-ARCH
directory adc6d88
- Append
-sdk
to version for SDK releases. 08785c3
- Correctly decompress files post download. #122
- Detect ChromeDriver path #115
- Update
merge
dependency #95