monastery 3.5.4 → 3.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/changelog.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [3.5.6](https://github.com/boycce/monastery/compare/3.5.5...3.5.6) (2025-06-15)
6
+
7
+ ### [3.5.5](https://github.com/boycce/monastery/compare/3.5.4...3.5.5) (2025-06-14)
8
+
5
9
  ### [3.5.4](https://github.com/boycce/monastery/compare/3.5.3...3.5.4) (2025-06-12)
6
10
 
7
11
  ### [3.5.3](https://github.com/boycce/monastery/compare/3.5.2...3.5.3) (2025-06-12)
package/docs/readme.md CHANGED
@@ -1,6 +1,7 @@
1
1
  ![](./assets/imgs/monastery.jpg)
2
2
 
3
- [![NPM](https://img.shields.io/npm/v/monastery.svg)](https://www.npmjs.com/package/monastery) [![Build Status](https://travis-ci.com/boycce/monastery.svg?branch=master)](https://app.travis-ci.com/github/boycce/monastery)
3
+ [![NPM](https://img.shields.io/npm/v/monastery.svg)](https://www.npmjs.com/package/monastery)
4
+ <!--[![Build Status](https://travis-ci.com/boycce/monastery.svg?branch=master)](https://app.travis-ci.com/github/boycce/monastery)-->
4
5
 
5
6
  > v3.0 has been released 🎉 refer to [breaking changes](#v3-breaking-changes) below when upgrading from v2.x.
6
7
 
package/lib/manager.js CHANGED
@@ -66,11 +66,15 @@ function Manager(uri, opts, parent) {
66
66
  }
67
67
 
68
68
  // Create a new MongoDB Client
69
- if (typeof that.uri == 'string' || Array.isArray(that.uri)) {
69
+ if (!that.uri) {
70
+ throw new Error('No monastery connection URI provided.')
71
+ } else if (typeof that.uri == 'string' || Array.isArray(that.uri)) {
70
72
  that.uri = that.connectionString(that.uri, opts.databaseName)
71
73
  that.client = new MongoClient(that.uri, mongoOpts)
72
- } else {
74
+ } else if (util.isObject(that.uri)) {
73
75
  that.client = that.uri
76
+ } else {
77
+ throw new Error('Invalid monastery connection URI provided.')
74
78
  }
75
79
 
76
80
  // Listen to MongoDB events
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "monastery",
3
3
  "description": "⛪ A simple, straightforward MongoDB ODM",
4
4
  "author": "Ricky Boyce",
5
- "version": "3.5.4",
5
+ "version": "3.5.6",
6
6
  "license": "MIT",
7
7
  "repository": "github:boycce/monastery",
8
8
  "homepage": "https://boycce.github.io/monastery/",
@@ -51,7 +51,7 @@
51
51
  "express-fileupload": "^1.5.0",
52
52
  "jest": "27.4.7",
53
53
  "nodemon": "^3.1.0",
54
- "standard-version": "9.3.2",
54
+ "standard-version": "github:boycce/standard-version",
55
55
  "supertest": "4.0.2"
56
56
  },
57
57
  "engines": {