@vizmo/parse-server 5.5.5 β†’ 7.5.2-1

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 (200) hide show
  1. package/LICENSE +167 -25
  2. package/NOTICE +10 -0
  3. package/README.md +88 -67
  4. package/lib/AccountLockout.js +13 -29
  5. package/lib/Adapters/AdapterLoader.js +14 -16
  6. package/lib/Adapters/Analytics/AnalyticsAdapter.js +4 -13
  7. package/lib/Adapters/Auth/AuthAdapter.js +113 -15
  8. package/lib/Adapters/Auth/BaseCodeAuthAdapter.js +99 -0
  9. package/lib/Adapters/Auth/OAuth1Client.js +35 -58
  10. package/lib/Adapters/Auth/apple.js +53 -35
  11. package/lib/Adapters/Auth/facebook.js +71 -51
  12. package/lib/Adapters/Auth/gcenter.js +202 -187
  13. package/lib/Adapters/Auth/github.js +119 -34
  14. package/lib/Adapters/Auth/google.js +58 -45
  15. package/lib/Adapters/Auth/gpgames.js +120 -30
  16. package/lib/Adapters/Auth/httpsRequest.js +1 -7
  17. package/lib/Adapters/Auth/index.js +152 -94
  18. package/lib/Adapters/Auth/instagram.js +114 -28
  19. package/lib/Adapters/Auth/janraincapture.js +51 -12
  20. package/lib/Adapters/Auth/janrainengage.js +18 -12
  21. package/lib/Adapters/Auth/keycloak.js +77 -54
  22. package/lib/Adapters/Auth/ldap.js +76 -16
  23. package/lib/Adapters/Auth/line.js +119 -35
  24. package/lib/Adapters/Auth/linkedin.js +111 -40
  25. package/lib/Adapters/Auth/meetup.js +22 -17
  26. package/lib/Adapters/Auth/mfa.js +326 -0
  27. package/lib/Adapters/Auth/microsoft.js +105 -33
  28. package/lib/Adapters/Auth/oauth2.js +100 -122
  29. package/lib/Adapters/Auth/phantauth.js +23 -17
  30. package/lib/Adapters/Auth/qq.js +107 -42
  31. package/lib/Adapters/Auth/spotify.js +108 -46
  32. package/lib/Adapters/Auth/twitter.js +185 -48
  33. package/lib/Adapters/Auth/utils.js +28 -0
  34. package/lib/Adapters/Auth/vkontakte.js +29 -27
  35. package/lib/Adapters/Auth/wechat.js +105 -28
  36. package/lib/Adapters/Auth/weibo.js +135 -41
  37. package/lib/Adapters/Cache/CacheAdapter.js +6 -16
  38. package/lib/Adapters/Cache/InMemoryCache.js +6 -21
  39. package/lib/Adapters/Cache/InMemoryCacheAdapter.js +2 -13
  40. package/lib/Adapters/Cache/LRUCache.js +7 -18
  41. package/lib/Adapters/Cache/NullCacheAdapter.js +2 -10
  42. package/lib/Adapters/Cache/RedisCacheAdapter.js +56 -90
  43. package/lib/Adapters/Cache/SchemaCache.js +2 -8
  44. package/lib/Adapters/Email/MailAdapter.js +5 -13
  45. package/lib/Adapters/Files/FilesAdapter.js +12 -29
  46. package/lib/Adapters/Files/GridFSBucketAdapter.js +35 -94
  47. package/lib/Adapters/Files/GridStoreAdapter.js +1 -1
  48. package/lib/Adapters/Logger/LoggerAdapter.js +5 -17
  49. package/lib/Adapters/Logger/WinstonLogger.js +8 -37
  50. package/lib/Adapters/Logger/WinstonLoggerAdapter.js +6 -18
  51. package/lib/Adapters/MessageQueue/EventEmitterMQ.js +5 -23
  52. package/lib/Adapters/PubSub/EventEmitterPubSub.js +3 -19
  53. package/lib/Adapters/PubSub/PubSubAdapter.js +9 -14
  54. package/lib/Adapters/PubSub/RedisPubSub.js +33 -12
  55. package/lib/Adapters/Push/PushAdapter.js +5 -14
  56. package/lib/Adapters/Storage/Mongo/MongoCollection.js +34 -58
  57. package/lib/Adapters/Storage/Mongo/MongoSchemaCollection.js +33 -85
  58. package/lib/Adapters/Storage/Mongo/MongoStorageAdapter.js +107 -230
  59. package/lib/Adapters/Storage/Mongo/MongoTransform.js +105 -378
  60. package/lib/Adapters/Storage/Postgres/PostgresClient.js +1 -13
  61. package/lib/Adapters/Storage/Postgres/PostgresConfigParser.js +2 -21
  62. package/lib/Adapters/Storage/Postgres/PostgresStorageAdapter.js +160 -465
  63. package/lib/Adapters/Storage/Postgres/sql/index.js +4 -7
  64. package/lib/Adapters/Storage/StorageAdapter.js +1 -1
  65. package/lib/Adapters/WebSocketServer/WSAdapter.js +4 -14
  66. package/lib/Adapters/WebSocketServer/WSSAdapter.js +10 -18
  67. package/lib/Auth.js +357 -81
  68. package/lib/ClientSDK.js +3 -11
  69. package/lib/Config.js +194 -135
  70. package/lib/Controllers/AdaptableController.js +7 -20
  71. package/lib/Controllers/AnalyticsController.js +3 -12
  72. package/lib/Controllers/CacheController.js +5 -26
  73. package/lib/Controllers/DatabaseController.js +250 -389
  74. package/lib/Controllers/FilesController.js +23 -53
  75. package/lib/Controllers/HooksController.js +6 -57
  76. package/lib/Controllers/LiveQueryController.js +5 -25
  77. package/lib/Controllers/LoggerController.js +19 -62
  78. package/lib/Controllers/ParseGraphQLController.js +63 -115
  79. package/lib/Controllers/PushController.js +31 -64
  80. package/lib/Controllers/SchemaController.js +230 -376
  81. package/lib/Controllers/UserController.js +113 -128
  82. package/lib/Controllers/index.js +23 -83
  83. package/lib/Controllers/types.js +1 -1
  84. package/lib/Deprecator/Deprecations.js +3 -7
  85. package/lib/Deprecator/Deprecator.js +10 -19
  86. package/lib/GraphQL/ParseGraphQLSchema.js +19 -103
  87. package/lib/GraphQL/ParseGraphQLServer.js +63 -59
  88. package/lib/GraphQL/helpers/objectsMutations.js +3 -13
  89. package/lib/GraphQL/helpers/objectsQueries.js +19 -77
  90. package/lib/GraphQL/loaders/defaultGraphQLMutations.js +3 -11
  91. package/lib/GraphQL/loaders/defaultGraphQLQueries.js +3 -10
  92. package/lib/GraphQL/loaders/defaultGraphQLTypes.js +90 -262
  93. package/lib/GraphQL/loaders/defaultRelaySchema.js +10 -23
  94. package/lib/GraphQL/loaders/filesMutations.js +57 -36
  95. package/lib/GraphQL/loaders/functionsMutations.js +9 -20
  96. package/lib/GraphQL/loaders/parseClassMutations.js +17 -49
  97. package/lib/GraphQL/loaders/parseClassQueries.js +4 -29
  98. package/lib/GraphQL/loaders/parseClassTypes.js +24 -71
  99. package/lib/GraphQL/loaders/schemaDirectives.js +2 -19
  100. package/lib/GraphQL/loaders/schemaMutations.js +4 -23
  101. package/lib/GraphQL/loaders/schemaQueries.js +4 -17
  102. package/lib/GraphQL/loaders/schemaTypes.js +33 -68
  103. package/lib/GraphQL/loaders/usersMutations.js +91 -39
  104. package/lib/GraphQL/loaders/usersQueries.js +5 -27
  105. package/lib/GraphQL/parseGraphQLUtils.js +15 -24
  106. package/lib/GraphQL/transformers/className.js +1 -4
  107. package/lib/GraphQL/transformers/constraintType.js +3 -22
  108. package/lib/GraphQL/transformers/inputType.js +3 -22
  109. package/lib/GraphQL/transformers/mutation.js +40 -72
  110. package/lib/GraphQL/transformers/outputType.js +3 -22
  111. package/lib/GraphQL/transformers/query.js +6 -42
  112. package/lib/GraphQL/transformers/schemaFields.js +8 -35
  113. package/lib/KeyPromiseQueue.js +1 -12
  114. package/lib/LiveQuery/Client.js +6 -30
  115. package/lib/LiveQuery/Id.js +1 -7
  116. package/lib/LiveQuery/ParseCloudCodePublisher.js +14 -20
  117. package/lib/LiveQuery/ParseLiveQueryServer.js +129 -324
  118. package/lib/LiveQuery/ParsePubSub.js +2 -14
  119. package/lib/LiveQuery/ParseWebSocketServer.js +5 -27
  120. package/lib/LiveQuery/QueryTools.js +22 -118
  121. package/lib/LiveQuery/RequestSchema.js +20 -5
  122. package/lib/LiveQuery/SessionTokenCache.js +4 -20
  123. package/lib/LiveQuery/Subscription.js +5 -19
  124. package/lib/LiveQuery/equalObjects.js +2 -14
  125. package/lib/Options/Definitions.js +246 -25
  126. package/lib/Options/docs.js +53 -7
  127. package/lib/Options/index.js +4 -12
  128. package/lib/Options/parsers.js +10 -18
  129. package/lib/Page.js +2 -11
  130. package/lib/ParseMessageQueue.js +2 -12
  131. package/lib/ParseServer.js +258 -210
  132. package/lib/ParseServerRESTController.js +15 -38
  133. package/lib/PromiseRouter.js +17 -51
  134. package/lib/Push/PushQueue.js +4 -16
  135. package/lib/Push/PushWorker.js +11 -37
  136. package/lib/Push/utils.js +10 -39
  137. package/lib/RestQuery.js +259 -289
  138. package/lib/RestWrite.js +469 -547
  139. package/lib/Routers/AggregateRouter.js +28 -62
  140. package/lib/Routers/AnalyticsRouter.js +3 -9
  141. package/lib/Routers/AudiencesRouter.js +5 -20
  142. package/lib/Routers/ClassesRouter.js +13 -57
  143. package/lib/Routers/CloudCodeRouter.js +2 -20
  144. package/lib/Routers/FeaturesRouter.js +8 -13
  145. package/lib/Routers/FilesRouter.js +69 -91
  146. package/lib/Routers/FunctionsRouter.js +37 -49
  147. package/lib/Routers/GlobalConfigRouter.js +59 -31
  148. package/lib/Routers/GraphQLRouter.js +5 -19
  149. package/lib/Routers/HooksRouter.js +5 -34
  150. package/lib/Routers/IAPValidationRouter.js +7 -30
  151. package/lib/Routers/InstallationsRouter.js +4 -15
  152. package/lib/Routers/LogsRouter.js +8 -21
  153. package/lib/Routers/PagesRouter.js +72 -133
  154. package/lib/Routers/PublicAPIRouter.js +6 -66
  155. package/lib/Routers/PurgeRouter.js +5 -20
  156. package/lib/Routers/PushRouter.js +6 -23
  157. package/lib/Routers/RolesRouter.js +3 -10
  158. package/lib/Routers/SchemasRouter.js +9 -39
  159. package/lib/Routers/SecurityRouter.js +5 -17
  160. package/lib/Routers/SessionsRouter.js +5 -22
  161. package/lib/Routers/UsersRouter.js +247 -154
  162. package/lib/SchemaMigrations/DefinedSchemas.js +71 -122
  163. package/lib/SchemaMigrations/Migrations.js +2 -8
  164. package/lib/Security/Check.js +11 -20
  165. package/lib/Security/CheckGroup.js +6 -16
  166. package/lib/Security/CheckGroups/CheckGroupDatabase.js +9 -22
  167. package/lib/Security/CheckGroups/CheckGroupServerConfig.js +16 -20
  168. package/lib/Security/CheckGroups/CheckGroups.js +2 -5
  169. package/lib/Security/CheckRunner.js +26 -48
  170. package/lib/SharedRest.js +28 -0
  171. package/lib/StatusHandler.js +21 -70
  172. package/lib/TestUtils.js +28 -10
  173. package/lib/Utils.js +71 -65
  174. package/lib/batch.js +17 -28
  175. package/lib/cache.js +3 -7
  176. package/lib/cli/definitions/parse-live-query-server.js +2 -5
  177. package/lib/cli/definitions/parse-server.js +2 -5
  178. package/lib/cli/parse-live-query-server.js +2 -7
  179. package/lib/cli/parse-server.js +12 -22
  180. package/lib/cli/utils/commander.js +15 -54
  181. package/lib/cli/utils/runner.js +9 -21
  182. package/lib/cloud-code/Parse.Cloud.js +76 -216
  183. package/lib/cloud-code/Parse.Server.js +21 -0
  184. package/lib/cryptoUtils.js +11 -19
  185. package/lib/defaults.js +4 -18
  186. package/lib/deprecated.js +1 -2
  187. package/lib/index.js +29 -43
  188. package/lib/logger.js +7 -14
  189. package/lib/middlewares.js +292 -144
  190. package/lib/password.js +6 -10
  191. package/lib/request.js +173 -2
  192. package/lib/requiredParameter.js +1 -3
  193. package/lib/rest.js +65 -81
  194. package/lib/triggers.js +100 -258
  195. package/lib/vendor/mongodbUrl.js +312 -362
  196. package/package.json +84 -77
  197. package/postinstall.js +38 -50
  198. package/PATENTS +0 -37
  199. package/lib/cloud-code/HTTPResponse.js +0 -73
  200. package/lib/cloud-code/httpRequest.js +0 -192
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@vizmo/parse-server",
3
- "version": "5.5.5",
3
+ "version": "7.5.2-1",
4
4
  "description": "An express module providing a Parse-compatible API server",
