Skip to content

Releases: shadowplay1/quick-mongo-super

v3.0.2

25 Aug 02:11
Compare
Choose a tag to compare

v3.0.2:

  • Fixed the type bug when inputting keys that don't exist in the interface would lead to unexpected value type.
  • Fixed the incorrect return type of QuickMongo.set() method.

v3.0.1

24 Aug 22:18
Compare
Choose a tag to compare

v3.0.1

  • Now all the key parameters allow to pass in the normal string type, alongside the keys autocomplete feature released in v3.0.0.

v3.0.0

21 Aug 15:27
Compare
Choose a tag to compare

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 as QuickMongo.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

12 Apr 01:09
Compare
Choose a tag to compare

v2.2.0:

  • Added QuickMongo.values() method; it works the same way as QuickMongo.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 in QuickMongo.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 in IDatabaseInternalStructure<T> and IDatabaseRequestsLatencyData types.
  • Fixed typos.

quick-mongo-super v2.1.0

06 Apr 22:01
Compare
Choose a tag to compare

v2.1.0

  • Added a size property in QuickMongo class that determines the number of keys in the root of the database. Equivalent to QuickMongo.keys().length.
  • Added a TKeys type parameter in QuickMongo.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

30 Mar 22:30
Compare
Choose a tag to compare

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

30 Mar 22:01
Compare
Choose a tag to compare

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

30 Mar 19:28
Compare
Choose a tag to compare

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 in QuickMongoClient constructor to allow passing specific MongoDB client options into the mongodb module.

quick-mongo-super v2.0.5

14 Jan 04:50
Compare
Choose a tag to compare

v2.0.5

  • Typings bug fixes.

quick-mongo-super v2.0.2

06 Jan 15:23
Compare
Choose a tag to compare

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 of QuickMongo class from any to string.
  • Fixed the incorrect documentation for QuickMongo.random() method.