Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,6 @@ Since v3.1.0, the sub-command `tag` identifies the version inside the commit mes

The above command reads from the latest three commits (by default, change with the `-n` flag.)

## Important note for Node.js 18
## Node.js

When running the CLI commands on Node.js 18, you may need to add the `--no-experimental-fetch` flag to the `NODE_OPTIONS` environment variable. This flag is required to disable the experimental fetch feature introduced in Node.js 18.

To execute the CLI commands with the `--no-experimental-fetch` flag, use the following syntax:

```shell
% NODE_OPTIONS=--no-experimental-fetch npx @eqworks/release <command>
Current Node.js releases can run the CLI directly. Commit classification loads a local WebAssembly model from disk, so `NODE_OPTIONS=--no-experimental-fetch` is not required. That flag is invalid on Node.js 22 and later.
8 changes: 8 additions & 0 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ const { execSync } = require('child_process')

const { Octokit } = require('@octokit/core')
const chalk = require('chalk')

/* global WebAssembly */
// fasttext.js streams its wasm with fetch() when WebAssembly.instantiateStreaming
// exists. Node 22+ fetch rejects a filesystem path and aborts the process.
// Dropping streaming makes Emscripten read the wasm file from disk.
if (typeof WebAssembly !== 'undefined' && typeof WebAssembly.instantiateStreaming === 'function') {
delete WebAssembly.instantiateStreaming
}
const FastText = require('fasttext.js')

const { GITHUB_TOKEN } = process.env
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eqworks/release",
"version": "3.5.3",
"version": "3.5.4",
"main": "index.js",
"license": "MIT",
"source": "index.js",
Expand Down
Loading