parse 6.1.0-alpha.3 → 6.1.0-alpha.4

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 (53) hide show
  1. package/dist/parse.js +6 -4
  2. package/dist/parse.min.js +2 -2
  3. package/dist/parse.weapp.js +6 -4
  4. package/dist/parse.weapp.min.js +2 -2
  5. package/lib/browser/CoreManager.js +1 -1
  6. package/lib/browser/ParseObject.js +2 -1
  7. package/lib/browser/ParseOp.js +1 -1
  8. package/lib/browser/TaskQueue.js +1 -0
  9. package/lib/node/CoreManager.js +1 -1
  10. package/lib/node/ParseObject.js +2 -1
  11. package/lib/node/ParseOp.js +1 -1
  12. package/lib/node/TaskQueue.js +1 -0
  13. package/lib/react-native/CoreManager.js +1 -1
  14. package/lib/react-native/ObjectStateMutations.js +13 -13
  15. package/lib/react-native/ParseACL.js +7 -7
  16. package/lib/react-native/ParseCLP.js +15 -15
  17. package/lib/react-native/ParseObject.js +9 -9
  18. package/lib/react-native/ParseUser.js +15 -15
  19. package/lib/weapp/CoreManager.js +1 -1
  20. package/lib/weapp/ParseObject.js +2 -1
  21. package/lib/weapp/ParseOp.js +1 -1
  22. package/lib/weapp/TaskQueue.js +1 -0
  23. package/package.json +8 -8
  24. package/types/Analytics.d.ts +1 -3
  25. package/types/CoreManager.d.ts +56 -62
  26. package/types/LocalDatastore.d.ts +3 -3
  27. package/types/LocalDatastoreController.default.d.ts +1 -1
  28. package/types/LocalDatastoreController.react-native.d.ts +1 -1
  29. package/types/ObjectStateMutations.d.ts +12 -18
  30. package/types/Parse.d.ts +49 -310
  31. package/types/ParseACL.d.ts +2 -6
  32. package/types/ParseCLP.d.ts +2 -6
  33. package/types/ParseConfig.d.ts +3 -11
  34. package/types/ParseFile.d.ts +8 -12
  35. package/types/ParseInstallation.d.ts +4 -4
  36. package/types/ParseObject.d.ts +24 -26
  37. package/types/ParseOp.d.ts +13 -15
  38. package/types/ParsePolygon.d.ts +3 -3
  39. package/types/ParseQuery.d.ts +38 -46
  40. package/types/ParseSchema.d.ts +12 -28
  41. package/types/ParseUser.d.ts +8 -14
  42. package/types/Push.d.ts +2 -2
  43. package/types/RESTController.d.ts +4 -4
  44. package/types/SingleInstanceStateController.d.ts +1 -1
  45. package/types/Storage.d.ts +2 -2
  46. package/types/StorageController.react-native.d.ts +2 -2
  47. package/types/TaskQueue.d.ts +3 -3
  48. package/types/UniqueInstanceStateController.d.ts +1 -1
  49. package/types/arrayContainsObject.d.ts +1 -1
  50. package/types/encode.d.ts +1 -1
  51. package/types/eslint.config.mjs +30 -0
  52. package/types/unique.d.ts +1 -1
  53. package/types/unsavedChildren.d.ts +1 -1
package/dist/parse.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Parse JavaScript SDK v6.1.0-alpha.3
2
+ * Parse JavaScript SDK v6.1.0-alpha.4
3
3
  *
4
4
  * The source tree of this library can be found at
5
5
  * https://github.com/ParsePlatform/Parse-SDK-JS
@@ -355,7 +355,7 @@ const config = {
355
355
  SERVER_AUTH_TOKEN: null,
356
356
  LIVEQUERY_SERVER_URL: null,
357
357
  ENCRYPTED_KEY: null,
358
- VERSION: 'js' + "6.1.0-alpha.3",
358
+ VERSION: 'js' + "6.1.0-alpha.4",
359
359
  APPLICATION_ID: null,
360
360
  JAVASCRIPT_KEY: null,
361
361
  MAINTENANCE_KEY: null,
@@ -7978,7 +7978,7 @@ class ParseObject {
7978
7978
  */
7979
7979
  destroy(options) {
7980
7980
  if (!this.id) {
7981
- return _promise.default.resolve();
7981
+ return _promise.default.resolve(undefined);
7982
7982
  }
7983
7983
  const destroyOptions = ParseObject._getRequestOptions(options);
7984
7984
  return _CoreManager.default.getObjectController().destroy(this, destroyOptions);
@@ -8962,6 +8962,7 @@ const DefaultController = {
8962
8962
  const batchReady = [];
8963
8963
  const batchTasks = [];
8964
8964
  (0, _forEach.default)(batch).call(batch, (obj, index) => {
8965
+ // eslint-disable-next-line
8965
8966
  const ready = (0, _promiseUtils.resolvingPromise)();
8966
8967
  batchReady.push(ready);
8967
8968
  stateController.pushPendingState(obj._getStateIdentifier());
@@ -9130,7 +9131,7 @@ function opFromJSON(json) {
9130
9131
  class Op {
9131
9132
  // Empty parent class
9132
9133
  applyTo() {} /* eslint-disable-line @typescript-eslint/no-unused-vars */
9133
- mergeWith() {} /* eslint-disable-line @typescript-eslint/no-unused-vars */
9134
+ mergeWith() {} /* eslint-disable-line */
9134
9135
  toJSON() {} /* eslint-disable-line @typescript-eslint/no-unused-vars */
9135
9136
  }
9136
9137
  exports.Op = Op;
@@ -14741,6 +14742,7 @@ class TaskQueue {
14741
14742
  this.queue = [];
14742
14743
  }
14743
14744
  enqueue(task) {
14745
+ // eslint-disable-next-line
14744
14746
  const taskComplete = (0, _promiseUtils.resolvingPromise)();
14745
14747
  this.queue.push({
14746
14748
  task: task,