- Added;
crypto
removed as dependency. - Improved;
package.json
added new keywords. - Improved;
README
improved.
-
Feature; openSingletonConnection is now possible, just pass the url and the singleton to true, no schema is needed.
-
Updated;
MongoPromiseRepositoryInterface
is now the the new methodopenSingletonConnection
. -
Improved;
MongoDBOnTheFlyRepository
implements now the interfaceMongoPromiseRepositoryInterface
. -
Updated;
MongoDBOnTheFlyRepository
implements the methodopenSingletonConnection
. -
Updated;
BaseMongoRepository
implements the methodopenSingletonConnection
. -
Updated;
BaseMongoPromiseRepository
implements the methodopenSingletonConnection
. -
Updated;
SecretMongoRepository
implements the methodopenSingletonConnection
. -
Updated;
SecretMongoPromiseRepository
implements the methodopenSingletonConnection
. -
Updated;
MongooseSingletonProxy
has now the methodopenSingletonConnection
to open a singleton connection. -
Fixed;
SecretMongoRepository
bug for undefined parameter forEach in methodssecretDataEncrypt
andsecretDataDecrypt
. -
Updated;
config
with new parameters for test. -
Updated;
advancedConnectionTest.test
with new test cases for open singleton connection. -
Updated;
connection.test
with new test cases for open singleton connection. -
Updated;
README.md
hasopenSingletonConnection
reference andversion
reference on theoverview
part.
-
Feature; Insert Many is now possible, just passing an array to the insert function and the inserMany operation will be applied.
-
Feature; Errors are now returned errors for invalid parameters for repository generation or for invalid query parameters in a CRUD operation when a CRUD operation is invoked.
-
Improved;
mongoCRUD
in methodaddInMongo
the functionsave
is nowinsertMany
in case of a vector of elements. -
Added;
repositoryError
is now the custom error type formongodb-repository-wmf
. -
Updated;
errorFactory
has now the new errors. -
Improved;
baseMongoRepository
manages these new errors with three methodscheckQueryParameters
,checkRepositoryParameters
andisValidInsertManyObject
. -
Improved;
secretMongoRepository
manages these new errors callingsuper
methods and a new methodareValidateCryptoParameters
to see ifparameter
is a vector of strings. -
Improved;
baseMongoRepository
nowcloseSingletonConnection
close the connection in an more fast way and without needing theschemaName
parameter. -
Improved;
mongooseSingletonProxy
modified to manage thecloseSingletonConnection
without theschemaName
. -
Updated; In
connection.test
added the test case forcloseSingletonConnection
without theschemaName
. -
Added;
repositoryUtils
ina new folderutils
with method needed for errors check. -
Improved; In
model
the methodgetSchemaJson
checks if the input parameter is defined and is a string. -
Improved; In
CTRCrypto
in theconstructor
added the controll to see ifpassword
is a string and is not empty. -
Updated;
config
with new parameters for test. -
Updated;
secret.test
has now all the new test cases for errors management. -
Updated;
data.test
with new test cases for errors management. -
Updated;
crudOperations.test
as new test cases for insert all and find all. -
Updated;
config
with new parameters for test. -
Updated;
README.md
witherror list
,insertMany
andawait
examples. -
Updated;
LICENSE
is now valid for the year 2019.
- Improved;
@types/mongoose
is now a dev dependency. - Improved;
README.md
fixes.
- Added;
mocha
added into dev dependency. - Improved; test cases now are written using
mocha
. - Fixed;
crypto
Warning
Warning: Use Cipheriv for counter mode of aes-256-ctr.
is now fixed by substituingcreateCipher
andcreateDecipher
methods withcreateCipheriv
andcreateDecipheriv
inCTRCrypto
. - Improved;
README.md
is improved in the contributing part.
-
Pivot;
mongodb-repository-wmf
is now written intypescript
. -
Added;
mongoPromiseRepositoryInterface
is the interface that is returned. -
Improved; the
crypto
part is the now a folder and not an indipendent part anymore. -
Added;
oldRepositoryFactory
is the factory that support the version 1 and the version 2. -
Improved;
JSDoc
is now added inMongoPromiseRepositoryInterface
and inOnTheFlyRepositoryFactory
. -
Added;
.mongooseSchemaInterface
is added and used thanks totypescript
. -
Added;
.mongooseProxyInterface
is added and used thanks totypescript
. -
Fixed;
mongoose
deprecationwarning
DeprecationWarning: collection.remove is deprecated. Use deleteOne, deleteMany, or bulkWrite instead.
is now fixed by usingdeleteMany
inMongoCRUD
. -
Fixed; the update operation is now done by
updateMany
an not anymore byfindOneAndUpdate
inMongoCRUD
, so is now an update all. -
Improved; Package Structure.
-
Improved;
README.md
now has a card.
- Added;
MongoDBOnTheFlyRepository
class to avoid repository internal methods call. - Improved; implementation of
generateOnTheFlyRepository
method added inOnTheFlyRepositoryFactory
now returns aMongoDBOnTheFlyRepository
. - Fixed;
test004
now use a prototype connection strategy. - Improved;
package.json
License becamesMIT
and somekeywords
added. - Added;
LICENSE
file.
- Fixed;
BaseMongoRepository
methodcloseSingletonConnection
now return an error if the singleton connection is not opened. - Fixed;
BaseMongoRepository
methodinitialize
now uses callback to detect invalid url connection. - Added; method
openConnection
added inMongooseProxyInterface
to use callback in the connection opening. - Added; implementation of
openConnection
method added inMongooseSingletonProxy
. - Added; implementation of
openConnection
method added inMongoosePrototypeProxy
. - Added;
test005
as multiple connections test example.
- Fixed;
SecretMongoRepository
methodscloseSingletonConnection
andloadModel
now call the super method. - Added;
test004
as Secret on the fly repository example.
- Improved;
README.md
fixed.
-
Pivot; The On The Fly Repository now is the only supported repository, it is easy and fast to use.
-
Feature; The On The Fly Repository feature is added.
-
Feature; Now is possible to choose between Singleton or Prototype based Repository.
-
Added;
OnTheFlyRepositoryFactory
is now the only available features from the module. -
Added;
onTheFlyRepositoryFactory.generateOnFlyRepository
is now the only available Repository. -
Improved;
BaseMongoRepository.constructor
can now acceptdata.url
(data.dbName
is still valid for backward compatibility). -
Changed;
mongooseProxy
class is now substitued withmongoosePrototypeProxy
. -
Added;
mongooseSingletonProxy
to have a Singleton Proxy. -
Added;
mongooseProxyFactory
to generate the properly Proxy. -
Changed;
mongooseSchema
class is now substitued withmongoosePrototypeSchema
. -
Added;
mongooseSingletonSchema
to have a Singleton Schema. -
Added;
schemaFactory
to generate the properly Schema. -
Deprecated;
PublicDBApi
is now deprecated andPublicDBApi.generateOnFlyRepository
must be used. -
Improved;
models
now JSON is updated and not overrided. -
Fixed;
mongoose
deprecationwarning
DeprecationWarning: collection.findAndModify is deprecated.
is now fixed. -
Added;
errorFactory
is added to generalize the errors. -
Improved; Package Structure.
-
Added;
test
folder with all the test cases. -
Updated;
package.json
hascrypto
dependency now. -
Improved;
README.md
. -
Added;
History.md
.
- Fixed;
mongoose
deprecationwarning
inMongooseSingletonProxy.constructor
forconnect(this.data.dbName, {useNewUrlParser: true});
.
- Improved;
README.md
with test cases.
- Improved;
README.md
with version 2 explanation.
-
Feature; Promise Based Repository are added.
-
Added; Promise Based Repository
BaseMongoPromiseRepository
. -
Added; Promise Based Repository
SecretMongoPromiseRepository
. -
Improved;
README.md
.
- Improved;
README.md
. - Improved; Package Structure.
- Initial
mongodb-entities
npm package becomesmongodb-repository-wmf
.