@simtlix/simfinity-js 3.4.0 → 3.4.2

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 (2) hide show
  1. package/README.md +5 -1
  2. package/package.json +26 -6
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  MongoDB/Mongoose adapter and compatibility facade for Simfinity. This package generates GraphQL queries, mutations, relationships and models from `GraphQLObjectType` definitions using the shared Simfinity runtime.
4
4
 
5
5
  ```sh
6
- npm install @simtlix/simfinity-js graphql@^16.11.0 mongoose@^8.16.2
6
+ npm install @simtlix/simfinity-js graphql@^16.11.0 mongoose@^8.24.2
7
7
  ```
8
8
 
9
9
  ```javascript
@@ -18,6 +18,8 @@ const schema = simfinity.createSchema();
18
18
 
19
19
  Use a MongoDB replica set or sharded cluster for transactional mutations. The library requires Node.js >=18.18.0 and GraphQL 16.
20
20
 
21
+ Mongoose 8.24.2 or later within version 8 is required to exclude the update-casting prototype-pollution vulnerability. Existing applications should update Mongoose and their dependency lockfile, then run `npm audit`; upgrading Simfinity does not refresh every transitive dependency already locked by the application.
22
+
21
23
  ## Optional transactional reference integrity
22
24
 
23
25
  Choose the mode once when creating an adapter; the default remains `'off'`:
@@ -40,6 +42,8 @@ Owned transactions use snapshot reads and majority commits. Supplied sessions ne
40
42
 
41
43
  The source now lives in `packages/mongodb` in the monorepo. Its public npm name remains `@simtlix/simfinity-js`; existing imports, including paths under `@simtlix/simfinity-js/src/`, retain their layout. Shared helpers, error identities and MCP compatibility exports are preserved. Internal Simfinity dependencies use the same exact release version.
42
44
 
45
+ For tooling that locates the package, use `require.resolve('@simtlix/simfinity-js/package.json')` or the package root without a trailing slash. Directory specifiers ending in `/` were not valid ESM imports and are not supported by the export map, including in `require.resolve`; use explicit filenames such as `src/auth/index.js`.
46
+
43
47
  - [MongoDB quick start](https://simtlix.github.io/simfinity.js/guide/getting-started.html)
44
48
  - [API reference](https://simtlix.github.io/simfinity.js/reference/api.html)
45
49
  - [Database comparison](https://simtlix.github.io/simfinity.js/guide/databases.html)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simtlix/simfinity-js",
3
- "version": "3.4.0",
3
+ "version": "3.4.2",
4
4
  "description": "MongoDB/Mongoose adapter and compatibility facade for Simfinity GraphQL APIs",
5
5
  "main": "src/index.js",
6
6
  "types": "./types/index.d.ts",
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "peerDependencies": {
19
19
  "graphql": "^16.11.0",
20
- "mongoose": "^8.16.2"
20
+ "mongoose": "^8.24.2"
21
21
  },
22
22
  "config": {
23
23
  "owner": "simtlix"
@@ -26,11 +26,11 @@
26
26
  "@modelcontextprotocol/sdk": "^1.13.0",
27
27
  "graphql": "^16.11.0",
28
28
  "graphql-middleware": "^6.1.35",
29
- "mongoose": "^8.16.2"
29
+ "mongoose": "^8.24.2"
30
30
  },
31
31
  "dependencies": {
32
- "@simtlix/simfinity-core": "3.4.0",
33
- "@simtlix/simfinity-mcp": "3.4.0"
32
+ "@simtlix/simfinity-core": "3.4.2",
33
+ "@simtlix/simfinity-mcp": "3.4.2"
34
34
  },
35
35
  "files": [
36
36
  "src",
@@ -39,5 +39,25 @@
39
39
  "LICENSE",
40
40
  "AGGREGATION_EXAMPLE.md",
41
41
  "AGGREGATION_CHANGES_SUMMARY.md"
42
- ]
42
+ ],
43
+ "keywords": [
44
+ "simfinity",
45
+ "graphql",
46
+ "mongodb",
47
+ "mongoose",
48
+ "crud",
49
+ "nodejs"
50
+ ],
51
+ "exports": {
52
+ ".": {
53
+ "types": "./types/index.d.ts",
54
+ "default": "./src/index.js"
55
+ },
56
+ "./src": "./src/index.js",
57
+ "./src/auth": "./src/auth/index.js",
58
+ "./src/*.js": "./src/*.js",
59
+ "./src/*": "./src/*.js",
60
+ "./package": "./package.json",
61
+ "./*": "./*"
62
+ }
43
63
  }