Skip to content

Commit 09cc405

Browse files
authored
Merge branch 'main' into feat/stream-guide
2 parents 55ff431 + ccfd4b3 commit 09cc405

File tree

143 files changed

+9799
-5793
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

143 files changed

+9799
-5793
lines changed

.github/dependabot.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ updates:
2323
patterns:
2424
- '@typescript-eslint/*'
2525
- 'eslint'
26+
- 'typescript-eslint'
2627
- 'eslint-*'
2728
- 'stylelint'
2829
- 'stylelint-*'
@@ -43,10 +44,9 @@ updates:
4344
next-js:
4445
patterns:
4546
- 'next'
46-
- 'turbo'
47-
- 'next-mdx-remote'
48-
- 'next-sitemap'
49-
- 'next-themes'
47+
- 'eslint-config-next'
48+
- '@next/eslint-plugin-next'
49+
- 'next-*'
5050
- '@vercel/*'
5151
mdx:
5252
patterns:
@@ -63,8 +63,12 @@ updates:
6363
tailwind:
6464
patterns:
6565
- '@savvywombat/tailwindcss-grid-areas'
66+
- '@tailwindcss/container-queries'
6667
- 'prettier-plugin-tailwindcss'
6768
- 'tailwindcss'
69+
orama:
70+
patterns:
71+
- '@orama/*'
6872
ignore:
6973
# Manually update major versions of @types/node with the version specified within .nvmrc
7074
- dependency-name: '@types/node'

.github/workflows/build.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646

4747
steps:
4848
- name: Harden Runner
49-
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
49+
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
5050
with:
5151
egress-policy: audit
5252

@@ -65,7 +65,7 @@ jobs:
6565
run: echo C:\Program Files\Git\usr\bin>>"%GITHUB_PATH%"
6666

6767
- name: Git Checkout
68-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
68+
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
6969
with:
7070
# Provides the Pull Request commit SHA or the GitHub merge group ref
7171
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.ref }}
@@ -76,7 +76,7 @@ jobs:
7676
# regardless of having code changes or not
7777
fetch-depth: 1
7878

79-
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
79+
- uses: actions/cache@2cdf405574d6ef1f33a1d12acccd3ae82f47b3f2 # v4.1.0
8080
with:
8181
# See here for caching with `yarn` https://github.com/actions/cache/blob/main/examples.md#node---yarn or you can leverage caching with actions/setup-node https://github.com/actions/setup-node
8282
path: |
@@ -89,7 +89,7 @@ jobs:
8989
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
9090
9191
- name: Set up Node.js
92-
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
92+
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
9393
with:
9494
# We want to ensure that the Node.js version running here respects our supported versions
9595
node-version-file: '.nvmrc'

.github/workflows/codeql.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,16 @@ jobs:
4141

4242
steps:
4343
- name: Harden Runner
44-
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
44+
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
4545
with:
4646
egress-policy: audit
4747

4848
- name: Checkout repository
49-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
49+
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
5050

5151
# Initializes the CodeQL tools for scanning.
5252
- name: Initialize CodeQL
53-
uses: github/codeql-action/init@4dd16135b69a43b6c8efb853346f8437d92d3c93 # v3.26.6
53+
uses: github/codeql-action/init@c36620d31ac7c881962c3d9dd939c40ec9434f2b # v3.26.12
5454
with:
5555
languages: ${{ matrix.language }}
5656
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -60,7 +60,7 @@ jobs:
6060
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
6161
# If this step fails, then you should remove it and run the build manually (see below)
6262
- name: Autobuild
63-
uses: github/codeql-action/autobuild@4dd16135b69a43b6c8efb853346f8437d92d3c93 # v3.26.6
63+
uses: github/codeql-action/autobuild@c36620d31ac7c881962c3d9dd939c40ec9434f2b # v3.26.12
6464

6565
# ℹ️ Command-line programs to run using the OS shell.
6666
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -73,6 +73,6 @@ jobs:
7373
# ./location_of_script_within_repo/buildscript.sh
7474

7575
- name: Perform CodeQL Analysis
76-
uses: github/codeql-action/analyze@4dd16135b69a43b6c8efb853346f8437d92d3c93 # v3.26.6
76+
uses: github/codeql-action/analyze@c36620d31ac7c881962c3d9dd939c40ec9434f2b # v3.26.12
7777
with:
7878
category: '/language:${{matrix.language}}'

