Skip to content

5.5.2

Latest

Choose a tag to compare

@freekmurze freekmurze released this 30 Nov 12:09
1a08cdb

What's fixed

On Windows, setNodeEnv() now passes custom environment variables to the Node process, and setNodeModulePath() sets its NODE_PATH.

Custom environment variables take precedence over Browsershot's defaults, including NODE_PATH. Windows variable names are matched case-insensitively, so PATH overrides Path. Other inherited process environment variables remain available. Linux and macOS behavior is unchanged.

Added Windows and macOS CI coverage for environment propagation, inherited variables, custom values containing spaces and quotes, and NODE_PATH precedence. The full Linux PHP 8.2–8.6 test matrix also passed before merge.

Thanks to @manch1915 for the fix and regression tests in #994.

Full changelog: 5.5.1...5.5.2