All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Accept secondary database (hotfix)
messageKeyfixed
- AMMailing now has default 1000
intervalBetweenMessagesvalue
- AMMailing now accepts
intervalBetweenMessagesconfig
- AMMailing.sendMail now accept empty text
- Babel fixes
- Prepublish change to reinstall dependencies properly before publish
- Changed script to prePublish and adapted to Babel 7
- New Method at messageRepository
- Exporting message repository again
- Sequelize Repository now correctly reports missing model setup
- Another way to find sent message (checkMessageWasSent)
- Changed Repository to correctly report not started models
- Search messages by user and subject
- Changed Api Boostrap Sequelize to not log when GETing static files
- Fix for logging on async callbacks on am-error
- Fix unhandledErrorHandler
- Hashed Id available on message replace fields
- Method for set a message read by it's hashed id
- Cast _id as varchar on findByHash
- MD5 of _id.toString()
- CamelCase on dateRead attribute
- Check name of socialLogin only on Facebook
- Message now have dateError and error fields to register when something goes wrong
- databaseObjectToInstance added to model
- modelSequelize now exposes method "create" correctly
- repository.exists({field:value});
- req.saveSession()
- Auth socialLogin correctly throws errors
- query and queryOne added to modelSequelize to suport raw queries
- Code cleaning
- Now {{forgotten}} markups are removed before sending mail
- Auth facebook login can receive another social network
- Fix email and localEmail on first login object at amAuth
- Break changes in MessageSequelize and AmMailing
- Rollbar info on am-auth jwt payload
- Change on delete() in instance
- changed wherez to where on modelSequelize.delete()
- find() method now supports attributes field
- More adjustments on templating email to work with config....
- Adjusted mail and tests to work with templated mail
- adjusted find to work with limit while querying
- adjusted auth to work with password redefining
- rollbar_person is not required for send errors to Rollbar
- Rollbar only and always required on production
- Facebook login method separated from the route
- Facebook login method is not static
- Auth facebookLogin refactor for sequelize
- Rollbar required error only when rollbarToken is not defined
- disableTouch on session
- Getting auth errors on view
- Send name as status
- Remodelled sequelizeMessage
- Added sign public method
- Removing name from localSignup
- Added getUserData public method
- Added optional callback to sequelize/auth
- Added getUserData public method
- Removed optional callback to sequelize/auth
- Finale now have a default include of Sequelize
- SequelizeModel can receive more than just a string
- SequelizeModel.find need a arrow function on instance creation
- Removing asCallback from Auth
- Fix person rollbar flow at AM-Error.
- Session fixes
- Schema check on save and update
- postinstall on package to generate build folder
- modelOptions.freezeTableName default to true on all repository
- Added config.session and session control over API
- Fix authentication with sequelize
- Moved sequelize classes to "sequelize" folder on lib (WIP)
- Removed sequelize first parans in modem and instance setup (breaking change)
- Added flow to dependence on package
- Old apiBootstrap to work just with mongoose, and force to set database drive on config
- Removed very old am-boostrap
- ModelSequelize.save() only updates one register
- updateOne method added to modelSequelize
- On dev, .env can load the DATABASE_URL
- [New major] modelSequelize is now available
- Export on repository
- AMMailing now saves the correct config
-
Adding the notification.notifyAll method to easily send notifications to everyone
-
Adding the notification.notifyAdmin method to easily send notifications to all admins
-
Changing the message on notifyAdmin method
-
AMMailing getting the correct config
- Setting NODE_ENV as 'development' on the bootstrap
- Database is now defined on env
- Util isValidObjectId fix
- Fixing an error on the save user token, preventing injection and user token errors
- Forcing prod config, to not store sensible database url data on file
- Added a new error catcher on the notification.send method. Now it verifies if it has tokens.lenght > 0 before sending notifications
- Calling the getUserData on the save token method on notification
- deleting all console.log
- Fixed amAuth client-version
- Fixing promise issues on findOneAndUpdate
- Fixing errors on addUserToken
- AmAuth on login now returns the notification object
- Notification.saveUserToken added
- Notification.send changed to support the new way to save the tokens on the user schema
- Certifying if the 'notification.[platform].token' exists on Notification.setup calling the amauth.certifySchemaAttributes
- Fixed the static method call on Notification saveUserToken
- Notification schema added
- Notification class to manage fcm messaging added
- AMMailing.sendEmail now throws error on a catch situation
- Message.send is the router method now. It receives req, res and next to follow the patterns.
- sign method that accept the full user object
- Message class, to easy send emails with custom fields, and store then on database
- Stats class, to quickly create dashboard data
- AMAuth.certifyLastAtributes added. This method certifies that the new added user atributes is correct
- Fields added on User: lastAccessDate, initialClient, initialClientVersion, lastClient, lastClientVersion
- AMAuth.requireAuth now calls the AMAuth.certifyLastAtributes passing the headers and the actual user
- Fixed inviteSchema for tests
- AMInvite.getUserLink() little refactor
- AMInvite.addInvite() removed inviteUrl from body and added all the fields and now send the e-mail directly
- Catching errors of send e-mail
- Fixing "missing password" on login
- 'del' changed to 'delete'
- config.security.singleLoginSignup added, to allow user to login/signup at login route
- extraRoutes on nodeRestful
- token size limited
- exposeModelMethods added to AMRouter and nodeResful
- User now cache itself after save
- support body limit to 50 mb
- shouldUseAtomicUpdate must be false to "pre" hooks work as expected
- updateOptions added to registerMultipleRoutes
- Morgan console log fixed
- nodeRestful added with registerMultipleRoutes
- Changed AMError to have .init() and .listen() methods, to catch all errors during api lifetime
- Am-Mailing in ApiBootstrap
- New Password request flow in am-auth
- md5 and am-mailing Import
- Fix in find and Update user
- ApiBootstrap Added
- Added some try catch on user bcrypt
- Version on package (shame)
- util.isValidObjectId added
- 'client-env' added as headers accepted
- This change log!
- AMAuth will check if user model have mongoose plugin on it
- Some old code (just to save this section here)