react-telephone-input
Advanced tools
Comparing version 4.75.5 to 5.0.0
@@ -0,1 +1,3 @@ | ||
## 5.0.0 (2020-05-02) | ||
# Changelog | ||
@@ -2,0 +4,0 @@ |
{ | ||
"name": "react-telephone-input", | ||
"version": "4.75.5", | ||
"version": "5.0.0", | ||
"description": "React component for entering and validating international telephone numbers", | ||
"main": "lib/ReactTelephoneInput.js", | ||
"modules": "es/ReactTelephoneInput.js", | ||
"main": "dist/index.js", | ||
"module": "dist/react-telephone-input.esm.js", | ||
"typings": "dist/ReactTelephoneInput.d.ts", | ||
"files": [ | ||
"css", | ||
"es", | ||
"lib", | ||
"umd" | ||
"dist", | ||
"src" | ||
], | ||
"scripts": { | ||
"build": "nwb build-react-component --copy-files", | ||
"build": "tsdx build --entry ./src/ReactTelephoneInput.tsx ./src/withStyles.js", | ||
"clean": "nwb clean-module && npx nwb clean-demo", | ||
@@ -21,3 +21,6 @@ "start": "nwb serve-react-demo", | ||
"test:watch": "jest --watch", | ||
"deploy": "gh-pages -d demo/dist" | ||
"deploy": "gh-pages -d demo/dist", | ||
"release:major": "changelog -M && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md' && npm version major && git push origin && git push origin --tags", | ||
"release:minor": "changelog -m && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md' && npm version minor && git push origin && git push origin --tags", | ||
"release:patch": "changelog -p && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md' && npm version patch && git push origin && git push origin --tags" | ||
}, | ||
@@ -33,3 +36,2 @@ "husky": { | ||
"prettier --write", | ||
"git add", | ||
"npm run test -- --bail --passWithNoTests --findRelatedTests" | ||
@@ -68,2 +70,6 @@ ] | ||
"@testing-library/react": "^10.0.3", | ||
"@types/jest": "^25.2.1", | ||
"@typescript-eslint/eslint-plugin": "^2.30.0", | ||
"@typescript-eslint/parser": "^2.30.0", | ||
"awesome-typescript-loader": "^5.2.1", | ||
"babel-eslint": "^10.0.3", | ||
@@ -78,2 +84,3 @@ "babel-jest": "^25.5.1", | ||
"eslint-plugin-react": "^7.7.0", | ||
"generate-changelog": "^1.8.0", | ||
"gh-pages": "^2.2.0", | ||
@@ -87,5 +94,11 @@ "husky": "^4.2.3", | ||
"react-dom": "^16.13.1", | ||
"regenerator-runtime": "0.13.5" | ||
"regenerator-runtime": "0.13.5", | ||
"ts-jest": "^25.4.0", | ||
"tsdx": "^0.13.2", | ||
"typescript": "^3.8.3" | ||
}, | ||
"dependencies": { | ||
"@types/classnames": "^2.2.10", | ||
"@types/debounce": "^1.2.0", | ||
"@types/lodash.memoize": "^4.1.6", | ||
"classnames": "^2.1.2", | ||
@@ -92,0 +105,0 @@ "country-telephone-data": "0.6.2", |
@@ -6,2 +6,9 @@ # Reactjs Component for International Telephone Input | ||
_IMP_: From 5.\*, the withStyles file will not be bundled in dist. If you want | ||
to use the css, you can import the css file directly to your module - | ||
```JavaScript | ||
import 'react-telephone-input/css/default.css' | ||
``` | ||
_IMP_: From 3.\*, the styles won't be included by default. Can use `require('react-telephone-input/lib/withStyles')` to get the styles. | ||
@@ -197,2 +204,4 @@ | ||
### Contributing | ||
You can try the app by downloading everything and running the commands given below - | ||
@@ -207,2 +216,9 @@ | ||
### Running tests | ||
``` | ||
$ npm run test | ||
$ npm run test -- --watch # to run tests in watch mode | ||
``` | ||
[build-badge]: https://img.shields.io/travis/mukeshsoni/react-telephone-input/master.png?style=flat-square | ||
@@ -209,0 +225,0 @@ [build]: https://travis-ci.org/mukeshsoni/react-telephone-input |
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
244484
24
2928
225
1
12
31
1
1
+ Added@types/classnames@^2.2.10
+ Added@types/debounce@^1.2.0
+ Added@types/lodash.memoize@^4.1.6
+ Added@types/classnames@2.3.4(transitive)
+ Added@types/debounce@1.2.4(transitive)
+ Added@types/lodash@4.17.14(transitive)
+ Added@types/lodash.memoize@4.1.9(transitive)