![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.
hmpo-stubber
Advanced tools
Create dynamic stub API services using a simple JSON configuration
const stubber = require('hmpo-stubber');
app.use('/stubs', stubber.middleware('./services.json', 'My Stub Server'));
stubber.middleware(services, [name], [basePath]); services: Array, // array of Service config objects (can be a filename, each service can be a filename) name: String(Stub), // name of stub server for debug logging basePath: String(./), // relative location when looking up filenames
hmpo-stubber [options] [services.json...]
-c, --config path::String Use configuration from this file
-p, --port Number Specify port to listen on - default: 3030
-m, --mount String Base path to mount mocks on - default: /
-s, --scenario String Specify the default scenario - default: default
-h, --help display help
{
port: Number(3030), // port number
mount: String('/'), // base URL to mount the standalone server
scenario: String(), // default scenario
stubs: Array, // array of service filenames or service lists,
}
{
name: String, // service name for debug logging
method: String(GET), // method to mount in the stub server
url: String, // url to mount in the stub server
scenarios: Object, // object of named Scenario config objects
(can be a filename, each scenario can be a filename)
defaultScenario:
String(default), // specify the default scenario
sessionID: { // locations to look for the session ID
header: String,
param: String,
body: String,
query: String
},
scenarioID: { // locations to look for the scenario ID
header: String,
param: String,
body: String,
query: String
}
}
{
responses: Array, // array of Response config objects to step through on each call
(can be a filename, each response can be a filename, each response can be a function)
loop: Boolean(false), // loop around the response list instead of staying on the last response
}
{
body: Object, // body to send as JSON
(can be a filename or a function)
status: Number(200), // status code to respond with
delay: Number(0), // delay before sending the response
(in milliseconds)
repeat: Number(1), // number of times to repeat this response
close: Boolean(false), // close the connection before sending a response
}
req: {
stub{
stubtub: Stub,
service: Service,
scenario: Scenario,
response: Response,
session: {
services: {
[service.name]: {
scenario: Scenario,
scenarioID: String,
scenarioParam: String
}
}
}
}
}
FAQs
Create dynamic stub API services using a simple JSON configuration
The npm package hmpo-stubber receives a total of 34 weekly downloads. As such, hmpo-stubber popularity was classified as not popular.
We found that hmpo-stubber 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.