Skip to content

Commit 59a8037

Browse files
authored
feat: upgrade to node 18 (#642)
1 parent 527686a commit 59a8037

File tree

11 files changed

+3412
-3328
lines changed

11 files changed

+3412
-3328
lines changed

.alexrc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
"rejects",
66
"period",
77
"fire",
8-
"attacks"
8+
"attacks",
9+
"special",
10+
"straightforward"
911
]
1012
}

.github/workflows/ci.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ jobs:
2424
runs-on: ubuntu-latest
2525
timeout-minutes: 3
2626

27-
# We use node 14.X
27+
# We use node 18.X
2828
strategy:
2929
matrix:
30-
node-version: [14.x]
30+
node-version: [18.x]
3131

3232
# The following steps are performed for each lint job
3333
steps:
@@ -56,10 +56,10 @@ jobs:
5656
runs-on: ubuntu-latest
5757
timeout-minutes: 3
5858

59-
# We use node 14.X
59+
# We use node 18.X
6060
strategy:
6161
matrix:
62-
node-version: [14.x]
62+
node-version: [18.x]
6363

6464
# The following steps are performed for each lint job
6565
steps:
@@ -95,10 +95,10 @@ jobs:
9595
# Only run for the main branch
9696
if: github.ref == 'refs/heads/main'
9797

98-
# We use node 14.X
98+
# We use node 18.X
9999
strategy:
100100
matrix:
101-
node-version: [14.x]
101+
node-version: [18.x]
102102

103103
# Requires the lint and test jobs to pass first
104104
needs:
@@ -162,10 +162,10 @@ jobs:
162162
# Only run for the staging branch
163163
if: github.ref == 'refs/heads/staging'
164164

165-
# We use node 14.X
165+
# We use node 18.X
166166
strategy:
167167
matrix:
168-
node-version: [14.x]
168+
node-version: [18.x]
169169

170170
# Requires the lint and test jobs to pass first
171171
needs:
@@ -214,7 +214,7 @@ jobs:
214214
SLACK_AVATAR: "https://avatars3.githubusercontent.com/u/8659759?s=200&v=4"
215215
with:
216216
args: "Error running `deploy-staging` job in OpenAPI CI"
217-
217+
218218
# The deploy task actually deploys any changes to the en-staging branch
219219
push-to-en-abtest:
220220
# We run this on the latest ubuntu
@@ -223,10 +223,10 @@ jobs:
223223
# Only run for the staging branch
224224
if: github.ref == 'refs/heads/abtest'
225225

226-
# We use node 14.X
226+
# We use node 18.X
227227
strategy:
228228
matrix:
229-
node-version: [14.x]
229+
node-version: [18.x]
230230

231231
# Requires the lint and test jobs to pass first
232232
needs:

.github/workflows/notify.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
strategy:
1919
matrix:
20-
node-version: [14.x]
20+
node-version: [18.x]
2121

2222
steps:
2323
- name: "Trigger Netlify deployment"

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Using the latest Node 14
1+
# Using the latest Node 18
22
# FROM ubuntu:20.04
3-
FROM node:14
3+
FROM node:18
44

55
# Set a working directory to use
66
WORKDIR /code

content/guides/api-calls/permissions-and-errors/common-errors.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ for solution to common errors encountered when working with the Box APIs.
107107
| | |
108108
| **Error** | `item_name_invalid` |
109109
| **Message**| Item name invalid |
110+
<!-- markdownlint-disable no-space-in-code -->
110111
| **Solution** | Verify that the file's name is valid. Box only supports file or folder names that are 255 characters or less. File names containing non-printable characters, names containing the characters `/`, `\`, `<`, `>`, `:`, `|`, `?`, `*`, `—` , names with leading or trailing spaces, and the special names “.” and “..” are also unsupported. |
111112
| | |
112113
| **Error** | `item_name_too_long` |

content/guides/getting-started/publish-app.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ submit your app for approval. Box will review your application
4343
and publish it in the Integrations.
4444

4545
In case of any questions or issues, contact the Partners team:
46-
46+
4747

