Skip to content

Commit a383aef

Browse files
committed
Updated changelog for the karray-syntax
1 parent 6361980 commit a383aef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ NOTE: There was an accidental breaking change in v1.4.0. Probably only aldeed:co
107107
- `validationContext.validateOne()`: Instead you can pass a `keys` array as an option to `validationContext.validate()`.
108108
- Other Breaking Changes:
109109
- `decimal` is no longer a valid schema option. Instead, decimal/float is the default, and you can set the `type` to `SimpleSchema.Integer` to specify that you want only integers.
110-
- The syntax of array-brackets `new SimpleSchema({ foo: { type: [String] } })` has been replaced by a more declarative solution: `new SimpleSchema({ foo: { type: Array }, 'foo.$': { type: String } })`
110+
- The syntax of array-brackets `new SimpleSchema({ foo: { type: [String] } })` has been replaced by a more declarative solution: `new SimpleSchema({ foo: { type: Array }, 'foo.$': { type: String } })`. This only applies when defining the full type. The short version `new SimpleSchema({ foo: [String] })` is still valid.
111111
- Error message changes:
112112
- SimpleSchema now uses `MessageBox` to manage validation error messages. Among other things, this means that placeholder text should now use handlebars syntax, `{{label}}` instead of `[label]`
113113
- In the message context (for placeholders), `[type]` is now `{{dataType}}` and `[key]` is now `{{name}}`, though `key` still works for now.

0 commit comments

Comments
 (0)