5
5
  "main": "lib/index.js",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "https://github.com/vizmo-vms/vizmo-parse-server"
8
+ "url": "https://github.com/parse-community/parse-server"
9
9
  },
10
10
  "files": [
11
11
  "bin/",
@@ -13,119 +13,126 @@
13
13
  "public_html/",
14
14
  "views/",
15
15
  "LICENSE",
16
- "PATENTS",
16
+ "NOTICE",
17
17
  "postinstall.js",
18
18
  "README.md"
19
19
  ],
20
- "license": "BSD-3-Clause",
20
+ "license": "Apache-2.0",
21
21
  "dependencies": {
22
- "@graphql-yoga/node": "2.6.0",
23
- "@graphql-tools/utils": "8.12.0",
24
- "@graphql-tools/merge": "8.3.6",
25
- "@graphql-tools/schema": "9.0.4",
26
- "@parse/fs-files-adapter": "1.2.2",
27
- "@parse/push-adapter": "4.1.2",
22
+ "@apollo/server": "4.11.2",
23
+ "@babel/eslint-parser": "7.26.5",
24
+ "@graphql-tools/merge": "9.0.17",
25
+ "@graphql-tools/schema": "10.0.18",
26
+ "@graphql-tools/utils": "10.6.3",
27
+ "@parse/fs-files-adapter": "3.0.0",
28
+ "@parse/push-adapter": "6.8.0",
28
29
  "bcryptjs": "2.4.3",
29
- "body-parser": "1.20.1",
30
- "commander": "5.1.0",
30
+ "body-parser": "1.20.3",
31
+ "commander": "12.1.0",
31
32
  "cors": "2.8.5",
32
33
  "deepcopy": "2.1.0",
33
- "express": "4.18.1",
34
- "follow-redirects": "1.15.2",
35
- "graphql": "16.6.0",
36
- "graphql-list-fields": "2.0.2",
34
+ "express": "4.21.2",
35
+ "express-rate-limit": "7.4.1",
36
+ "follow-redirects": "1.15.9",
37
+ "graphql": "16.10.0",
38
+ "graphql-list-fields": "2.0.4",
39
+ "graphql-relay": "0.10.2",
37
40
  "graphql-tag": "2.12.6",
38
- "graphql-relay": "0.10.0",
41
+ "graphql-upload": "15.0.2",
39
42
  "intersect": "1.0.1",
40
- "jsonwebtoken": "8.5.1",
41
- "jwks-rsa": "2.1.4",
42
- "ldapjs": "2.3.3",
43
+ "jsonwebtoken": "9.0.2",
44
+ "jwks-rsa": "3.1.0",
45
+ "ldapjs": "3.0.7",
43
46
  "lodash": "4.17.21",
44
- "lru-cache": "7.12.0",
45
- "mime": "3.0.0",
46
- "mongodb": "4.10.0",
47
+ "lru-cache": "10.4.0",
48
+ "mime": "4.0.6",
49
+ "mongodb": "6.13.0",
47
50
  "mustache": "4.2.0",
48
- "parse": "3.4.2",
49
- "pg-monitor": "1.5.0",
50
- "pg-promise": "10.12.0",
51
+ "otpauth": "9.3.5",
52
+ "parse": "5.3.0",
53
+ "path-to-regexp": "6.3.0",
54
+ "pg-monitor": "2.1.0",
55
+ "pg-promise": "11.10.2",
51
56
  "pluralize": "8.0.0",
52
- "redis": "3.1.2",
53
- "semver": "7.3.8",
57
+ "punycode": "2.3.1",
58
+ "rate-limit-redis": "4.2.0",
59
+ "redis": "4.7.0",
60
+ "semver": "7.7.1",
54
61
  "subscriptions-transport-ws": "0.11.0",
55
62
  "tv4": "1.3.0",
56
- "uuid": "9.0.0",
57
- "winston": "3.8.1",
58
- "winston-daily-rotate-file": "4.7.1",
59
- "ws": "8.9.0"
63
+ "uuid": "11.0.3",
64
+ "winston": "3.17.0",
65
+ "winston-daily-rotate-file": "5.0.0",
66
+ "ws": "8.18.0"
60
67
  },
