Releases: shadowplay1/quick-mongo-super
Releases · shadowplay1/quick-mongo-super
v3.0.2
v3.0.1
v3.0.1
- Now all the
key
parameters allow to pass in the normalstring
type, alongside the keys autocomplete feature released in v3.0.0.
v3.0.0
v3.0.0
- Improved documentation, fixed typos & mismatches.
- Fixed minor types bugs.
- Bumped
mongoose
to the latest version,v8.5.3
- Added unneeded package files into
.npmignore
to reduce the final npm package size. - Completely changed the type system - now all the values are being inferred from the object keys you specify in database requests (with keys autocomplete as well 👀)!
- Added a new
QuickMongo.getFromDatabase()
method that works the same way asQuickMongo.get()
, but instead of getting the data from cache, a request being made to remote cluster.
NOTE: This release is being considered major due to significant changes to the types system of the module which might impact TypeScript users.
quick-mongo-super v2.2.0
v2.2.0:
- Added
QuickMongo.values()
method; it works the same way asQuickMongo.keys()
, but returns the object values instead of object keys. - Added 6 new array-like methods in
QuickMongo
class that simplify the read operations on database object values:QuickMongo.find()
QuickMongo.map()
QuickMongo.findIndex()
QuickMongo.filter()
QuickMongo.some()
QuickMongo.every()
- Fixed caching bug when all falsy values were represented as
null
in the cache. - Fixed any falsy result being represented as
null
inQuickMongo.random()
method. - Fully reworked some of the existing unit tests.
- Added references to used types/classes/interfaces/built-ins in documentation.
- Fixed documentation mismatches.
- Fixed JSDoc mismatches.
- Small documentation improvements.
- Improved descriptions of some types.
- Added missing JSDoc in
TypedObject
class and inIDatabaseInternalStructure<T>
andIDatabaseRequestsLatencyData
types. - Fixed typos.
quick-mongo-super v2.1.0
v2.1.0
- Added a
size
property inQuickMongo
class that determines the number of keys in the root of the database. Equivalent toQuickMongo.keys().length
. - Added a
TKeys
type parameter inQuickMongo.keys()
method that determines the type of returned keys. - Added a check if the device is online (connected to the internet) when connecting to online (non-local) MongoDB cluster.
- Small bugfixes and improvements.
- Typos fixes.
quick-mongo-super v2.0.10
v2.0.10
- Fixed cases when the exception if failed to connect to the MongoDB cluster won't be thrown.
quick-mongo-super v2.0.9
v2.0.9
- Added exceptions on incorrect format of the MongoDB connection URI or its absence in
QuickMongoClient
constructor. - Added exceptions on incorrectly specified constructor parameters or their absence in
QuickMongo
constructor. - Added an exception if failed to connect to the MongoDB cluster.
quick-mongo-super v2.0.8
v2.0.8
- Updated dependencies.
- Removed unnecessary internal MongoDB configuration.
- Added compatibility with Bun.
- Fixed a bug when running
QuickMongo.clear()
method was nuking data in the whole MongoDB cluster instead of data in specific QuickMongo collection. - Added a new optional
mongoClientOptions
parameter inQuickMongoClient
constructor to allow passing specific MongoDB client options into themongodb
module.
quick-mongo-super v2.0.5
v2.0.5
- Typings bug fixes.
quick-mongo-super v2.0.2
v2.0.2:
- Removed the
TValue
type parameter from all database operations methods due to it breaking the type of the specifying value. - Changed the default value of type parameter
K
ofQuickMongo
class fromany
tostring
. - Fixed the incorrect documentation for
QuickMongo.random()
method.