Skip to content

Commit 4ead24b

Browse files
committed
Publish 1.5.3
1 parent 11a688d commit 4ead24b

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

.versions

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1+
22
33
44
@@ -22,7 +22,7 @@ [email protected]
2222
2323
2424
25-
local-test:aldeed:[email protected].2
25+
local-test:aldeed:[email protected].3
2626
2727
2828

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@ A simple, reactive schema validation smart package for Meteor.
8686

8787
## Change Log
8888

89+
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.
90+
91+
### 1.5.3
92+
93+
Removed the old `SimpleSchema.prototype.validator`
94+
8995
### 1.5.2
9096

9197
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
106112
- 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.
107113
- 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.
108114

115+
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.
116+
109117
### 1.3.3
110118

111119
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.

package.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package.describe({
22
name: "aldeed:simple-schema",
33
summary: "A simple schema validation object with reactivity. Used by collection2 and autoform.",
4-
version: "1.5.2",
4+
version: "1.5.3",
55
git: "https://github.com/aldeed/meteor-simple-schema.git"
66
});
77

0 commit comments

Comments
 (0)