cosa 10.0.0 → 10.1.0

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.
Files changed (3) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +1 -1
  3. package/package.json +13 -13
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2025 Losant IoT, Inc.
3
+ Copyright (c) 2026 Losant IoT, Inc.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -9,7 +9,7 @@ Simplified object modeling for MongoDB
9
9
  Use your favorite package manager to add cosa to your project.
10
10
 
11
11
  ```bash
12
- yarn add cosa
12
+ npm add cosa
13
13
  ```
14
14
 
15
15
  ## Usage
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "cosa",
3
- "version": "10.0.0",
3
+ "version": "10.1.0",
4
4
  "description": "Cosa Models for MongoDB",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",
7
7
  "engines": {
8
- "node": ">=20",
9
- "yarn": ">=1.2.1"
8
+ "node": ">=20"
10
9
  },
10
+ "packageManager": "pnpm@10.30.0",
11
11
  "scripts": {
12
12
  "lint": "eslint . --ext .js",
13
- "lint:fix": "yarn lint --fix",
13
+ "lint:fix": "pnpm lint --fix",
14
14
  "lint:changed": "lint-staged",
15
- "reinstall": "rm -rf node_modules && yarn install",
15
+ "reinstall": "rm -rf node_modules && pnpm install",
16
16
  "test": "NODE_ENV='test' COSA_DB_URI='mongodb://localhost:27017/test' mocha",
17
- "test-debug": "yarn test --debug-brk",
17
+ "test-debug": "pnpm test --debug-brk",
18
18
  "doc": "documentation build lib/index.js -f md --github > API.md"
19
19
  },
20
20
  "author": "Losant <hello@losant.com>",
@@ -33,22 +33,22 @@
33
33
  "lib"
34
34
  ],
35
35
  "dependencies": {
36
- "debug": "^4.4.1",
36
+ "debug": "^4.4.3",
37
37
  "etag": "^1.8.1",
38
- "joi": "^18.0.1",
39
- "mongodb": "~6.18.0",
38
+ "joi": "^18.0.2",
39
+ "mongodb": "~7.1.0",
40
40
  "object-path": "^0.11.8",
41
41
  "omnibelt": "^4.0.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@losant/eslint-config-losant": "^2.0.1",
45
- "husky": "^9.1.5",
46
- "lint-staged": "^16.1.5",
47
- "chai": "^6.0.1",
45
+ "chai": "^6.2.2",
48
46
  "chai-as-promised": "^8.0.2",
49
47
  "chai-datetime": "^1.8.1",
50
48
  "documentation": "^14.0.3",
51
- "mocha": "^11.7.1"
49
+ "husky": "^9.1.7",
50
+ "lint-staged": "^16.2.7",
51
+ "mocha": "^11.7.5"
52
52
  },
53
53
  "mocha": {
54
54
  "require": "chai",