From 4ead24bcc92e9963dd994c07d275eac144733c3e Mon Sep 17 00:00:00 2001 From: Eric Dobbertin Date: Wed, 23 Dec 2015 14:23:06 -0600 Subject: [PATCH] Publish 1.5.3 --- .versions | 4 ++-- CHANGELOG.md | 8 ++++++++ package.js | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.versions b/.versions index 6566899..367acbd 100644 --- a/.versions +++ b/.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 @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index eb8a3ce..17abdaf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. @@ -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. diff --git a/package.js b/package.js index f146bd3..a33a1af 100644 --- a/package.js +++ b/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" });