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 #90

Open
wants to merge 1,214 commits into
base: main
Choose a base branch
from
Open

[pull] main from nodejs:main #90

wants to merge 1,214 commits into from

Conversation

pull[bot]
Copy link

@pull pull bot commented Oct 25, 2022

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

@google-cla
Copy link

google-cla bot commented Oct 25, 2022

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

xMohamd and others added 23 commits February 14, 2024 09:17
* fix(redirect): redirect old links to the new ones

* Remove redundant redirect

* Update redirects.json

Signed-off-by: Claudio W <cwunder@gnome.org>

---------

Signed-off-by: Claudio W <cwunder@gnome.org>
Co-authored-by: Claudio W <cwunder@gnome.org>
* Migrate ABI Stability

* redirect.json redirect setup abi-stability

* redirect resolve

* Update redirects.json

Signed-off-by: Claudio W <cwunder@gnome.org>

* Update redirects.json

Signed-off-by: Claudio W <cwunder@gnome.org>

---------

Signed-off-by: Neeraj Saini <118799941+officeneerajsaini@users.noreply.github.com>
Signed-off-by: Claudio W <cwunder@gnome.org>
Co-authored-by: Claudio W <cwunder@gnome.org>
…lications" to the learn section (#6336)

* chore: Migrate the legacy guide Easy profiling for Node.js Applications to the learn section

* fix: Make necessary changes site wide

* chore: rename file, added to i18n, redirects.json

* fix: Broken link to new article

* Delete pages/en/guides/diagnostics/poor-performance/index.md

Signed-off-by: Adhiraj <adhirajd007@gmail.com>

* Update redirects.json

Signed-off-by: Claudio W <cwunder@gnome.org>

* Update index.md

Signed-off-by: Claudio W <cwunder@gnome.org>

* Update redirects.json

Signed-off-by: Claudio W <cwunder@gnome.org>

---------

Signed-off-by: Adhiraj <adhirajd007@gmail.com>
Signed-off-by: Claudio W <cwunder@gnome.org>
Co-authored-by: Claudio W <cwunder@gnome.org>
* Blog: v21.6.2 release post

Refs: nodejs-private/node-private#543

* Blog: v20.11.1 release post

Refs: nodejs-private/node-private#544

* Blog: v18.19.1 release post

Refs: nodejs-private/node-private#545

* Blog: add pos release announcement

* Apply suggestions from code review

Co-authored-by: Matt Cowley <me@mattcowley.co.uk>
Signed-off-by: Rafael Gonzaga <rafael.nunu@hotmail.com>

* Update pages/en/blog/vulnerability/february-2024-security-releases.md

Co-authored-by: Matt Cowley <me@mattcowley.co.uk>
Signed-off-by: Rafael Gonzaga <rafael.nunu@hotmail.com>

* Update pages/en/blog/vulnerability/february-2024-security-releases.md

Co-authored-by: Matt Cowley <me@mattcowley.co.uk>
Signed-off-by: Rafael Gonzaga <rafael.nunu@hotmail.com>

* Apply suggestions from code review

Co-authored-by: Matt Cowley <me@mattcowley.co.uk>
Signed-off-by: Rafael Gonzaga <rafael.nunu@hotmail.com>

* Update pages/en/blog/vulnerability/february-2024-security-releases.md

Co-authored-by: Richard Lau <rlau@redhat.com>
Signed-off-by: Rafael Gonzaga <rafael.nunu@hotmail.com>

* Update pages/en/blog/vulnerability/february-2024-security-releases.md

Co-authored-by: Richard Lau <rlau@redhat.com>
Signed-off-by: Rafael Gonzaga <rafael.nunu@hotmail.com>

---------

