Skip to content

Latest commit

 

History

History
234 lines (128 loc) · 5.99 KB

CHANGELOG.md

File metadata and controls

234 lines (128 loc) · 5.99 KB

Changelog

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.

Unreleased

[0.91.0]

Changed

  • Move tests to seperate directory bd3fabb

Removed

  • Uninstall patch-package package 5b6cc97

[0.90.0-1]

Added

[0.88.0-5]

Changed

  • Coerce version prerelease type to string 992aa86

[0.88.0-4]

Changed

  • Detect build flavor during run mode. b4dbb64

[0.88.0-3]

Added

  • Get file path to NW.js directory. 5b37b6d

[0.88.0-2]

Changed

  • Spawned process inherits stdout and is not detached. df9fdc3

[0.88.0-1]

Changed

  • Correctly parse the prerelease object. 9802fb8

[0.88.0]

Changed

[0.87.0-4]

Added

[0.87.0-3]

Changed

  • Simplify prelease detection logic f35e2f5

[0.87.0-2]

Changed

  • Close zip file after reading all entries 5c481a7

[0.87.0-1]

Changed

  • Set default cache using __dirname 601911f

  • Pass CLI args to NW.js process. e5d6fb1

[0.87.0]

Changed

  • Allow passing unknown options to nw via commander acting as parser. 466494a

[0.86.0-3]

Changed

  • findpath looks for actual path and not symlink. On Windows, if user does not have Administrator privileges, symlink is not created, then findpath fails to find the file path. findpath is async with return type Promise<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' });

[0.86.0-2]

Changed

  • Correct default path to NW.js binary

[0.86.0-1]

Changed

  • Fix module import.

[0.86.0]

Changed

  • Fix undefined version in parsing logic.

[0.85.0-4]

Added

  • Allow user to run specific binaries by specifing version, flavor, platform, arch and cacheDir options via CLI.

Changed

  • Fix run mode and remove workaround for disappearing Node manifest.

Removed

  • mac_plist and mac_icon CLI options.

[0.85.0-3]

Changed

  • Publish sdk version first.

[0.85.0-2]

Added

  • 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
});

[0.85.0-1]

Added

  • Option to specify cache directory by setting nwjs_cache_dir in .npmrc or NWJS_CACHE_DIR as ENV variable. Defaults to ./node_modules/nw.

  • Option to customise caching behaviour by enabling/disabling nwjs_cache in .npmrc or NWJS_CACHE as ENV variable. Defaults to false.

  • Option to download community ffmpeg by enabling/disabling nwjs_ffmpeg in .npmrc or NWJS_FFMPEG as ENV variable. Defaults to false.

  • Option to download NW.js Node headers by enabling/disabling nwjs_native_addon in .npmrc or NWJS_NATIVE_ADDON as ENV variable. Defaults to false.

Changed

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;
    });

Removed

  • CJS support.
  • compressing package.
  • cli-progress package.

[0.85.0]

Changed

  • Handle error when trying to create symlink on Windows as non-Administrator aca09ab
  • Symlink nwjs directory to nwjs-VERSION-PLATFORM-ARCH directory adc6d88

[0.81.0-3]

Changed

  • Append -sdk to version for SDK releases. 08785c3

[0.81.0-2]

Changed

  • Correctly decompress files post download. #122

[0.81.0-1]

Added

  • Detect ChromeDriver path #115

Changed

  • Refactor install script #115
  • Do not pin Node version in package.json. #106

0.79.0

Changed

  • Update merge dependency #95