From 3ab81b6a3c10a21251541eec192b6ad7760eaaae Mon Sep 17 00:00:00 2001 From: Gustavo Meyer Date: Fri, 23 Jan 2026 20:58:54 -0500 Subject: [PATCH 1/6] LI-116181 bump up form-data to v3.0.4, babel-eslint to v10 and mocha to v10 --- .github/workflows/ci.yml | 12 ++++++------ package.json | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ac248f0..cab490b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,12 +16,12 @@ jobs: strategy: fail-fast: false matrix: - node-version: [8.x ,14.x ,16.x] + node-version: [14.x ,16.x] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: 'npm' @@ -36,12 +36,12 @@ jobs: strategy: fail-fast: false matrix: - node-version: [ 8.x ] + node-version: [ 14.x ] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: 'npm' diff --git a/package.json b/package.json index 25a08ab..7625075 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "A library to manage users, transfer methods and payments through the Hyperwallet API", "main": "lib/index.js", "dependencies": { - "form-data": "^3.0.0", + "form-data": "^3.0.4", "node-jose": "^2.2.0", "object-assign": "^4.1.0", "superagent": "^4.0.0", @@ -43,7 +43,7 @@ }, "homepage": "http://hyperwallet.github.io/node-sdk", "devDependencies": { - "babel-eslint": "^8.2.6", + "babel-eslint": "^10.1.0", "babel-preset-es2015": "^6.9.0", "babel-preset-stage-0": "^6.5.0", "babel-register": "^6.9.0", @@ -56,7 +56,7 @@ "eslint-config-airbnb-base": "^13.2.0", "eslint-plugin-import": "^2.17.2", "gh-pages": "^6.1.1", - "mocha": "^5.2.0", + "mocha": "^10.4.0", "nock": "^10.0.4", "nyc": "^15.0.0", "publish-please": "^5.4.3", From d0b4427298c59ffb30e6b2516b81588b08020521 Mon Sep 17 00:00:00 2001 From: Gustavo Meyer Date: Fri, 23 Jan 2026 21:06:49 -0500 Subject: [PATCH 2/6] LI-116181 fix JavaScript heap out of memory --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cab490b..5936a1a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,6 +12,8 @@ on: jobs: test: runs-on: ubuntu-latest + env: + NODE_OPTIONS: --max-old-space-size=8192 strategy: fail-fast: false @@ -32,6 +34,8 @@ jobs: code-coverage: runs-on: ubuntu-latest + env: + NODE_OPTIONS: --max-old-space-size=8192 strategy: fail-fast: false From 5c488cac34c15030ba4471152a20c6dd6217f8f0 Mon Sep 17 00:00:00 2001 From: Gustavo Meyer Date: Fri, 23 Jan 2026 21:09:36 -0500 Subject: [PATCH 3/6] LI-116181 Limit mocha with 2 parallel jobs --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7625075..63ab006 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "docs": "esdoc -c ./.esdoc.json", "deploy-docs": "npm run docs && gh-pages -d docs", "test": "npm run lint && npm run test-unit", - "test-unit": "nyc --reporter lcov mocha --require babel-core/register test/**/*.js test/*.js", + "test-unit": "nyc --reporter lcov mocha --parallel --jobs 2 --require babel-core/register test/**/*.js test/*.js", "test-coverage": "nyc npm run test", "coveralls": "npm run test-coverage && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js", "prepublish-prod": "npm test && npm run prod", From 601445badab72e1acc6816b4469d577421bd985a Mon Sep 17 00:00:00 2001 From: Gustavo Meyer Date: Fri, 23 Jan 2026 21:10:37 -0500 Subject: [PATCH 4/6] LI-116181 fix JavaScript heap out of memory --- .github/workflows/ci.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5936a1a..360b44b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,9 +28,12 @@ jobs: node-version: ${{ matrix.node-version }} cache: 'npm' - - run: npm install - - run: npm run build --if-present - - run: npm run test + - run: | + npm install + npm run build --if-present + npm run ci + env: + NODE_OPTIONS: --max-old-space-size=8192 code-coverage: runs-on: ubuntu-latest From f61aa8e1a5fd5c8f8e7586acb9c67f7606bbe7da Mon Sep 17 00:00:00 2001 From: Gustavo Meyer Date: Fri, 23 Jan 2026 21:11:44 -0500 Subject: [PATCH 5/6] LI-116181 fix typo --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 360b44b..04feda3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,7 +31,7 @@ jobs: - run: | npm install npm run build --if-present - npm run ci + npm run test env: NODE_OPTIONS: --max-old-space-size=8192 From 9b64b9eecef8350ba10042f9fe2a6afdaacdfdf9 Mon Sep 17 00:00:00 2001 From: Gustavo Meyer Date: Fri, 23 Jan 2026 21:16:28 -0500 Subject: [PATCH 6/6] LI-116181 fix JavaScript heap out of memory --- .github/workflows/ci.yml | 17 ++++++++++------- package.json | 6 ++++-- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 04feda3..4ab7ae0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,6 @@ jobs: runs-on: ubuntu-latest env: NODE_OPTIONS: --max-old-space-size=8192 - strategy: fail-fast: false matrix: @@ -28,12 +27,13 @@ jobs: node-version: ${{ matrix.node-version }} cache: 'npm' + - run: | npm install npm run build --if-present - npm run test + npm run ci env: - NODE_OPTIONS: --max-old-space-size=8192 + NODE_OPTIONS: --max-old-space-size=8192 code-coverage: runs-on: ubuntu-latest @@ -53,11 +53,14 @@ jobs: node-version: ${{ matrix.node-version }} cache: 'npm' - - run: npm install - - run: npm run build --if-present - - run: npm run test-coverage + - run: | + npm install + npm run build --if-present + npm run test-coverage + env: + NODE_OPTIONS: --max-old-space-size=8192 - name: Coveralls uses: coverallsapp/github-action@master with: - github-token: ${{ secrets.GITHUB_TOKEN }} + github-token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/package.json b/package.json index 63ab006..f218d9b 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,9 @@ "docs": "esdoc -c ./.esdoc.json", "deploy-docs": "npm run docs && gh-pages -d docs", "test": "npm run lint && npm run test-unit", - "test-unit": "nyc --reporter lcov mocha --parallel --jobs 2 --require babel-core/register test/**/*.js test/*.js", + "ci": "npm run lint && npm run test-unit-ci", + "test-unit-ci": "mocha --parallel --jobs 1 --bail --require babel-core/register test/**/*.js test/*.js", + "test-unit": "nyc --reporter lcov mocha --parallel --jobs 1 --require babel-core/register test/**/*.js test/*.js", "test-coverage": "nyc npm run test", "coveralls": "npm run test-coverage && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js", "prepublish-prod": "npm test && npm run prod", @@ -67,4 +69,4 @@ "node": ">=0.12", "iojs": ">=1.0" } -} +} \ No newline at end of file