- fix: improve attaching Mongo JSON Schema when a collection doesn't exist yet in the db
- feat: fluent syntax with
[has]
and chainable methods for setting conditions, e.g..min
,.default
,.where
etc. This is an optional feature. You can still use the object-based syntax for setting conditions, e.g.{ type: String, ...conditions }
, if you prefer. - feat: set
default
values when defining a schema - feat: set
base
schema when usingEasySchema.configure
- feat:
ID
type for Meteor-generated_id
s - breaking:
allow
was renamed toenums
- breaking:
additionalProperties
was renamed toextra
- breaking:
EasySchema.skipAutoCheck()
was replaced by setting{ autoCheck: false }
in theoptions
of aCollection.method
- fix:
regex
for Mongo JSON Schema - fix: under-the-hood optimizations
- feat: throw all validation errors to enable a better UX (requires Meteor
2.16+
) - feat: support
Mongo.ObjectID
- fix:
jam:method
integration when usingvite
bundler on the client instead of Meteor's default - fix: validate correctly when using a preset
_id
- fix: prevent double validation when using
upsertAsync
- fix: allow using shorthand
_id
withupsertAsync
- fix: bump
versionsFrom
to official Meteor 3.0 release
- fix: bump Meteor 3.0 to latest release candidate version
- docs: update README to clarify
Optional
- fix: optimizations to
jam:method
integration
- feat: better typescript and code completion support via declaration file (.d.ts)
- fix: optimizations to
jam:method
integration
- fix: offer support for
jam:method
integration
- feat: custom errors and improved error messages
- fix: Meteor 3.0 compatibility
- feat: custom
where
function
- initial version