![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.
@code4rena/botrace-utils
Advanced tools
Various utilities for Code4rena Bot Races
Node.js 18 or higher is required.
Install via npm: npm i -g @code4rena/botrace-utils
Or use npx to run the package directly: npx @code4rena/botrace-utils --help
Once installed the c4bru
command will be available. See c4bru --help
for full usage.
JSON validation
To validate a local file named report.json
:
c4bru validate ./report.json
By default, this uses the currently recommended schema version. See the --help
docs for how to change the target schema.
Markdown Rendering You can generate Markdown from your JSON report as it will be rendered for Github.
Note: Prior to generating the markdown the JSON report will be run through validation.
c4bru ./report.json > report.md
JSON validation
import {
defaultVersion,
schemas,
validateReport,
} from "@code4rena/botrace-utils";
const validate = (reportJson) => {
// Automatically use the default schema
return validateReport(reportJson);
// Or a specific version
return validateReport(reportJson, schemas[defaultVersion]);
return validateReport(reportJson, schemas["0.2.0"]);
};
Markdown Rendering Note: the api does not validate before rendering, it's recommended you run validation prior to rendering
import {
renderReport,
} from "@code4rena/botrace-utils";
const toMarkdown = (reportJson, winningBotName) => {
return renderReport(reportJson);
// Optionally pass a bot name to include the winning report messaging
return renderReport(reportJson, winningBotName);
};
FAQs
Various utilities for Code4rena Bot Races
The npm package @code4rena/botrace-utils receives a total of 160 weekly downloads. As such, @code4rena/botrace-utils popularity was classified as not popular.
We found that @code4rena/botrace-utils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 13 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.