61
68
  "devDependencies": {
62
- "graphql-tag": "2.12.6",
63
- "@actions/core": "1.9.1",
64
- "@apollo/client": "3.6.1",
65
- "@babel/cli": "7.10.0",
66
- "@babel/core": "7.10.0",
67
- "@babel/plugin-proposal-object-rest-spread": "7.10.0",
68
- "@babel/plugin-transform-flow-strip-types": "7.9.0",
69
- "@babel/preset-env": "7.10.0",
70
- "@parse/minami": "1.0.0",
71
- "@saithodev/semantic-release-backmerge": "2.1.2",
72
- "@semantic-release/changelog": "5.0.1",
73
- "@semantic-release/commit-analyzer": "8.0.1",
74
- "@semantic-release/git": "9.0.0",
75
- "@semantic-release/github": "7.2.3",
76
- "@semantic-release/npm": "7.1.3",
77
- "@semantic-release/release-notes-generator": "9.0.3",
78
- "all-node-versions": "8.0.0",
79
- "apollo-upload-client": "16.0.0",
80
- "apollo-utilities": "1.3.4",
81
- "babel-eslint": "10.1.0",
82
- "bcrypt-nodejs": "0.0.3",
83
- "cross-env": "7.0.2",
69
+ "@actions/core": "1.11.1",
70
+ "@apollo/client": "3.12.3",
71
+ "@babel/cli": "7.26.4",
72
+ "@babel/core": "7.26.0",
73
+ "@babel/plugin-proposal-object-rest-spread": "7.20.7",
74
+ "@babel/plugin-transform-flow-strip-types": "7.25.9",
75
+ "@babel/preset-env": "7.26.0",
76
+ "@saithodev/semantic-release-backmerge": "4.0.1",
77
+ "@semantic-release/changelog": "6.0.3",
78
+ "@semantic-release/commit-analyzer": "13.0.0",
79
+ "@semantic-release/git": "10.0.1",
80
+ "@semantic-release/github": "11.0.1",
81
+ "@semantic-release/npm": "12.0.1",
82
+ "@semantic-release/release-notes-generator": "14.0.1",
83
+ "all-node-versions": "12.1.0",
84
+ "apollo-upload-client": "18.0.1",
85
+ "clean-jsdoc-theme": "4.3.0",
86
+ "cross-env": "7.0.3",
84
87
  "deep-diff": "1.0.2",
85
- "eslint": "6.8.0",
86
- "eslint-plugin-flowtype": "5.1.3",
88
+ "eslint": "8.57.0",
89
+ "eslint-plugin-flowtype": "8.0.3",
87
90
  "flow-bin": "0.119.1",
88
- "form-data": "3.0.0",
89
- "husky": "4.3.8",
91
+ "form-data": "4.0.1",
92
+ "graphql-tag": "2.12.6",
93
+ "husky": "9.1.7",
90
94
  "jasmine": "3.5.0",
91
95
  "jasmine-spec-reporter": "7.0.0",
92
- "jsdoc": "3.6.3",
96
+ "jsdoc": "4.0.4",
93
97
  "jsdoc-babel": "0.5.0",
94
- "lint-staged": "10.2.3",
95
- "madge": "5.0.1",
98
+ "lint-staged": "15.2.11",
99
+ "m": "1.9.0",
100
+ "madge": "8.0.0",
96
101
  "mock-files-adapter": "file:spec/dependencies/mock-files-adapter",
97
102
  "mock-mail-adapter": "file:spec/dependencies/mock-mail-adapter",
98
- "mongodb-runner": "4.8.1",
99
- "mongodb-version-list": "1.0.0",
103
+ "mongodb-runner": "5.7.1",
104
+ "node-abort-controller": "3.1.1",
100
105
  "node-fetch": "3.2.10",
101
- "nyc": "15.1.0",
106
+ "nyc": "17.1.0",
102
107
  "prettier": "2.0.5",
103
- "semantic-release": "17.4.6",
104
- "yaml": "1.10.0"
108
+ "semantic-release": "24.2.0",
109
+ "yaml": "2.6.1"
105
110
  },