48-
[integrations]: https://cloud.app.box.com/integrations
48+
[integrations]: https://cloud.app.box.com/integrations
49+
[email]: mailto:[email protected]

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This project has a few prerequisites.
1818
installed with `Homebrew` using `brew install docker-compose`.
1919
* When not using Docker
2020
* [`Node.js`](https://nodejs.org/) for compilation and linting of the API
21-
specification. Ideally Node 12 or above.
21+
specification. Ideally Node 18 or above.
2222
* [`Yarn`](https://yarnpkg.com/) is the Node package manager for this project.
2323
It can be installed with `npm i -g yarn` if Node is installed.
2424
* [`YamlLint`](https://github.com/adrienverge/yamllint) is the linter to validate
@@ -45,7 +45,7 @@ docker-compose up --build
4545

4646
## Run with Node
4747

48-
To run with Node directly, make sure you have Node 14 or higher installed.
48+
To run with Node directly, make sure you have Node 18 or higher installed.
4949

5050
```sh
5151
yarn install

markdownlintrc.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,8 @@
1515
},
1616
"ul-indent": false,
1717
"link-image-reference-definitions": false,
18-
"reference-links-images": false
18+
"reference-links-images": false,
19+
"no-duplicate-heading": false,
20+
"table-pipe-style": false,
21+
"table-column-count": false
1922
}

package.json

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,21 +54,22 @@
5454
"new:page:empty": "node -e 'require(\"./src/scripts/from-template\").run(\"template-empty.md\", \"pages\")'"
5555
},
5656
"dependencies": {
57-
"@apidevtools/json-schema-ref-parser": "^9.0.1",
58-
"alex": "^9.0.1",
59-
"axios": "^0.21.2",
60-
"comment-json": "^4.0.4",
61-
"concurrently": "^5.3.0",
62-
"dot-prop": "^6.0.0",
63-
"fs-extra": "^9.0.0",
64-
"glob": "^7.1.6",
65-
"jest": "^26.6.3",
66-
"js-yaml": "^3.13.1",
57+
"@apidevtools/json-schema-ref-parser": "^11.7.2",
58+
"alex": "^11.0.1",
59+
"axios": "^1.7.8",
60+
"comment-json": "^4.2.5",
61+
"concurrently": "^9.1.0",
62+
"dot-prop": "^9.0.0",
63+
"esm": "^3.2.25",
64+
"fs-extra": "^11.2.0",
65+
"glob": "8.1.0",
66+
"jest": "^29.7.0",
67+
"js-yaml": "^4.1.0",
6768
"jsonpath": "^1.0.2",
6869
"markdown-spellcheck": "^1.3.1",
69-
"markdownlint-cli": "^0.32.0",
70+
"markdownlint-cli": "^0.41.0",
7071
"sha1-from-file": "^2.0.1",
71-
"sharp": "^0.26.2",
72+
"sharp": "^0.33.5",
7273
"strip-indent": "^3.0.0",
7374
"watch": "^1.0.2"
7475
}

tests/markdown/processor.test.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ notes: |-
1616
1717
<Foobar id='no1' data-type="type" disabled>
1818
Hello
19-
20-
Extra whitespace around here
21-
19+
20+
Extra whitespace around here
21+
2222
<Message data-disabled='true' warning>
23-
# Title
23+
# Title
2424
2525
This is a paragraph
2626
</Message>
@@ -33,8 +33,8 @@ notes: |-
3333
[1,2,3].map(i => (
3434
i+1
3535
))
36-
37-
# whitespace above and after:
36+
37+
# whitespace above and after:
3838
\`\`\`
3939
</Tab>
4040
</Tabs>
@@ -56,7 +56,7 @@ sibling_id: guides
5656
parent_id: guides
5757
next_page_id: guides
5858
previous_page_id: ''
59-
source_url: 'https://github.com/box/developer.box.com/blob/main/content/guides/foo.md'
59+
source_url: https://github.com/box/developer.box.com/blob/main/content/guides/foo.md
6060
---
6161
<Foobar id='no1' data-type="type" disabled>
6262
@@ -87,7 +87,7 @@ This is a paragraph
8787
i+1
8888
))
8989
90-
# whitespace above and after:
90+
# whitespace above and after:
9191
\`\`\`
9292
9393
</Tab>
@@ -100,7 +100,7 @@ test('should inline tags', () => {
100100
const contents = `
101101
---
102102
---
103-
<Header
103+
<Header
104104
to='/guides'
105105
centered
106106
>
@@ -123,7 +123,7 @@ sibling_id: guides
123123
parent_id: guides
124124
next_page_id: guides
125125
previous_page_id: ''
126-
source_url: 'https://github.com/box/developer.box.com/blob/main/content/guides/foo.md'
126+
source_url: https://github.com/box/developer.box.com/blob/main/content/guides/foo.md
127127
---
128128
<Header to='/guides' centered >
129129

0 commit comments

Comments
 (0)