@lowdefy/connection-mongodb 4.7.3 → 5.0.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 (2) hide show
  1. package/dist/types.js +21 -8
  2. package/package.json +7 -7
package/dist/types.js CHANGED
@@ -1,4 +1,4 @@
1
- /* eslint-disable import/namespace */ /*
1
+ /*
2
2
  Copyright 2020-2026 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
@@ -12,12 +12,25 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import * as adapters from './auth/adapters.js';
16
- import * as connections from './connections.js';
17
- export default {
15
+ */ export default {
16
+ connections: [
17
+ 'MongoDBCollection'
18
+ ],
19
+ requests: [
20
+ 'MongoDBAggregation',
21
+ 'MongoDBBulkWrite',
22
+ 'MongoDBDeleteMany',
23
+ 'MongoDBDeleteOne',
24
+ 'MongoDBFind',
25
+ 'MongoDBFindOne',
26
+ 'MongoDBInsertMany',
27
+ 'MongoDBInsertOne',
28
+ 'MongoDBUpdateMany',
29
+ 'MongoDBUpdateOne'
30
+ ],
18
31
  auth: {
19
- adapters: Object.keys(adapters)
20
- },
21
- connections: Object.keys(connections),
22
- requests: Object.keys(connections).map((connection)=>Object.keys(connections[connection].requests)).flat()
32
+ adapters: [
33
+ 'MongoDBAdapter'
34
+ ]
35
+ }
23
36
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/connection-mongodb",
3
- "version": "4.7.3",
3
+ "version": "5.0.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "",
6
6
  "homepage": "https://lowdefy.com",
@@ -40,17 +40,17 @@
40
40
  "dist/*"
41
41
  ],
42
42
  "dependencies": {
43
- "@lowdefy/helpers": "4.7.3",
43
+ "@lowdefy/helpers": "5.0.0",
44
44
  "@next-auth/mongodb-adapter": "1.1.3",
45
45
  "mongodb": "6.3.0",
46
46
  "saslprep": "1.0.3"
47
47
  },
48
48
  "devDependencies": {
49
- "@lowdefy/ajv": "4.7.3",
49
+ "@lowdefy/ajv": "5.0.0",
50
50
  "@shelf/jest-mongodb": "4.3.2",
51
- "@swc/cli": "0.1.63",
52
- "@swc/core": "1.3.99",
53
- "@swc/jest": "0.2.29",
51
+ "@swc/cli": "0.8.0",
52
+ "@swc/core": "1.15.18",
53
+ "@swc/jest": "0.2.39",
54
54
  "jest": "28.1.3",
55
55
  "jest-environment-node": "28.1.3",
56
56
  "next": "13.5.4",
@@ -62,7 +62,7 @@
62
62
  "access": "public"
63
63
  },
64
64
  "scripts": {
65
- "build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
65
+ "build": "swc src --out-dir dist --config-file ../../../../.swcrc --cli-config-file ../../../../.swc-cli.json --copy-files",
66
66
  "clean": "rm -rf dist",
67
67
  "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
68
68
  }