parse 4.1.0 → 4.2.0-alpha.10

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 (120) hide show
  1. package/dist/parse.js +2123 -1542
  2. package/dist/parse.min.js +2 -2
  3. package/dist/parse.weapp.js +2105 -1524
  4. package/dist/parse.weapp.min.js +2 -2
  5. package/lib/browser/AnonymousUtils.js +1 -1
  6. package/lib/browser/Cloud.js +4 -2
  7. package/lib/browser/CoreManager.js +31 -4
  8. package/lib/browser/EventEmitter.js +7 -2
  9. package/lib/browser/EventuallyQueue.js +24 -4
  10. package/lib/browser/LiveQueryClient.js +59 -89
  11. package/lib/browser/LiveQuerySubscription.js +16 -51
  12. package/lib/browser/LocalDatastore.js +10 -1
  13. package/lib/browser/LocalDatastoreController.js +3 -1
  14. package/lib/browser/ObjectStateMutations.js +17 -2
  15. package/lib/browser/OfflineQuery.js +1 -1
  16. package/lib/browser/Parse.js +171 -135
  17. package/lib/browser/ParseACL.js +2 -1
  18. package/lib/browser/ParseCLP.js +6 -1
  19. package/lib/browser/ParseConfig.js +1 -0
  20. package/lib/browser/ParseError.js +12 -1
  21. package/lib/browser/ParseFile.js +5 -1
  22. package/lib/browser/ParseInstallation.js +4 -1
  23. package/lib/browser/ParseLiveQuery.js +79 -51
  24. package/lib/browser/ParseObject.js +11 -8
  25. package/lib/browser/ParseOp.js +3 -1
  26. package/lib/browser/ParseQuery.js +122 -72
  27. package/lib/browser/ParseRole.js +5 -1
  28. package/lib/browser/ParseSchema.js +23 -2
  29. package/lib/browser/ParseSession.js +1 -1
  30. package/lib/browser/ParseUser.js +107 -9
  31. package/lib/browser/Push.js +8 -2
  32. package/lib/browser/RESTController.js +20 -0
  33. package/lib/browser/SingleInstanceStateController.js +6 -1
  34. package/lib/browser/Storage.js +7 -0
  35. package/lib/browser/TaskQueue.js +4 -0
  36. package/lib/browser/UniqueInstanceStateController.js +3 -1
  37. package/lib/browser/unsavedChildren.js +4 -1
  38. package/lib/node/AnonymousUtils.js +1 -1
  39. package/lib/node/Cloud.js +4 -2
  40. package/lib/node/CoreManager.js +30 -4
  41. package/lib/node/EventEmitter.js +7 -1
  42. package/lib/node/EventuallyQueue.js +23 -4
  43. package/lib/node/LiveQueryClient.js +10 -7
  44. package/lib/node/LiveQuerySubscription.js +5 -7
  45. package/lib/node/LocalDatastore.js +7 -1
  46. package/lib/node/ObjectStateMutations.js +14 -2
  47. package/lib/node/OfflineQuery.js +1 -1
  48. package/lib/node/Parse.js +162 -126
  49. package/lib/node/ParseACL.js +2 -1
  50. package/lib/node/ParseCLP.js +3 -1
  51. package/lib/node/ParseConfig.js +1 -2
  52. package/lib/node/ParseError.js +15 -1
  53. package/lib/node/ParseFile.js +2 -1
  54. package/lib/node/ParseInstallation.js +1 -1
  55. package/lib/node/ParseLiveQuery.js +32 -24
  56. package/lib/node/ParseObject.js +3 -2
  57. package/lib/node/ParseQuery.js +53 -7
  58. package/lib/node/ParseRole.js +2 -1
  59. package/lib/node/ParseSchema.js +21 -2
  60. package/lib/node/ParseSession.js +1 -5
  61. package/lib/node/ParseUser.js +95 -9
  62. package/lib/node/Push.js +8 -2
  63. package/lib/node/RESTController.js +20 -0
  64. package/lib/node/SingleInstanceStateController.js +6 -1
  65. package/lib/node/Storage.js +6 -0
  66. package/lib/node/TaskQueue.js +4 -1
  67. package/lib/node/UniqueInstanceStateController.js +3 -1
  68. package/lib/node/unsavedChildren.js +4 -1
  69. package/lib/react-native/Cloud.js +3 -0
  70. package/lib/react-native/CoreManager.js +30 -4
  71. package/lib/react-native/EventEmitter.js +8 -5
  72. package/lib/react-native/EventuallyQueue.js +10 -3
  73. package/lib/react-native/LiveQueryClient.js +44 -70
  74. package/lib/react-native/LiveQuerySubscription.js +16 -46
  75. package/lib/react-native/LocalDatastore.js +6 -0
  76. package/lib/react-native/ObjectStateMutations.js +3 -1
  77. package/lib/react-native/OfflineQuery.js +1 -1
  78. package/lib/react-native/Parse.js +127 -90
  79. package/lib/react-native/ParseCLP.js +2 -2
  80. package/lib/react-native/ParseError.js +8 -1
  81. package/lib/react-native/ParseFile.js +1 -0
  82. package/lib/react-native/ParseLiveQuery.js +39 -11
  83. package/lib/react-native/ParseQuery.js +37 -17
  84. package/lib/react-native/ParseSchema.js +14 -1
  85. package/lib/react-native/ParseUser.js +74 -6
  86. package/lib/react-native/Storage.js +6 -0
  87. package/lib/weapp/AnonymousUtils.js +1 -1
  88. package/lib/weapp/Cloud.js +4 -2
  89. package/lib/weapp/CoreManager.js +31 -4
  90. package/lib/weapp/EventEmitter.js +7 -2
  91. package/lib/weapp/EventuallyQueue.js +24 -4
  92. package/lib/weapp/LiveQueryClient.js +59 -89
  93. package/lib/weapp/LiveQuerySubscription.js +16 -51
  94. package/lib/weapp/LocalDatastore.js +10 -1
  95. package/lib/weapp/LocalDatastoreController.js +3 -1
  96. package/lib/weapp/ObjectStateMutations.js +17 -2
  97. package/lib/weapp/OfflineQuery.js +1 -1
  98. package/lib/weapp/Parse.js +170 -134
  99. package/lib/weapp/ParseACL.js +2 -1
  100. package/lib/weapp/ParseCLP.js +6 -1
  101. package/lib/weapp/ParseConfig.js +1 -0
  102. package/lib/weapp/ParseError.js +12 -1
  103. package/lib/weapp/ParseFile.js +5 -1
  104. package/lib/weapp/ParseInstallation.js +4 -1
  105. package/lib/weapp/ParseLiveQuery.js +79 -51
  106. package/lib/weapp/ParseObject.js +11 -8
  107. package/lib/weapp/ParseOp.js +3 -1
  108. package/lib/weapp/ParseQuery.js +122 -72
  109. package/lib/weapp/ParseRole.js +5 -1
  110. package/lib/weapp/ParseSchema.js +23 -2
  111. package/lib/weapp/ParseSession.js +1 -1
  112. package/lib/weapp/ParseUser.js +107 -9
  113. package/lib/weapp/Push.js +8 -2
  114. package/lib/weapp/RESTController.js +20 -0
  115. package/lib/weapp/SingleInstanceStateController.js +6 -1
  116. package/lib/weapp/Storage.js +7 -0
  117. package/lib/weapp/TaskQueue.js +4 -0
  118. package/lib/weapp/UniqueInstanceStateController.js +3 -1
  119. package/lib/weapp/unsavedChildren.js +4 -1
  120. package/package.json +29 -25
