Comparing version 1.6.1 to 2.0.0
@@ -0,1 +1,12 @@ | ||
# v2.0.0 | ||
- Added a full JS API for library usage | ||
- Changed `--add-babel-plugin a --add-babel-plugin b` to `--babel-plugins a b` | ||
- Changed `--ignore a --ignore b` to `--ignore a b` | ||
- Changed `--files a --files b` to `--files a b` | ||
- Changed `jsx-info a b c` to `jsx-info --components a b c` | ||
- Changed `jsx-info` to `jsx-info --components "*"` | ||
- Running `jsx-info` with missing arguments now enters interactive mode | ||
- Removed the `--sort <...>` flag | ||
# v1.6.1 | ||
@@ -2,0 +13,0 @@ |
{ | ||
"name": "jsx-info", | ||
"version": "1.6.1", | ||
"version": "2.0.0", | ||
"description": "displays a report of JSX component and prop usage", | ||
"bin": "src/jsx-info.js", | ||
"main": "dist/src/api.js", | ||
"bin": "dist/src/jsx-info.js", | ||
"scripts": { | ||
"prepack": "rm -rf dist && tsc", | ||
"preversion": "npm test", | ||
"postversion": "git push && git push --tags && npm publish", | ||
"start": "node src/jsx-info.js", | ||
"start": "tsc --watch", | ||
"upgrade": "npm-check --update", | ||
"test": "eslint src && prettier --list-different \"src/**/*.js\"" | ||
"test": "eslint src --ext .js,.ts --format unix && prettier --check \"src/**/*.{js,ts}\"" | ||
}, | ||
@@ -25,18 +27,24 @@ "repository": { | ||
], | ||
"author": "Brian Mock <brian@mockbrian.com>", | ||
"author": "Brian Mock <brian@wavebeem.com>", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@babel/parser": "^7.4.3", | ||
"@babel/traverse": "^7.4.3", | ||
"chalk": "^2.4.2", | ||
"commander": "^2.20.0", | ||
"cosmiconfig": "^5.2.1", | ||
"globby": "^9.2.0", | ||
"ora": "^3.4.0" | ||
"@babel/parser": "^7.12.3", | ||
"@babel/traverse": "^7.12.1", | ||
"@types/babel__traverse": "^7.0.15", | ||
"@types/inquirer": "^7.3.1", | ||
"chalk": "^4.1.0", | ||
"commander": "^6.2.0", | ||
"cosmiconfig": "^7.0.0", | ||
"globby": "^11.0.1", | ||
"inquirer": "^7.3.3", | ||
"ora": "^5.1.0" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^5.16.0", | ||
"npm-check": "^5.9.0", | ||
"prettier": "^1.17.0" | ||
"@typescript-eslint/eslint-plugin": "^4.6.0", | ||
"@typescript-eslint/parser": "^4.6.0", | ||
"eslint": "^7.12.1", | ||
"npm-check": "^5.9.2", | ||
"prettier": "^2.1.2", | ||
"typescript": "^4.0.5" | ||
} | ||
} |
@@ -21,3 +21,3 @@ # jsx-info | ||
The intended workflow here is to run `jsx-info` and compare the data with your | ||
prop-types or TypeScript/Flow type definitions to find discrepencies. | ||
prop-types or TypeScript type definitions to find discrepencies. | ||
@@ -80,2 +80,16 @@ ## Installation | ||
## Documentation | ||
You can use `jsx-info` as a JS library. | ||
```js | ||
const { analyze } = require("jsx-info"); | ||
const analysis = await analyze({ | ||
/* Options */ | ||
}); | ||
``` | ||
Options and data structures are documented in [api.ts][]. | ||
## Note | ||
@@ -92,11 +106,2 @@ | ||
## Updates | ||
My hope is to update `jsx-info` based on community feedback. It is **NOT** | ||
available as a library to `require()` on npm, only as a command line program. | ||
The current text output format is **NOT** stable and should not be parsed by | ||
programs. If there is sufficient community interest, I may consider exposing the | ||
code as a JS library for more customized use cases (such as parsing non-standard | ||
syntax). | ||
## Contributions | ||
@@ -113,5 +118,5 @@ | ||
Copyright © [Brian Mock][] under the [MIT License][]. | ||
Copyright © [Brian Mock][] under the [MIT License][]. | ||
[brian mock]: https://mockbrian.com | ||
[brian mock]: https://www.wavebeem.com | ||
[demonstration]: https://youtu.be/e_vtfYJW9aM | ||
@@ -121,1 +126,2 @@ [code of conduct]: CODE_OF_CONDUCT.md | ||
[proposals]: https://tc39.github.io/process-document/ | ||
[api.ts]: src/api.ts |
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
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary 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
76547
27
1644
123
10
6
3
2
+ Added@types/inquirer@^7.3.1
+ Addedinquirer@^7.3.3
+ Added@nodelib/fs.scandir@2.1.5(transitive)
+ Added@nodelib/fs.stat@2.0.5(transitive)
+ Added@nodelib/fs.walk@1.2.8(transitive)
+ Added@types/babel__traverse@7.20.6(transitive)
+ Added@types/inquirer@7.3.3(transitive)
+ Added@types/parse-json@4.0.2(transitive)
+ Added@types/through@0.0.33(transitive)
+ Addedansi-escapes@4.3.2(transitive)
+ Addedansi-regex@5.0.1(transitive)
+ Addedansi-styles@4.3.0(transitive)
+ Addedarray-union@2.1.0(transitive)
+ Addedbase64-js@1.5.1(transitive)
+ Addedbl@4.1.0(transitive)
+ Addedbraces@3.0.3(transitive)
+ Addedbuffer@5.7.1(transitive)
+ Addedcallsites@3.1.0(transitive)
+ Addedchalk@4.1.2(transitive)
+ Addedchardet@0.7.0(transitive)
+ Addedcli-cursor@3.1.0(transitive)
+ Addedcli-width@3.0.0(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedcommander@6.2.1(transitive)
+ Addedcosmiconfig@7.1.0(transitive)
+ Addeddir-glob@3.0.1(transitive)
+ Addedemoji-regex@8.0.0(transitive)
+ Addedexternal-editor@3.1.0(transitive)
+ Addedfast-glob@3.3.2(transitive)
+ Addedfastq@1.17.1(transitive)
+ Addedfigures@3.2.0(transitive)
+ Addedfill-range@7.1.1(transitive)
+ Addedglob-parent@5.1.2(transitive)
+ Addedglobby@11.1.0(transitive)
+ Addedhas-flag@4.0.0(transitive)
+ Addediconv-lite@0.4.24(transitive)
+ Addedieee754@1.2.1(transitive)
+ Addedignore@5.3.2(transitive)
+ Addedimport-fresh@3.3.0(transitive)
+ Addedinquirer@7.3.3(transitive)
+ Addedis-fullwidth-code-point@3.0.0(transitive)
+ Addedis-interactive@1.0.0(transitive)
+ Addedis-number@7.0.0(transitive)
+ Addedis-unicode-supported@0.1.0(transitive)
+ Addedjson-parse-even-better-errors@2.3.1(transitive)
+ Addedlines-and-columns@1.2.4(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedlog-symbols@4.1.0(transitive)
+ Addedmicromatch@4.0.8(transitive)
+ Addedmimic-fn@2.1.0(transitive)
+ Addedmute-stream@0.0.8(transitive)
+ Addedonetime@5.1.2(transitive)
+ Addedora@5.4.1(transitive)
+ Addedos-tmpdir@1.0.2(transitive)
+ Addedparent-module@1.0.1(transitive)
+ Addedparse-json@5.2.0(transitive)
+ Addedpath-type@4.0.0(transitive)
+ Addedpicomatch@2.3.1(transitive)
+ Addedqueue-microtask@1.2.3(transitive)
+ Addedreadable-stream@3.6.2(transitive)
+ Addedresolve-from@4.0.0(transitive)
+ Addedrestore-cursor@3.1.0(transitive)
+ Addedreusify@1.0.4(transitive)
+ Addedrun-async@2.4.1(transitive)
+ Addedrun-parallel@1.2.0(transitive)
+ Addedrxjs@6.6.7(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedslash@3.0.0(transitive)
+ Addedstring-width@4.2.3(transitive)
+ Addedstring_decoder@1.3.0(transitive)
+ Addedstrip-ansi@6.0.1(transitive)
+ Addedsupports-color@7.2.0(transitive)
+ Addedthrough@2.3.8(transitive)
+ Addedtmp@0.0.33(transitive)
+ Addedto-regex-range@5.0.1(transitive)
+ Addedtslib@1.14.1(transitive)
+ Addedtype-fest@0.21.3(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedyaml@1.10.2(transitive)
- Removed@mrmlnc/readdir-enhanced@2.2.1(transitive)
- Removed@nodelib/fs.stat@1.1.3(transitive)
- Removed@types/glob@7.2.0(transitive)
- Removed@types/minimatch@5.1.2(transitive)
- Removedansi-regex@4.1.1(transitive)
- Removedargparse@1.0.10(transitive)
- Removedarr-diff@4.0.0(transitive)
- Removedarr-flatten@1.1.0(transitive)
- Removedarr-union@3.1.0(transitive)
- Removedarray-union@1.0.2(transitive)
- Removedarray-uniq@1.0.3(transitive)
- Removedarray-unique@0.3.2(transitive)
- Removedassign-symbols@1.0.0(transitive)
- Removedatob@2.1.2(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbase@0.11.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedbraces@2.3.2(transitive)
- Removedcache-base@1.0.1(transitive)
- Removedcall-me-maybe@1.0.2(transitive)
- Removedcaller-callsite@2.0.0(transitive)
- Removedcaller-path@2.0.0(transitive)
- Removedcallsites@2.0.0(transitive)
- Removedclass-utils@0.3.6(transitive)
- Removedcli-cursor@2.1.0(transitive)
- Removedcollection-visit@1.0.0(transitive)
- Removedcommander@2.20.3(transitive)
- Removedcomponent-emitter@1.3.1(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedcopy-descriptor@0.1.1(transitive)
- Removedcosmiconfig@5.2.1(transitive)
- Removeddebug@2.6.9(transitive)
- Removeddecode-uri-component@0.2.2(transitive)
- Removeddefine-property@0.2.51.0.02.0.2(transitive)
- Removeddir-glob@2.2.2(transitive)
- Removedesprima@4.0.1(transitive)
- Removedexpand-brackets@2.1.4(transitive)
- Removedextend-shallow@2.0.13.0.2(transitive)
- Removedextglob@2.0.4(transitive)
- Removedfast-glob@2.2.7(transitive)
- Removedfill-range@4.0.0(transitive)
- Removedfor-in@1.0.2(transitive)
- Removedfragment-cache@0.2.1(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedget-value@2.0.6(transitive)
- Removedglob@7.2.3(transitive)
- Removedglob-parent@3.1.0(transitive)
- Removedglob-to-regexp@0.3.0(transitive)
- Removedglobby@9.2.0(transitive)
- Removedhas-value@0.3.11.0.0(transitive)
- Removedhas-values@0.1.41.0.0(transitive)
- Removedhasown@2.0.2(transitive)
- Removedignore@4.0.6(transitive)
- Removedimport-fresh@2.0.0(transitive)
- Removedinflight@1.0.6(transitive)
- Removedis-accessor-descriptor@1.0.1(transitive)
- Removedis-buffer@1.1.6(transitive)
- Removedis-data-descriptor@1.0.1(transitive)
- Removedis-descriptor@0.1.71.0.3(transitive)
- Removedis-directory@0.3.1(transitive)
- Removedis-extendable@0.1.11.0.1(transitive)
- Removedis-glob@3.1.0(transitive)
- Removedis-number@3.0.0(transitive)
- Removedis-plain-object@2.0.4(transitive)
- Removedis-windows@1.0.2(transitive)
- Removedisarray@1.0.0(transitive)
- Removedisobject@2.1.03.0.1(transitive)
- Removedjs-yaml@3.14.1(transitive)
- Removedjson-parse-better-errors@1.0.2(transitive)
- Removedkind-of@3.2.24.0.06.0.3(transitive)
- Removedlog-symbols@2.2.0(transitive)
- Removedmap-cache@0.2.2(transitive)
- Removedmap-visit@1.0.0(transitive)
- Removedmicromatch@3.1.10(transitive)
- Removedmimic-fn@1.2.0(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedmixin-deep@1.3.2(transitive)
- Removedms@2.0.0(transitive)
- Removednanomatch@1.2.13(transitive)
- Removedobject-copy@0.1.0(transitive)
- Removedobject-visit@1.0.1(transitive)
- Removedobject.pick@1.3.0(transitive)
- Removedonce@1.4.0(transitive)
- Removedonetime@2.0.1(transitive)
- Removedora@3.4.0(transitive)
- Removedparse-json@4.0.0(transitive)
- Removedpascalcase@0.1.1(transitive)
- Removedpath-dirname@1.0.2(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedpath-type@3.0.0(transitive)
- Removedpify@3.0.04.0.1(transitive)
- Removedposix-character-classes@0.1.1(transitive)
- Removedregex-not@1.0.2(transitive)
- Removedrepeat-element@1.1.4(transitive)
- Removedrepeat-string@1.6.1(transitive)
- Removedresolve-from@3.0.0(transitive)
- Removedresolve-url@0.2.1(transitive)
- Removedrestore-cursor@2.0.0(transitive)
- Removedret@0.1.15(transitive)
- Removedsafe-regex@1.1.0(transitive)
- Removedset-value@2.0.1(transitive)
- Removedslash@2.0.0(transitive)
- Removedsnapdragon@0.8.2(transitive)
- Removedsnapdragon-node@2.1.1(transitive)
- Removedsnapdragon-util@3.0.1(transitive)
- Removedsource-map@0.5.7(transitive)
- Removedsource-map-resolve@0.5.3(transitive)
- Removedsource-map-url@0.4.1(transitive)
- Removedsplit-string@3.1.0(transitive)
- Removedsprintf-js@1.0.3(transitive)
- Removedstatic-extend@0.1.2(transitive)
- Removedstrip-ansi@5.2.0(transitive)
- Removedto-object-path@0.3.0(transitive)
- Removedto-regex@3.0.2(transitive)
- Removedto-regex-range@2.1.1(transitive)
- Removedunion-value@1.0.1(transitive)
- Removedunset-value@1.0.0(transitive)
- Removedurix@0.1.0(transitive)
- Removeduse@3.1.1(transitive)
- Removedwrappy@1.0.2(transitive)
Updated@babel/parser@^7.12.3
Updated@babel/traverse@^7.12.1
Updatedchalk@^4.1.0
Updatedcommander@^6.2.0
Updatedcosmiconfig@^7.0.0
Updatedglobby@^11.0.1
Updatedora@^5.1.0