indicative
Advanced tools
Comparing version 5.0.8 to 6.0.0
326
CHANGELOG.md
@@ -1,16 +0,12 @@ | ||
<a name="5.0.8"></a> | ||
## [5.0.8](https://github.com/poppinss/indicative/compare/v5.0.7...v5.0.8) (2018-08-15) | ||
# Change Log | ||
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
# [6.0.0](http://github.com/poppinss/indicative/tree/master/packages/indicative/compare/v5.0.8...v6.0.0) (2019-03-29) | ||
<a name="5.0.7"></a> | ||
## [5.0.7](https://github.com/poppinss/indicative/compare/v5.0.5...v5.0.7) (2018-08-15) | ||
### Bug Fixes | ||
* **number:** cast value to number when strict is true ([5a2b8f2](https://github.com/poppinss/indicative/commit/5a2b8f2)), closes [#178](https://github.com/poppinss/indicative/issues/178) | ||
* **range:** add null and non-numbers check ([ee320f3](https://github.com/poppinss/indicative/commit/ee320f3)), closes [#184](https://github.com/poppinss/indicative/issues/184) | ||
* **striptags:** compile striptags module via babel ([40af075](https://github.com/poppinss/indicative/commit/40af075)), closes [#177](https://github.com/poppinss/indicative/issues/177) [#194](https://github.com/poppinss/indicative/issues/194) | ||
* **validations:** cast value to number for integer & number validations ([f651f9a](https://github.com/poppinss/indicative/commit/f651f9a)), closes [#178](https://github.com/poppinss/indicative/issues/178) | ||
* **indicative:** broken package.json file ([a887131](http://github.com/poppinss/indicative/tree/master/packages/indicative/commit/a887131)) | ||
@@ -20,311 +16,3 @@ | ||
* **raw:** allow raw validations to be extended ([5138106](https://github.com/poppinss/indicative/commit/5138106)) | ||
* **trim:** add trim sanitization ([aa9f0ba](https://github.com/poppinss/indicative/commit/aa9f0ba)) | ||
* **validations:** validate arrays with min&max rules ([9a7860f](https://github.com/poppinss/indicative/commit/9a7860f)) | ||
<a name="5.0.6"></a> | ||
## [5.0.6](https://github.com/poppinss/indicative/compare/v5.0.5...v5.0.6) (2018-07-18) | ||
### Bug Fixes | ||
* **number:** cast value to number when strict is true ([34e67cd](https://github.com/poppinss/indicative/commit/34e67cd)), closes [#178](https://github.com/poppinss/indicative/issues/178) | ||
* **range:** add null and non-numbers check ([4888887](https://github.com/poppinss/indicative/commit/4888887)), closes [#184](https://github.com/poppinss/indicative/issues/184) | ||
* **striptags:** compile striptags module via babel ([04035e5](https://github.com/poppinss/indicative/commit/04035e5)), closes [#177](https://github.com/poppinss/indicative/issues/177) [#194](https://github.com/poppinss/indicative/issues/194) | ||
* **validations:** cast value to number for integer & number validations ([35b5ee7](https://github.com/poppinss/indicative/commit/35b5ee7)), closes [#178](https://github.com/poppinss/indicative/issues/178) | ||
### Features | ||
* **raw:** allow raw validations to be extended ([d8dfde0](https://github.com/poppinss/indicative/commit/d8dfde0)) | ||
* **trim:** add trim sanitization ([80c0cb9](https://github.com/poppinss/indicative/commit/80c0cb9)) | ||
* **validations:** validate arrays with min&max rules ([5bbb828](https://github.com/poppinss/indicative/commit/5bbb828)) | ||
<a name="5.0.5"></a> | ||
## [5.0.5](https://github.com/poppinss/indicative/compare/v5.0.4...v5.0.5) (2018-02-08) | ||
### Bug Fixes | ||
* **messages:** allow snake_case rule name in custom messages ([d5ee3cb](https://github.com/poppinss/indicative/commit/d5ee3cb)) | ||
<a name="5.0.4"></a> | ||
## [5.0.4](https://github.com/poppinss/indicative/compare/v5.0.3...v5.0.4) (2018-02-07) | ||
### Bug Fixes | ||
* **builds:** remove module build ([e1fabd2](https://github.com/poppinss/indicative/commit/e1fabd2)) | ||
<a name="5.0.3"></a> | ||
## [5.0.3](https://github.com/poppinss/indicative/compare/v5.0.2...v5.0.3) (2018-02-07) | ||
### Bug Fixes | ||
* **formatter:** jsonapi formatter return null in case no errors ([69a8e10](https://github.com/poppinss/indicative/commit/69a8e10)) | ||
* **validator:** handle array expressions properly ([6201721](https://github.com/poppinss/indicative/commit/6201721)), closes [#165](https://github.com/poppinss/indicative/issues/165) | ||
### Features | ||
* **build:** generate es module for tree-shaking ([c80feea](https://github.com/poppinss/indicative/commit/c80feea)), closes [#168](https://github.com/poppinss/indicative/issues/168) | ||
<a name="5.0.2"></a> | ||
## [5.0.2](https://github.com/poppinss/indicative/compare/v5.0.1...v5.0.2) (2018-01-28) | ||
<a name="5.0.1"></a> | ||
## [5.0.1](https://github.com/poppinss/indicative/compare/v5.0.0...v5.0.1) (2018-01-28) | ||
### Bug Fixes | ||
* **validator:** checks for errors length when it's an array ([5119ea9](https://github.com/poppinss/indicative/commit/5119ea9)) | ||
<a name="5.0.0"></a> | ||
# [5.0.0](https://github.com/poppinss/indicative/compare/v4.0.4...v5.0.0) (2018-01-28) | ||
### Bug Fixes | ||
* **formatters:** fix jsonapi formatter to return errors in right format ([eb74497](https://github.com/poppinss/indicative/commit/eb74497)) | ||
### Features | ||
* **formatter:** now receives additional args argument ([8826d27](https://github.com/poppinss/indicative/commit/8826d27)) | ||
### BREAKING CHANGES | ||
* **formatters:** Instead of returning an array, an object with key `error` is returned containing an | ||
array of errors | ||
<a name="4.0.4"></a> | ||
## [4.0.4](https://github.com/poppinss/indicative/compare/v4.0.3...v4.0.4) (2018-01-12) | ||
### Bug Fixes | ||
* **main:** allows validations & sanitizor to be extend ([55158cd](https://github.com/poppinss/indicative/commit/55158cd)) | ||
<a name="4.0.3"></a> | ||
## [4.0.3](https://github.com/poppinss/indicative/compare/v4.0.2...v4.0.3) (2017-12-27) | ||
<a name="4.0.2"></a> | ||
## [4.0.2](https://github.com/poppinss/indicative/compare/v4.0.1...v4.0.2) (2017-12-27) | ||
### Bug Fixes | ||
* **dateFormat:** handle timezones carefully ([c5dcb19](https://github.com/poppinss/indicative/commit/c5dcb19)), closes [#160](https://github.com/poppinss/indicative/issues/160) | ||
* **package:** add missing dependency to generate docs ([9a4653e](https://github.com/poppinss/indicative/commit/9a4653e)) | ||
### Features | ||
* **sanitizations:** add escape and stripLinks sanitizations ([8c03548](https://github.com/poppinss/indicative/commit/8c03548)) | ||
<a name="4.0.1"></a> | ||
## [4.0.1](https://github.com/poppinss/indicative/compare/v4.0.0...v4.0.1) (2017-12-26) | ||
### Bug Fixes | ||
* **package:** remove bin section ([d3daef8](https://github.com/poppinss/indicative/commit/d3daef8)) | ||
<a name="4.0.0"></a> | ||
# [4.0.0](https://github.com/poppinss/indicative/compare/v3.0.6...v4.0.0) (2017-12-26) | ||
### Features | ||
* initial build for browser ([931442f](https://github.com/poppinss/indicative/commit/931442f)) | ||
* **browser:** working state for browsers build ([9fde38c](https://github.com/poppinss/indicative/commit/9fde38c)) | ||
* **builds:** bundle rule and configure fn ([1f808e2](https://github.com/poppinss/indicative/commit/1f808e2)) | ||
* **formatters:** add JsonApi formatter ([4705fbb](https://github.com/poppinss/indicative/commit/4705fbb)) | ||
* **validation:** add number validation ([c266160](https://github.com/poppinss/indicative/commit/c266160)) | ||
<a name="3.0.6"></a> | ||
## [3.0.6](https://github.com/poppinss/indicative/compare/v3.0.5...v3.0.6) (2017-11-17) | ||
### Features | ||
* **formatter:** allow registering a default formatter ([50fe027](https://github.com/poppinss/indicative/commit/50fe027)) | ||
<a name="3.0.5"></a> | ||
## [3.0.5](https://github.com/poppinss/indicative/compare/v3.0.4...v3.0.5) (2017-11-17) | ||
### Bug Fixes | ||
* **validator:** fix promises concurrency bug with engine ([6159327](https://github.com/poppinss/indicative/commit/6159327)) | ||
<a name="3.0.4"></a> | ||
## [3.0.4](https://github.com/poppinss/indicative/compare/v3.0.3...v3.0.4) (2017-11-17) | ||
### Features | ||
* **formatters:** add support for formatters ([7f332f8](https://github.com/poppinss/indicative/commit/7f332f8)) | ||
* **sanitization:** use [@slynova](https://github.com/slynova)/slug to slugify ([#155](https://github.com/poppinss/indicative/issues/155)) ([78a8b36](https://github.com/poppinss/indicative/commit/78a8b36)) | ||
<a name="3.0.3"></a> | ||
## [3.0.3](https://github.com/poppinss/indicative/compare/v3.0.2...v3.0.3) (2017-10-29) | ||
### Bug Fixes | ||
* **sanitization:** only sanitize fields available in data object ([d910165](https://github.com/poppinss/indicative/commit/d910165)), closes [#150](https://github.com/poppinss/indicative/issues/150) | ||
<a name="3.0.2"></a> | ||
## [3.0.2](https://github.com/poppinss/indicative/compare/v3.0.1...v3.0.2) (2017-10-29) | ||
### Bug Fixes | ||
* **raw:** fix where `function` keyword was used as property ([c8c47a2](https://github.com/poppinss/indicative/commit/c8c47a2)) | ||
<a name="3.0.1"></a> | ||
## [3.0.1](https://github.com/poppinss/indicative/compare/v3.0.0...v3.0.1) (2017-10-29) | ||
<a name="3.0.0"></a> | ||
# [3.0.0](https://github.com/poppinss/indicative/compare/v2.2.1...v3.0.0) (2017-08-19) | ||
### Bug Fixes | ||
* **rules:** work with short urls ([e9fa432](https://github.com/poppinss/indicative/commit/e9fa432)) | ||
* **sanitization:** make 2nd arg optional ([4bb95ec](https://github.com/poppinss/indicative/commit/4bb95ec)), closes [#88](https://github.com/poppinss/indicative/issues/88) | ||
* **validateAll:** return all validation errors ([a76f146](https://github.com/poppinss/indicative/commit/a76f146)), closes [#100](https://github.com/poppinss/indicative/issues/100) | ||
### Features | ||
* **rule:** add a new way to define rules ([26468ac](https://github.com/poppinss/indicative/commit/26468ac)) | ||
* **typescript:** add tsd ([ccbb8fc](https://github.com/poppinss/indicative/commit/ccbb8fc)) | ||
<a name="2.2.1"></a> | ||
## [2.2.1](https://github.com/poppinss/indicative/compare/v2.2.0...v2.2.1) (2016-10-11) | ||
### Bug Fixes | ||
* **validator:** convert message field to snake_case ([cae5884](https://github.com/poppinss/indicative/commit/cae5884)), closes [#76](https://github.com/poppinss/indicative/issues/76) | ||
<a name="2.2.0"></a> | ||
# [2.2.0](https://github.com/poppinss/indicative/compare/v2.1.0...v2.2.0) (2016-09-23) | ||
### Bug Fixes | ||
* **rules:equals:** perform loose comparison ([73007b1](https://github.com/poppinss/indicative/commit/73007b1)), closes [#69](https://github.com/poppinss/indicative/issues/69) | ||
* **validator:** fix custom message typo error ([19ec186](https://github.com/poppinss/indicative/commit/19ec186)) | ||
* **validator:extend:** make sure to set the extended rule message ([2f1054c](https://github.com/poppinss/indicative/commit/2f1054c)) | ||
### Features | ||
* **modes:** add strict mode ([ac07f38](https://github.com/poppinss/indicative/commit/ac07f38)), closes [#72](https://github.com/poppinss/indicative/issues/72) | ||
* **raw:** allow 63 characters long TLD in email ([bd90485](https://github.com/poppinss/indicative/commit/bd90485)) | ||
* **rule:** add string validation rule ([b0ee84a](https://github.com/poppinss/indicative/commit/b0ee84a)) | ||
<a name="2.1.2"></a> | ||
## [2.1.2](https://github.com/poppinss/indicative/compare/v2.1.0...v2.1.2) (2016-06-18) | ||
### Bug Fixes | ||
* **validator:** fix custom message typo error([19ec186](https://github.com/poppinss/indicative/commit/19ec186)) | ||
* **validator:extend:** make sure to set the extended rule message([2f1054c](https://github.com/poppinss/indicative/commit/2f1054c)) | ||
<a name="2.1.1"></a> | ||
## [2.1.1](https://github.com/poppinss/indicative/compare/v2.1.0...v2.1.1) (2016-06-11) | ||
### Bug Fixes | ||
* **validator:extend:** make sure to set the extended rule message([2f1054c](https://github.com/poppinss/indicative/commit/2f1054c)) | ||
<a name="2.0.6"></a> | ||
## 2.0.6 (2016-02-15) | ||
### Bug Fixes | ||
* **validator:** Allow emails with address extension, e.g. foo+baz@bar.com ([125fe9f](https://github.com/poppinss/indicative/commit/125fe9f)) | ||
<a name="2.0.5"></a> | ||
## 2.0.5 (2016-01-21) | ||
### Bug Fixes | ||
* **exported-tests:** removed unwanted exported tests ([16288bf](https://github.com/poppinss/indicative/commit/16288bf)) | ||
### Features | ||
* **package:** added commitizen ([c8c319d](https://github.com/poppinss/indicative/commit/c8c319d)) | ||
* **sanitizaor:** Added extend method to add sanitization filters ([dc11f5a](https://github.com/poppinss/indicative/commit/dc11f5a)) | ||
* **sanitizations:** Added support for sanitizations ([ee33244](https://github.com/poppinss/indicative/commit/ee33244)) | ||
<a name="2.0.4"></a> | ||
## 2.0.4 (2016-01-21) | ||
### Features | ||
* **package:** added commitizen ([c8c319d](https://github.com/poppinss/indicative/commit/c8c319d)) | ||
* **sanitizaor:** Added extend method to add sanitization filters ([dc11f5a](https://github.com/poppinss/indicative/commit/dc11f5a)) | ||
* **sanitizations:** Added support for sanitizations ([ee33244](https://github.com/poppinss/indicative/commit/ee33244)) | ||
* **indicative:** export global validator ([ee7802c](http://github.com/poppinss/indicative/tree/master/packages/indicative/commit/ee7802c)) | ||
* **indicative:** initiate validator ([80a6712](http://github.com/poppinss/indicative/tree/master/packages/indicative/commit/80a6712)) |
122
package.json
{ | ||
"name": "indicative", | ||
"version": "5.0.8", | ||
"description": "Concise data validation library for Node.js and browsers", | ||
"main": "builds/main.js", | ||
"version": "6.0.0", | ||
"description": "Simple yet powerful data validation library for Nodejs", | ||
"main": "build/index.js", | ||
"files": [ | ||
"builds" | ||
"build/src", | ||
"build/index.js", | ||
"build/index.d.ts" | ||
], | ||
"scripts": { | ||
"mrm": "mrm --preset @adonisjs/mrm-preset", | ||
"lint": "standard src/**/*.js test/**/*.js", | ||
"build": "rollup -c", | ||
"prepublishOnly": "npm run build", | ||
"docs": "node bin/inlineDocs && cd static && chul build", | ||
"docs:serve": "node bin/inlineDocs && cd static && chul serve", | ||
"pretest": "npm run lint", | ||
"test:node": "japa", | ||
"test:karma": "karma start", | ||
"test:qunit": "node bin/qunit", | ||
"test:all": "npm run test:node && npm run test:karma && npm run test:qunit", | ||
"test": "node bin/test" | ||
"test": "nyc node japaFile.js", | ||
"lint": "tslint --project tsconfig.json", | ||
"clean": "del build", | ||
"compile": "npm run lint && npm run clean && tsc", | ||
"build": "npm run compile", | ||
"coverage": "nyc report --reporter=text-lcov | coveralls" | ||
}, | ||
"keywords": [ | ||
"utils", | ||
"indicative" | ||
], | ||
"author": "virk", | ||
"homepage": "https://indicative.adonisjs.com", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/poppinss/indicative/tree/master/packages/indicative.git" | ||
}, | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@adonisjs/mrm-preset": "^1.0.10", | ||
"@slynova/slug": "^1.1.2", | ||
"babel-core": "^6.26.3", | ||
"babel-plugin-external-helpers": "^6.22.0", | ||
"babel-preset-env": "^1.7.0", | ||
"chalk": "^2.4.1", | ||
"chul": "^1.0.3", | ||
"clone": "^2.1.2", | ||
"cz-conventional-changelog": "^2.1.0", | ||
"date-fns": "^1.29.0", | ||
"fs-extra": "^7.0.0", | ||
"got": "^9.0.0", | ||
"haye": "^2.0.2", | ||
"japa": "^1.0.6", | ||
"japa-cli": "^1.0.1", | ||
"karma": "^3.0.0", | ||
"karma-chrome-launcher": "^2.2.0", | ||
"karma-japa": "^1.0.2", | ||
"karma-rollup-preprocessor": "^6.0.1", | ||
"klaw": "^3.0.0", | ||
"mrm": "^1.2.1", | ||
"nyc": "^12.0.2", | ||
"opn": "^5.3.0", | ||
"pluralize": "^7.0.0", | ||
"pope": "^2.0.2", | ||
"promise-polyfill": "^8.1.0", | ||
"regenerator-runtime": "^0.12.1", | ||
"rollup": "^0.64.1", | ||
"rollup-plugin-babel": "^3.0.7", | ||
"rollup-plugin-commonjs": "^9.1.5", | ||
"rollup-plugin-node-resolve": "^3.3.0", | ||
"rollup-plugin-replace": "^2.0.0", | ||
"rollup-plugin-uglify": "^4.0.0", | ||
"standard": "^11.0.1", | ||
"striptags": "^3.1.1", | ||
"uglify-es": "^3.3.9", | ||
"validator": "^10.5.0" | ||
"nyc": { | ||
"exclude": [ | ||
"test" | ||
], | ||
"extension": [ | ||
".ts" | ||
] | ||
}, | ||
"dependencies": {}, | ||
"directories": { | ||
"lib": "lib", | ||
"test": "test" | ||
"publishConfig": { | ||
"access": "public", | ||
"tag": "next" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/poppinss/indicative.git" | ||
}, | ||
"keywords": [ | ||
"node-validator", | ||
"validator", | ||
"schema-validator", | ||
"quick-validations" | ||
], | ||
"bugs": { | ||
"url": "https://github.com/poppinss/indicative/issues" | ||
}, | ||
"homepage": "https://github.com/poppinss/indicative#readme", | ||
"config": { | ||
"commitizen": { | ||
"path": "./node_modules/cz-conventional-changelog" | ||
} | ||
"dependencies": { | ||
"indicative-compiler": "^6.0.0", | ||
"indicative-formatters": "^6.0.0", | ||
"indicative-rules": "^6.0.0" | ||
}, | ||
"standard": { | ||
"globals": [ | ||
"test", | ||
"group", | ||
"QUnit" | ||
] | ||
"devDependencies": { | ||
"benchmark": "^2.1.4" | ||
}, | ||
"nyc": { | ||
"exclude": [ | ||
"bin", | ||
"test" | ||
] | ||
} | ||
"gitHead": "56df476f4997730d3b602c4f88d295359d9fd853" | ||
} |
@@ -1,48 +0,11 @@ | ||
<h1 align="center">Indicative</h1> | ||
# `indicative` | ||
<div align="center">🚀</div> | ||
<div align="center"> | ||
<strong>Concise data validation library for Node.js and browsers.</strong> | ||
<p>Indicative is a simple yet powerful data validator for Node.js and browsers. It makes it so simple to write <code>async</code> validations on <strong>nested set</strong> of data.</p> | ||
</div> | ||
> TODO: description | ||
<br /> | ||
## Usage | ||
<div align="center"> | ||
<a href="https://travis-ci.org/poppinss/indicative"> | ||
<img src="https://img.shields.io/travis/poppinss/indicative.svg?style=for-the-badge" alt="Travis" /> | ||
</a> | ||
<a href="https://www.npmjs.com/package/indicative"> | ||
<img src="https://img.shields.io/npm/dt/indicative.svg?style=for-the-badge" alt="Downloads" /> | ||
</a> | ||
</div> | ||
``` | ||
const indicative = require('indicative'); | ||
<br /> | ||
<div align="center"> | ||
<img src="https://saucelabs.com/browser-matrix/indicative.svg" alt=""> | ||
</div> | ||
<div align="center"> | ||
<h3> | ||
<a href="https://indicative.adonisjs.com"> | ||
Website | ||
</a> | ||
<span> | </span> | ||
<a href="https://indicative.adonisjs.com/docs/api/validate"> | ||
Api Reference | ||
</a> | ||
<span> | </span> | ||
<a href="https://indicative.adonisjs.com/docs/installation#_build_sizes"> | ||
Build sizes | ||
</a> | ||
<span> | </span> | ||
<a href="https://github.com/poppinss/indicative/blob/master/.github/CONTRIBUTING.md"> | ||
Contributing | ||
</a> | ||
</h3> | ||
</div> | ||
<div align="center"> | ||
<sub>Used by adonisjs.com. Built with ❤︎ by <a href="https://github.com/thetutlage">Harminder Virk</a> | ||
</div> | ||
// TODO: DEMONSTRATE API | ||
``` |
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
1
6850
3
12
83
12
1
+ Addedindicative-compiler@^6.0.0
+ Addedindicative-formatters@^6.0.0
+ Addedindicative-rules@^6.0.0
+ Addeddate-fns@1.30.1(transitive)
+ Addedindicative-compiler@6.0.0(transitive)
+ Addedindicative-formatters@6.0.1(transitive)
+ Addedindicative-rules@6.0.0(transitive)
+ Addedvalidator@10.11.0(transitive)