parse 3.1.0 → 3.3.2-alpha.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 (116) hide show
  1. package/README.md +32 -41
  2. package/dist/parse.js +2973 -1735
  3. package/dist/parse.min.js +2 -2
  4. package/dist/parse.weapp.js +2989 -1830
  5. package/dist/parse.weapp.min.js +2 -2
  6. package/lib/browser/AnonymousUtils.js +15 -1
  7. package/lib/browser/Cloud.js +2 -2
  8. package/lib/browser/CoreManager.js +1 -1
  9. package/lib/browser/InstallationController.js +1 -1
  10. package/lib/browser/LiveQueryClient.js +4 -6
  11. package/lib/browser/LiveQuerySubscription.js +1 -1
  12. package/lib/browser/LocalDatastore.js +3 -5
  13. package/lib/browser/LocalDatastoreController.js +3 -5
  14. package/lib/browser/LocalDatastoreUtils.js +1 -1
  15. package/lib/browser/ObjectStateMutations.js +28 -10
  16. package/lib/browser/OfflineQuery.js +197 -22
  17. package/lib/browser/Parse.js +57 -2
  18. package/lib/browser/ParseCLP.js +9 -8
  19. package/lib/browser/ParseError.js +9 -1
  20. package/lib/browser/ParseFile.js +6 -3
  21. package/lib/browser/ParseHooks.js +9 -9
  22. package/lib/browser/ParseInstallation.js +1 -1
  23. package/lib/browser/ParseObject.js +100 -32
  24. package/lib/browser/ParseOp.js +2 -6
  25. package/lib/browser/ParseQuery.js +1 -1
  26. package/lib/browser/ParseRole.js +1 -1
  27. package/lib/browser/ParseSession.js +1 -1
  28. package/lib/browser/ParseUser.js +20 -64
  29. package/lib/browser/Push.js +1 -1
  30. package/lib/browser/RESTController.js +7 -4
  31. package/lib/browser/SingleInstanceStateController.js +67 -14
  32. package/lib/browser/UniqueInstanceStateController.js +68 -15
  33. package/lib/browser/promiseUtils.js +1 -1
  34. package/lib/browser/uuid.js +5 -0
  35. package/lib/node/AnonymousUtils.js +15 -1
  36. package/lib/node/Cloud.js +2 -2
  37. package/lib/node/CoreManager.js +1 -1
  38. package/lib/node/InstallationController.js +1 -1
  39. package/lib/node/LocalDatastoreUtils.js +1 -1
  40. package/lib/node/ObjectStateMutations.js +29 -10
  41. package/lib/node/OfflineQuery.js +162 -0
  42. package/lib/node/Parse.js +10 -12
  43. package/lib/node/ParseCLP.js +7 -3
  44. package/lib/node/ParseError.js +8 -0
  45. package/lib/node/ParseFile.js +7 -3
  46. package/lib/node/ParseHooks.js +9 -9
  47. package/lib/node/ParseObject.js +48 -31
  48. package/lib/node/ParseOp.js +1 -5
  49. package/lib/node/ParseQuery.js +1 -1
  50. package/lib/node/ParseUser.js +2 -21
  51. package/lib/node/Push.js +1 -1
  52. package/lib/node/RESTController.js +8 -4
  53. package/lib/node/SingleInstanceStateController.js +23 -25
  54. package/lib/node/UniqueInstanceStateController.js +23 -25
  55. package/lib/node/promiseUtils.js +2 -2
  56. package/lib/node/uuid.js +5 -0
  57. package/lib/react-native/AnonymousUtils.js +4 -1
  58. package/lib/react-native/Cloud.js +2 -2
  59. package/lib/react-native/CoreManager.js +1 -1
  60. package/lib/react-native/EventEmitter.js +4 -0
  61. package/lib/react-native/InstallationController.js +1 -1
  62. package/lib/react-native/LiveQueryClient.js +16 -20
  63. package/lib/react-native/LiveQuerySubscription.js +1 -1
  64. package/lib/react-native/LocalDatastore.js +15 -19
  65. package/lib/react-native/LocalDatastoreController.js +15 -19
  66. package/lib/react-native/LocalDatastoreUtils.js +1 -1
  67. package/lib/react-native/ObjectStateMutations.js +29 -10
  68. package/lib/react-native/OfflineQuery.js +171 -27
  69. package/lib/react-native/Parse.js +50 -2
  70. package/lib/react-native/ParseCLP.js +22 -22
  71. package/lib/react-native/ParseError.js +2 -1
  72. package/lib/react-native/ParseFile.js +7 -3
  73. package/lib/react-native/ParseHooks.js +9 -9
  74. package/lib/react-native/ParseInstallation.js +1 -1
  75. package/lib/react-native/ParseObject.js +91 -39
  76. package/lib/react-native/ParseOp.js +2 -2
  77. package/lib/react-native/ParseRole.js +1 -1
  78. package/lib/react-native/ParseSession.js +1 -1
  79. package/lib/react-native/ParseUser.js +17 -56
  80. package/lib/react-native/Push.js +1 -1
  81. package/lib/react-native/RESTController.js +8 -4
  82. package/lib/react-native/SingleInstanceStateController.js +63 -15
  83. package/lib/react-native/UniqueInstanceStateController.js +63 -15
  84. package/lib/react-native/promiseUtils.js +1 -1
  85. package/lib/react-native/uuid.js +3 -0
  86. package/lib/weapp/AnonymousUtils.js +15 -1
  87. package/lib/weapp/Cloud.js +2 -2
  88. package/lib/weapp/CoreManager.js +1 -1
  89. package/lib/weapp/InstallationController.js +1 -1
  90. package/lib/weapp/LiveQueryClient.js +4 -6
  91. package/lib/weapp/LiveQuerySubscription.js +1 -1
  92. package/lib/weapp/LocalDatastore.js +3 -5
  93. package/lib/weapp/LocalDatastoreController.js +3 -5
  94. package/lib/weapp/LocalDatastoreUtils.js +1 -1
  95. package/lib/weapp/ObjectStateMutations.js +28 -10
  96. package/lib/weapp/OfflineQuery.js +197 -22
  97. package/lib/weapp/Parse.js +57 -2
  98. package/lib/weapp/ParseCLP.js +9 -8
  99. package/lib/weapp/ParseError.js +9 -1
  100. package/lib/weapp/ParseFile.js +6 -3
  101. package/lib/weapp/ParseHooks.js +9 -9
  102. package/lib/weapp/ParseInstallation.js +1 -1
  103. package/lib/weapp/ParseObject.js +100 -32
  104. package/lib/weapp/ParseOp.js +2 -6
  105. package/lib/weapp/ParseQuery.js +1 -1
  106. package/lib/weapp/ParseRole.js +1 -1
  107. package/lib/weapp/ParseSession.js +1 -1
  108. package/lib/weapp/ParseUser.js +20 -64
  109. package/lib/weapp/Push.js +1 -1
  110. package/lib/weapp/RESTController.js +7 -4
  111. package/lib/weapp/SingleInstanceStateController.js +67 -14
  112. package/lib/weapp/UniqueInstanceStateController.js +68 -15
  113. package/lib/weapp/promiseUtils.js +1 -1
  114. package/lib/weapp/uuid.js +21 -0
  115. package/package.json +15 -7
  116. package/CHANGELOG.md +0 -389
