-
Notifications
You must be signed in to change notification settings - Fork 40
Comparing changes
Open a pull request
base repository: upstash/ratelimit-js
base: v1.1.3
head repository: upstash/ratelimit-js
compare: main
Commits on Apr 25, 2024
-
Configuration menu - View commit details
-
Copy full SHA for fa5f9a9 - Browse repository at this point
Copy the full SHA fa5f9a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for d3a2e73 - Browse repository at this point
Copy the full SHA d3a2e73View commit details
Commits on Apr 29, 2024
-
Merge pull request #104 from upstash/dx-784-enrich-examples
Dx 784 enrich examples
Configuration menu - View commit details
-
Copy full SHA for 2f950cb - Browse repository at this point
Copy the full SHA 2f950cbView commit details
Commits on May 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c875452 - Browse repository at this point
Copy the full SHA c875452View commit details -
Configuration menu - View commit details
-
Copy full SHA for e46ff1a - Browse repository at this point
Copy the full SHA e46ff1aView commit details -
Configuration menu - View commit details
-
Copy full SHA for b2b1188 - Browse repository at this point
Copy the full SHA b2b1188View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b17ff3 - Browse repository at this point
Copy the full SHA 9b17ff3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6b7feaa - Browse repository at this point
Copy the full SHA 6b7feaaView commit details -
Configuration menu - View commit details
-
Copy full SHA for de3f1fb - Browse repository at this point
Copy the full SHA de3f1fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 80ea718 - Browse repository at this point
Copy the full SHA 80ea718View commit details
Commits on May 7, 2024
-
Merge pull request #105 from upstash/cf-pages-next-examples
Update Ratelimit Examples
Configuration menu - View commit details
-
Copy full SHA for a25b9cf - Browse repository at this point
Copy the full SHA a25b9cfView commit details
Commits on May 20, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 2b9bcb9 - Browse repository at this point
Copy the full SHA 2b9bcb9View commit details -
define script life cycle in redis
before this commit, we loaded scripts to redis in every cold start. This is not so desirable because the scripts in the redis cache stay there unless someone calls SCRIPT FLUSH. Hence, a life cycle is needed. How do we define a life cycle for a serverless environment? Random numbers. In each limit() invocation, we create a random number and flush the scripts if it is smaller than some frequency threshold. If a user makes a lot of requests, their scripts will get flushed eventually. This implementation however, has a hazard: serverless instance A can flush while instance B is still operating. We need a 'safeEvalsha' and we add exactly that in hash.ts.
Configuration menu - View commit details
-
Copy full SHA for 460eed5 - Browse repository at this point
Copy the full SHA 460eed5View commit details
Commits on May 21, 2024
-
Partially Revert "define script life cycle in redis"
This reverts commit 460eed5.
Configuration menu - View commit details
-
Copy full SHA for b967941 - Browse repository at this point
Copy the full SHA b967941View commit details
Commits on May 22, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 339be12 - Browse repository at this point
Copy the full SHA 339be12View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8b8b856 - Browse repository at this point
Copy the full SHA 8b8b856View commit details -
Configuration menu - View commit details
-
Copy full SHA for 62566a1 - Browse repository at this point
Copy the full SHA 62566a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for f7a4a2f - Browse repository at this point
Copy the full SHA f7a4a2fView commit details
Commits on May 23, 2024
-
Merge pull request #106 from upstash/dx-873-hash-scripts
Add lua script caching
Configuration menu - View commit details
-
Copy full SHA for 4e06c13 - Browse repository at this point
Copy the full SHA 4e06c13View commit details
Commits on May 26, 2024
-
use waitUntil in nextjs examples
until recently, there was no way of using waitUntil in vercel edge. vercel/next.js#50522 But now it is possible. Updating the nextjs and vercel-edge examples utilizing the waitUntil.
Configuration menu - View commit details
-
Copy full SHA for d213f89 - Browse repository at this point
Copy the full SHA d213f89View commit details
Commits on May 27, 2024
-
Merge pull request #107 from upstash/update-nextjs-examples-with-wait…
…Until use waitUntil in nextjs examples
Configuration menu - View commit details
-
Copy full SHA for 0985f1c - Browse repository at this point
Copy the full SHA 0985f1cView commit details
Commits on May 29, 2024
-
add reason field to limit response
can take timeout or cacheBlocked values depending on how the response was returned.
Configuration menu - View commit details
-
Copy full SHA for a695d0c - Browse repository at this point
Copy the full SHA a695d0cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 08b677f - Browse repository at this point
Copy the full SHA 08b677fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 99f91d2 - Browse repository at this point
Copy the full SHA 99f91d2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e5ec44 - Browse repository at this point
Copy the full SHA 8e5ec44View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9aa34e8 - Browse repository at this point
Copy the full SHA 9aa34e8View commit details
Commits on May 30, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d0e3ef0 - Browse repository at this point
Copy the full SHA d0e3ef0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2da6b27 - Browse repository at this point
Copy the full SHA 2da6b27View commit details -
Configuration menu - View commit details
-
Copy full SHA for 27cba5c - Browse repository at this point
Copy the full SHA 27cba5cView commit details -
Configuration menu - View commit details
-
Copy full SHA for f63ff6d - Browse repository at this point
Copy the full SHA f63ff6dView commit details -
Configuration menu - View commit details
-
Copy full SHA for a582c4a - Browse repository at this point
Copy the full SHA a582c4aView commit details -
Configuration menu - View commit details
-
Copy full SHA for f23b536 - Browse repository at this point
Copy the full SHA f23b536View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9af90de - Browse repository at this point
Copy the full SHA 9af90deView commit details
Commits on May 31, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 5262320 - Browse repository at this point
Copy the full SHA 5262320View commit details -
Configuration menu - View commit details
-
Copy full SHA for ac72232 - Browse repository at this point
Copy the full SHA ac72232View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0622c32 - Browse repository at this point
Copy the full SHA 0622c32View commit details
Commits on Jun 3, 2024
-
Merge pull request #109 from upstash/DX-960
Add Deny List Feature & Add Reasons to `limit` Response
Configuration menu - View commit details
-
Copy full SHA for 7e5e9e1 - Browse repository at this point
Copy the full SHA 7e5e9e1View commit details -
Configuration menu - View commit details
-
Copy full SHA for eaacbe1 - Browse repository at this point
Copy the full SHA eaacbe1View commit details
Commits on Jun 10, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ae41884 - Browse repository at this point
Copy the full SHA ae41884View commit details
Commits on Jun 12, 2024
-
Merge pull request #110 from upstash/DX-960
Add enable-protection example
Configuration menu - View commit details
-
Copy full SHA for 180bd70 - Browse repository at this point
Copy the full SHA 180bd70View commit details
Commits on Jun 13, 2024
-
feat: add ip deny lists to the sdk
in ip deny lists, we use an open source IP deny list aggregator as a source for blocking IP addresses automatically. We keep a status flag at redis to denote the state. When the feature is disabled, flag is set to disabled with no expiry date. Otherwise, it's either set to a value with some expiry or expired. We use these three states to define what we do: - disabled with no ttl: don't do anything. use list of all deny lists it as it is (with values entered by the user) - set with some ttl: don't do anything. use list of all deny lists it as it is (which includes user values and the ip list) - deleted: this means the ip list must be updated. The result is returned to the user and an async is process is attached to the pending field in our response Mind that the first two states are the same, but we differentiate them to explain what's going on.
Configuration menu - View commit details
-
Copy full SHA for 7a6ec72 - Browse repository at this point
Copy the full SHA 7a6ec72View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6dbecd2 - Browse repository at this point
Copy the full SHA 6dbecd2View commit details -
Configuration menu - View commit details
-
Copy full SHA for afb7250 - Browse repository at this point
Copy the full SHA afb7250View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ce8768 - Browse repository at this point
Copy the full SHA 9ce8768View commit details -
Configuration menu - View commit details
-
Copy full SHA for f1615a0 - Browse repository at this point
Copy the full SHA f1615a0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 290dd68 - Browse repository at this point
Copy the full SHA 290dd68View commit details -
Configuration menu - View commit details
-
Copy full SHA for ccb75c5 - Browse repository at this point
Copy the full SHA ccb75c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for e53f3c2 - Browse repository at this point
Copy the full SHA e53f3c2View commit details -
Configuration menu - View commit details
-
Copy full SHA for ea5fcc4 - Browse repository at this point
Copy the full SHA ea5fcc4View commit details -
Configuration menu - View commit details
-
Copy full SHA for db3a063 - Browse repository at this point
Copy the full SHA db3a063View commit details
There are no files selected for viewing
This file was deleted.
This file was deleted.