![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.
A javascript library for periods manipulations.
The library contain 2 base objects to handle periods:
The library has been tested only on node.js
npm install jurassic
Add a period to Era, accept a period object as parameter, if the given parameter is not a period, the period will be created from the object
var jurassic = require('jurassic');
var era = new jurassic.Era();
var event1 = new jurassic.Period();
event1.dtstart = new Date(2014,0,1);
event1.dtend = new Date(2014,0,3);
era.addPeriod(event1);
era.addPeriod({
dtstart: new Date(2014,0,6),
dtend: new Date(2014,0,8)
});
The period can contain other properties such as icalendar properties
Remove a periods from era using dates only, if a period with the same dates exists in era, il will be removed. Accept a period object as parameter
Get a new era with all overlapping periods merged as single periods
Returns a new Era object whose value is the sum of the specified Era object and this instance.
Update the Era object with the difference between the specified Period object and this instance. Accept a period object as parameter
var jurassic = require('jurassic');
var era = new jurassic.Era();
era.addPeriod({
dtstart: new Date(2014,0,1),
dtend: new Date(2014,0,15)
});
var drill = new jurassic.Period();
drill.dtstart = new Date(2014,0,10);
drill.dtend = new Date(2014,0,11);
era.subtractPeriod(drill);
// here we have 2 periods, from 1 to 10 and from 11 to 15
Update the Era object with the difference between the specified Era object and this instance.
Get the intesection of the era with a period. Accept a period object as parameter. This method return an Era object (a list of periods) the properties from the periods stored in the era object will be retained in the new periods produced by this method.
Get the intesection of the specified Era object and this instance. This method return an Era object (a list of periods)
A period can contain any property, only dtstart and dtend are mandatory for the interaction with the library methods.
get the number of days in period with a precision of 0.5 days
FAQs
A javascript library for manipulating periods.
The npm package jurassic receives a total of 3 weekly downloads. As such, jurassic popularity was classified as not popular.
We found that jurassic 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.