package/README.md CHANGED
@@ -1,31 +1,34 @@
1
- <p align="center">
2
- <img alt="Parse Platform" src="https://github.com/parse-community/Parse-SDK-JS/raw/master/.github/parse-logo.png" width="200">
3
- </p>
4
-
5
- <h2 align="center">Parse SDK for JavaScript</h2>
6
-
7
- <p align="center">
8
- A library that gives you access to the powerful Parse Server backend from your JavaScript app.
9
- </p>
10
-
11
- <p align="center">
12
- <a href="https://twitter.com/intent/follow?screen_name=parseplatform"><img alt="Follow on Twitter" src="https://img.shields.io/twitter/follow/parseplatform?style=social&label=Follow"></a>
13
- <a href="https://community.parseplatform.org/"><img alt="Join the conversation" src="https://img.shields.io/discourse/https/community.parseplatform.org/topics.svg"></a>
14
- <a href="https://github.com/parse-community/Parse-SDK-JS/blob/master/LICENSE"><img alt="License" src="https://img.shields.io/badge/license-BSD-lightgrey.svg"></a>
15
- <a href="https://github.com/parse-community/Parse-SDK-JS/actions?query=workflow%3Aci+branch%3Amaster"><img alt="Build status" src="https://github.com/parse-community/Parse-SDK-JS/workflows/ci/badge.svg?branch=master"></a>
16
- <a href="#backers"><img alt="Backers on Open Collective" src="https://opencollective.com/parse-server/backers/badge.svg" /></a>
17
- <a href="#sponsors"><img alt="Sponsors on Open Collective" src="https://opencollective.com/parse-server/sponsors/badge.svg" /></a>
18
- </p>
19
-
20
- <p align="center">
21
- <a href="http://codecov.io/github/parse-community/Parse-SDK-JS?branch=master"><img alt="Test coverage" src="http://codecov.io/github/parse-community/Parse-SDK-JS/coverage.svg?branch=master"></a>
22
- <a href="https://npmjs.org/parse"><img alt="npm version" src="https://badge.fury.io/js/parse.svg"></a>
23
- <a href="https://cdnjs.com/libraries/parse"><img alt="CDNJS version" src="https://img.shields.io/cdnjs/v/parse.svg"></a>
24
- <a href="https://greenkeeper.io/"><img alt="Greenkeeper badge" src="https://badges.greenkeeper.io/parse-community/Parse-SDK-JS.svg"></a>
25
- </p>
26
- <br>
27
-
28
- For more information on Parse and its features, see [the website](https://parseplatform.org), [the JavaScript guide](https://docs.parseplatform.org/js/guide/), [the Cloud Code guide](https://docs.parseplatform.org/cloudcode/guide/) or [API Reference](https://parseplatform.org/Parse-SDK-JS/api/).
1
+ ![parse-repository-header-sdk-js](https://user-images.githubusercontent.com/5673677/138293960-641c96bf-1293-4061-99a5-a4ed09868e1c.png)
2
+
3
+ ---
4
+
5
+ [![Build Status CI](https://github.com/parse-community/Parse-SDK-JS/workflows/ci/badge.svg?branch=master)](https://github.com/parse-community/Parse-SDK-JS/actions?query=workflow%3Aci+branch%3Amaster)
6
+ [![Snyk Badge](https://snyk.io/test/github/parse-community/Parse-SDK-JS/badge.svg)](https://snyk.io/test/github/parse-community/Parse-SDK-JS)
7
+ [![Coverage](http://codecov.io/github/parse-community/Parse-SDK-JS/coverage.svg?branch=master)](http://codecov.io/github/parse-community/Parse-SDK-JS?branch=master)
8
+
9
+ [![npm latest version](https://img.shields.io/npm/v/parse/latest.svg)](https://www.npmjs.com/package/parse)
10
+ <!-- [![npm beta version](https://img.shields.io/npm/v/parse/beta.svg)](https://www.npmjs.com/package/parse) -->
11
+ <!-- [![npm alpha version](https://img.shields.io/npm/v/parse/alpha.svg)](https://www.npmjs.com/package/parse) -->
12
+
13
+ [![Backers on Open Collective](https://opencollective.com/parse-server/backers/badge.svg)][open-collective-link]
14
+ [![Sponsors on Open Collective](https://opencollective.com/parse-server/sponsors/badge.svg)][open-collective-link]
15
+ [![License](https://img.shields.io/badge/license-BSD-lightgrey.svg)][license-link]
16
+ [![Forum](https://img.shields.io/discourse/https/community.parseplatform.org/topics.svg)](https://community.parseplatform.org/c/client-sdks/javascript-sdk)
17
+ [![Twitter](https://img.shields.io/twitter/follow/ParsePlatform.svg?label=Follow&style=social)](https://twitter.com/intent/follow?screen_name=ParsePlatform)
18
+
19
+ ---
20
+
21
+ A library that gives you access to the powerful Parse Server backend from your JavaScript app. For more information on Parse and its features, see [the website](https://parseplatform.org), [the JavaScript guide](https://docs.parseplatform.org/js/guide/), [the Cloud Code guide](https://docs.parseplatform.org/cloudcode/guide/) or [API Reference](https://parseplatform.org/Parse-SDK-JS/api/).
22
+
23
+ ---
24
+
25
+ - [Getting Started](#getting-started)
26
+ - [Using Parse on Different Platforms](#using-parse-on-different-platforms)
27
+ - [Upgrading to Parse SDK 2.0.0](#upgrading-to-parse-sdk-200)
28
+ - [3rd Party Authentications](#3rd-party-authentications)
29
+ - [Want to ride the bleeding edge?](#want-to-ride-the-bleeding-edge)
30
+ - [Experimenting](#experimenting)
31
+ - [Contributing](#contributing)
29
32
 
30
33
  ## Getting Started
31
34
 
@@ -113,19 +116,6 @@ And don't forget, if you plan to deploy it remotely, you should run `npm install
113
116
 
114
117
  We really want Parse to be yours, to see it grow and thrive in the open source community. Please see the [Contributing to Parse Javascript SDK guide][contributing].
115
118
 
116
- ## License
117
-
118
- ```
119
- Copyright (c) 2015-present, Parse, LLC.
120
- All rights reserved.
121
-
122
- This source code is licensed under the BSD-style license found in the
123
- LICENSE file in the root directory of this source tree. An additional grant
124
- of patent rights can be found in the PATENTS file in the same directory.
125
- ```
126
-
127
- -----
128
- 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.
129
119
 
130
120
  [3rd-party-auth]: http://docs.parseplatform.org/parse-server/guide/#oauth-and-3rd-party-authentication
131
121
  [contributing]: https://github.com/parse-community/Parse-SDK-JS/blob/master/CONTRIBUTING.md
@@ -134,3 +124,4 @@ As of April 5, 2017, Parse, LLC has transferred this code to the parse-community
134
124
  [migration]: https://github.com/parse-community/Parse-SDK-JS/blob/master/2.0.0.md
135
125
  [open-collective-link]: https://opencollective.com/parse-server
136
126
  [types-parse]: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/parse
127
+ [license-link]: LICENSE