.github/workflows/dependency-review.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on:
1313
branches:
1414
- main
1515

16+
# Cancel any runs on the same branch
17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.ref }}
19+
cancel-in-progress: true
20+
1621
permissions:
1722
contents: read
1823

@@ -21,12 +26,12 @@ jobs:
2126
runs-on: ubuntu-latest
2227
steps:
2328
- name: Harden Runner
24-
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
29+
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
2530
with:
2631
egress-policy: audit
2732

2833
- name: Git Checkout
29-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
34+
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
3035

3136
- name: Review Dependencies
3237
uses: actions/dependency-review-action@5a2ce3f5b92ee19cbb1541a4984c76d921601d7c # v4.3.4

.github/workflows/lighthouse.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ jobs:
3838

3939
steps:
4040
- name: Harden Runner
41-
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
41+
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
4242
with:
4343
egress-policy: audit
4444

4545
- name: Git Checkout
46-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
46+
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
4747
with:
4848
# Provides the Pull Request commit SHA or the GitHub merge group ref
4949
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.ref }}

.github/workflows/lint-and-tests.yml

+11-11
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737

3838
steps:
3939
- name: Harden Runner
40-
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
40+
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
4141
with:
4242
egress-policy: audit
4343

@@ -65,18 +65,18 @@ jobs:
6565

6666
steps:
6767
- name: Harden Runner
68-
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
68+
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
6969
with:
7070
egress-policy: audit
7171

7272
- name: Git Checkout
73-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
73+
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
7474
with:
7575
# Provides the Pull Request commit SHA or the GitHub merge group ref
7676
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.ref }}
7777

7878
- name: Restore Lint Cache
79-
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
79+
uses: actions/cache/restore@2cdf405574d6ef1f33a1d12acccd3ae82f47b3f2 # v4.1.0
8080
with:
8181
path: |
8282
.turbo/cache
@@ -95,7 +95,7 @@ jobs:
9595
cache-lint-
9696
9797
- name: Set up Node.js
98-
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
98+
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
9999
with:
100100
# We want to ensure that the Node.js version running here respects our supported versions
101101
node-version-file: '.nvmrc'
@@ -129,7 +129,7 @@ jobs:
129129
(github.event_name == 'pull_request_target' &&
130130
startsWith(github.event.pull_request.head.ref, 'dependabot/') == false &&
131131
github.event.pull_request.head.ref != 'chore/crowdin')
132-
uses: actions/cache/save@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
132+
uses: actions/cache/save@2cdf405574d6ef1f33a1d12acccd3ae82f47b3f2 # v4.1.0
133133
with:
134134
path: |
135135
.turbo/cache
@@ -159,12 +159,12 @@ jobs:
159159

160160
steps:
161161
- name: Harden Runner
162-
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
162+
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
163163
with:
164164
egress-policy: audit
165165

166166
- name: Git Checkout
167-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
167+
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
168168
with:
169169
# Provides the Pull Request commit SHA or the GitHub merge group ref
170170
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.ref }}
@@ -173,7 +173,7 @@ jobs:
173173
fetch-depth: 0
174174

175175
- name: Set up Node.js
176-
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
176+
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
177177
with:
178178
# We want to ensure that the Node.js version running here respects our supported versions
179179
node-version-file: '.nvmrc'
@@ -202,7 +202,7 @@ jobs:
202202
startsWith(github.event.pull_request.head.ref, 'dependabot/') == false &&
203203
github.event.pull_request.head.ref != 'chore/crowdin')
204204
# sha reference has no stable git tag reference or URL. see https://github.com/chromaui/chromatic-cli/issues/797
205-
uses: chromaui/action@b984808b772126a9f44b2b7737b131b68a2ede32
205+
uses: chromaui/action@30b6228aa809059d46219e0f556752e8672a7e26
206206
with:
207207
workingDir: apps/site
208208
buildScriptName: storybook:build
@@ -217,7 +217,7 @@ jobs:
217217
if: steps.chromatic-deploy.outcome == 'success'
218218
# This comments the current Jest Coverage Report containing JUnit XML reports
219219
# and a Code Coverage Summary
220-
uses: MishaKav/jest-coverage-comment@434e6d2d37116d23d812809b61d499639842fa3b # v1.0.26
220+
uses: MishaKav/jest-coverage-comment@d74238813c33e6ea20530ff91b5ea37953d11c91 # v1.0.27
221221
with:
222222
title: 'Unit Test Coverage Report'
223223
junitxml-path: ./apps/site/junit.xml