@@ -49,7 +49,12 @@ function _isNativeReflectConstruct() {
49
49
  } catch (e) {
50
50
  return false;
51
51
  }
52
- }
52
+ } /**
53
+ * @flow
54
+ */
55
+ /*:: import type { AttributeMap } from './ObjectStateMutations';*/
56
+ /*:: import type { RequestOptions, FullOptions } from './RESTController';*/
57
+ /*:: export type AuthData = ?{ [key: string]: mixed };*/
53
58
  var CURRENT_USER_KEY = 'currentUser';
54
59
  var canUseCurrentUser = !_CoreManager.default.get('IS_NODE');
55
60
  var currentUserCacheMatchesDisk = false;
@@ -150,8 +155,14 @@ var ParseUser = /*#__PURE__*/function (_ParseObject) {
150
155
  throw new Error('Invalid type: authData field should be an object');
151
156
  }
152
157
  authData[authType] = options.authData;
158
+ var oldAnonymousData = authData.anonymous;
159
+ this.stripAnonymity();
153
160
  var controller = _CoreManager.default.getUserController();
154
- return controller.linkWith(this, authData, saveOpts);
161
+ return controller.linkWith(this, authData, saveOpts).catch(function (e) {
162
+ delete authData[authType];
163
+ _this2.restoreAnonimity(oldAnonymousData);
164
+ throw e;
165
+ });
155
166
  } else {
156
167
  return new _promise.default(function (resolve, reject) {
157
168
  provider.authenticate({
@@ -382,6 +393,24 @@ var ParseUser = /*#__PURE__*/function (_ParseObject) {
382
393
  }
383
394
  return isCurrentAsync;
384
395
  }()
396
+ }, {
397
+ key: "stripAnonymity",
398
+ value: function () {
399
+ var authData = this.get('authData');
400
+ if (authData && (0, _typeof2.default)(authData) === 'object' && authData.hasOwnProperty('anonymous')) {
401
+ // We need to set anonymous to null instead of deleting it in order to remove it from Parse.
402
+ authData.anonymous = null;
403
+ }
404
+ }
405
+ }, {
406
+ key: "restoreAnonimity",
407
+ value: function (anonymousData /*: any*/) {
408
+ if (anonymousData) {
409
+ var authData = this.get('authData');
410
+ authData.anonymous = anonymousData;
411
+ }
412
+ }
413
+
385
414
  /**
386
415
  * Returns get("username").
387
416
  *
@@ -405,12 +434,7 @@ var ParseUser = /*#__PURE__*/function (_ParseObject) {
405
434
  }, {
406
435
  key: "setUsername",
407
436
  value: function (username /*: string*/) {
408
- // Strip anonymity
409
- var authData = this.get('authData');
410
- if (authData && (0, _typeof2.default)(authData) === 'object' && authData.hasOwnProperty('anonymous')) {
411
- // We need to set anonymous to null instead of deleting it in order to remove it from Parse.
412
- authData.anonymous = null;
413
- }
437
+ this.stripAnonymity();
414
438
  this.set('username', username);
415
439
  }
416
440
 
@@ -539,6 +563,9 @@ var ParseUser = /*#__PURE__*/function (_ParseObject) {
539
563
  if (options.hasOwnProperty('usePost')) {
540
564
  loginOptions.usePost = options.usePost;
541
565
  }
566
+ if (options.hasOwnProperty('context') && Object.prototype.toString.call(options.context) === '[object Object]') {
567
+ loginOptions.context = options.context;
568
+ }
542
569
  var controller = _CoreManager.default.getUserController();
543
570
  return controller.logIn(this, loginOptions);
544
571
  }
@@ -875,6 +902,61 @@ var ParseUser = /*#__PURE__*/function (_ParseObject) {
875
902
  return user.logIn(options);
876
903
  }
877
904
 
905
+ /**
906
+ * Logs in a user with a username (or email) and password, and authData. On success, this
907
+ * saves the session to disk, so you can retrieve the currently logged in
908
+ * user using <code>current</code>.
909
+ *
910
+ * @param {string} username The username (or email) to log in with.
911
+ * @param {string} password The password to log in with.
912
+ * @param {object} authData The authData to log in with.
913
+ * @param {object} options
914
+ * @static
915
+ * @returns {Promise} A promise that is fulfilled with the user when
916
+ * the login completes.
917
+ */
918
+ }, {
919
+ key: "logInWithAdditionalAuth",
920
+ value: function (username /*: string*/, password /*: string*/, authData /*: AuthData*/, options /*:: ?: FullOptions*/) {
921
+ if (typeof username !== 'string') {
922
+ return _promise.default.reject(new _ParseError.default(_ParseError.default.OTHER_CAUSE, 'Username must be a string.'));
923
+ }
924
+ if (typeof password !== 'string') {
925
+ return _promise.default.reject(new _ParseError.default(_ParseError.default.OTHER_CAUSE, 'Password must be a string.'));
926
+ }
927
+ if (Object.prototype.toString.call(authData) !== '[object Object]') {
928
+ return _promise.default.reject(new _ParseError.default(_ParseError.default.OTHER_CAUSE, 'Auth must be an object.'));
929
+ }
930
+ var user = new this();
931
+ user._finishFetch({
932
+ username: username,
933
+ password: password,
934
+ authData: authData
935
+ });
936
+ return user.logIn(options);
937
+ }
938
+
939
+ /**
940
+ * Logs in a user with an objectId. On success, this saves the session
941
+ * to disk, so you can retrieve the currently logged in user using
942
+ * <code>current</code>.
943
+ *
944
+ * @param {string} userId The objectId for the user.
945
+ * @static
946
+ * @returns {Promise} A promise that is fulfilled with the user when
947
+ * the login completes.
948
+ */
949
+ }, {
950
+ key: "loginAs",
951
+ value: function (userId /*: string*/) {
952
+ if (!userId) {
953
+ throw new _ParseError.default(_ParseError.default.USERNAME_MISSING, 'Cannot log in as user with an empty user id');
954
+ }
955
+ var controller = _CoreManager.default.getUserController();
956
+ var user = new this();
957
+ return controller.loginAs(user, userId);
958
+ }
959
+
878
960
  /**
879
961
  * Logs in a user with a session token. On success, this saves the session
880
962
  * to disk, so you can retrieve the currently logged in user using
@@ -1303,7 +1385,8 @@ var DefaultController = {
1303
1385
  var stateController = _CoreManager.default.getObjectStateController();
1304
1386
  var auth = {
1305
1387
  username: user.get('username'),
1306
- password: user.get('password')
1388
+ password: user.get('password'),
1389
+ authData: user.get('authData')
1307
1390
  };
1308
1391
  return RESTController.request(options.usePost ? 'POST' : 'GET', 'login', auth, options).then(function (response) {
1309
1392
  user._migrateId(response.objectId);
@@ -1319,6 +1402,21 @@ var DefaultController = {
1319
1402
  return DefaultController.setCurrentUser(user);
1320
1403
  });
1321
1404
  },
1405
+ loginAs: function (user /*: ParseUser*/, userId /*: string*/) /*: Promise<ParseUser>*/{
1406
+ var RESTController = _CoreManager.default.getRESTController();
1407
+ return RESTController.request('POST', 'loginAs', {
1408
+ userId: userId
1409
+ }, {
1410
+ useMasterKey: true
1411
+ }).then(function (response) {
1412
+ user._finishFetch(response);
1413
+ user._setExisted(true);
1414
+ if (!canUseCurrentUser) {
1415
+ return _promise.default.resolve(user);
1416
+ }
1417
+ return DefaultController.setCurrentUser(user);
1418
+ });
1419
+ },
1322
1420
  become: function (user /*: ParseUser*/, options /*: RequestOptions*/) /*: Promise<ParseUser>*/{
1323
1421
  var RESTController = _CoreManager.default.getRESTController();
1324
1422
  return RESTController.request('GET', 'users/me', {}, options).then(function (response) {
package/lib/weapp/Push.js CHANGED
@@ -13,7 +13,14 @@ var _ParseQuery = _interopRequireDefault(require("./ParseQuery"));
13
13
  /**
14
14
  * @flow
15
15
  */
16
-
16
+ /*:: import type { WhereClause } from './ParseQuery';*/
17
+ /*:: import type { FullOptions } from './RESTController';*/
18
+ /*:: export type PushData = {
19
+ where?: WhereClause | ParseQuery,
20
+ push_time?: Date | string,
21
+ expiration_time?: Date | string,
22
+ expiration_interval?: number,
23
+ };*/
17
24
  /**
18
25
  * Contains functions to deal with Push in Parse.
19
26
  *
@@ -21,7 +28,6 @@ var _ParseQuery = _interopRequireDefault(require("./ParseQuery"));
21
28
  * @static
22
29
  * @hideconstructor
23
30
  */
24
-
25
31
  /**
26
32
  * Sends a push notification.
27
33
  * **Available in Cloud Code only.**
@@ -45,6 +45,26 @@ function _objectSpread(target) {
45
45
  */
46
46
  /* global XMLHttpRequest, XDomainRequest */
47
47
  var uuidv4 = require('./uuid');
48
+ /*:: export type RequestOptions = {
49
+ useMasterKey?: boolean,
50
+ sessionToken?: string,
51
+ installationId?: string,
52
+ returnStatus?: boolean,
53
+ batchSize?: number,
54
+ include?: any,
55
+ progress?: any,
56
+ context?: any,
57
+ usePost?: boolean,
58
+ };*/
59
+ /*:: export type FullOptions = {
60
+ success?: any,
61
+ error?: any,
62
+ useMasterKey?: boolean,
63
+ sessionToken?: string,
64
+ installationId?: string,
65
+ progress?: any,
66
+ usePost?: boolean,
67
+ };*/
48
68
  var XHR = null;
49
69
  if (typeof XMLHttpRequest !== 'undefined') {
50
70
  XHR = XMLHttpRequest;
@@ -66,7 +66,12 @@ function _interopRequireWildcard(obj, nodeInterop) {
66
66
  /**
67
67
  * @flow
68
68
  */
69
-
69
+ /*:: import type { Op } from './ParseOp';*/
70
+ /*:: import type { AttributeMap, ObjectCache, OpsMap, State } from './ObjectStateMutations';*/
71
+ /*:: type ObjectIdentifier = {
72
+ className: string,
73
+ id: string,
74
+ };*/
70
75
  var objectState
71
76
  /*: {
72
77
  [className: string]: {
@@ -1,6 +1,11 @@
1
1
  "use strict";
2
2
 
3
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
3
4
  var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
5
+ _Object$defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = void 0;
4
9
  var _promise = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/promise"));
5
10
  var _CoreManager = _interopRequireDefault(require("./CoreManager"));
6
11
  /**
@@ -88,4 +93,6 @@ var Storage = {
88
93
  }
89
94
  };
90
95
  module.exports = Storage;
96
+ var _default = Storage;
97
+ exports.default = _default;
91
98
  _CoreManager.default.setStorageController(require('./StorageController.weapp'));
@@ -8,6 +8,10 @@ var _promiseUtils = require("./promiseUtils");
8
8
  /**
9
9
  * @flow
10
10
  */
11
+ /*:: type Task = {
12
+ task: () => Promise,
13
+ _completion: Promise,
14
+ };*/
11
15
  var TaskQueue = /*#__PURE__*/function () {
12
16
  function TaskQueue() {
13
17
  (0, _classCallCheck2.default)(this, TaskQueue);
@@ -69,7 +69,9 @@ function _interopRequireWildcard(obj, nodeInterop) {
69
69
  /**
70
70
  * @flow
71
71
  */
72
-
72
+ /*:: import type { Op } from './ParseOp';*/
73
+ /*:: import type ParseObject from './ParseObject';*/
74
+ /*:: import type { AttributeMap, ObjectCache, OpsMap, State } from './ObjectStateMutations';*/
73
75
  var objectState = new _weakMap.default();
74
76
  function getState(obj /*: ParseObject*/) /*: ?State*/{
75
77
  var classData = objectState.get(obj);
@@ -17,7 +17,10 @@ var _ParseRelation = _interopRequireDefault(require("./ParseRelation"));
17
17
  /**
18
18
  * @flow
19
19
  */
20
-
20
+ /*:: type EncounterMap = {
21
+ objects: { [identifier: string]: ParseObject | boolean },
22
+ files: Array<ParseFile>,
23
+ };*/
21
24
  /**
22
25
  * Return an array of unsaved children, which are either Parse Objects or Files.
23
26
  * If it encounters any dirty Objects without Ids, it will throw an exception.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "parse",
3
- "version": "4.1.0",
3
+ "version": "4.2.0-alpha.10",
4
4
  "description": "Parse JavaScript SDK",
5
5
  "homepage": "https://parseplatform.org",
6
6
  "keywords": [
@@ -29,41 +29,43 @@
29
29
  "react-native": false
30
30
  },
31
31
  "dependencies": {
32
- "@babel/runtime-corejs3": "7.21.0",
33
- "idb-keyval": "6.2.0",
32
+ "@babel/runtime-corejs3": "7.22.10",
33
+ "idb-keyval": "6.2.1",
34
34
  "react-native-crypto-js": "1.0.0",
35
35
  "uuid": "9.0.0",
36
- "ws": "8.12.0",
36
+ "ws": "8.13.0",
37
37
  "xmlhttprequest": "1.8.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@babel/core": "7.21.0",
41
- "@babel/eslint-parser": "7.19.1",
40
+ "@babel/core": "7.22.0",
41
+ "@babel/eslint-parser": "7.21.8",
42
42
  "@babel/plugin-proposal-class-properties": "7.18.6",
43
- "@babel/plugin-transform-flow-comments": "7.21.0",
43
+ "@babel/plugin-transform-flow-comments": "7.22.5",
44
44
  "@babel/plugin-transform-flow-strip-types": "7.21.0",
45
- "@babel/plugin-transform-runtime": "7.21.0",
46
- "@babel/preset-env": "7.20.2",
47
- "@babel/preset-react": "7.18.6",
45
+ "@babel/plugin-transform-runtime": "7.21.4",
46
+ "@babel/preset-env": "7.21.5",
47
+ "@babel/preset-react": "7.22.5",
48
+ "@babel/preset-typescript": "7.22.5",
49
+ "@definitelytyped/dtslint": "0.0.163",
48
50
  "@parse/minami": "1.0.0",
49
51
  "@saithodev/semantic-release-backmerge": "2.1.3",
50
- "@semantic-release/changelog": "6.0.2",
52
+ "@semantic-release/changelog": "6.0.3",
51
53
  "@semantic-release/commit-analyzer": "9.0.2",
52
54
  "@semantic-release/git": "10.0.1",
53
55
  "@semantic-release/github": "8.0.7",
54
56
  "@semantic-release/npm": "9.0.2",
55
57
  "@semantic-release/release-notes-generator": "10.0.3",
56
- "babel-jest": "29.4.3",
58
+ "babel-jest": "29.5.0",
57
59
  "babel-plugin-inline-package-json": "2.0.0",
58
60
  "babel-plugin-minify-dead-code-elimination": "0.5.2",
59
61
  "babel-plugin-transform-inline-environment-variables": "0.4.4",
60
62
  "browserify": "17.0.0",
61
63
  "codecov": "3.8.3",
62
- "core-js": "3.29.0",
64
+ "core-js": "3.30.2",
63
65
  "cross-env": "7.0.2",
64
- "eslint": "8.35.0",
66
+ "eslint": "8.40.0",
65
67
  "eslint-plugin-flowtype": "8.0.3",
66
- "eslint-plugin-jsdoc": "40.0.0",
68
+ "eslint-plugin-jsdoc": "43.0.7",
67
69
  "express": "4.18.2",
68
70
  "gulp": "4.0.2",
69
71
  "gulp-babel": "8.0.0",
@@ -73,19 +75,19 @@
73
75
  "gulp-uglify": "3.0.2",
74
76
  "gulp-watch": "5.0.1",
75
77
  "husky": "8.0.3",
76
- "jasmine": "4.5.0",
78
+ "jasmine": "5.0.0",
77
79
  "jasmine-reporters": "2.5.2",
78
80
  "jasmine-spec-reporter": "7.0.0",
79
- "jest": "29.4.3",
80
- "jest-environment-jsdom": "29.4.3",
81
+ "jest": "29.5.0",
82
+ "jest-environment-jsdom": "29.5.0",
81
83
  "jsdoc": "4.0.2",
82
84
  "jsdoc-babel": "0.5.0",
83
- "lint-staged": "13.1.2",
84
- "metro-react-native-babel-preset": "0.75.1",
85
- "mongodb-runner": "4.10.0",
85
+ "lint-staged": "13.2.2",
86
+ "metro-react-native-babel-preset": "0.76.4",
87
+ "mongodb-runner": "5.4.3",
86
88
  "parse-server": "git+https://github.com/parse-community/parse-server#alpha",
87
- "prettier": "2.8.4",
88
- "puppeteer": "19.7.2",
89
+ "prettier": "3.0.2",
90
+ "puppeteer": "20.4.0",
89
91
  "regenerator-runtime": "0.13.11",
90
92
  "semantic-release": "19.0.5",
91
93
  "vinyl-source-stream": "2.0.0"
@@ -95,11 +97,13 @@
95
97
  },
96
98
  "scripts": {
97
99
  "build": "node build_releases.js",
100
+ "build:types": "tsc",
98
101
  "release": "node build_releases.js && npm publish",
99
102
  "test": "cross-env PARSE_BUILD=node jest",
100
103
  "test:mongodb": "npm run test:mongodb:runnerstart && npm run integration",
101
- "test:mongodb:runnerstart": "mongodb-runner start",
102
- "posttest:mongodb": "mongodb-runner stop",
104
+ "test:mongodb:runnerstart": "mongodb-runner start -- --port 27017",
105
+ "test:types": "dtslint --expectOnly types",
106
+ "posttest:mongodb": "mongodb-runner stop --all",
103
107
  "lint": "eslint --cache src/ integration/",
104
108
  "lint:fix": "eslint --fix --cache src/ integration/",
105
109
  "watch": "cross-env PARSE_BUILD=${PARSE_BUILD} gulp watch",