![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.
@moveyourdigital/router
Advanced tools
Unlike traditional routers that only match the path and method, RegexRouter allows to match any part of the HTTP request message, which includes headers, method, path, URL and query parameters, enabling customized and dynamic routing logic.
Notice: currently available in beta; avoid using in production.
Match Any Part of the Request: Goes beyond the basics of path and method matching: routes can be regex-based on headers, query strings, cookies, and more.
Flexible: Provides and allows extension with middlewares and uses standard Web API syntax.
Easy to Use: Plugin to any environment. It support's node.js, browser, edge, workers, etc.
High Performance: Being small and straighforward, it is optimized for speed and efficiency to handle high traffic loads without compromising on routing capabilities.
Install RegexRouter via npm:
npm install @moveyourdigital/router
import { createServer } from "http"
import { bind } from "@moveyourdigital/router/node"
import { Router } from "@moveyourdigital/router"
import { auth, logger, notFound, throwable } from "@moveyourdigital/router"
const router = new Router()
.add(/.*/, logger(), throwable(), notFound())
.add(/^POST/, () => new Response())
.add(/^GET \/private\s/, auth({ secret: 'test' }), () => new Response())
.add(/^GET \/(.*\n)+user-agent: (?<agent>.*)/i, (req, ctx) => {
return Response.json(`Hello ${ctx.params?.get('agent')}`, {
status: 201
})
})
bind(createServer, router).listen(3001) // bind for Node JS createServer
To watch for changes in src
directory.
npm start
To bundle for production
npm run build
Unit tests are located in
npm t
This project is open to contributions. Feel free to discuss in Issues any implementation details first.
FAQs
Allows to match any part of the HTTP request message
The npm package @moveyourdigital/router receives a total of 4 weekly downloads. As such, @moveyourdigital/router popularity was classified as not popular.
We found that @moveyourdigital/router demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.