.github/workflows/pull-request-label.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
runs-on: ubuntu-latest
3232
steps:
3333
- name: Harden Runner
34-
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
34+
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
3535
with:
3636
egress-policy: audit
3737

.github/workflows/scorecard.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ jobs:
3232

3333
steps:
3434
- name: Harden Runner
35-
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
35+
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
3636
with:
3737
egress-policy: audit
3838

3939
- name: Git Checkout
40-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
40+
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
4141
with:
4242
persist-credentials: false
4343

@@ -51,14 +51,14 @@ jobs:
5151
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
5252
# format to the repository Actions tab.
5353
- name: Upload Artifacts
54-
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
54+
uses: actions/upload-artifact@604373da6381bf24206979c74d06a550515601b9 # v4.4.1
5555
with:
5656
name: SARIF file
5757
path: results.sarif
5858
retention-days: 5
5959

6060
# Upload the results to GitHub's code scanning dashboard.
6161
- name: Upload Scan Results
62-
uses: github/codeql-action/upload-sarif@4dd16135b69a43b6c8efb853346f8437d92d3c93 # v3.26.6
62+
uses: github/codeql-action/upload-sarif@c36620d31ac7c881962c3d9dd939c40ec9434f2b # v3.26.12
6363
with:
6464
sarif_file: results.sarif

.github/workflows/translations-pr.yml

+11-6
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ on:
1515
- 'packages/i18n/locales/*.json'
1616
- '!packages/i18n/locales/en.json'
1717

18+
# Cancel any runs on the same branch
19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.ref }}
21+
cancel-in-progress: true
22+
1823
permissions:
1924
actions: read
2025

@@ -34,7 +39,7 @@ jobs:
3439

3540
steps:
3641
- name: Harden Runner
37-
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
42+
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
3843
with:
3944
egress-policy: audit
4045

@@ -65,18 +70,18 @@ jobs:
6570

6671
steps:
6772
- name: Harden Runner
68-
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
73+
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
6974
with:
7075
egress-policy: audit
7176

7277
- name: Git Checkout
73-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
78+
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
7479
with:
7580
# Provides the Pull Request commit SHA or the GitHub merge group ref
7681
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.ref }}
7782

7883
- name: Restore Lint Cache
79-
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
84+
uses: actions/cache/restore@2cdf405574d6ef1f33a1d12acccd3ae82f47b3f2 # v4.1.0
8085
with:
8186
path: |
8287
apps/site/.eslintmdcache
@@ -92,7 +97,7 @@ jobs:
9297
cache-lint-
9398
9499
- name: Set up Node.js
95-
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
100+
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
96101
with:
97102
# We want to ensure that the Node.js version running here respects our supported versions
98103
node-version-file: '.nvmrc'
@@ -120,7 +125,7 @@ jobs:
120125
commit_message: 'chore: automated format of translated files'
121126

122127
- name: Save Lint Cache
123-
uses: actions/cache/save@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
128+
uses: actions/cache/save@2cdf405574d6ef1f33a1d12acccd3ae82f47b3f2 # v4.1.0
124129
with:
125130
path: |
126131
apps/site/.eslintmdcache

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ These are maintained in different repositories and we urge users to open **issue
105105

106106
[Translation Guidelines][]
107107

108+
[Status Page](https://status.nodejs.org/) of the Node.js web infrastructure.
109+
108110
## Thanks
109111

110112
- Thanks to all contributors and collaborators that make this project possible.

apps/site/.storybook/main.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const config: StorybookConfig = {
3434
webpack: async config => ({
3535
...config,
3636
// We want to conform as much as possible with our target settings
37-
target: 'browserslist',
37+
target: 'browserslist:development',
3838
// Performance Hints do not make sense on Storybook as it is bloated by design
3939
performance: { hints: false },
4040
// `nodevu` is a Node.js-specific package that requires Node.js modules
@@ -52,7 +52,8 @@ const config: StorybookConfig = {
5252
ignoreWarnings: [
5353
e =>
5454
e.message.includes('Critical dep') ||
55-
e.message.includes('was not found in'),
55+
e.message.includes('was not found in') ||
56+
e.message.includes('generated code contains'),
5657
],
5758
}),
5859
};

0 commit comments

Comments
 (0)