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
@@ -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,
@@ -7973,7 +7973,7 @@ class ParseObject {
7973
7973
  */
7974
7974
  destroy(options) {
7975
7975
  if (!this.id) {
7976
- return _promise.default.resolve();
7976
+ return _promise.default.resolve(undefined);
7977
7977
  }
7978
7978
  const destroyOptions = ParseObject._getRequestOptions(options);
7979
7979
  return _CoreManager.default.getObjectController().destroy(this, destroyOptions);
@@ -8957,6 +8957,7 @@ const DefaultController = {
8957
8957
  const batchReady = [];
8958
8958
  const batchTasks = [];
8959
8959
  (0, _forEach.default)(batch).call(batch, (obj, index) => {
8960
+ // eslint-disable-next-line
8960
8961
  const ready = (0, _promiseUtils.resolvingPromise)();
8961
8962
  batchReady.push(ready);
8962
8963
  stateController.pushPendingState(obj._getStateIdentifier());
@@ -9125,7 +9126,7 @@ function opFromJSON(json) {
9125
9126
  class Op {
9126
9127
  // Empty parent class
9127
9128
  applyTo() {} /* eslint-disable-line @typescript-eslint/no-unused-vars */
9128
- mergeWith() {} /* eslint-disable-line @typescript-eslint/no-unused-vars */
9129
+ mergeWith() {} /* eslint-disable-line */
9129
9130
  toJSON() {} /* eslint-disable-line @typescript-eslint/no-unused-vars */
9130
9131
  }
9131
9132
  exports.Op = Op;
@@ -14737,6 +14738,7 @@ class TaskQueue {
14737
14738
  this.queue = [];
14738
14739
  }
14739
14740
  enqueue(task) {
14741
+ // eslint-disable-next-line
14740
14742
  const taskComplete = (0, _promiseUtils.resolvingPromise)();
14741
14743
  this.queue.push({
14742
14744
  task: task,