Skip to content

Commit

Permalink
Publish 1.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
aldeed committed Dec 23, 2015
1 parent 11a688d commit 4ead24b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .versions
@@ -1,4 +1,4 @@
aldeed:simple-schema@1.5.2
aldeed:simple-schema@1.5.3
babel-compiler@5.8.24_1
babel-runtime@0.1.4
base64@1.0.4
Expand All @@ -22,7 +22,7 @@ html-tools@1.0.5
htmljs@1.0.5
id-map@1.0.4
jquery@1.11.4
local-test:aldeed:simple-schema@1.5.2
local-test:aldeed:simple-schema@1.5.3
logging@1.0.8
mdg:validation-error@0.2.0
meteor@1.1.10
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Expand Up @@ -86,6 +86,12 @@ A simple, reactive schema validation smart package for Meteor.

## Change Log

NOTE: There was an accidental breaking change in v1.4.0. Probably only aldeed:collection2 is affected. If you use aldeed:simple-schema v1.4.0 or higher along with aldeed:collection2, be sure to use aldeed:collection2 v2.7.1 or higher.

### 1.5.3

Removed the old `SimpleSchema.prototype.validator`

### 1.5.2

The `ValidationError` thrown by `validate` now provides a useful error message so that it is clear what the first error is if it is not caught and is printed to console above the stack trace.
Expand All @@ -106,6 +112,8 @@ For compatibility with the new [mdg:method](https://github.com/meteor/method) pa
- Call `mySimpleSchema.validate(doc)` to validate `doc` against the schema and throw a `ValidationError` if invalid. This is like `check(doc, mySimpleSchema)` but without the `check` dependency and with the ability to pass full schema error details back to a callback on the client.
- Call `mySimpleSchema.validator()` to get a function that calls `mySimpleSchema.validate` for whatever object is passed to it. This means you can do `validate: mySimpleSchema.validator()` in the [mdg:method](https://github.com/meteor/method) package.

NOTE: There was an accidental breaking change in this release. Probably only aldeed:collection2 is affected. If you use aldeed:simple-schema v1.4.0 or higher along with aldeed:collection2, be sure to use aldeed:collection2 v2.7.1 or higher.

### 1.3.3

When using `check` to validate, the `Match.Error` that is thrown now explains which field failed to validate and why (only the first error). All errors can be found in an `invalidKeys` property on the `Match.Error` object.
Expand Down
2 changes: 1 addition & 1 deletion package.js
@@ -1,7 +1,7 @@
Package.describe({
name: "aldeed:simple-schema",
summary: "A simple schema validation object with reactivity. Used by collection2 and autoform.",
version: "1.5.2",
version: "1.5.3",
git: "https://github.com/aldeed/meteor-simple-schema.git"
});

Expand Down

0 comments on commit 4ead24b

Please sign in to comment.