Skip to content

Commit

Permalink
Bump minor to 1.8.0 (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
talyssonoc committed Sep 16, 2019
1 parent 8ada263 commit b48d1ba
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.8.0 - 2019-09-16
Enhancements:
* Add `unique` validation to arrays

## 1.7.0 - 2019-09-14
Enhancements:
* Add method to clone structures
Expand Down
2 changes: 1 addition & 1 deletion dist/structure.js
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ return /******/ (function(modules) { // webpackBootstrap
var _require = __webpack_require__(10),
mapToJoi = _require.mapToJoi;

var joiMappings = [['minLength', 'min', true], ['maxLength', 'max', true], ['exactLength', 'length', true]];
var joiMappings = [['minLength', 'min', true], ['maxLength', 'max', true], ['exactLength', 'length', true], ['unique', 'unique']];

module.exports = function arrayValidation(typeDescriptor, itemTypeDescriptor) {
var joiSchema = joi.array().items(itemTypeDescriptor.validation);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "structure",
"version": "1.7.0",
"version": "1.8.0",
"description": "A simple schema/attributes library built on top of modern JavaScript",
"main": "src/index.js",
"browser": "dist/structure.js",
Expand Down

0 comments on commit b48d1ba

Please sign in to comment.