106
111
  "scripts": {
107
112
  "ci:check": "node ./ci/ciCheck.js",
108
113
  "ci:checkNodeEngine": "node ./ci/nodeEngineCheck.js",
114
+ "ci:definitionsCheck": "node ./ci/definitionsCheck.js",
109
115
  "definitions": "node ./resources/buildConfigDefinitions.js && prettier --write 'src/Options/*.js'",
110
116
  "docs": "jsdoc -c ./jsdoc-conf.json",
111
117
  "lint": "flow && eslint --cache ./",
112
118
  "lint-fix": "eslint --fix --cache ./",
113
119
  "build": "babel src/ -d lib/ --copy-files",
114
120
  "watch": "babel --watch src/ -d lib/ --copy-files",
115
- "test:mongodb:runnerstart": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=$npm_config_dbversion} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} MONGODB_STORAGE_ENGINE=${MONGODB_STORAGE_ENGINE:=wiredTiger} mongodb-runner start",
116
- "test:mongodb:testonly": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=$npm_config_dbversion} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} MONGODB_STORAGE_ENGINE=${MONGODB_STORAGE_ENGINE:=wiredTiger} TESTING=1 jasmine",
121
+ "test:mongodb:runnerstart": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=$npm_config_dbversion} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} mongodb-runner start -t ${MONGODB_TOPOLOGY} --version ${MONGODB_VERSION} -- --port 27017",
122
+ "test:mongodb:testonly": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=$npm_config_dbversion} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} TESTING=1 jasmine",
117
123
  "test:mongodb": "npm run test:mongodb:runnerstart --dbversion=$npm_config_dbversion && npm run test:mongodb:testonly --dbversion=$npm_config_dbversion",
118
- "test:mongodb:4.0.28": "npm run test:mongodb --dbversion=4.0.28",
119
124
  "test:mongodb:4.2.19": "npm run test:mongodb --dbversion=4.2.19",
120
125
  "test:mongodb:4.4.13": "npm run test:mongodb --dbversion=4.4.13",
121
126
  "test:mongodb:5.3.2": "npm run test:mongodb --dbversion=5.3.2",
122
127
  "test:mongodb:6.0.2": "npm run test:mongodb --dbversion=6.0.2",
123
- "posttest:mongodb": "mongodb-runner stop",
124
- "pretest": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=5.3.2} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} MONGODB_STORAGE_ENGINE=${MONGODB_STORAGE_ENGINE:=wiredTiger} mongodb-runner start",
125
- "testonly": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=5.3.2} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} MONGODB_STORAGE_ENGINE=${MONGODB_STORAGE_ENGINE:=wiredTiger} TESTING=1 jasmine",
128
+ "test:mongodb:7.0.1": "npm run test:mongodb --dbversion=7.0.1",
129
+ "test:mongodb:8.0.3": "npm run test:mongodb --dbversion=8.0.3",
130
+ "test:postgres:testonly": "cross-env PARSE_SERVER_TEST_DB=postgres PARSE_SERVER_TEST_DATABASE_URI=postgres://postgres:password@localhost:5432/parse_server_postgres_adapter_test_database npm run testonly",
131
+ "pretest": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=5.3.2} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} mongodb-runner start -t ${MONGODB_TOPOLOGY} --version ${MONGODB_VERSION} -- --port 27017",
132
+ "testonly": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=5.3.2} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} TESTING=1 jasmine",
126
133
  "test": "npm run testonly",
127
- "posttest": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=5.3.2} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} MONGODB_STORAGE_ENGINE=${MONGODB_STORAGE_ENGINE:=wiredTiger} mongodb-runner stop",
128
- "coverage": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=5.3.2} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} MONGODB_STORAGE_ENGINE=${MONGODB_STORAGE_ENGINE:=wiredTiger} TESTING=1 nyc jasmine",
134
+ "posttest": "cross-env mongodb-runner stop --all",
135
+ "coverage": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=5.3.2} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} TESTING=1 nyc jasmine",
129
136
  "start": "node ./bin/parse-server",
130
137
  "prettier": "prettier --write {src,spec}/{**/*,*}.js",
131
138
  "prepare": "npm run build",
@@ -133,13 +140,13 @@
133
140
  "madge:circular": "node_modules/.bin/madge ./src --circular"
134
141
  },
135
142
  "engines": {
136
- "node": ">=12.22.10 <19"
143
+ "node": ">=18.0.0 <19.0.0 || >=19.0.0 <20.0.0 || >=20.0.0 <21.0.0 || >=22.0.0 <23.0.0"
137
144
  },
138
145
  "bin": {
139
146
  "parse-server": "bin/parse-server"
140
147
  },
141
148
  "optionalDependencies": {
142
- "@node-rs/bcrypt": "1.1.0"
149
+ "@node-rs/bcrypt": "1.10.7"
143
150
  },
144
151
  "collective": {
145
152
  "type": "opencollective",
@@ -162,4 +169,4 @@
162
169
  "git add"
163
170
  ]
164
171
  }
165
- }
172
+ }
package/postinstall.js CHANGED
@@ -1,50 +1,38 @@
1
- const pkg = require('./package.json');
2
-
3
- const version = parseFloat(process.version.substr(1));
4
- const minimum = parseFloat(pkg.engines.node.match(/\d+/g).join('.'));
5
-
6
- module.exports = function () {
7
- const openCollective = `
8
- 1111111111
9
- 1111111111111111
10
- 1111111111111111111111
11
- 11111111111111111111111111
12
- 111111111111111 11111111
13
- 1111111111111 111111
14
- 1111111111111 111111111 111111
15
- 111111111111 11111111111 111111
16
- 1111111111111 11111111111 111111
17
- 1111111111111 1111111111 111111
18
- 1111111111111111111111111 1111111
19
- 11111111 11111111
20
- 111111 1111111111111111111
21
- 11111 11111 111111111111111111
22
- 11111 11111111111111111
23
- 111111 111111111111111111
24
- 11111111111111111111111111
25
- 1111111111111111111111
26
- 111111111111111111
27
- 11111111111
28
-
29
-
30
- Thanks for installing parse πŸ™
31
- Please consider donating to our open collective
32
- to help us maintain this package.
33
-
34
- πŸ‘‰ https://opencollective.com/parse-server
35
-
36
- `;
37
- process.stdout.write(openCollective);
38
- if (version >= minimum) {
39
- process.exit(0);
40
- }
41
-
42
- const errorMessage = `
43
- ⚠️ parse-server requires at least node@${minimum}!
44
- You have node@${version}
45
-
46
- `;
47
-
48
- process.stdout.write(errorMessage);
49
- process.exit(1);
50
- };
1
+ const message = `
2
+ 1111111111
3
+ 1111111111111111
4
+ 1111111111111111111111
5
+ 11111111111111111111111111
6
+ 111111111111111 11111111
7
+ 1111111111111 111 111111
8
+ 1111111111111 111111111 111111
9
+ 111111111111 11111111111 111111
10
+ 1111111111111 11111111111 111111
11
+ 1111111111111 1111111111 111111
12
+ 1111111111111111111111111 1111111
13
+ 11111111 11111111
14
+ 111111 111 1111111111111111111
15
+ 11111 11111 111111111111111111
16
+ 11111 1 11111111111111111
17
+ 111111 111111111111111111
18
+ 11111111111111111111111111
19
+ 1111111111111111111111
20
+ 111111111111111111
21
+ 11111111111
22
+
23
+ Thank you for using Parse Platform!
24
+ https://parseplatform.org
25
+
26
+ Please consider donating to help us maintain
27
+ this package:
28
+
29
+ πŸ‘‰ https://opencollective.com/parse-server πŸ‘ˆ
30
+
31
+ `;
32
+
33
+ function main() {
34
+ process.stdout.write(message);
35
+ process.exit(0);
36
+ }
37
+
38
+ module.exports = main;
package/PATENTS DELETED
@@ -1,37 +0,0 @@
1
- Additional Grant of Patent Rights Version 2
2
-
3
- "Software" means the Parse Server software distributed by Parse, LLC.
4
-
5
- Parse, LLC. ("Parse") hereby grants to each recipient of the Software
6
- ("you") a perpetual, worldwide, royalty-free, non-exclusive, irrevocable
7
- (subject to the termination provision below) license under any Necessary
8
- Claims, to make, have made, use, sell, offer to sell, import, and otherwise
9
- transfer the Software. For avoidance of doubt, no license is granted under
10
- Parse’s rights in any patent claims that are infringed by (i) modifications
11
- to the Software made by you or any third party or (ii) the Software in
12
- combination with any software or other technology.
13
-
14
- The license granted hereunder will terminate, automatically and without notice,
15
- if you (or any of your subsidiaries, corporate affiliates or agents) initiate
16
- directly or indirectly, or take a direct financial interest in, any Patent
17
- Assertion: (i) against Parse or any of its subsidiaries or corporate
18
- affiliates, (ii) against any party if such Patent Assertion arises in whole or
19
- in part from any software, technology, product or service of Parse or any of
20
- its subsidiaries or corporate affiliates, or (iii) against any party relating
21
- to the Software. Notwithstanding the foregoing, if Parse or any of its
22
- subsidiaries or corporate affiliates files a lawsuit alleging patent
23
- infringement against you in the first instance, and you respond by filing a
24
- patent infringement counterclaim in that lawsuit against that party that is
25
- unrelated to the Software, the license granted hereunder will not terminate
26
- under section (i) of this paragraph due to such counterclaim.
27
-
28
- A "Necessary Claim" is a claim of a patent owned by Parse that is
29
- necessarily infringed by the Software standing alone.
30
-
31
- A "Patent Assertion" is any lawsuit or other action alleging direct, indirect,
32
- or contributory infringement or inducement to infringe any patent, including a
33
- cross-claim or counterclaim.
34
-
35
- -----
36
-
37
- As of April 5, 2017, Parse, LLC has transferred this code to the parse-community organization, and will no longer be contributing to or distributing this code.
@@ -1,73 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
-
8
- /**
9
- * @typedef Parse.Cloud.HTTPResponse
10
- * @property {Buffer} buffer The raw byte representation of the response body. Use this to receive binary data. See Buffer for more details.
11
- * @property {Object} cookies The cookies sent by the server. The keys in this object are the names of the cookies. The values are Parse.Cloud.Cookie objects.
12
- * @property {Object} data The parsed response body as a JavaScript object. This is only available when the response Content-Type is application/x-www-form-urlencoded or application/json.
13
- * @property {Object} headers The headers sent by the server. The keys in this object are the names of the headers. We do not support multiple response headers with the same name. In the common case of Set-Cookie headers, please use the cookies field instead.
14
- * @property {Number} status The status code.
15
- * @property {String} text The raw text representation of the response body.
16
- */
17
- class HTTPResponse {
18
- constructor(response, body) {
19
- let _text, _data;
20
-
21
- this.status = response.statusCode;
22
- this.headers = response.headers || {};
23
- this.cookies = this.headers['set-cookie'];
24
-
25
- if (typeof body == 'string') {
26
- _text = body;
27
- } else if (Buffer.isBuffer(body)) {
28
- this.buffer = body;
29
- } else if (typeof body == 'object') {
30
- _data = body;
31
- }
32
-
33
- const getText = () => {
34
- if (!_text && this.buffer) {
35
- _text = this.buffer.toString('utf-8');
36
- } else if (!_text && _data) {
37
- _text = JSON.stringify(_data);
38
- }
39
-
40
- return _text;
41
- };
42
-
43
- const getData = () => {
44
- if (!_data) {
45
- try {
46
- _data = JSON.parse(getText());
47
- } catch (e) {
48
- /* */
49
- }
50
- }
51
-
52
- return _data;
53
- };
54
-
55
- Object.defineProperty(this, 'body', {
56
- get: () => {
57
- return body;
58
- }
59
- });
60
- Object.defineProperty(this, 'text', {
61
- enumerable: true,
62
- get: getText
63
- });
64
- Object.defineProperty(this, 'data', {
65
- enumerable: true,
66
- get: getData
67
- });
68
- }
69
-
70
- }
71
-
72
- exports.default = HTTPResponse;
73
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jbG91ZC1jb2RlL0hUVFBSZXNwb25zZS5qcyJdLCJuYW1lcyI6WyJIVFRQUmVzcG9uc2UiLCJjb25zdHJ1Y3RvciIsInJlc3BvbnNlIiwiYm9keSIsIl90ZXh0IiwiX2RhdGEiLCJzdGF0dXMiLCJzdGF0dXNDb2RlIiwiaGVhZGVycyIsImNvb2tpZXMiLCJCdWZmZXIiLCJpc0J1ZmZlciIsImJ1ZmZlciIsImdldFRleHQiLCJ0b1N0cmluZyIsIkpTT04iLCJzdHJpbmdpZnkiLCJnZXREYXRhIiwicGFyc2UiLCJlIiwiT2JqZWN0IiwiZGVmaW5lUHJvcGVydHkiLCJnZXQiLCJlbnVtZXJhYmxlIl0sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ2UsTUFBTUEsWUFBTixDQUFtQjtBQUNoQ0MsRUFBQUEsV0FBVyxDQUFDQyxRQUFELEVBQ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