Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions content/learn/node-javascript-language.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ With those concepts in mind, you are well on your road to become a proficient Ja

The following concepts are also key to understand asynchronous programming, which is one of the fundamental parts of Node.js:

* [Asynchronous programming and callbacks](https://nodejs.dev/learn/javascript-asynchronous-programming-and-callbacks)
* [Timers](https://nodejs.dev/learn/discover-javascript-timers)
* [Promises](https://nodejs.dev/learn/understanding-javascript-promises)
* [Async and Await](https://nodejs.dev/learn/modern-asynchronous-javascript-with-async-and-await)
* [Asynchronous programming and callbacks](/learn/javascript-asynchronous-programming-and-callbacks)
* [Timers](/learn/discover-javascript-timers)
* [Promises](/learn/understanding-javascript-promises)
* [Async and Await](/learn/modern-asynchronous-javascript-with-async-and-await)
* [Closures](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Closures)
* [The Event Loop](https://nodejs.dev/learn/the-nodejs-event-loop)
* [The Event Loop](/learn/the-nodejs-event-loop)
2 changes: 1 addition & 1 deletion content/learn/package-json.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,6 @@ You have seen in the description above version numbers like these: `~3.0.0` or `

That symbol specifies which updates your package accepts, from that dependency.

Given that using semver (semantic versioning) all versions have 3 digits, the first being the major release, the second the minor release and the third is the patch release, you have these "[Rules](https://nodejs.dev/learn/semantic-versioning-using-npm/)".
Given that using semver (semantic versioning) all versions have 3 digits, the first being the major release, the second the minor release and the third is the patch release, you have these "[Rules](/learn/semantic-versioning-using-npm/)".

You can combine most of the versions in ranges, like this: `1.0.0 || >=1.1.0 <1.2.0`, to either use 1.0.0 or one release from 1.1.0 up, but lower than 1.2.0.
4 changes: 2 additions & 2 deletions src/data/learn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@
- node-process-nexttick
- node-setimmediate
- javascript-timers
- javascripts-callbacks
- javascript-callbacks
- javascript-promises
- javascript-async-await
- node-event-emitter
- node-http-server
- node-make-http-requests
- node-request-data
- node-file-descriptions
- node-file-descriptors
- node-file-stats
- node-file-paths
- node-reading-files
Expand Down
4 changes: 2 additions & 2 deletions util-node/createMarkdownPages.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function getYamlPageIdentifier(relativePath) {
// This attempts to include optional possible language code file extension suffixes
// Include optional possible language code file extension suffixes
// eg.: index.en.md, index.md, index.en.mdx, some-blog-post.md, ...
return relativePath.endsWith('/index.')
return relativePath.includes('/index.')
? relativePath.replace(/\/index(\.[a-z]+)?\.(mdx|md)/, '')
: relativePath.replace(/(\.[a-z]+)?\.(mdx|md)/, '');
}
Expand Down