Giter VIP home page Giter VIP logo

Comments (7)

nfriedly avatar nfriedly commented on May 24, 2024 1

That's interesting, I didn't know about the change in convention.

(Sorry, I just realized that the rest of the reply didn't make any sense in the context of this module.)

from express-rate-limit.

tjallingt avatar tjallingt commented on May 24, 2024 1

Hey @nfriedly thanks for the quick reply, don't worry i understand you are bussy 😄

I might drop a quick pr for a start on v3 but I will mostly focus on removing complexity that I don't think is necessairy (such as the delay stuff)

When that is out we can start looking ahead at how to re-implement lacking functionality in ways that make the most sense.

from express-rate-limit.

nickzuber avatar nickzuber commented on May 24, 2024

For v3 should we consider deprecating headers named X-... and effectively remove the X from all the custom header names? It's the convention now:

SHOULD NOT prefix their parameter names with "X-" or similar constructs.

RFC 6648

Not a major issue or anything but if you're gonna upgrade to a new major version this could be something easy to add.

from express-rate-limit.

tjallingt avatar tjallingt commented on May 24, 2024

What is the status on this?
Especially the first point is of interest to me as i find it strange that the default behaviour of this middleware is to start delaying requests by one second after the first request, which I don't think is a common usecase for most users of a rate limit middleware 😕

from express-rate-limit.

nfriedly avatar nfriedly commented on May 24, 2024

Hey,

Things are kind of in maintenance mode right now. I changed jobs so I can no longer work on this during working hours, and I don't have a lot of time available outside of work.

I know a lot of people use this, so I basically accept most PRs that don't break backwards compatibility. Even for a v3 release, where it's OK to remove or break some features, I'd still like to keep compatibility with the existing stores that people have written.

If you're interested and available, I'd love some support with creating a v3 that made a little more sense. It wouldn't have to hit all of the above points, anything would be progress.

I just reworded the ticket to make a little more sense (and I removed the idea of dropping support for external stores - that wouldn't be a good idea at this point.)

from express-rate-limit.

ashraful-islam avatar ashraful-islam commented on May 24, 2024

@nfriedly

  • Make onLimitReached only fire once before an IP resets

That is literally just one additional if , may be set it for first-timer-only or something like that.

@tjallingt if you started the v3 branch, I could help with one or two checkboxes :)

from express-rate-limit.

nfriedly avatar nfriedly commented on May 24, 2024

It's done!

from express-rate-limit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.