![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
express-range-tracker
Advanced tools
Detects semantically correct usage of the range
header by firing the onDownloaded
event when all chunks related to the current ip are downloaded
const express = require("express");
const rangeTracker = require("express-range-tracker");
express()
.use(
rangeTracker({
timestampFunction: Date.now,
onDownloaded: (req, res, next) => {
/* ... */
},
})
)
.listen(3000);
timestampFunction
- Calculates datetime of range chunk request
storage
- an Object
that supports indexing, associative array. {}
by default
onDownloaded
- event that behaves as middleware
onDeadlineReached
- event that fires when maxDelay
exceeds timestamp window between the last and the new timestamps
allowedTraits
- array of functions that determine whitelist of range header behavior. true
if match, false
otherwise
interface Trait {
from: number;
to: number;
timestamp: number;
}
(previous: Trait, current: Trait) => boolean;
bannedTraits
- array of functions that determine blacklist of range header behavior. true
if match, false
otherwise
(previous: Trait, current: Trait) => boolean;
onSimilarTrait
- fires when another ips had the same range behavior as the current ip. The current ip will not be in the list
const track = rangeTracker({
storage,
onSimilarTrait: (ips) => {
console.log(ips.length);
},
});
onRobotic
- fires when range is malformed in some way:
malformed
- does not conform to range specdigits
- from
is bigger than to
in range segmentempty
- range header is present but length of string is 0absent
- request of content that should have range header but does not existnegative
- negative from or to range detectedonRobotic(req, reason);
onSimilarTimestamp
- function that fires on clients with same range request timestamp windows
onSimilarTimestamp(req, ips);
onRangeOverflow
- fires with either parts
or overflow
reason when segment count is larger than maxParts
or max
value is smaller than the biggest part of any segment, respectively
const track = rangeTracker({
storage,
maxParts: 3,
max: 50
onRangeOverflow: (req, reason) => {
console.log(reason);
},
});
npm test
FAQs
Detects bots by tracking the timings of range header
We found that express-range-tracker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.