Skip to content

Commit

Permalink
feat(nodejs): Support Node v18
Browse files Browse the repository at this point in the history
  • Loading branch information
fbaldo31 authored and gdubcs committed Mar 15, 2024
1 parent ba79b29 commit dc5a6e6
Show file tree
Hide file tree
Showing 15 changed files with 19 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
if: ${{ contains(github.event.pull_request.labels.*.name, 'area/documentation') }}
strategy:
matrix:
node-version: [16.x]
node-version: [18.x]
steps:
- name: Checkout Release from lens
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cron-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-20.04, macos-11, windows-2019]
node-version: [16.x]
node-version: [18.x]
steps:
- name: Checkout Release from lens
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/daily-alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "16.x"
node-version: "18.x"
registry-url: "https://npm.pkg.github.com"

- name: Install specific npm version
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/electronegativity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: "16"
node-version: "18"

- uses: doyensec/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
node-version: [18.x]
steps:
- name: Checkout Release from lens
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mkdocs-manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
node-version: [18.x]
steps:
- name: Set up Python 3.7
uses: actions/setup-python@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
node-version: [18.x]
steps:
- name: Set up Python 3
uses: actions/setup-python@v2
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
node-version: [18.x]
needs: verify-docs
steps:
- name: Set up Python 3.7
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-release-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
node-version: [18.x]
steps:
- name: Checkout Release
uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-20.04, macos-11, windows-2019]
node-version: [16.x]
node-version: [18.x]
steps:
- name: Checkout Release from lens
uses: actions/checkout@v3
Expand Down Expand Up @@ -90,7 +90,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-20.04]
node-version: [16.x]
node-version: [18.x]
steps:
- name: Checkout Release from lens
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Lens Desktop is a standalone application for MacOS, Windows and Linux operating

### Prequisites

* Nodejs v16
* Nodejs v16 || v18

### Install

Expand Down
2 changes: 1 addition & 1 deletion open-lens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"welcomeRoute": "/welcome"
},
"engines": {
"node": ">=16 <17"
"node": ">=16 <19"
},
"jest": {
"collectCoverage": false,
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"welcomeRoute": "/welcome"
},
"engines": {
"node": ">=16 <17"
"node": ">=16 <19"
},
"jest": {
"collectCoverage": false,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/main/__test__/prometheus-handler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ describe("PrometheusHandler", () => {
[2, 2],
[2, 3],
])("should pick the first provider of %d success(es) between %d failure(s)", async (successes, failures) => {
const beforeSuccesses = Math.floor(successes / 2);
const beforeSuccesses = Math.floor(successes / 4);

runInAction(() => {
for (let i = 0; i < beforeSuccesses; i += 1) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,11 @@ class NonInjectedClusterIssues extends React.Component<ClusterIssuesProps & Depe
}

const { getId, getName, message, kind, selfLink, renderAge } = warning;
const id = getId();

return (
<TableRow
key={getId()}
key={id}
sortItem={warning}
selected={selfLink === kubeSelectedUrlParam.get()}
onClick={prevDefault(() => toggleDetails(selfLink))}
Expand Down

0 comments on commit dc5a6e6

Please sign in to comment.