Skip to content

Commit

Permalink
fix(breaking-change): update for nodes 18 and 20 (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
shazron authored Dec 5, 2023
1 parent 79c1878 commit 87a2e7f
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: [16]
node-version: [18]
os: [ubuntu-latest]

steps:
Expand All @@ -29,6 +29,6 @@ jobs:
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_TITLE: 'Node version'
SLACK_MESSAGE: ${{ matrix.node }}
SLACK_MESSAGE: ${{ matrix.node-version }}
SLACK_COLOR: ${{ job.status == 'success' && 'good' || job.status == 'cancelled' && '#808080' || 'danger' }}

2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [14.x, 16.x]
node-version: [18.x, 20.x]
os: [ubuntu-latest, windows-latest]

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/on-push-publish-to-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- run: npm install
- run: npm test
- uses: JS-DevTools/npm-publish@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
git config user.email github-actions@github.com
- uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- run: |
npm install
npm test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/version-bump-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
git config user.email github-actions@github.com
- uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- run: |
npm install
npm test
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@
"unit-tests": "jest --config test/jest.config.js --runInBand"
},
"engines": {
"node": "^14.16 || ^16.13 || >=18"
"node": ">=18"
}
}
2 changes: 2 additions & 0 deletions src/ProxyFetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ function proxyAgent (resourceUrl, authOptions) {
logger.warn(`proxyAgent - rejectUnauthorized is set to ${rejectUnauthorized}`)
}

proxyOpts.ALPNProtocols = ['http/1.1']

if (resourceUrl.startsWith('https')) {
return new HttpsProxyAgent(proxyOpts)
} else {
Expand Down

0 comments on commit 87a2e7f

Please sign in to comment.