- Update README content and add documentation from jsDoc
- Add Mongoose Types available on current model
- Fix find usage on lodash for enums process
- Update package
- redis.get('YOUR_KEY') method reject the current promise if no key was found
- Update unit tests for delete/remove action on redis usage
- Change load method to use async.each instead of lodash _.each
- Change node engine version to use 4.6.x to use current LTS version until April migration to new lts version
- Add new flush method to provide flush data on current database. This method use pipeline & scan method.
- Update remove method to use pipeline. Now it's possible to send to delete method multiple value for deletion
- Add Mongoose.Schema.Types available on enums modules.
- Add custom pre hook on schema
- Update dependencies modules
- Update node requirement to use 4.6.x LTS Version
- Major Update for lodash, joi, ioredis async
- Remove elasticHosts method. Use enableElasticsearch method instead of elasticHosts.
- Improve connection manager
- Update joi validation to enable host string for Redis and elasticsearch
- Bufferize config files when enable ssl authentication for mongodb
- Add method remove(key) into redis implementation
- Add redis support (add/set & get), on crud method and custom method.
- Add SSL/TLS support for elasticsearch connection
- Remove the params 'hydrate' when made an esearch() request, now all options will be pass as an options to mongoosastic
- Fix #issue 3
- Update Dependencies for mongoose and grunt
- Fix #issue 2
- Add options on model => #issue 1
- Add rules to authorize auth and protocol properties on default elasticsHosts method
- Add middleware post configuration on schema config.
- Add filter on get(s) method
- Add multi update process from upate method
- Bug fixe : use 'lodash.extend()' instead of 'lodash.merge()' in the create CRUD method to solve bug with array values
- Set the library Q. to handle promise in mongoose
- Change content of readme.md
- Change package content
- Fix a bug on glob.sync on method add function. Now app retrieve correct method file associated with the current method
- Fix join string on glob.sync
- Fix bug on alias function
- Add auto exclude of alias when main method is on exclude list
- Add alias function for crud methods
- Add a new method getValidateSchema when a validator was add.
- Add dynamic call of custom function with apply and all given arguments
- Fixed logging usage on Method.add
- Change usage of merge data on create method to retrieve value
- Change regex for method listing
- Add schema instance on given method by dependencies injection
- Add instance of enums automaticly on validator function
- Change display of king of message when is enums process
Add enums process.
- Add Enums class to manage enum action. All schema a by default a static called 'enums' to retrieve enums data by 'get' method
- Change logger usage to display debug message on debug mode and all necessary item to info
- Fix tests cases for model defintion for crud object
- Change logger usage from warning to error for invalid schema during addModel process
- Add more test on object property for some cases.
- Change path rules for file matching during model load
- Change promise middleware from promiseJs to Q
- Deleted addStatic method
- Deleted addMethod method
- Deleted addFn method
- Add createMethod method : auto add defined method on current schema from given method directory
- Add a new module "Method". That will automatically add a defined method on a current model model if config json "fn" property was filled.
- Generate distribution file on dist directory
- Some fixes
General changes :
- Add addStatic method : add a static method to given schema
- Add addMethod method : add a instance method to given schema
- Add addFn method : default function to process add static or instance method on a schema
- Some code fixes
- Add createValidator method : auto add a validator function on create crud if validator name is given on config file
Module changes :
- Add a new validator module to manage auto generation of validate method on create request
- Add getModel method to retrieve a valid model
- Add addCrud method to enable crud flag from model
- Finish load method for autoloading of models from given path
- Add isLoaded method. This method get model load status
- Add get et getOne statics method on crud Class
- Add delete statics method on crud Class
- Change controllers Method name to validators
Add all base function.
- isConnected : get status of connection
- isDisconnected : get status of disconnection
- connect : connect to database
- disconnect : disconnect if connected on database
- setPath : Min function call during add path action
- isReady : Check if connection is ready
- models : add model directory for load
- controllers : add controllers directory for mapping with model
- addModel : Add a model from given json file
- load : Load model definition given from json file
- Add createModel method : auto add a model on current schema