Skip to content

Commit f082d51

Browse files
author
Bryce Kalow
authored
website: upgrade dependencies (#11247)
1 parent 1cb2049 commit f082d51

File tree

10 files changed

+22453
-3102
lines changed

10 files changed

+22453
-3102
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ jobs:
494494
destination: /ui-assets
495495
algolia_index:
496496
docker:
497-
- image: docker.mirror.hashicorp.services/node:12
497+
- image: docker.mirror.hashicorp.services/node:14
498498
steps:
499499
- checkout
500500
- run:

website/.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v14

website/Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
FROM docker.mirror.hashicorp.services/node:12.19.0-alpine
1+
FROM docker.mirror.hashicorp.services/node:14-alpine
22
RUN apk add --update --no-cache git make g++ automake autoconf libtool nasm libpng-dev
33

44
COPY ./package.json /website/package.json
55
COPY ./package-lock.json /website/package-lock.json
66
WORKDIR /website
7+
RUN npm install -g npm@latest
78
RUN npm install

website/components/basic-hero/style.css

+1-12
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,16 @@
2121
display: flex;
2222
flex-wrap: wrap;
2323
justify-content: center;
24+
gap: 16px;
2425

2526
/*
2627
* Margins here compensate for extra 8px margin on buttons
2728
* which are needed to center and space properly regardless of whether
2829
* buttons are wrapping to multiple lines or not.
2930
*/
3031
margin-top: calc(32px - 8px);
31-
margin-bottom: -8px;
3232
@media (--large) {
3333
margin-top: calc(40px - 8px);
3434
}
35-
36-
& .g-btn {
37-
/*
38-
* This ensures 16px between buttons at all times, while maintaining proper centering
39-
* when buttons wrap to multiple lines.
40-
* There will be an extra 8px space on all sides of the button group.
41-
* The top and bottom are accounted for by the -8px adjustment on `.action` margins.
42-
* The left and right excess is left as is - it's needed for proper centering when wrapping.
43-
*/
44-
margin: 8px;
45-
}
4635
}
4736
}

website/global.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="@hashicorp/platform-types" />

website/next-env.d.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
/// <reference types="next" />
22
/// <reference types="next/types/global" />
3-
/// <reference types="@hashicorp/platform-types" />
3+
4+
// NOTE: This file should not be edited
5+
// see https://nextjs.org/docs/basic-features/typescript for more information.

website/next.config.js

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
const withHashicorp = require('@hashicorp/platform-nextjs-plugin')
2-
const path = require('path')
32
const redirects = require('./redirects')
43
const rewrites = require('./rewrites')
54

65
module.exports = withHashicorp({
76
defaultLayout: true,
8-
transpileModules: [
9-
'is-absolute-url',
10-
'@hashicorp/react-.*',
11-
'@hashicorp/versioned-docs',
12-
],
13-
mdx: { resolveIncludes: path.join(__dirname, 'pages/partials') },
7+
nextOptimizedImages: true,
148
})({
159
redirects() {
1610
return redirects

website/package-lock.json

+22,408-3,030
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

website/package.json

+35-34
Original file line numberDiff line numberDiff line change
@@ -4,52 +4,53 @@
44
"version": "1.0.0",
55
"author": "HashiCorp",
66
"engines": {
7-
"node": "12.x - 14.x"
7+
"node": "12.x - 14.x",
8+
"npm": ">=7.0.0"
89
},
910
"dependencies": {
10-
"@hashicorp/mktg-global-styles": "4.0.0",
11+
"@hashicorp/mktg-global-styles": "^4.0.0",
1112
"@hashicorp/mktg-logos": "^1.2.0",
12-
"@hashicorp/platform-code-highlighting": "^0.1.1",
13+
"@hashicorp/platform-code-highlighting": "^0.1.2",
1314
"@hashicorp/platform-runtime-error-monitoring": "^0.1.0",
1415
"@hashicorp/platform-util": "^0.1.0",
15-
"@hashicorp/react-alert-banner": "6.2.0",
16-
"@hashicorp/react-button": "^5.2.1",
17-
"@hashicorp/react-call-to-action": "^3.1.2",
18-
"@hashicorp/react-code-block": "^4.1.4",
19-
"@hashicorp/react-consent-manager": "^6.0.0",
20-
"@hashicorp/react-content": "8.0.1",
21-
"@hashicorp/react-docs-page": "14.0.1",
22-
"@hashicorp/react-featured-slider": "^4.1.2",
23-
"@hashicorp/react-hashi-stack-menu": "^2.0.6",
24-
"@hashicorp/react-head": "^3.1.1",
25-
"@hashicorp/react-hero": "7.3.3",
26-
"@hashicorp/react-image": "^4.0.2",
27-
"@hashicorp/react-inline-svg": "^6.0.2",
28-
"@hashicorp/react-learn-callout": "^1.1.2",
29-
"@hashicorp/react-markdown-page": "1.4.2",
30-
"@hashicorp/react-product-downloads-page": "2.4.0",
31-
"@hashicorp/react-section-header": "^5.0.3",
32-
"@hashicorp/react-subnav": "^8.4.0",
33-
"@hashicorp/react-tabs": "^6.0.1",
34-
"@hashicorp/react-text-split": "^3.2.2",
35-
"@hashicorp/react-text-split-with-code": "^3.3.5",
36-
"@hashicorp/react-text-split-with-image": "^4.2.2",
37-
"@hashicorp/react-text-split-with-logo-grid": "^5.1.2",
38-
"@hashicorp/react-use-cases": "^4.0.1",
39-
"@hashicorp/react-vertical-text-block-list": "^6.0.3",
16+
"@hashicorp/react-alert-banner": "^7.0.1",
17+
"@hashicorp/react-button": "^6.0.1",
18+
"@hashicorp/react-call-to-action": "^4.0.0",
19+
"@hashicorp/react-code-block": "^4.1.5",
20+
"@hashicorp/react-consent-manager": "^7.0.1",
21+
"@hashicorp/react-content": "^8.0.2",
22+
"@hashicorp/react-docs-page": "^14.4.0",
23+
"@hashicorp/react-featured-slider": "^5.0.1",
24+
"@hashicorp/react-hashi-stack-menu": "^2.0.7",
25+
"@hashicorp/react-head": "^3.1.2",
26+
"@hashicorp/react-hero": "^8.0.2",
27+
"@hashicorp/react-image": "^4.0.3",
28+
"@hashicorp/react-inline-svg": "^6.0.3",
29+
"@hashicorp/react-learn-callout": "^2.0.1",
30+
"@hashicorp/react-markdown-page": "^1.4.3",
31+
"@hashicorp/react-product-downloads-page": "^2.5.2",
32+
"@hashicorp/react-section-header": "^5.0.4",
33+
"@hashicorp/react-subnav": "^9.0.1",
34+
"@hashicorp/react-tabs": "^7.0.1",
35+
"@hashicorp/react-text-split": "^4.0.0",
36+
"@hashicorp/react-text-split-with-code": "^3.3.8",
37+
"@hashicorp/react-text-split-with-image": "^4.2.5",
38+
"@hashicorp/react-text-split-with-logo-grid": "^5.1.5",
39+
"@hashicorp/react-use-cases": "^5.0.0",
40+
"@hashicorp/react-vertical-text-block-list": "^7.0.0",
4041
"marked": "0.7.0",
41-
"next": "10.1.3",
42+
"next": "^11.1.2",
4243
"next-mdx-remote": "3.0.1",
4344
"next-remote-watch": "^1.0.0",
4445
"nuka-carousel": "4.7.7",
45-
"react": "16.14.0",
46+
"react": "^17.0.2",
4647
"react-device-detect": "1.17.0",
47-
"react-dom": "16.14.0"
48+
"react-dom": "^17.0.2"
4849
},
4950
"devDependencies": {
50-
"@hashicorp/platform-cli": "^0.2.0",
51-
"@hashicorp/platform-nextjs-plugin": "^0.1.0",
52-
"@hashicorp/platform-types": "^0.1.0",
51+
"@hashicorp/platform-cli": "^1.2.0",
52+
"@hashicorp/platform-nextjs-plugin": "^1.0.1",
53+
"@hashicorp/platform-types": "^0.1.1",
5354
"@types/react": "^17.0.3",
5455
"dart-linkcheck": "2.0.15",
5556
"husky": "^6.0.0",

website/pages/style.css

-16
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,6 @@
55
--highlight-color: var(--nomad);
66
}
77

8-
/* Global Transpiled Components */
9-
@import '~@hashicorp/react-alert-banner/style.css';
10-
@import '~@hashicorp/react-button/styles/index.css';
11-
@import '~@hashicorp/react-call-to-action/style.css';
12-
@import '~@hashicorp/react-consent-manager/style.css';
13-
@import '~@hashicorp/react-toggle/style.css';
14-
@import '~@hashicorp/react-featured-slider/style.css';
15-
@import '~@hashicorp/react-hero/style.css';
16-
@import '~@hashicorp/react-learn-callout/style.css';
17-
@import '~@hashicorp/react-search/style.css';
18-
@import '~@hashicorp/react-subnav/style.css';
19-
@import '~@hashicorp/react-tabs/style.css';
20-
@import '~@hashicorp/react-text-split/style.css';
21-
@import '~@hashicorp/react-use-cases/style.css';
22-
@import '~@hashicorp/react-vertical-text-block-list/style.css';
23-
248
/* Local Components */
259
@import '../components/placement-table/style.css';
2610
@import '../components/case-study-carousel/style.css';

0 commit comments

Comments
 (0)