![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.
angel.js is a simple library to gracefully restart multi process net.Servers
eg/app.js:
var http = require('http');
var server = http.Server(function(req, res) {
res.writeHead(200);
var tick = 0;
setInterval( function() {
res.write( "worker["+process.pid+"] "+ (++tick) +"\n" );
}, 1000 );
});
module.exports = server;
eg/server.js:
var angel = require('../angel')
, app = require('./app');
angel( app, {
port: 3000, // or unix domain socket. path: "/tmp/socket"
workers: 4,
pidfile: 'angel.pid',
refresh_modules_regexp: 'eg/app\\.js$', // match against require.cache keys
interval: 1, // between new workers' start and old workers' close, in seconds
max_requests_per_child: 1000 // worker dies and a new worker spawns after processing x number of requests
});
will output something like:
% node eg/server.js
master[20363] created pid_file: angel.pid
master[20363] master will fork 4 workers
master[20363] forked worker[20364]
master[20363] forked worker[20365]
master[20363] forked worker[20366]
master[20363] forked worker[20367]
worker[20365] launched
worker[20365] listening on 3000
worker[20364] launched
worker[20364] listening on 3000
worker[20366] launched
worker[20366] listening on 3000
worker[20367] launched
worker[20367] listening on 3000
to graceful restart:
kill -HUP `cat angel.pid`
after HUP you'll have stdout:
master[20363] SIGHUP
master[20363] reloaded /path/to/eg/app.js
master[20363] forked worker[20370]
master[20363] forked worker[20371]
master[20363] forked worker[20372]
master[20363] forked worker[20373]
worker[20372] launched
worker[20370] launched
worker[20372] listening on 3000
worker[20370] listening on 3000
worker[20371] launched
worker[20371] listening on 3000
worker[20373] launched
worker[20373] listening on 3000
worker[20364] closes
worker[20365] closes
master[20363] worker 20364 died
master[20363] worker 20365 died
worker[20366] closes
master[20363] worker 20366 died
worker[20367] closes
master[20363] worker 20367 died
MIT License
FAQs
superdaemon for hot-deploying net.Servers
The npm package angel receives a total of 3 weekly downloads. As such, angel popularity was classified as not popular.
We found that angel 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.