Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v6.0.0 release notes #66

Closed
jedireza opened this issue Sep 14, 2016 · 0 comments
Closed

v6.0.0 release notes #66

jedireza opened this issue Sep 14, 2016 · 0 comments

Comments

@jedireza
Copy link
Owner

jedireza commented Sep 14, 2016

General

We've split the BaseModel out into it's own repo, which makes it a more general tool outside of hapi applications. We're now exclusively using es6 classes instead of using the ampersand-class-extend hack.

Breaking changes

  • BaseModel has moved into it's own package mongo-models. It is also referred to as MongoModels instead of BaseModel.
  • mongo-models is a new peerDepdendency you'll need to include in your application's package.json.
  • BaseModel.extend(...) is gone. Simply extend with es6 class Customer extends MongoModels {}
  • The _collection property has been renamed to collection. Ex: Customer._collection = 'customers'; will now be Customer.collection = 'customers';.
  • BaseModel.connect(options, callback) arguments have changed to MongoModels.connect(uri, options, callback)
  • The options passed to the plugin have a minor change. The url property is now uri.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant