![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.
@curium.rocks/json-chronicler
Advanced tools
Persists objects in JSON format to rolling archive files
This library facilitates saving records to local files in JSON format. It will append a record to a json file and honor chronological rotation settings.
npm install --save @curium.rocks/json-chronicler
import {JsonChroniclerOptions} from "@curium.rocks/json-chronicler";
const logOptions: JsonChroniclerOptions = {
name: "yourLoggerName", // used for prefixing the log files
logDirectory: "./logs", // path to your log directory
rotationSettings: {
days: 7,
hours: 1,
minutes: 5,
milliseconds: 750
} // sums all the properties and will rotate the logs on that interval
}
import {JsonChronicler} from "@curium.rocks/json-chronicler";
import {IChronicler} from "@curium.rocks/data-emitter-base";
const chronciler: IChronicler = new JsonChronicler(logOptions);
await chronciler.saveRecord({
toJSON: () => {
return {
property1: 0.123,
property2: "blue"
}
}
})
import {IJsonSerializable} from "@curium.rocks/data-emitter-base";
/**
* Example implementation of a model that could be directly passed to
* a chronicler
*/
export class Model implements IJsonSerializable {
private hidden = "will not be saved";
private property1 = 0.123;
private property2 = "blue";
/**
* Provide a map with the desired names and values
* @return {Record<string, unknown>} map that will be serialized
*/
toJSON(): Record<string, unknown> {
return {
desiredSavedPropName1: this.property1,
desiredSavedPropName2: this.property2
};
}
}
FAQs
Persists objects in JSON format to rolling archive files
We found that @curium.rocks/json-chronicler 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.