Signed-off-by: Rafael Gonzaga <rafael.nunu@hotmail.com>
Co-authored-by: Matt Cowley <me@mattcowley.co.uk>
Co-authored-by: Richard Lau <rlau@redhat.com>
…installed on Mac (#6343)

* Bash script on downloads page uses a command that is not installed on Mac
Fixes #3758

* Fixed a duplicate -o flag on curl that would result in the .pkg file being downloaded to the wrong location
…e learn section (#6345)

* docs(learn): migrate security from guides to learn

* docs(learn): fix links to learn section

* docs(learn): update pages/en/learn/getting-started/security-best-practices.md

Co-authored-by: Augustin Mauroy <augustin.mauroy@outlook.fr>
Signed-off-by: Paulo Belucci <98702177+paulobelucci@users.noreply.github.com>

---------

Signed-off-by: Paulo Belucci <98702177+paulobelucci@users.noreply.github.com>
Co-authored-by: Augustin Mauroy <augustin.mauroy@outlook.fr>
Bumps [undici](https://github.com/nodejs/undici) from 5.28.2 to 5.28.3.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](nodejs/undici@v5.28.2...v5.28.3)

---
updated-dependencies:
- dependency-name: undici
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…ick() to the learn (#6348)

* Migrate-The-Node.js-Event-Loop,Timers-and-process.nextTick()-to-the-Learn

* add node: prefix on import

* add node: prefix on EventEmitter
Signed-off-by: Claudio W <cwunder@gnome.org>
* feat(blog): add visible RSS feed

* fix: rss link

* fix

Signed-off-by: Augustin Mauroy <augustin.mauroy@outlook.fr>

* fix: rss link logic

* fix: generic blog when category didn't exist

* design: add hover effect

* feat(blog): introduce blogHeader

* move component to right folder

* fix: test

* fix: remove useless `max-w-8xl`

* revert

* re-add extra space

---------

Signed-off-by: Augustin Mauroy <augustin.mauroy@outlook.fr>
Co-authored-by: Claudio W <cwunder@gnome.org>
Bumps [ip](https://github.com/indutny/node-ip) from 2.0.0 to 2.0.1.
- [Commits](indutny/node-ip@v2.0.0...v2.0.1)

---
updated-dependencies:
- dependency-name: ip
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
… section (#6352)

* doc(learn): migrate the backpressuring-in-streams from guide to learn section

* docs(learn): removed link is working

* docs(learn): remove additional comma

Co-authored-by: Augustin Mauroy <augustin.mauroy@outlook.fr>
Signed-off-by: Paulo Belucci <98702177+paulobelucci@users.noreply.github.com>

---------

Signed-off-by: Paulo Belucci <98702177+paulobelucci@users.noreply.github.com>
Co-authored-by: Augustin Mauroy <augustin.mauroy@outlook.fr>
…ol) to the learn (#6351)

Co-authored-by: Claudio W <cwunder@gnome.org>
* feat: adds basic orama structure

* feat: adds searchbox

* feat: integrates searchbox

* style: moves components to separate files

* feat: wip on searchbox

* feat: adds basic mobile styles

* tmp: work in progress

* work in progress

* feat: improves search page

* style: addresses feedbacks on code style

* style: addresses feedbacks on code style

* feat: adds texts management via i18n

* fix: encodes URL components

* style: addresses feedback

* style: addresses feedback

* docs: adds comments to Orama sync script

* style: addresses feedback

* style: addresses feedback

* style: addresses feedback

* refactor: moves components and hooks into the correct folder structure

* refactor: moves components and hooks into the correct folder structure

* refactor: moves components and hooks into the correct folder structure

* refactor: moves components and hooks into the correct folder structure

* refactor: moves components and hooks into the correct folder structure

* refactor: moves components and hooks into the correct folder structure

* style: addresses feedback

* style: addresses feedback

* style: addresses feedback

* style: addresses feedback

* style: addresses feedback

* ci: adds Orama sync script to gh workflows

* chore: removes useless log

* style: addresses feedback and adds tests

* feat: adds footer

* fix: fixes logo in light mode

* updates orama dependencies

* chore: updates orama dependencies to latest version

* chore: updates Orama client

* fix: fixes unexpected close of modal on click

* fix: fixes Orama logo

* chore: removes unused test attribute

* fix: code-reviews

* chore: minor copy changes

* fix: aggregate results and make them unique

---------

Signed-off-by: Michele Riva <ciao@micheleriva.it>
Co-authored-by: Claudio Wunder <cwunder@gnome.org>
* feat: Download layout

* refactor: utils methods moved into the file

* refactor/docs: deprecated url path

* refactor/docs: download utils

* refactor: markdown formatting

* fix: download URL paths

* feat: exclude option for os dropdown

* refactor: separated type import

* refactor: styling updates

* refactor: type definitions moved into the own file

* test: unit tests for download utils

* fix: icons added into the download/source buttons

* fix: LinkWithArrow import path

* docs/refactor: source button

* refactor: review updates

* chore: code-review and code improvements

* feat: finished download page

* chore: minor fixes

* chore: code-review and bug fixes

* chore: prevent page reload on tab change

* chore: improve activelink matching

* feat: proper download versions and prebuilt binaries

* feat: added more support text for each respective version

* chore: minor bitness fixes for macOS

* refactor: cleanup of certain logic and added docker package manager

* chore: fix shiki interop client-server

* chore: fix unit test

* chore: minor text correction

* chore: nvm uses v prefix

* chore: rename label to ARM64 to keep it easier to understand

* refactor: reduce layout shift and improve select accessibility

* chore: reduce layout shift, simplify codebox and cleanup text

* Apply suggestions from code review

Signed-off-by: Brian Muenzenmeyer <brian.muenzenmeyer@gmail.com>

* added Docker platform logo, grouped by usage and alphabetized

* chore: minor changes and fixes

* chore: reduce build times by making build of these routes on-demand

* fix: keep same bitness if compatible on OS change, verify OS supports bitness

---------

Signed-off-by: Brian Muenzenmeyer <brian.muenzenmeyer@gmail.com>
Co-authored-by: Claudio Wunder <cwunder@gnome.org>
Co-authored-by: Brian Muenzenmeyer <brian.muenzenmeyer@gmail.com>
dependabot bot and others added 30 commits May 3, 2024 16:02
* meta: bump the react group with 4 updates

Bumps the react group with 4 updates: [react](https://github.com/facebook/react/tree/HEAD/packages/react), [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react), [react-dom](https://github.com/facebook/react/tree/HEAD/packages/react-dom) and [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom).


Updates `react` from 18.2.0 to 18.3.1
- [Release notes](https://github.com/facebook/react/releases)
- [Changelog](https://github.com/facebook/react/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/react/commits/v18.3.1/packages/react)

Updates `@types/react` from 18.2.73 to 18.3.1
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

Updates `react-dom` from 18.2.0 to 18.3.1
- [Release notes](https://github.com/facebook/react/releases)
- [Changelog](https://github.com/facebook/react/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/react/commits/v18.3.1/packages/react-dom)

Updates `@types/react-dom` from 18.2.23 to 18.3.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom)

Updates `@types/react` from 18.2.73 to 18.3.1
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

Updates `@types/react-dom` from 18.2.23 to 18.3.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom)

---
updated-dependencies:
- dependency-name: react
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: react
- dependency-name: "@types/react"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: react
- dependency-name: react-dom
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: react
- dependency-name: "@types/react-dom"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: react
- dependency-name: "@types/react"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: react
- dependency-name: "@types/react-dom"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: react
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix test deprecation warning

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Brian Muenzenmeyer <brian.muenzenmeyer@gmail.com>
Bumps the storybook group with 6 updates:

| Package | From | To |
| --- | --- | --- |
| [@storybook/addon-controls](https://github.com/storybookjs/storybook/tree/HEAD/code/addons/controls) | `8.0.5` | `8.0.9` |
| [@storybook/addon-interactions](https://github.com/storybookjs/storybook/tree/HEAD/code/addons/interactions) | `8.0.5` | `8.0.9` |
| [@storybook/addon-themes](https://github.com/storybookjs/storybook/tree/HEAD/code/addons/themes) | `8.0.5` | `8.0.9` |
| [@storybook/addon-viewport](https://github.com/storybookjs/storybook/tree/HEAD/code/addons/viewport) | `8.0.5` | `8.0.9` |
| [@storybook/nextjs](https://github.com/storybookjs/storybook/tree/HEAD/code/frameworks/nextjs) | `8.0.5` | `8.0.9` |
| [storybook](https://github.com/storybookjs/storybook/tree/HEAD/code/lib/cli) | `8.0.5` | `8.0.9` |


Updates `@storybook/addon-controls` from 8.0.5 to 8.0.9
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v8.0.9/code/addons/controls)

Updates `@storybook/addon-interactions` from 8.0.5 to 8.0.9
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v8.0.9/code/addons/interactions)

Updates `@storybook/addon-themes` from 8.0.5 to 8.0.9
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v8.0.9/code/addons/themes)

Updates `@storybook/addon-viewport` from 8.0.5 to 8.0.9
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v8.0.9/code/addons/viewport)

Updates `@storybook/nextjs` from 8.0.5 to 8.0.9
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v8.0.9/code/frameworks/nextjs)

Updates `storybook` from 8.0.5 to 8.0.9
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v8.0.9/code/lib/cli)

---
updated-dependencies:
- dependency-name: "@storybook/addon-controls"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: storybook
- dependency-name: "@storybook/addon-interactions"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: storybook
- dependency-name: "@storybook/addon-themes"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: storybook
- dependency-name: "@storybook/addon-viewport"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: storybook
- dependency-name: "@storybook/nextjs"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: storybook
- dependency-name: storybook
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: storybook
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* fix: overflow issue on mobile GlowingBackdrop

* fix: glowing backdrop aspect ratio
* fix: horizontal scrollbar appearing on small screen

* refactor: usage of tailwind break-all class

Co-authored-by: Caner Akdas <canerakdas@gmail.com>
Signed-off-by: Théo LUDWIG <contact@theoludwig.fr>

* refactor: usage of tailwind bracket class

Co-authored-by: Caner Akdas <canerakdas@gmail.com>
Signed-off-by: Théo LUDWIG <contact@theoludwig.fr>

* chore: delete additional space layouts/layouts.module.css

Co-authored-by: Caner Akdas <canerakdas@gmail.com>
Signed-off-by: Théo LUDWIG <contact@theoludwig.fr>

* style: fix linting

---------

Signed-off-by: Théo LUDWIG <contact@theoludwig.fr>
Co-authored-by: Caner Akdas <canerakdas@gmail.com>
change lang from "js" to "cjs" for consistency

Signed-off-by: huseeiin <122984423+huseeiin@users.noreply.github.com>
Blog: v20.13.1 release post

Refs: nodejs/node#52900
* feat(metabar): allow Avatar

* fix(styles): overflow

* story: add more avatar on MetaBar

* fix: scrollbar on avatar

* update/clean logic

* update style

* feat(metabar): use breakpoint for limit of avatar

---------

Co-authored-by: Claudio W <cwunder@gnome.org>
* Added border bottom

* added color

* removed border bottom and darken the header text in dark mode
Node.js 22.0.0 removed support for import assertions
* Add fnm logo

* Add fnm to download picker/snippets

* Fix bad switch cascade in download snippets

* List fmn first as the only cross-platform option

* Revert "List fmn first as the only cross-platform option"

This reverts commit 8ed81a6.

* Use traced vector fnm logo
* fix: change NVM to nvm

I believe `nvm` is always lowercase as seen in their readme 

https://github.com/nvm-sh/nvm/blob/master/README.md

Signed-off-by: Steven <steven@ceriously.com>

* fix: getNodeDownloadSnippet nvm comment

---------

Signed-off-by: Steven <steven@ceriously.com>
* feat: package-managers as default, redirects and more info

* chore: fix test

* chore: added missing redirect of current

---------

Signed-off-by: Claudio W <cwunder@gnome.org>
* fix: layout word break

* fix: word break normal on lg
* feat: Navigation state provider and hook

Temporary workaround for #6409
Get more info here - #6675

Signed-off-by: abizek <abishekilango@protonmail.com>

* refactor: Navigation state hook effect

Signed-off-by: abizek <abishekilango@protonmail.com>

* docs: Add comment explaining eslint-disable-next-line

Signed-off-by: abizek <abishekilango@protonmail.com>

---------

Signed-off-by: abizek <abishekilango@protonmail.com>
* fix: correct same level side navigation on breadcrumbs

* chore: add comment for matching route path handling
* feat: set default transition to `0.3s`

* Update index.module.css

Signed-off-by: Aviv Keller <38299977+RedYetiDev@users.noreply.github.com>

* Update index.module.css

Signed-off-by: Aviv Keller <38299977+RedYetiDev@users.noreply.github.com>

* Only transition colors

---------

Signed-off-by: Aviv Keller <38299977+RedYetiDev@users.noreply.github.com>
* fix learn page breadcrumbs where label !== path slug

Consider the article "event-loop-timers-and-nexttick" where the label is "The Nodejs Event loop". Breadcrumbs cannot be found in the navigation tree. Ofcourse we can always change the article name to match the label but what about the article "discover-javascript-timers"? Why, there is no problem here! Except there is. The "s" in JavaScript is capitalized. (Shocking, I know. I learned this today). "JavaScript" cannot be written as "java-script" in dash-case. Is it javascript or a script written in Java?

Previously docs should have the same article name and label for the breadcrumbs to work. Now it is not necessary. Unless a deeply nested document structure is adopted, in which case we have to DFS the navigation tree.

Signed-off-by: abizek <abishekilango@protonmail.com>

* test: dashToCamelCase string util

Signed-off-by: abizek <abishekilango@protonmail.com>

* fix: Update nav and i18n keys to match article name

Signed-off-by: abizek <abishekilango@protonmail.com>

---------

Signed-off-by: abizek <abishekilango@protonmail.com>
… act Import (#6736)

Fix TypeError in useBottomScrollListener Test Due to Incorrect act Import
fix: Move links from headings

Signed-off-by: abizek <abishekilango@protonmail.com>
* fix: motion safe animations

* feat: smooth scroll behavior in article
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment