parse 4.0.0-alpha.1 → 4.0.0-alpha.11

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 (255) hide show
  1. package/LICENSE +167 -25
  2. package/NOTICE +10 -0
  3. package/README.md +6 -5
  4. package/dist/parse.js +12838 -21190
  5. package/dist/parse.min.js +7 -6
  6. package/dist/parse.weapp.js +7921 -17062
  7. package/dist/parse.weapp.min.js +7 -6
  8. package/lib/browser/Analytics.js +2 -27
  9. package/lib/browser/AnonymousUtils.js +6 -42
  10. package/lib/browser/Cloud.js +12 -77
  11. package/lib/browser/CloudCode.js +0 -3
  12. package/lib/browser/CoreManager.js +46 -191
  13. package/lib/browser/CryptoController.js +2 -16
  14. package/lib/browser/EventEmitter.js +1 -8
  15. package/lib/browser/EventuallyQueue.js +277 -824
  16. package/lib/browser/FacebookUtils.js +6 -42
  17. package/lib/browser/IndexedDBStorageController.js +3 -14
  18. package/lib/browser/InstallationController.js +2 -20
  19. package/lib/browser/LiveQueryClient.js +105 -213
  20. package/lib/browser/LiveQuerySubscription.js +10 -39
  21. package/lib/browser/LocalDatastore.js +451 -1081
  22. package/lib/browser/LocalDatastoreController.js +145 -602
  23. package/lib/browser/LocalDatastoreController.react-native.js +137 -573
  24. package/lib/browser/LocalDatastoreUtils.js +2 -19
  25. package/lib/browser/ObjectStateMutations.js +18 -121
  26. package/lib/browser/OfflineQuery.js +61 -222
  27. package/lib/browser/Parse.js +12 -115
  28. package/lib/browser/ParseACL.js +33 -148
  29. package/lib/browser/ParseCLP.js +96 -314
  30. package/lib/browser/ParseConfig.js +18 -95
  31. package/lib/browser/ParseError.js +63 -99
  32. package/lib/browser/ParseFile.js +128 -685
  33. package/lib/browser/ParseGeoPoint.js +23 -89
  34. package/lib/browser/ParseHooks.js +1 -34
  35. package/lib/browser/ParseInstallation.js +4 -32
  36. package/lib/browser/ParseLiveQuery.js +96 -505
  37. package/lib/browser/ParseObject.js +665 -1845
  38. package/lib/browser/ParseOp.js +41 -287
  39. package/lib/browser/ParsePolygon.js +13 -70
  40. package/lib/browser/ParseQuery.js +403 -1504
  41. package/lib/browser/ParseRelation.js +12 -68
  42. package/lib/browser/ParseRole.js +13 -75
  43. package/lib/browser/ParseSchema.js +49 -208
  44. package/lib/browser/ParseSession.js +11 -69
  45. package/lib/browser/ParseUser.js +274 -1127
  46. package/lib/browser/Push.js +7 -50
  47. package/lib/browser/RESTController.js +28 -157
  48. package/lib/browser/SingleInstanceStateController.js +19 -144
  49. package/lib/browser/Socket.weapp.js +0 -10
  50. package/lib/browser/Storage.js +10 -80
  51. package/lib/browser/StorageController.browser.js +4 -24
  52. package/lib/browser/StorageController.default.js +4 -24
  53. package/lib/browser/StorageController.react-native.js +6 -40
  54. package/lib/browser/StorageController.weapp.js +5 -23
  55. package/lib/browser/TaskQueue.js +1 -29
  56. package/lib/browser/UniqueInstanceStateController.js +19 -149
  57. package/lib/browser/Xhr.weapp.js +0 -17
  58. package/lib/browser/arrayContainsObject.js +2 -23
  59. package/lib/browser/canBeSerialized.js +3 -40
  60. package/lib/browser/decode.js +3 -40
  61. package/lib/browser/encode.js +9 -77
  62. package/lib/browser/equals.js +2 -34
  63. package/lib/browser/escape.js +1 -15
  64. package/lib/browser/isRevocableSession.js +2 -18
  65. package/lib/browser/parseDate.js +2 -20
  66. package/lib/browser/promiseUtils.js +3 -21
  67. package/lib/browser/unique.js +3 -24
  68. package/lib/browser/unsavedChildren.js +6 -57
  69. package/lib/browser/uuid.js +3 -1
  70. package/lib/node/Analytics.js +1 -25
  71. package/lib/node/AnonymousUtils.js +5 -44
  72. package/lib/node/Cloud.js +10 -73
  73. package/lib/node/CloudCode.js +0 -3
  74. package/lib/node/CoreManager.js +47 -227
  75. package/lib/node/CryptoController.js +2 -16
  76. package/lib/node/EventEmitter.js +1 -8
  77. package/lib/node/EventuallyQueue.js +16 -123
  78. package/lib/node/FacebookUtils.js +5 -44
  79. package/lib/node/IndexedDBStorageController.js +3 -19
  80. package/lib/node/InstallationController.js +2 -22
  81. package/lib/node/LiveQueryClient.js +72 -154
  82. package/lib/node/LiveQuerySubscription.js +7 -26
  83. package/lib/node/LocalDatastore.js +19 -182
  84. package/lib/node/LocalDatastoreController.js +6 -45
  85. package/lib/node/LocalDatastoreController.react-native.js +6 -52
  86. package/lib/node/LocalDatastoreUtils.js +1 -13
  87. package/lib/node/ObjectStateMutations.js +13 -100
  88. package/lib/node/OfflineQuery.js +27 -151
  89. package/lib/node/Parse.js +11 -108
  90. package/lib/node/ParseACL.js +32 -157
  91. package/lib/node/ParseCLP.js +69 -269
  92. package/lib/node/ParseConfig.js +16 -91
  93. package/lib/node/ParseError.js +61 -74
  94. package/lib/node/ParseFile.js +49 -212
  95. package/lib/node/ParseGeoPoint.js +21 -89
  96. package/lib/node/ParseHooks.js +0 -35
  97. package/lib/node/ParseInstallation.js +1 -17
  98. package/lib/node/ParseLiveQuery.js +10 -43
  99. package/lib/node/ParseObject.js +229 -964
  100. package/lib/node/ParseOp.js +31 -262
  101. package/lib/node/ParsePolygon.js +12 -69
  102. package/lib/node/ParseQuery.js +169 -888
  103. package/lib/node/ParseRelation.js +11 -68
  104. package/lib/node/ParseRole.js +10 -64
  105. package/lib/node/ParseSchema.js +46 -229
  106. package/lib/node/ParseSession.js +8 -57
  107. package/lib/node/ParseUser.js +107 -583
  108. package/lib/node/Push.js +4 -44
  109. package/lib/node/RESTController.js +18 -127
  110. package/lib/node/SingleInstanceStateController.js +17 -137
  111. package/lib/node/Socket.weapp.js +0 -7
  112. package/lib/node/Storage.js +10 -90
  113. package/lib/node/StorageController.browser.js +4 -30
  114. package/lib/node/StorageController.default.js +5 -28
  115. package/lib/node/StorageController.react-native.js +6 -47
  116. package/lib/node/StorageController.weapp.js +6 -28
  117. package/lib/node/TaskQueue.js +1 -24
  118. package/lib/node/UniqueInstanceStateController.js +16 -140
  119. package/lib/node/Xhr.weapp.js +0 -15
  120. package/lib/node/arrayContainsObject.js +1 -19
  121. package/lib/node/canBeSerialized.js +2 -35
  122. package/lib/node/decode.js +1 -33
  123. package/lib/node/encode.js +3 -61
  124. package/lib/node/equals.js +0 -27
  125. package/lib/node/escape.js +1 -13
  126. package/lib/node/isRevocableSession.js +1 -12
  127. package/lib/node/parseDate.js +1 -14
  128. package/lib/node/promiseUtils.js +2 -14
  129. package/lib/node/unique.js +1 -18
  130. package/lib/node/unsavedChildren.js +2 -45
  131. package/lib/node/uuid.js +6 -1
  132. package/lib/react-native/Analytics.js +0 -9
  133. package/lib/react-native/AnonymousUtils.js +0 -10
  134. package/lib/react-native/Cloud.js +0 -26
  135. package/lib/react-native/CoreManager.js +2 -6
  136. package/lib/react-native/CryptoController.js +0 -2
  137. package/lib/react-native/EventEmitter.js +0 -2
  138. package/lib/react-native/EventuallyQueue.js +156 -711
  139. package/lib/react-native/FacebookUtils.js +0 -22
  140. package/lib/react-native/IndexedDBStorageController.js +0 -1
  141. package/lib/react-native/InstallationController.js +0 -6
  142. package/lib/react-native/LiveQueryClient.js +46 -157
  143. package/lib/react-native/LiveQuerySubscription.js +3 -27
  144. package/lib/react-native/LocalDatastore.js +281 -948
  145. package/lib/react-native/LocalDatastoreController.js +71 -552
  146. package/lib/react-native/LocalDatastoreController.react-native.js +91 -526
  147. package/lib/react-native/LocalDatastoreUtils.js +0 -1
  148. package/lib/react-native/ObjectStateMutations.js +2 -65
  149. package/lib/react-native/OfflineQuery.js +25 -196
  150. package/lib/react-native/Parse.js +0 -65
  151. package/lib/react-native/ParseACL.js +0 -44
  152. package/lib/react-native/ParseCLP.js +23 -161
  153. package/lib/react-native/ParseConfig.js +0 -42
  154. package/lib/react-native/ParseError.js +1 -21
  155. package/lib/react-native/ParseFile.js +55 -529
  156. package/lib/react-native/ParseGeoPoint.js +0 -17
  157. package/lib/react-native/ParseHooks.js +0 -30
  158. package/lib/react-native/ParseInstallation.js +1 -23
  159. package/lib/react-native/ParseLiveQuery.js +55 -472
  160. package/lib/react-native/ParseObject.js +245 -1246
  161. package/lib/react-native/ParseOp.js +1 -138
  162. package/lib/react-native/ParsePolygon.js +0 -24
  163. package/lib/react-native/ParseQuery.js +182 -874
  164. package/lib/react-native/ParseRelation.js +0 -25
  165. package/lib/react-native/ParseRole.js +1 -36
  166. package/lib/react-native/ParseSchema.js +3 -54
  167. package/lib/react-native/ParseSession.js +1 -40
  168. package/lib/react-native/ParseUser.js +95 -773
  169. package/lib/react-native/Push.js +0 -16
  170. package/lib/react-native/RESTController.js +12 -109
  171. package/lib/react-native/SingleInstanceStateController.js +0 -44
  172. package/lib/react-native/Socket.weapp.js +0 -10
  173. package/lib/react-native/Storage.js +0 -24
  174. package/lib/react-native/StorageController.browser.js +0 -2
  175. package/lib/react-native/StorageController.default.js +0 -1
  176. package/lib/react-native/StorageController.react-native.js +0 -2
  177. package/lib/react-native/TaskQueue.js +0 -15
  178. package/lib/react-native/UniqueInstanceStateController.js +0 -47
  179. package/lib/react-native/Xhr.weapp.js +0 -16
  180. package/lib/react-native/arrayContainsObject.js +0 -5
  181. package/lib/react-native/canBeSerialized.js +0 -18
  182. package/lib/react-native/decode.js +0 -21
  183. package/lib/react-native/encode.js +0 -25
  184. package/lib/react-native/equals.js +0 -18
  185. package/lib/react-native/escape.js +0 -1
  186. package/lib/react-native/isRevocableSession.js +0 -1
  187. package/lib/react-native/parseDate.js +0 -3
  188. package/lib/react-native/promiseUtils.js +0 -13
  189. package/lib/react-native/unique.js +0 -4
  190. package/lib/react-native/unsavedChildren.js +0 -21
  191. package/lib/react-native/uuid.js +3 -1
  192. package/lib/weapp/Analytics.js +2 -27
  193. package/lib/weapp/AnonymousUtils.js +6 -42
  194. package/lib/weapp/Cloud.js +12 -77
  195. package/lib/weapp/CloudCode.js +0 -3
  196. package/lib/weapp/CoreManager.js +46 -191
  197. package/lib/weapp/CryptoController.js +2 -16
  198. package/lib/weapp/EventEmitter.js +1 -8
  199. package/lib/weapp/EventuallyQueue.js +277 -824
  200. package/lib/weapp/FacebookUtils.js +6 -42
  201. package/lib/weapp/IndexedDBStorageController.js +3 -14
  202. package/lib/weapp/InstallationController.js +2 -20
  203. package/lib/weapp/LiveQueryClient.js +105 -213
  204. package/lib/weapp/LiveQuerySubscription.js +10 -39
  205. package/lib/weapp/LocalDatastore.js +451 -1081
  206. package/lib/weapp/LocalDatastoreController.js +145 -602
  207. package/lib/weapp/LocalDatastoreController.react-native.js +137 -573
  208. package/lib/weapp/LocalDatastoreUtils.js +2 -19
  209. package/lib/weapp/ObjectStateMutations.js +18 -121
  210. package/lib/weapp/OfflineQuery.js +61 -222
  211. package/lib/weapp/Parse.js +12 -115
  212. package/lib/weapp/ParseACL.js +33 -148
  213. package/lib/weapp/ParseCLP.js +96 -314
  214. package/lib/weapp/ParseConfig.js +18 -95
  215. package/lib/weapp/ParseError.js +63 -99
  216. package/lib/weapp/ParseFile.js +129 -686
  217. package/lib/weapp/ParseGeoPoint.js +23 -89
  218. package/lib/weapp/ParseHooks.js +1 -34
  219. package/lib/weapp/ParseInstallation.js +4 -32
  220. package/lib/weapp/ParseLiveQuery.js +96 -505
  221. package/lib/weapp/ParseObject.js +665 -1845
  222. package/lib/weapp/ParseOp.js +41 -287
  223. package/lib/weapp/ParsePolygon.js +13 -70
  224. package/lib/weapp/ParseQuery.js +403 -1504
  225. package/lib/weapp/ParseRelation.js +12 -68
  226. package/lib/weapp/ParseRole.js +13 -75
  227. package/lib/weapp/ParseSchema.js +49 -208
  228. package/lib/weapp/ParseSession.js +11 -69
  229. package/lib/weapp/ParseUser.js +274 -1127
  230. package/lib/weapp/Push.js +7 -50
  231. package/lib/weapp/RESTController.js +28 -157
  232. package/lib/weapp/SingleInstanceStateController.js +19 -144
  233. package/lib/weapp/Socket.weapp.js +0 -10
  234. package/lib/weapp/Storage.js +10 -80
  235. package/lib/weapp/StorageController.browser.js +4 -24
  236. package/lib/weapp/StorageController.default.js +4 -24
  237. package/lib/weapp/StorageController.react-native.js +6 -40
  238. package/lib/weapp/StorageController.weapp.js +5 -23
  239. package/lib/weapp/TaskQueue.js +1 -29
  240. package/lib/weapp/UniqueInstanceStateController.js +19 -149
  241. package/lib/weapp/Xhr.weapp.js +0 -17
  242. package/lib/weapp/arrayContainsObject.js +2 -23
  243. package/lib/weapp/canBeSerialized.js +3 -40
  244. package/lib/weapp/decode.js +3 -40
  245. package/lib/weapp/encode.js +9 -77
  246. package/lib/weapp/equals.js +2 -34
  247. package/lib/weapp/escape.js +1 -15
  248. package/lib/weapp/isRevocableSession.js +2 -18
  249. package/lib/weapp/parseDate.js +2 -20
  250. package/lib/weapp/promiseUtils.js +3 -21
  251. package/lib/weapp/unique.js +3 -24
  252. package/lib/weapp/unsavedChildren.js +6 -57
  253. package/lib/weapp/uuid.js +1 -6
  254. package/package.json +35 -31
  255. package/PATENTS +0 -37
@@ -1,38 +1,20 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
-
5
3
  var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
6
-
4
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
7
5
  _Object$defineProperty(exports, "__esModule", {
8
6
  value: true
9
7
  });
10
-
11
8
  exports.default = unsavedChildren;
12
-
13
- var _forEach = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/for-each"));
14
-
15
- var _isArray = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/array/is-array"));
16
-
17
- var _indexOf = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/index-of"));
18
-
19
9
  var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/concat"));
20
-
10
+ var _indexOf = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/index-of"));
11
+ var _isArray = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/array/is-array"));
12
+ var _forEach = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/for-each"));
21
13
  var _typeof2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/typeof"));
22
-
23
14
  var _ParseFile = _interopRequireDefault(require("./ParseFile"));
24
-
25
15
  var _ParseObject = _interopRequireDefault(require("./ParseObject"));
26
-
27
16
  var _ParseRelation = _interopRequireDefault(require("./ParseRelation"));
28
17
  /**
29
- * Copyright (c) 2015-present, Parse, LLC.
30
- * All rights reserved.
31
- *
32
- * This source code is licensed under the BSD-style license found in the
33
- * LICENSE file in the root directory of this source tree. An additional grant
34
- * of patent rights can be found in the PATENTS file in the same directory.
35
- *
36
18
  * @flow
37
19
  */
38
20
 
@@ -44,86 +26,54 @@ var _ParseRelation = _interopRequireDefault(require("./ParseRelation"));
44
26
  * @param {boolean} allowDeepUnsaved
45
27
  * @returns {Array}
46
28
  */
47
-
48
-
49
- function unsavedChildren(obj
50
- /*: ParseObject*/
51
- , allowDeepUnsaved
52
- /*:: ?: boolean*/
53
- )
54
- /*: Array<ParseFile | ParseObject>*/
55
- {
29
+ function unsavedChildren(obj /*: ParseObject*/, allowDeepUnsaved /*:: ?: boolean*/) /*: Array<ParseFile | ParseObject>*/{
56
30
  var encountered = {
57
31
  objects: {},
58
32
  files: []
59
33
  };
60
-
61
34
  var identifier = obj.className + ':' + obj._getId();
62
-
63
35
  encountered.objects[identifier] = obj.dirty() ? obj : true;
64
36
  var attributes = obj.attributes;
65
-
66
37
  for (var attr in attributes) {
67
38
  if ((0, _typeof2.default)(attributes[attr]) === 'object') {
68
39
  traverse(attributes[attr], encountered, false, !!allowDeepUnsaved);
69
40
  }
70
41
  }
71
-
72
42
  var unsaved = [];
73
-
74
43
  for (var id in encountered.objects) {
75
44
  if (id !== identifier && encountered.objects[id] !== true) {
76
45
  unsaved.push(encountered.objects[id]);
77
46
  }
78
47
  }
79
-
80
48
  return (0, _concat.default)(unsaved).call(unsaved, encountered.files);
81
49
  }
82
-
83
- function traverse(obj
84
- /*: ParseObject*/
85
- , encountered
86
- /*: EncounterMap*/
87
- , shouldThrow
88
- /*: boolean*/
89
- , allowDeepUnsaved
90
- /*: boolean*/
91
- ) {
50
+ function traverse(obj /*: ParseObject*/, encountered /*: EncounterMap*/, shouldThrow /*: boolean*/, allowDeepUnsaved /*: boolean*/) {
92
51
  if (obj instanceof _ParseObject.default) {
93
52
  if (!obj.id && shouldThrow) {
94
53
  throw new Error('Cannot create a pointer to an unsaved Object.');
95
54
  }
96
-
97
55
  var _identifier = obj.className + ':' + obj._getId();
98
-
99
56
  if (!encountered.objects[_identifier]) {
100
57
  encountered.objects[_identifier] = obj.dirty() ? obj : true;
101
58
  var attributes = obj.attributes;
102
-
103
59
  for (var attr in attributes) {
104
60
  if ((0, _typeof2.default)(attributes[attr]) === 'object') {
105
61
  traverse(attributes[attr], encountered, !allowDeepUnsaved, allowDeepUnsaved);
106
62
  }
107
63
  }
108
64
  }
109
-
110
65
  return;
111
66
  }
112
-
113
67
  if (obj instanceof _ParseFile.default) {
114
68
  var _context;
115
-
116
69
  if (!obj.url() && (0, _indexOf.default)(_context = encountered.files).call(_context, obj) < 0) {
117
70
  encountered.files.push(obj);
118
71
  }
119
-
120
72
  return;
121
73
  }
122
-
123
74
  if (obj instanceof _ParseRelation.default) {
124
75
  return;
125
76
  }
126
-
127
77
  if ((0, _isArray.default)(obj)) {
128
78
  (0, _forEach.default)(obj).call(obj, function (el) {
129
79
  if ((0, _typeof2.default)(el) === 'object') {
@@ -131,7 +81,6 @@ function traverse(obj
131
81
  }
132
82
  });
133
83
  }
134
-
135
84
  for (var k in obj) {
136
85
  if ((0, _typeof2.default)(obj[k]) === 'object') {
137
86
  traverse(obj[k], encountered, shouldThrow, allowDeepUnsaved);
package/lib/weapp/uuid.js CHANGED
@@ -1,21 +1,16 @@
1
1
  "use strict";
2
2
 
3
3
  var uuid = null;
4
-
5
4
  uuid = function () {
6
5
  var s = [];
7
6
  var hexDigits = '0123456789abcdef';
8
-
9
7
  for (var i = 0; i < 36; i++) {
10
8
  s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1);
11
9
  }
12
-
13
10
  s[14] = '4'; // bits 12-15 of the time_hi_and_version field to 0010
14
-
15
11
  s[19] = hexDigits.substr(s[19] & 0x3 | 0x8, 1); // bits 6-7 of the clock_seq_hi_and_reserved to 01
16
-
17
12
  s[8] = s[13] = s[18] = s[23] = '-';
18
13
  return s.join('');
19
14
  };
20
-
15
+ var _require, v4;
21
16
  module.exports = uuid;
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "parse",
3
- "version": "4.0.0-alpha.1",
4
- "description": "The Parse JavaScript SDK",
5
- "homepage": "https://parseplatform.org/",
3
+ "version": "4.0.0-alpha.11",
4
+ "description": "Parse JavaScript SDK",
5
+ "homepage": "https://parseplatform.org",
6
6
  "keywords": [
7
7
  "cloud",
8
8
  "mobile",
9
9
  "api"
10
10
  ],
11
- "license": "BSD-3-Clause",
11
+ "license": "Apache-2.0",
12
12
  "repository": {
13
13
  "type": "git",
14
14
  "url": "https://github.com/parse-community/Parse-SDK-JS"
@@ -22,50 +22,50 @@
22
22
  "dist/",
23
23
  "lib/",
24
24
  "LICENSE",
25
- "PATENTS",
25
+ "NOTICE",
26
26
  "README.md"
27
27
  ],
28
28
  "browser": {
29
29
  "react-native": false
30
30
  },
31
31
  "dependencies": {
32
- "@babel/runtime-corejs3": "7.17.8",
33
- "@babel/runtime": "7.18.0",
32
+ "@babel/runtime": "7.20.13",
33
+ "@babel/runtime-corejs3": "7.20.13",
34
34
  "idb-keyval": "6.0.3",
35
35
  "react-native-crypto-js": "1.0.0",
36
- "uuid": "3.4.0",
36
+ "uuid": "9.0.0",
37
37
  "ws": "8.6.0",
38
38
  "xmlhttprequest": "1.8.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@babel/core": "7.10.2",
41
+ "@babel/core": "7.20.2",
42
42
  "@babel/plugin-proposal-class-properties": "7.10.1",
43
43
  "@babel/plugin-transform-flow-comments": "7.10.1",
44
- "@babel/plugin-transform-flow-strip-types": "7.10.1",
45
- "@babel/plugin-transform-runtime": "7.10.1",
46
- "@babel/preset-env": "7.10.2",
44
+ "@babel/plugin-transform-flow-strip-types": "7.19.0",
45
+ "@babel/plugin-transform-runtime": "7.19.6",
46
+ "@babel/preset-env": "7.20.2",
47
47
  "@babel/preset-react": "7.10.1",
48
48
  "@parse/minami": "1.0.0",
49
- "@saithodev/semantic-release-backmerge": "2.1.2",
50
- "@semantic-release/changelog": "5.0.1",
51
- "@semantic-release/commit-analyzer": "8.0.1",
52
- "@semantic-release/git": "9.0.0",
53
- "@semantic-release/github": "7.2.3",
54
- "@semantic-release/npm": "7.1.3",
55
- "@semantic-release/release-notes-generator": "9.0.3",
49
+ "@saithodev/semantic-release-backmerge": "2.1.3",
50
+ "@semantic-release/changelog": "6.0.2",
51
+ "@semantic-release/commit-analyzer": "9.0.2",
52
+ "@semantic-release/git": "10.0.1",
53
+ "@semantic-release/github": "8.0.7",
54
+ "@semantic-release/npm": "9.0.2",
55
+ "@semantic-release/release-notes-generator": "10.0.3",
56
56
  "babel-eslint": "10.1.0",
57
57
  "babel-jest": "24.9.0",
58
58
  "babel-plugin-inline-package-json": "2.0.0",
59
59
  "babel-plugin-minify-dead-code-elimination": "0.5.2",
60
60
  "babel-plugin-transform-inline-environment-variables": "0.4.3",
61
61
  "browserify": "16.5.1",
62
- "codecov": "3.7.1",
63
- "core-js": "3.6.5",
62
+ "codecov": "3.8.3",
63
+ "core-js": "3.27.2",
64
64
  "cross-env": "7.0.2",
65
- "eslint": "6.8.0",
65
+ "eslint": "7.32.0",
66
66
  "eslint-plugin-flowtype": "5.1.2",
67
- "eslint-plugin-jsdoc": "30.7.3",
68
- "express": "4.17.1",
67
+ "eslint-plugin-jsdoc": "39.7.5",
68
+ "express": "4.18.2",
69
69
  "gulp": "4.0.2",
70
70
  "gulp-babel": "8.0.0",
71
71
  "gulp-derequire": "3.0.0",
@@ -75,18 +75,19 @@
75
75
  "gulp-watch": "5.0.1",
76
76
  "husky": "4.3.8",
77
77
  "jasmine": "3.5.0",
78
- "jasmine-reporters": "2.3.2",
79
- "jasmine-spec-reporter": "6.0.0",
78
+ "jasmine-reporters": "2.5.2",
79
+ "jasmine-spec-reporter": "7.0.0",
80
80
  "jest": "24.9.0",
81
81
  "jsdoc": "3.6.3",
82
82
  "jsdoc-babel": "0.5.0",
83
83
  "lint-staged": "10.5.3",
84
- "metro-react-native-babel-preset": "0.59.0",
84
+ "metro-react-native-babel-preset": "0.74.1",
85
+ "mongodb-runner": "4.10.0",
85
86
  "parse-server": "git+https://github.com/parse-community/parse-server#alpha",
86
87
  "prettier": "2.2.1",
87
- "puppeteer": "19.2.2",
88
- "regenerator-runtime": "0.13.5",
89
- "semantic-release": "19.0.3",
88
+ "puppeteer": "19.6.2",
89
+ "regenerator-runtime": "0.13.11",
90
+ "semantic-release": "19.0.5",
90
91
  "vinyl-source-stream": "2.0.0"
91
92
  },
92
93
  "optionalDependencies": {
@@ -96,6 +97,9 @@
96
97
  "build": "node build_releases.js",
97
98
  "release": "node build_releases.js && npm publish",
98
99
  "test": "cross-env PARSE_BUILD=node jest",
100
+ "test:mongodb": "npm run test:mongodb:runnerstart && npm run integration",
101
+ "test:mongodb:runnerstart": "mongodb-runner start",
102
+ "posttest:mongodb": "mongodb-runner stop",
99
103
  "lint": "eslint --cache src/ integration/",
100
104
  "lint:fix": "eslint --fix --cache src/ integration/",
101
105
  "watch": "cross-env PARSE_BUILD=${PARSE_BUILD} gulp watch",
@@ -123,7 +127,7 @@
123
127
  ]
124
128
  },
125
129
  "engines": {
126
- "node": ">=14.21.0 <17 || >=18 <19"
130
+ "node": ">=14.21.0 <17 || >=18 <20"
127
131
  },
128
132
  "jest": {
129
133
  "automock": true,
package/PATENTS DELETED
@@ -1,37 +0,0 @@
1
- Additional Grant of Patent Rights Version 2
2
-
3
- "Software" means the Parse JavaScript SDK 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.