react-cron-generator
Advanced tools
Comparing version 1.3.13 to 2.0.0
{ | ||
"name": "react-cron-generator", | ||
"version": "1.3.13", | ||
"version": "2.0.0", | ||
"description": "Simple react component to generate cron expression", | ||
@@ -19,3 +19,3 @@ "keywords": [ | ||
"dependencies": { | ||
"cronstrue": "^2.11.0" | ||
"cronstrue": "^2.12.0" | ||
}, | ||
@@ -32,22 +32,42 @@ "main": "dist/index.js", | ||
}, | ||
"peerDependencies": { | ||
"react": ">=16.8.0", | ||
"react-dom": ">=16.8.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.4.4", | ||
"@babel/core": "^7.4.4", | ||
"@babel/preset-react": "^7.0.0", | ||
"@babel/runtime": "^7.5.1", | ||
"react": "^16.8.6", | ||
"react-dom": "^16.8.6", | ||
"react-scripts": "^3.0.0" | ||
"@rollup/plugin-commonjs": "^22.0.2", | ||
"@rollup/plugin-json": "^4.1.0", | ||
"@rollup/plugin-node-resolve": "^14.1.0", | ||
"@testing-library/jest-dom": "^5.16.5", | ||
"@testing-library/react": "^13.4.0", | ||
"@testing-library/user-event": "^13.5.0", | ||
"@types/jest": "^27.5.2", | ||
"@types/node": "^16.11.59", | ||
"@types/react": "^18.0.20", | ||
"@types/react-dom": "^18.0.6", | ||
"postcss": "^8.4.16", | ||
"react-scripts": "5.0.1", | ||
"rollup": "^2.79.0", | ||
"rollup-plugin-peer-deps-external": "^2.2.4", | ||
"rollup-plugin-postcss": "^4.0.2", | ||
"rollup-plugin-typescript2": "^0.34.0", | ||
"sass": "^1.54.9", | ||
"typescript": "^4.8.3", | ||
"web-vitals": "^2.1.4" | ||
}, | ||
"homepage": "https://sojinantony01.github.io/react-cron-generator", | ||
"scripts": { | ||
"start": "react-scripts start", | ||
"build": "rm -rf dist && NODE_ENV=production babel src/lib --out-dir dist --copy-files --ignore __tests__,spec.js,test.js,__snapshots__", | ||
"build": "rm -rf build && rollup -c", | ||
"test": "react-scripts test", | ||
"eject": "react-scripts eject", | ||
"deploy": "gh-pages -d build", | ||
"react-build": "CI=false && react-scripts build" | ||
"react-build": "CI=false && react-scripts build", | ||
"prepublishOnly": "npm run build" | ||
}, | ||
"homepage": "https://sojinantony01.github.io/react-cron-generator", | ||
"eslintConfig": { | ||
"extends": "react-app" | ||
"extends": [ | ||
"react-app", | ||
"react-app/jest" | ||
] | ||
}, | ||
@@ -54,0 +74,0 @@ "license": "ISC", |
@@ -9,7 +9,3 @@ # react-cron-generator | ||
Make sure you have include bootstrap(4.x) in your project. | ||
For old bootstrap(3.x) version support, please use cron generator version "1.2.12" | ||
``` | ||
@@ -93,19 +89,8 @@ data = '* * * * * * *' | ||
## Ref | ||
Added `ref` to the component now you can access state and functions using ref. | ||
## Release notes 2.x.x | ||
1. Build Procedure updated | ||
2. Updated to latest react(18) | ||
3. Migrated to hooks and typescript | ||
add the new prop ` onRef={ref => (this.cronGen = ref)} ` | ||
``` | ||
<Cron | ||
onRef={ref => (this.cronGen = ref)} | ||
onChange={(e)=> {this.setState({value:e}); console.log(e)}} | ||
value={this.state.value} | ||
showResultText={true} | ||
showResultCron={true} | ||
/> | ||
``` | ||
[Sojin Antony](https://github.com/sojinantony01) | ||
@@ -112,0 +97,0 @@ |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
778671
7311
3
19
5
101
1
1
+ Addedjs-tokens@4.0.0(transitive)
+ Addedloose-envify@1.4.0(transitive)
+ Addedreact@18.3.1(transitive)
+ Addedreact-dom@18.3.1(transitive)
+ Addedscheduler@0.23.2(transitive)
Updatedcronstrue@^2.12.0