Skip to content

Commit

Permalink
Merge branch 'goldbergyoni:master' into readme-spanish-update
Browse files Browse the repository at this point in the history
  • Loading branch information
GeekBeardLinks authored Jan 28, 2025
2 parents 7bde5b2 + 54f8732 commit 585ef07
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<br/>

<div align="center">
<img src="https://img.shields.io/badge/⚙%20Item%20count%20-%20102%20Best%20Practices-blue.svg" alt="102 items"/> <img id="last-update-badge" src="https://img.shields.io/badge/%F0%9F%93%85%20Last%20update%20-%20July%2019%2C%202023-green.svg" alt="Last update: July 19, 2023" /> <img src="https://img.shields.io/badge/ %E2%9C%94%20Updated%20For%20Version%20-%20Node%2019.0.0-brightgreen.svg" alt="Updated for Node 19.0.0"/>
<img src="https://img.shields.io/badge/⚙%20Item%20count%20-%20102%20Best%20Practices-blue.svg" alt="102 items"/> <img id="last-update-badge" src="https://img.shields.io/badge/%F0%9F%93%85%20Last%20update%20-%20January%2024%2C%202023-green.svg" alt="Last update: January 3rd, 2024" /> <img src="https://img.shields.io/badge/ %E2%9C%94%20Updated%20For%20Version%20-%20Node%2022.0.0-brightgreen.svg" alt="Updated for Node 22.0.0"/>
</div>

<br/>
Expand All @@ -22,9 +22,9 @@ Read in a different language: [![CN](./assets/flags/CN.png)**CN**](./README.chin

<br/>

# 🎊 2023 edition is here!
# 🎊 2024 edition is here!

- **🛰 Modernized to 2023**: Tons of text edits, new recommended libraries, and some new best practices
- **🛰 Modernized to 2024**: Tons of text edits, new recommended libraries, and some new best practices

- **✨ Easily focus on new content**: Already visited before? Search for `#new` or `#updated` tags for new content only

Expand Down
6 changes: 2 additions & 4 deletions sections/security/limitrequests.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@ Rate limiting should be implemented in your application to protect a Node.js app

```javascript
const http = require('http');
const redis = require('redis');
const IoRedis = require('ioredis');
const { RateLimiterRedis } = require('rate-limiter-flexible');

const redisClient = redis.createClient({
enable_offline_queue: false,
});
const redisClient = new IoRedis({ enableOfflineQueue: false });

// Maximum 20 requests per second
const rateLimiter = new RateLimiterRedis({
Expand Down

0 comments on commit 585ef07

Please sign in to comment.