monastery 3.5.8 → 3.5.9

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,8 @@
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.9](https://github.com/boycce/monastery/compare/3.5.8...3.5.9) (2025-12-23)
6
+
5
7
  ### [3.5.8](https://github.com/boycce/monastery/compare/3.5.6...3.5.8) (2025-12-23)
6
8
 
7
9
  ### [3.5.7](https://github.com/boycce/monastery/compare/3.5.6...3.5.7) (2025-09-16)
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.8",
5
+ "version": "3.5.9",
6
6
  "license": "MIT",
7
7
  "repository": "github:boycce/monastery",
8
8
  "homepage": "https://boycce.github.io/monastery/",
package/test/manager.js CHANGED
@@ -21,7 +21,7 @@ test('manager > onError', async () => {
21
21
  const db = monastery.manager('localhost:1234/monastery', { serverSelectionTimeoutMS: 500 })
22
22
  let error, isAPromise
23
23
  await db.onError((res) => { error = res.message }).then(() => { isAPromise = true })
24
- expect(error).toContain('connect ECONNREFUSED 127.0.0.1:1234')
24
+ expect(error).toContain('connect ECONNREFUSED ')
25
25
  expect(isAPromise).toEqual(true)
26
26
  db.close()
27
27
  })
@@ -53,7 +53,7 @@ test('manager > onOpen error', async () => {
53
53
  // Bad port (thrown by MongoDB)
54
54
  let manager
55
55
  const db = monastery.manager('localhost:1234/monastery', { serverSelectionTimeoutMS: 500 })
56
- await expect(db.onOpen((res) => { manager = res })).rejects.toThrow('connect ECONNREFUSED 127.0.0.1:1234')
56
+ await expect(db.onOpen((res) => { manager = res })).rejects.toThrow('connect ECONNREFUSED ')
57
57
  expect(manager).toEqual(undefined)
58
58
  expect(db).toEqual(expect.any(Object))
59
59
  db.close()
@@ -4,7 +4,7 @@ export function deepCopy(obj: any): any;
4
4
  export function deepFind(obj: any, path: any): any;
5
5
  export function forEach(obj: any, iteratee: any, context: any): any;
6
6
  export function forceArray(value: any): any[];
7
- export function id(str: string | ObjectId): ObjectId;
7
+ export function id(value?: string | ObjectId): ObjectId;
8
8
  export function inArray(array: any, key: any, value: any): any;
9
9
  export function isArray(value: any): value is any[];
10
10
  export function isArrayLike(collection: any): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../lib/util.js"],"names":[],"mappings":";AAIQ,oCAwBL;AAES,wCAUT;AAES,mDAYT;AAEQ,oEAYR;AAEW,8CAEX;AAOG,wBAHO,MAAM,GAAC,QAAQ,GACd,QAAQ,CAKnB;AAEQ,+DAaR;AAEQ,oDAER;AAEY,sDAGZ;AAEU,+CAEV;AAEQ,2CAIR;AAEW,gDAEX;AAEK,0CAKL;AAEQ,6CAiBR;AAES,8CAET;AAES,8CAMT;AAEiB,sDAGjB;AAEQ,6CAER;AAES,8CAET;AAES,8CAET;AAEc,mDAmBd;AAEsB,uDAQtB;AAEY,4DAEZ;AAEK,iDAOL;AAEU,gGAWV;AAEiB,gDA+BjB;AAEqB,oDAmCrB;AAE0B,wDAsB1B;AAEK,8CAeL;AAEgB,oDAYhB;AAEU,8EAmDV;AAEa,uIAwCb;AAEkB,yDAElB;AAEQ,8CAIR;AAEQ,0CAGR;AAEK,4CAEL"}
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../lib/util.js"],"names":[],"mappings":";AAIQ,oCAwBL;AAES,wCAUT;AAES,mDAYT;AAEQ,oEAYR;AAEW,8CAEX;AAWG,2BAFO,SAAU,QAAQ,YAO5B;AAEQ,+DAaR;AAEQ,oDAER;AAEY,sDAGZ;AAEU,+CAEV;AAEQ,2CAIR;AAEW,gDAEX;AAEK,0CAKL;AAEQ,6CAiBR;AAES,8CAET;AAES,8CAMT;AAEiB,sDAGjB;AAEQ,6CAER;AAES,8CAET;AAES,8CAET;AAEc,mDAmBd;AAEsB,uDAQtB;AAEY,4DAEZ;AAEK,iDAOL;AAEU,gGAWV;AAEiB,gDA+BjB;AAEqB,oDAmCrB;AAE0B,wDAsB1B;AAEK,8CAeL;AAEgB,oDAYhB;AAEU,8EAmDV;AAEa,uIAwCb;AAEkB,yDAElB;AAEQ,8CAIR;AAEQ,0CAGR;AAEK,4CAEL"}