![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.
geddy-hotswapper
Advanced tools
Track changes in JavaScript files and reload them automatically without need to restart Geddy
A small utility that tracks changes in JavaScript modules and reloads them automatically without the need to restart Geddy.
(This will also let you debug Geddy easily with WebStorm.)
Intended only for development. Do not use on production systems.
Note: Experimental. Use at your own risk.
The purpose of this package is to minimize the need to restart Geddy while developing. The focus is in allowing small fixes to be made quickly, with the understanding that massive changes will still require restarting Geddy.
The package does not attempt to preserve any data between reloads. The principle here is the assumption that processing a HTTP request is a containable event with little effect on other HTTP requests. If that's not the case for your application, this package may not be good for you.
npm install geddy
npm install geddy-hotswapper
Make a simple modification to your local copy of Geddy(!) to expose the application:
In this.start
function of node_modules/geddy/lib/geddy.js
, add the following
lines below app.init()
call.
if( geddy.config.debug === true ) {
geddy.app = app;
}
Instead of launching Geddy with geddy
, create a launch script which starts
Geddy and initializes Hot Swapper for Geddy. This file should be placed in the
root directory of your application.
Something along the lines of:
#!/usr/bin/env node
var HotSwapper = require( 'geddy-hotswapper' );
var hotSwapper = new HotSwapper();
// Ignore changes in node modules
hotSwapper.exclude( new RegExp( 'node_modules' ) );
// Ignore changes in the launcher script
hotSwapper.exclude( new RegExp( 'app-debug.js' ) );
// Start watching for changes in files
hotSwapper.start();
// Start Geddy
var geddy = require('geddy');
var geddyOpts = {
environment: process.env.GEDDY_ENVIRONMENT || 'development'
};
geddy.start( geddyOpts );
// React to changes in files by reloading Geddy
hotSwapper.on( 'swapped',
function( filename )
{
var config = require( 'geddy/lib/config' );
geddy.config = config.readConfig( geddyOpts );
geddy.worker.config = geddy.config;
hotSwapper.clear( require.resolve( './config/router' ) );
var geddyInit = require( 'geddy/lib/init' );
geddyInit.init( geddy.app, function() { console.log( 'Matrix reloaded' ); } );
}
);
If you want to set up WebStorm, create a Node.js Run/Debug Configuration with the following settings.
Node interpreter | Point to node.exe |
Node parameters | Empty |
Working Directory | Your application's root directory |
JavaScript File | The launch file you just created |
Application Parameters | As you see fit |
Environment variables | As you see fit |
Tested on Windows, Node 0.10.22, and Geddy 0.11.8.
debug = true
.geddy.startCluster()
.FAQs
Track changes in JavaScript files and reload them automatically without need to restart Geddy
The npm package geddy-hotswapper receives a total of 0 weekly downloads. As such, geddy-hotswapper popularity was classified as not popular.
We found that geddy-hotswapper 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.