parse 3.3.0 → 3.4.0-alpha.2

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 (80) hide show
  1. package/README.md +36 -41
  2. package/dist/parse.js +3104 -2247
  3. package/dist/parse.min.js +2 -2
  4. package/dist/parse.weapp.js +3102 -2245
  5. package/dist/parse.weapp.min.js +2 -2
  6. package/lib/browser/Cloud.js +2 -2
  7. package/lib/browser/CoreManager.js +1 -1
  8. package/lib/browser/LiveQueryClient.js +3 -5
  9. package/lib/browser/LocalDatastore.js +3 -5
  10. package/lib/browser/LocalDatastoreController.js +3 -5
  11. package/lib/browser/LocalDatastoreUtils.js +1 -1
  12. package/lib/browser/ObjectStateMutations.js +12 -9
  13. package/lib/browser/OfflineQuery.js +18 -11
  14. package/lib/browser/Parse.js +77 -6
  15. package/lib/browser/ParseCLP.js +9 -8
  16. package/lib/browser/ParseFile.js +6 -3
  17. package/lib/browser/ParseHooks.js +9 -9
  18. package/lib/browser/ParseObject.js +61 -9
  19. package/lib/browser/ParseOp.js +1 -5
  20. package/lib/browser/Push.js +1 -1
  21. package/lib/browser/RESTController.js +6 -3
  22. package/lib/browser/SingleInstanceStateController.js +67 -14
  23. package/lib/browser/UniqueInstanceStateController.js +68 -15
  24. package/lib/browser/promiseUtils.js +1 -1
  25. package/lib/node/Cloud.js +2 -2
  26. package/lib/node/CoreManager.js +1 -1
  27. package/lib/node/LocalDatastoreUtils.js +1 -1
  28. package/lib/node/ObjectStateMutations.js +13 -9
  29. package/lib/node/OfflineQuery.js +15 -6
  30. package/lib/node/Parse.js +28 -17
  31. package/lib/node/ParseCLP.js +7 -3
  32. package/lib/node/ParseFile.js +7 -3
  33. package/lib/node/ParseHooks.js +9 -9
  34. package/lib/node/ParseObject.js +17 -15
  35. package/lib/node/ParseOp.js +1 -5
  36. package/lib/node/Push.js +1 -1
  37. package/lib/node/RESTController.js +7 -3
  38. package/lib/node/SingleInstanceStateController.js +23 -25
  39. package/lib/node/UniqueInstanceStateController.js +23 -25
  40. package/lib/node/promiseUtils.js +2 -2
  41. package/lib/react-native/Cloud.js +2 -2
  42. package/lib/react-native/CoreManager.js +1 -1
  43. package/lib/react-native/LiveQueryClient.js +15 -19
  44. package/lib/react-native/LocalDatastore.js +15 -19
  45. package/lib/react-native/LocalDatastoreController.js +15 -19
  46. package/lib/react-native/LocalDatastoreUtils.js +1 -1
  47. package/lib/react-native/ObjectStateMutations.js +13 -9
  48. package/lib/react-native/OfflineQuery.js +15 -19
  49. package/lib/react-native/Parse.js +65 -5
  50. package/lib/react-native/ParseCLP.js +22 -22
  51. package/lib/react-native/ParseFile.js +7 -3
  52. package/lib/react-native/ParseHooks.js +9 -9
  53. package/lib/react-native/ParseObject.js +72 -24
  54. package/lib/react-native/ParseOp.js +1 -1
  55. package/lib/react-native/Push.js +1 -1
  56. package/lib/react-native/RESTController.js +7 -3
  57. package/lib/react-native/SingleInstanceStateController.js +63 -15
  58. package/lib/react-native/UniqueInstanceStateController.js +63 -15
  59. package/lib/react-native/promiseUtils.js +1 -1
  60. package/lib/weapp/Cloud.js +2 -2
  61. package/lib/weapp/CoreManager.js +1 -1
  62. package/lib/weapp/LiveQueryClient.js +3 -5
  63. package/lib/weapp/LocalDatastore.js +3 -5
  64. package/lib/weapp/LocalDatastoreController.js +3 -5
  65. package/lib/weapp/LocalDatastoreUtils.js +1 -1
  66. package/lib/weapp/ObjectStateMutations.js +12 -9
  67. package/lib/weapp/OfflineQuery.js +18 -11
  68. package/lib/weapp/Parse.js +77 -6
  69. package/lib/weapp/ParseCLP.js +9 -8
  70. package/lib/weapp/ParseFile.js +6 -3
  71. package/lib/weapp/ParseHooks.js +9 -9
  72. package/lib/weapp/ParseObject.js +61 -9
  73. package/lib/weapp/ParseOp.js +1 -5
  74. package/lib/weapp/Push.js +1 -1
  75. package/lib/weapp/RESTController.js +6 -3
  76. package/lib/weapp/SingleInstanceStateController.js +67 -14
  77. package/lib/weapp/UniqueInstanceStateController.js +68 -15
  78. package/lib/weapp/promiseUtils.js +1 -1
  79. package/package.json +11 -4
  80. package/CHANGELOG.md +0 -423
package/README.md CHANGED
@@ -1,31 +1,38 @@
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 alpha](https://github.com/parse-community/Parse-SDK-JS/workflows/ci/badge.svg?branch=alpha)](https://github.com/parse-community/Parse-SDK-JS/actions?query=workflow%3Aci+branch%3Aalpha)
6
+ [![Build Status CI release](https://github.com/parse-community/Parse-SDK-JS/workflows/ci/badge.svg?branch=release)](https://github.com/parse-community/Parse-SDK-JS/actions?query=workflow%3Aci+branch%3Arelease)
7
+ [![Snyk Badge](https://snyk.io/test/github/parse-community/Parse-SDK-JS/badge.svg)](https://snyk.io/test/github/parse-community/Parse-SDK-JS)
8
+ [![Coverage](http://codecov.io/github/parse-community/Parse-SDK-JS/coverage.svg?branch=alpha)](http://codecov.io/github/parse-community/Parse-SDK-JS?branch=alpha)
9
+
10
+ [![Node Version](https://img.shields.io/badge/nodejs-12,_14,_15-green.svg?logo=node.js&style=flat)](https://nodejs.org/)
11
+ [![auto-release](https://img.shields.io/badge/%F0%9F%9A%80-auto--release-9e34eb.svg)](https://github.com/parse-community/parse-dashboard/releases)
12
+
13
+ [![npm latest version](https://img.shields.io/npm/v/parse/latest.svg)](https://www.npmjs.com/package/parse)
14
+ [![npm alpha version](https://img.shields.io/npm/v/parse/alpha.svg)](https://www.npmjs.com/package/parse)
15
+ <!-- [![npm beta version](https://img.shields.io/npm/v/parse/beta.svg)](https://www.npmjs.com/package/parse) -->
16
+
17
+ [![Backers on Open Collective](https://opencollective.com/parse-server/backers/badge.svg)][open-collective-link]
18
+ [![Sponsors on Open Collective](https://opencollective.com/parse-server/sponsors/badge.svg)][open-collective-link]
19
+ [![License](https://img.shields.io/badge/license-BSD-lightgrey.svg)][license-link]
20
+ [![Forum](https://img.shields.io/discourse/https/community.parseplatform.org/topics.svg)](https://community.parseplatform.org/c/client-sdks/javascript-sdk)
21
+ [![Twitter](https://img.shields.io/twitter/follow/ParsePlatform.svg?label=Follow&style=social)](https://twitter.com/intent/follow?screen_name=ParsePlatform)
22
+
23
+ ---
24
+
25
+ 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/).
26
+
27
+ ---
28
+
29
+ - [Getting Started](#getting-started)
30
+ - [Using Parse on Different Platforms](#using-parse-on-different-platforms)
31
+ - [Upgrading to Parse SDK 2.0.0](#upgrading-to-parse-sdk-200)
32
+ - [3rd Party Authentications](#3rd-party-authentications)
33
+ - [Want to ride the bleeding edge?](#want-to-ride-the-bleeding-edge)
34
+ - [Experimenting](#experimenting)
35
+ - [Contributing](#contributing)
29
36
 
30
37
  ## Getting Started
31
38
 
@@ -113,19 +120,6 @@ And don't forget, if you plan to deploy it remotely, you should run `npm install
113
120
 
114
121
  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
122
 
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
123
 
130
124
  [3rd-party-auth]: http://docs.parseplatform.org/parse-server/guide/#oauth-and-3rd-party-authentication
131
125
  [contributing]: https://github.com/parse-community/Parse-SDK-JS/blob/master/CONTRIBUTING.md
@@ -134,3 +128,4 @@ As of April 5, 2017, Parse, LLC has transferred this code to the parse-community
134
128
  [migration]: https://github.com/parse-community/Parse-SDK-JS/blob/master/2.0.0.md
135
129
  [open-collective-link]: https://opencollective.com/parse-server
136
130
  [types-parse]: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/parse
131
+ [license-link]: LICENSE