Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from nodejs:main #977

Merged
merged 199 commits into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
199 commits
Select commit Hold shift + click to select a range
5daebc7
feat(download):color link on botton in dark and light mode (#6450)
Jufaa Mar 5, 2024
a8efa11
fix: zoom issue on smaller screens due to focus (#6455)
manishprivet Mar 6, 2024
503d265
fix: select arm64 by default (#6439)
rhlshah Mar 6, 2024
507fc92
fix: select should have scrollbar (#6452)
ovflowd Mar 6, 2024
2df76dc
Fix breadcrumbs not updating (#6431)
yanggggjie Mar 6, 2024
be4cb80
Blog: v21.7.0 release post (#6459)
RafaelGSS Mar 6, 2024
ec7ec38
fix: better examples on home (#6457)
ovflowd Mar 8, 2024
a7d2589
blog: mention Hemanth to styleText api (#6464)
RafaelGSS Mar 8, 2024
e590baa
fix: hotfix of file termination
ovflowd Mar 8, 2024
6d79e91
chore(content): use as 100% new codebox (#6437)
AugustinMauroy Mar 8, 2024
f259bee
chore(branding): introduce branding page (#6435)
AugustinMauroy Mar 8, 2024
994b74e
fix: remove .hbs on branding (#6466)
AugustinMauroy Mar 8, 2024
d0e1109
Blog: v21.7.1 release post (#6468)
targos Mar 8, 2024
268a4e0
chore: Clean up homepage code examples (tweak comments + no wrapping)…
MattIPv4 Mar 12, 2024
af0f82e
feat: Using Next.js Image component in markdown files (#6454)
canerakdas Mar 12, 2024
6a05d79
chore: remove translations for the time being
ovflowd Mar 12, 2024
218dbb1
chore: remove corepack mention (#6471)
ovflowd Mar 12, 2024
5e6a6e2
chore: update incorrect code comments regarding dynamicParams (#6473)
dario-piotrowicz Mar 13, 2024
2bcf50d
feat: npm link to npm version (#6472)
ovflowd Mar 14, 2024
5853f1b
chore: Orama remote image pattern (#6474)
canerakdas Mar 17, 2024
789e7cd
meta: updated packages (#6477)
ovflowd Mar 17, 2024
2eced3c
fix: input debounce (#6478)
canerakdas Mar 19, 2024
97a186a
Update introduction-to-nodejs.md (#6482)
ssakib4040 Mar 20, 2024
a4f6802
Replace occurrences of `MacOS` with `macOS` (#6494)
lucascaton Mar 20, 2024
ae66dd2
Reverts #6478 - removes debounce on search (#6497)
micheleriva Mar 20, 2024
11c092b
add mascot to 404 (#6481)
bmuenzenmeyer Mar 21, 2024
94b3f96
meta: bump webpack-dev-middleware from 6.1.1 to 6.1.2 (#6505)
dependabot[bot] Mar 22, 2024
2412d4b
chore: Rename "Read streams" example to "Streams Pipeline" (#6495)
lmammino Mar 23, 2024
3f67f48
add Orama to thanks (#6507)
bmuenzenmeyer Mar 23, 2024
9d5f2ea
feat(icons): use "x" instead of the bird (#6517)
AugustinMauroy Mar 24, 2024
9f0b6a5
fix: typo - typescript props type (#6513)
caykey Mar 24, 2024
f7c6613
fix: Wrong bitness information (#6485)
canerakdas Mar 24, 2024
e07d64d
fix: Update understanding-processnexttick example (#6499)
juanmdpc Mar 24, 2024
74a467d
chore: locales only via crowdin
ovflowd Mar 24, 2024
5144b9c
Use stream/promises on home (#6491)
Joabesv Mar 24, 2024
591fc5c
chore(Translation): update translation policy (#6518)
AugustinMauroy Mar 24, 2024
910c750
fix: Change link to point to npm release notes (#6484)
styfle Mar 24, 2024
90e4081
Polish Translations Setup (#6519)
edicik Mar 24, 2024
5b1a093
Added Romanian locale (#6496)
vladutilie Mar 24, 2024
bf9dabb
style: fix typo in comment: "to to" -> "to" for clarity. (#6542)
bacqueyrisses Mar 25, 2024
533c4bb
chore: Unify "node:" prefixes in code examples (#6532)
damianstasik Mar 25, 2024
734823b
fix(og): use the resolved page title (#6545)
bmuenzenmeyer Mar 25, 2024
682912d
fix: use openjsf.org Slack invite subdomain (#6500)
MattIPv4 Mar 25, 2024
70ea26e
feat: Make MD headers clickable (#6529)
damianstasik Mar 25, 2024
6dc48dc
feat: Mark external links in the sidebar (#6523)
damianstasik Mar 25, 2024
268bdc3
Fixes search page with no query should not throw (#6547)
SaraVieira Mar 25, 2024
7afdb64
Adds redesign blog post (#6524)
bmuenzenmeyer Mar 25, 2024
c326b19
fix:layout-shift caused by the radix dropdown menu. (#6533)
shoaibkh4n Mar 25, 2024
16ee694
fix: Disable text selection for <Select> options (#6525)
damianstasik Mar 25, 2024
d549283
meta: bump express from 4.18.3 to 4.19.2 (#6550)
dependabot[bot] Mar 25, 2024
13d4cf2
feat: introduced changelog modal on downloads (#6393)
ovflowd Mar 25, 2024
0702ef3
Chore: add searchbar shortcut indicator (#6548)
lucianmurmurache Mar 25, 2024
9d25e2a
hotfix: clarify language in blog post
bmuenzenmeyer Mar 25, 2024
4430369
chore: Move turbo to dev dependency (#6539)
StevenMatchett Mar 26, 2024
dd983af
fix: Maximum scale and initial scale (#6526)
canerakdas Mar 26, 2024
14acab3
fix: open external link in new tab for navbar items (#6487)
hisamafahri Mar 26, 2024
e6f05f2
feat: Add PowerShell support to Shiki (#6538)
thisalihassan Mar 26, 2024
d71162c
Blog: v18.20.0 release post (#6557)
richardlau Mar 26, 2024
b6929e1
Blog: v20.12.0 release post (#6558)
richardlau Mar 26, 2024
2aa5562
blog: add april sec release announcement (#6574)
RafaelGSS Mar 27, 2024
3f4e4f9
feat(search): Enhance shortcut key transition for OS detection (#6554)
edereagzi Mar 28, 2024
97672b1
fix: RSS alternate link tag does not expose release/vuln feeds (#6562)
thisalihassan Mar 28, 2024
e1626ae
blog: add banner for April security release (#6578)
richardlau Mar 28, 2024
cb3d05f
fix: update Project governance page to match reality (#6493)
joyeecheung Mar 28, 2024
2b03c59
fix: Changelog trigger and minor visual bugs (#6567)
canerakdas Mar 28, 2024
b36f123
fix: navbar breakpoint issue (#6535)
0XYoussefX0 Mar 30, 2024
327356b
Add missing os from website redesign (#6575)
mhdawson Apr 1, 2024
cf31daf
fix: properly tag maintenance and flag versions correctly (#6586)
ovflowd Apr 1, 2024
c3f9c12
test: Increase coverage (#6349)
AugustinMauroy Apr 1, 2024
87ec20d
meta: bump actions/cache from 4.0.1 to 4.0.2 (#6602)
dependabot[bot] Apr 1, 2024
ee6c80c
meta: bump actions/dependency-review-action from 4.1.3 to 4.2.5 (#6600)
dependabot[bot] Apr 1, 2024
b43279f
meta: bump github/codeql-action from 3.24.6 to 3.24.9 (#6599)
dependabot[bot] Apr 1, 2024
ddc2dd5
feat(tabs): fix contrast ratio (#6543)
AugustinMauroy Apr 2, 2024
459a4ac
meta: bump @oramacloud/client from 1.0.9 to 1.0.13 (#6598)
dependabot[bot] Apr 2, 2024
2f576c5
fix: update collab-summit.md (#6604)
joyeecheung Apr 3, 2024
6357fa1
Update april-2024-security-releases.md: Fix pluralization ("1 ... iss…
josephfrazier Apr 3, 2024
188518b
fix: Banner type (#6607)
canerakdas Apr 3, 2024
b67bb94
meta: bump next-intl from 3.9.5 to 3.10.0 (#6596)
dependabot[bot] Apr 3, 2024
9164b78
meta: bump the react group with 2 updates (#6593)
dependabot[bot] Apr 3, 2024
376c023
meta: bump the tailwind group with 2 updates (#6594)
dependabot[bot] Apr 3, 2024
afd0a6c
meta: bump the storybook group with 6 updates (#6590)
dependabot[bot] Apr 3, 2024
2e41e58
meta: bump the testing group with 1 update (#6591)
dependabot[bot] Apr 3, 2024
ff349ee
Blog: add security release blog posts (#6609)
RafaelGSS Apr 3, 2024
288b833
meta: bump glob from 10.3.10 to 10.3.12 (#6597)
dependabot[bot] Apr 3, 2024
8997b99
meta: bump postcss from 8.4.35 to 8.4.38 (#6595)
dependabot[bot] Apr 3, 2024
2d1b54a
fix: proper release status (#6603)
ovflowd Apr 3, 2024
f37ccfb
Blog: add April 9th pre announcement (#6617)
RafaelGSS Apr 4, 2024
92d8d93
Blog: update april-2 security release slug (#6620)
RafaelGSS Apr 4, 2024
3764989
meta: bump undici from 5.28.3 to 5.28.4 (#6618)
dependabot[bot] Apr 5, 2024
f8cb833
fix: explain that example is not deterministic (#6612)
lemire Apr 5, 2024
91f2b69
meta: bump the next-js group with 2 updates (#6610)
dependabot[bot] Apr 5, 2024
ae1e8a7
meta: bump the lint group with 4 updates (#6611)
dependabot[bot] Apr 5, 2024
b027cf5
fix: Search box button accessibility (#6619)
canerakdas Apr 6, 2024
2f9368c
Add author image to blog posts (#6581)
joaoGabriel55 Apr 6, 2024
01edbb9
fix: Made RouterSelect inline (#6560) (#6568)
kujo205 Apr 6, 2024
c58d9ee
Blog: remove vulnerability from upcoming release (#6624)
RafaelGSS Apr 8, 2024
727df84
docs: add Exherbo Linux package manager to Download instructions (#6622)
davlgd Apr 9, 2024
8c03467
Blog: add security release blog posts (#6642)
RafaelGSS Apr 10, 2024
6581249
feat: Improve keyboard interactions in searchbox (#6537)
Baccega Apr 11, 2024
26d21fe
Change spelling of "patname" to "pathname" in comment (#6650)
RicoTarascio Apr 12, 2024
875dae2
fix: Bitness type in dropdown (#6614)
canerakdas Apr 12, 2024
0a5a934
Blog: add trip report of London 2024 summit (#6653)
joyeecheung Apr 15, 2024
a0cf652
fix: collaborator summit -> collaboration summit (#6654)
joyeecheung Apr 15, 2024
9d965e2
chore: reduce badge title
ovflowd Apr 15, 2024
7d8d9be
docs: add vfox to Download instructions (#6645)
ahai-code Apr 15, 2024
5351908
chore(learn): update typescript (#6615)
AugustinMauroy Apr 15, 2024
6f21c48
Update websiteFeeds.ts (#6648)
chinmoykr Apr 15, 2024
d08f44c
Fix: missing Promise in tsdoc of 2 functions (#6652)
mAmineChniti Apr 15, 2024
de12484
FIx sentry integrations lazy loading (#6634)
r34son Apr 15, 2024
b247d8c
fix: numerous fixes regarding package manager page (#6638)
ovflowd Apr 15, 2024
62274cb
Blog: include mention to windows only (#6660)
RafaelGSS Apr 16, 2024
f57eca1
fix: redirect to default locale page when locale is not supported (#6…
yosuke-furukawa Apr 18, 2024
736136e
Blog: add shell true mention to april sec release (#6665)
RafaelGSS Apr 19, 2024
2942f63
Fix scrollbar display (#6663)
daklay Apr 20, 2024
0bdaa81
Update twisted link in docs (#6666)
matheusfelipeog Apr 21, 2024
6f9ea86
fix(rtl): add static dir to CodeBox (#6668)
mostafa-nematpour Apr 24, 2024
662aabc
refactor: Inline and simplify glowing backdrop SVG pattern (#6536)
damianstasik Apr 24, 2024
f46b7e9
fix: Optimizations for Turborepo setup (#6662)
anthonyshew Apr 24, 2024
92cc546
Blog: v22.0.0 release post (#6671)
RafaelGSS Apr 24, 2024
4a8fd1e
announce: Node.js 22 release announcement (#6661)
marco-ippolito Apr 24, 2024
a48096b
chore(blog): make abort signal perf improvement same header size + al…
rluvaton Apr 24, 2024
b092695
refactor: Default bitness on the download page (#6670)
canerakdas Apr 24, 2024
941b002
chore(site): update website badge + banner (#6673)
AugustinMauroy Apr 25, 2024
69ef8ac
Update previous-releases.mdx (#6676)
srl295 Apr 30, 2024
805f36d
fix: svg warning in HexagonGrid (#6681)
theoludwig Apr 30, 2024
ae87490
build(script): use `dev` instead of `serve` (#6674)
AugustinMauroy May 1, 2024
4352491
chore: we use MDXv3 now
ovflowd May 2, 2024
facb508
meta: bump MishaKav/jest-coverage-comment from 1.0.25 to 1.0.26 (#6703)
dependabot[bot] May 2, 2024
fd8a30a
meta: bump actions/checkout from 4.1.1 to 4.1.4 (#6702)
dependabot[bot] May 2, 2024
9e9663b
meta: bump actions/upload-artifact from 4.3.1 to 4.3.3 (#6701)
dependabot[bot] May 2, 2024
2f1b069
meta: bump actions/dependency-review-action from 4.2.5 to 4.3.2 (#6697)
dependabot[bot] May 2, 2024
fcaeb95
meta: bump step-security/harden-runner from 2.7.0 to 2.7.1 (#6700)
dependabot[bot] May 2, 2024
4e73652
meta: bump github/codeql-action from 3.24.9 to 3.25.3 (#6699)
dependabot[bot] May 2, 2024
6a48d83
meta: bump stefanzweifel/git-auto-commit-action from 5.0.0 to 5.0.1 (…
dependabot[bot] May 2, 2024
d5c28c1
Blog: v22.1.0 release post (#6708)
targos May 2, 2024
113f21a
meta: bump @types/node from 20.11.28 to 20.12.7 (#6694)
dependabot[bot] May 2, 2024
98bc00d
meta: bump postcss-mixins from 10.0.0 to 10.0.1 (#6696)
dependabot[bot] May 3, 2024
65c1c92
meta: bump dedent from 1.5.1 to 1.5.3 (#6695)
dependabot[bot] May 3, 2024
4c32d9a
meta: bump prettier-plugin-tailwindcss from 0.5.13 to 0.5.14 in the t…
dependabot[bot] May 3, 2024
0161a80
fix: correct headings levels for Previous Releases page (#6682)
theoludwig May 3, 2024
fb44d67
meta: bump @testing-library/react from 14.2.2 to 15.0.5 in the testin…
dependabot[bot] May 3, 2024
1c7d1a4
meta: bump remark-preset-lint-node from 5.0.0 to 5.0.2 in the mdx gro…
dependabot[bot] May 3, 2024
5fd0ab7
meta: bump the react group with 4 updates (#6692)
dependabot[bot] May 3, 2024
fffbd9c
meta: bump the storybook group with 6 updates (#6688)
dependabot[bot] May 3, 2024
fa5bc01
fix: overflow issue on mobile GlowingBackdrop (#6683)
canerakdas May 3, 2024
bcaca06
fix: horizontal scrollbar appearing on small screen (#6680)
theoludwig May 3, 2024
050f395
Update reading-files-with-nodejs.md (#6684)
huseeiin May 3, 2024
50eb2ee
Blog: v20.13.0 release post (#6714)
marco-ippolito May 7, 2024
b4f21da
v20.13.1 release post (#6716)
marco-ippolito May 9, 2024
ce1739f
feat(metabar): Add avatarGroup on learn section (#6467)
AugustinMauroy May 11, 2024
0b31ad4
Added border bottom to Sideabar of about page (#6678)
TenzDelek May 11, 2024
408cacb
fix: use import attribute in release-post script (#6707)
targos May 13, 2024
73abd86
Fix: transfered misplaced blog pages that caused broken links (#6644)
mAmineChniti May 13, 2024
6d03b62
feat(download): add fnm to package managers for all platforms (#6667)
MattIPv4 May 13, 2024
82f2999
fix: change NVM to nvm (#6722)
styfle May 14, 2024
c24c693
Blog: v22.2.0 release post (#6724)
targos May 15, 2024
8475829
feat: package-managers as default, redirects and more info (#6720)
ovflowd May 16, 2024
242c4d5
fix: layout word break (#6712)
araujogui May 17, 2024
97b851f
feat: Navigation state provider and hook (#6709)
abizek May 18, 2024
04f8989
fix: correct same level side navigation on breadcrumbs (#6710)
tquocanvn May 21, 2024
966532d
docs(README): clarify how our styles are applied (#6727)
bmuenzenmeyer May 21, 2024
9ad9238
Blog: v18.20.3 release post (#6730)
richardlau May 21, 2024
5d5b626
fix: correct the execution order in esm (#6725)
jazelly May 22, 2024
0f5dbc9
fix: disabled button (#6731)
AugustinMauroy May 23, 2024
5d23642
feat: default transition (for colors) to `0.3s` (#6726)
avivkeller May 25, 2024
acfe436
fix: learn page breadcrumbs where label !== path slug (#6729)
abizek May 25, 2024
9df4499
Fix(test): TypeError in useBottomScrollListener Test Due to Incorrect…
TenzDelek May 26, 2024
0b416d4
fix: Layout shift in download page / CodeBox (#6740)
canerakdas May 27, 2024
cc2318e
Fix: positioning of the toast notification (copy to clipboard) (#6737)
TenzDelek May 27, 2024
c706bf0
Fix debugging page hydration (#6743)
abizek May 28, 2024
1c4334f
Feat: Motion safe animations (#6739)
canerakdas May 28, 2024
c9d5930
Blog: v20.14.0 release post (#6745)
marco-ippolito May 28, 2024
447d721
Update dont-block-the-event-loop.md (#6744)
aitmamatovmusa May 30, 2024
f09d3d7
Update how-to-install-nodejs.md (#6753)
piyush-112 Jun 1, 2024
d09e4f1
feat(pride logo): introduce (#6734)
AugustinMauroy Jun 1, 2024
20d0495
meta: bump the testing group with 2 updates (#6761)
dependabot[bot] Jun 1, 2024
98995cd
meta: bump @types/node from 20.12.7 to 20.13.0 (#6767)
dependabot[bot] Jun 2, 2024
b631f5b
Update tsx example (#6750)
GeoffreyBooth Jun 2, 2024
df8d2b2
fix: ci (#6774)
AugustinMauroy Jun 2, 2024
e67490d
CI: Orama cloud sync (#6806)
canerakdas Jun 4, 2024
69bb20f
feat(meta): support nodejs v22 (#6746)
avivkeller Jun 4, 2024
487d5b5
chore: updated chromatic action cli version (#6800)
ovflowd Jun 4, 2024
c228275
meta: add issue link to the release worker (#6773)
flakey5 Jun 4, 2024
b53607e
Revert "feat(meta): support nodejs v22" (#6810)
ovflowd Jun 4, 2024
3ccaf03
Require TSC approval for stances (#6772)
benjamingr Jun 4, 2024
20d773e
chore: updated packages, fixed build bugs and migrated packages (#6803)
ovflowd Jun 5, 2024
e3bd988
meta: bump ossf/scorecard-action from 2.3.1 to 2.3.3 (#6758)
dependabot[bot] Jun 5, 2024
64eb029
meta: bump github/codeql-action from 3.25.3 to 3.25.7 (#6756)
dependabot[bot] Jun 5, 2024
dae41e9
meta: bump actions/checkout from 4.1.4 to 4.1.6 (#6755)
dependabot[bot] Jun 5, 2024
290775f
meta: bump step-security/harden-runner from 2.7.1 to 2.8.0 (#6757)
dependabot[bot] Jun 5, 2024
18abb2a
CI: Orama cloud sync error handling/logs (#6814)
canerakdas Jun 6, 2024
ed9625b
Revise Download instructions for Unix & Fix Grammar in CONTRIBUTING.m…
NotYourAverageGamer Jun 6, 2024
3fb72c2
Fix article layout responsiveness (#6821)
abizek Jun 9, 2024
1e2f3d7
Add how-to guide for node's test runner (#6770)
JakobJingleheimer Jun 9, 2024
6cdcbbc
fix(content): re-add domain postmortem with a redirect (#6825)
bmuenzenmeyer Jun 9, 2024
ff50c68
Fix layout bug on hidden page (#6834)
bmuenzenmeyer Jun 11, 2024
7c25282
Blog: v22.3.0 release post (#6835)
RafaelGSS Jun 11, 2024
8f0b41d
Correct grammar and improve clarity (#6826)
asdacosta Jun 13, 2024
7bdd6bc
[automated]: crowdin sync (#6831)
nodejs-crowdin Jun 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ contact_links:
- name: Report an API Docs Issue on the Node.js Website
url: https://github.com/nodejs/node/issues/new?assignees=&labels=doc&template=3-api-ref-docs-problem.yml
about: 'Is something wrong with the API Docs? Did you face a bug with the API Docs?'
- name: Report an issue with downloading Node.js
url: https://github.com/nodejs/release-cloudflare-worker/issues/new
about: 'Is something wrong with Node.js downloads?'
- name: Report a Translation Issue on the Node.js Website
url: https://crowdin.com/project/nodejs-web
about: 'Is something wrong in a specific translation? Do you believe a language can get improved? Do you have suggestions?'
Expand Down
4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ You can check the items by adding an `x` between the brackets, like this: `[x]`
-->

- [ ] I have read the [Contributing Guidelines](https://github.com/nodejs/nodejs.org/blob/main/CONTRIBUTING.md) and made commit messages that follow the guideline.
- [ ] I have run `npx turbo format` to ensure the code follows the style guide.
- [ ] I have run `npx turbo test` to check if all tests are passing.
- [ ] I have run `npm run format` to ensure the code follows the style guide.
- [ ] I have run `npm run test` to check if all tests are passing.
- [ ] I have run `npx turbo build` to check if the website builds without errors.
- [ ] I've covered new added functionality with unit tests if necessary.
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:

steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
with:
egress-policy: audit

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

- name: Git Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
# Since we checkout the HEAD of the current Branch, if the Pull Request comes from a Fork
# we want to clone the fork's repository instead of the base repository
Expand Down Expand Up @@ -125,6 +125,9 @@ jobs:
NODE_OPTIONS: '--max_old_space_size=4096'

- name: Sync Orama Cloud
env:
ORAMA_INDEX_ID: ${{ secrets.ORAMA_INDEX_ID }}
ORAMA_SECRET_KEY: ${{ secrets.ORAMA_SECRET_KEY }}
if: github.ref == 'refs/heads/main'
run: |
npm run sync-orama
10 changes: 5 additions & 5 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@ jobs:

steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
with:
egress-policy: audit

- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@8a470fddafa5cbb6266ee11b37ef4d8aae19c571 # v3.24.6
uses: github/codeql-action/init@f079b8493333aace61c81488f8bd40919487bd9f # v3.25.7
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -60,7 +60,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@8a470fddafa5cbb6266ee11b37ef4d8aae19c571 # v3.24.6
uses: github/codeql-action/autobuild@f079b8493333aace61c81488f8bd40919487bd9f # v3.25.7

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

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@8a470fddafa5cbb6266ee11b37ef4d8aae19c571 # v3.24.6
uses: github/codeql-action/analyze@f079b8493333aace61c81488f8bd40919487bd9f # v3.25.7
with:
category: '/language:${{matrix.language}}'
6 changes: 3 additions & 3 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
with:
egress-policy: audit

- name: Git Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6

- name: Review Dependencies
uses: actions/dependency-review-action@9129d7d40b8c12c1ed0f60400d00c92d437adcce # v4.1.3
uses: actions/dependency-review-action@0c155c5e8556a497adf53f2c18edabf945ed8e70 # v4.3.2
4 changes: 2 additions & 2 deletions .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ jobs:

steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
with:
egress-policy: audit

- name: Git Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
# Since we checkout the HEAD of the current Branch, if the Pull Request comes from a Fork
# we want to clone the fork's repository instead of the base repository
Expand Down
31 changes: 12 additions & 19 deletions .github/workflows/lint-and-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:

steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
with:
egress-policy: audit

Expand All @@ -60,18 +60,18 @@ jobs:
(github.event_name == 'pull_request_target' &&
github.event.label.name == 'github_actions:pull-request')

name: Lint
name: Quality checks
runs-on: ubuntu-latest
needs: [base]

steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
with:
egress-policy: audit

- name: Git Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
# Since we checkout the HEAD of the current Branch, if the Pull Request comes from a Fork
# we want to clone the fork's repository instead of the base repository
Expand All @@ -85,7 +85,7 @@ jobs:
ref: ${{ github.event.pull_request.head.ref || github.ref }}

- name: Restore Lint Cache
uses: actions/cache/restore@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
path: |
.turbo/cache
Expand Down Expand Up @@ -116,8 +116,7 @@ jobs:
# We also use `npm i` instead of `npm ci` so that the node_modules/.cache folder doesn't get deleted
run: npm i --no-audit --no-fund --ignore-scripts --userconfig=/dev/null

- name: Run `turbo lint`
id: eslint-step
- name: Run quality checks with `turbo`
# We run the ESLint and Prettier commands on all Workflow triggers of the `Lint` job, besides if
# the Pull Request comes from a Crowdin Branch, as we don't want to run ESLint and Prettier on Crowdin PRs
# Note: Linting and Prettifying of files on Crowdin PRs is handled by the `translations-pr.yml` Workflow
Expand All @@ -127,13 +126,7 @@ jobs:
github.event.pull_request.head.ref != 'chore/crowdin')
# We want to enforce that the actual `turbo@latest` package is used instead of a possible hijack from the user
# the `${{ needs.base.outputs.turbo_args }}` is a string substitution happening from the base job
run: npx --package=turbo@latest -- turbo lint ${{ needs.base.outputs.turbo_args }}

- name: Run `turbo prettier`
if: steps.eslint-step.outcome == 'success'
# We want to enforce that the actual `turbo@latest` package is used instead of a possible hijack from the user
# the `${{ needs.base.outputs.turbo_args }}` is a string substitution happening from the base job
run: npx --package=turbo@latest -- turbo prettier ${{ needs.base.outputs.turbo_args }}
run: npx --package=turbo@latest -- turbo lint:js lint:md lint:css prettier ${{ needs.base.outputs.turbo_args }}

- name: Run `tsc build`
# We want to ensure that the whole codebase is passing and successfully compiles with TypeScript
Expand All @@ -150,7 +143,7 @@ jobs:
(github.event_name == 'pull_request_target' &&
startsWith(github.event.pull_request.head.ref, 'dependabot/') == false &&
github.event.pull_request.head.ref != 'chore/crowdin')
uses: actions/cache/save@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
uses: actions/cache/save@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
path: |
.turbo/cache
Expand Down Expand Up @@ -181,12 +174,12 @@ jobs:

steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
with:
egress-policy: audit

- name: Git Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
# Since we checkout the HEAD of the current Branch, if the Pull Request comes from a Fork
# we want to clone the fork's repository instead of the base repository
Expand Down Expand Up @@ -232,7 +225,7 @@ jobs:
startsWith(github.event.pull_request.head.ref, 'dependabot/') == false &&
github.event.pull_request.head.ref != 'chore/crowdin')
# sha reference has no stable git tag reference or URL. see https://github.com/chromaui/chromatic-cli/issues/797
uses: chromaui/action@807600692d28833b717c155e15ed20905cdc865c
uses: chromaui/action@5f6574e351eb055223ae8ea9e1a734d1d695ea9c
with:
buildScriptName: storybook:build
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
Expand All @@ -246,7 +239,7 @@ jobs:
if: steps.chromatic-deploy.outcome == 'success'
# This comments the current Jest Coverage Report containing JUnit XML reports
# and a Code Coverage Summary
uses: MishaKav/jest-coverage-comment@c2d5cfd6c32e8799c6deb0fd76a8e2d9ad8b35c2 # v1.0.25
uses: MishaKav/jest-coverage-comment@434e6d2d37116d23d812809b61d499639842fa3b # v1.0.26
with:
title: 'Unit Test Coverage Report'
junitxml-path: ./junit.xml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-request-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
with:
egress-policy: audit

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@ jobs:

steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
with:
egress-policy: audit

- name: Git Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
persist-credentials: false

- name: Run Scorecard Analysis
uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1
uses: ossf/scorecard-action@dc50aa9510b46c811795eb24b2f1ba02a914e534 # v2.3.3
with:
results_file: results.sarif
results_format: sarif
Expand All @@ -51,14 +51,14 @@ jobs:
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab.
- name: Upload Artifacts
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: SARIF file
path: results.sarif
retention-days: 5

# Upload the results to GitHub's code scanning dashboard.
- name: Upload Scan Results
uses: github/codeql-action/upload-sarif@8a470fddafa5cbb6266ee11b37ef4d8aae19c571 # v3.24.6
uses: github/codeql-action/upload-sarif@f079b8493333aace61c81488f8bd40919487bd9f # v3.25.7
with:
sarif_file: results.sarif
12 changes: 6 additions & 6 deletions .github/workflows/translations-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:

steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
with:
egress-policy: audit

Expand Down Expand Up @@ -65,20 +65,20 @@ jobs:

steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
with:
egress-policy: audit

- name: Git Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
# By default Git Checkout on `pull-request-target` will checkout
# the `default` branch of the Pull Request. We want to checkout
# the actual branch of the Pull Request.
ref: ${{ github.event.pull_request.head.ref }}

- name: Restore Lint Cache
uses: actions/cache/restore@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
path: |
.eslintmdcache
Expand Down Expand Up @@ -116,13 +116,13 @@ jobs:
run: npx prettier "{pages,i18n}/**/*.{json,md,mdx}" --check --write --cache --cache-strategy=metadata --cache-location=.prettiercache

- name: Push Changes back to Pull Request
uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d # v5.0.0
uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5.0.1
with:
commit_options: '--no-verify --signoff'
commit_message: 'chore: automated format of translated files'

- name: Save Lint Cache
uses: actions/cache/save@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
uses: actions/cache/save@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
path: |
.eslintmdcache
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
node_modules
npm-debug.log
.npm
.env.local
.env.*

# Next.js Build Output
.next
Expand Down
3 changes: 2 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
"bracketSpacing": true,
"bracketSameLine": false,
"arrowParens": "avoid",
"plugins": ["prettier-plugin-tailwindcss"]
"plugins": ["prettier-plugin-tailwindcss"],
"tailwindPreserveWhitespace": true
}
7 changes: 3 additions & 4 deletions COLLABORATOR_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ Unit Tests are fundamental to ensure that code changes do not disrupt the functi
- We also recommend mocking external dependencies, if unsure about how to mock a particular dependency, raise the question on your Pull Request.
- We recommend using [Jest's Mock Functions](https://jestjs.io/docs/en/mock-functions) for mocking dependencies.
- We recommend using [Jest's Mock Modules](https://jestjs.io/docs/en/manual-mocks) for mocking dependencies unavailable on the Node.js runtime.
- Common Providers and Contexts from the lifecycle of our App, such as [`react-intl`][] should not be mocked but given an empty or fake context whenever possible.
- Common Providers and Contexts from the lifecycle of our App, such as [`next-intl`][] should not be mocked but given an empty or fake context whenever possible.
- We recommend reading previous unit tests from the codebase for inspiration and code guidelines.

### General Guidelines for Storybooks
Expand Down Expand Up @@ -340,7 +340,7 @@ This custom render uses `getStaticPaths` and [Incremental Static Generation](htt
For example, this allows us to generate Localized Pages for every page that is not translated, by telling Next.js to create a localised path.
`next.dynamic.mjs` is responsible for getting a full list of the source pages (`pages/en`) and identifying which pages have been translated.

Non-translated pages will have their Localized contexts and translated React message-bags (`react-intl`) but the content will be the same as the source page (English).
Non-translated pages will have their Localized contexts and translated React message-bags (`next-intl`) but the content will be the same as the source page (English).
Whereas localized pages will have localized context and content.

This custom solution is also able to decide what paths should be compiled during runtime.
Expand Down Expand Up @@ -491,12 +491,11 @@ If you're unfamiliar or curious about something, we recommend opening a Discussi
[Jest]: https://jestjs.io/
[React Testing Library]: https://testing-library.com/docs/react-testing-library/intro/
[Storybook]: https://storybook.js.org/
[`react-intl`]: https://formatjs.io/docs/react-intl/
[`next-intl`]: https://next-intl-docs.vercel.app
[Next.js]: https://nextjs.org/
[MDX]: https://mdxjs.com/
[PostCSS]: https://postcss.org/
[React]: https://react.dev/
[Shiki]: https://github.com/shikijs/shiki
[Tailwind]: https://tailwindcss.com/
[Radix UI]: https://www.radix-ui.com/
[`next-intl`]: https://www.npmjs.com/package/next-intl
Loading
Loading