parse 4.1.0-alpha.2 → 4.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.
- package/dist/parse.js +252 -58
- package/dist/parse.min.js +2 -2
- package/dist/parse.weapp.js +252 -58
- package/dist/parse.weapp.min.js +2 -2
- package/lib/browser/AnonymousUtils.js +1 -1
- package/lib/browser/Cloud.js +1 -2
- package/lib/browser/CoreManager.js +1 -1
- package/lib/browser/EventuallyQueue.js +13 -1
- package/lib/browser/LiveQueryClient.js +8 -4
- package/lib/browser/LocalDatastore.js +3 -1
- package/lib/browser/LocalDatastoreController.js +3 -1
- package/lib/browser/ObjectStateMutations.js +14 -1
- package/lib/browser/ParseACL.js +2 -1
- package/lib/browser/ParseCLP.js +6 -1
- package/lib/browser/ParseConfig.js +1 -0
- package/lib/browser/ParseFile.js +4 -1
- package/lib/browser/ParseInstallation.js +4 -1
- package/lib/browser/ParseObject.js +10 -7
- package/lib/browser/ParseOp.js +3 -1
- package/lib/browser/ParseQuery.js +79 -24
- package/lib/browser/ParseRole.js +5 -1
- package/lib/browser/ParseSchema.js +1 -1
- package/lib/browser/ParseSession.js +5 -1
- package/lib/browser/ParseUser.js +42 -1
- package/lib/browser/Push.js +8 -2
- package/lib/browser/RESTController.js +20 -0
- package/lib/browser/SingleInstanceStateController.js +6 -1
- package/lib/browser/TaskQueue.js +4 -0
- package/lib/browser/UniqueInstanceStateController.js +3 -1
- package/lib/browser/unsavedChildren.js +4 -1
- package/lib/node/AnonymousUtils.js +1 -1
- package/lib/node/Cloud.js +1 -2
- package/lib/node/CoreManager.js +1 -1
- package/lib/node/EventuallyQueue.js +13 -1
- package/lib/node/LiveQueryClient.js +5 -2
- package/lib/node/LocalDatastore.js +1 -1
- package/lib/node/ObjectStateMutations.js +11 -1
- package/lib/node/ParseACL.js +2 -1
- package/lib/node/ParseCLP.js +3 -1
- package/lib/node/ParseConfig.js +1 -2
- package/lib/node/ParseFile.js +1 -1
- package/lib/node/ParseInstallation.js +1 -1
- package/lib/node/ParseObject.js +2 -1
- package/lib/node/ParseQuery.js +50 -1
- package/lib/node/ParseRole.js +2 -1
- package/lib/node/ParseSchema.js +1 -1
- package/lib/node/ParseSession.js +2 -1
- package/lib/node/ParseUser.js +37 -1
- package/lib/node/Push.js +8 -2
- package/lib/node/RESTController.js +20 -0
- package/lib/node/SingleInstanceStateController.js +6 -1
- package/lib/node/TaskQueue.js +4 -1
- package/lib/node/UniqueInstanceStateController.js +3 -1
- package/lib/node/unsavedChildren.js +4 -1
- package/lib/react-native/CoreManager.js +1 -1
- package/lib/react-native/LiveQueryClient.js +7 -3
- package/lib/react-native/ParseCLP.js +2 -2
- package/lib/react-native/ParseQuery.js +34 -11
- package/lib/react-native/ParseUser.js +25 -0
- package/lib/weapp/AnonymousUtils.js +1 -1
- package/lib/weapp/Cloud.js +1 -2
- package/lib/weapp/CoreManager.js +1 -1
- package/lib/weapp/EventuallyQueue.js +13 -1
- package/lib/weapp/LiveQueryClient.js +8 -4
- package/lib/weapp/LocalDatastore.js +3 -1
- package/lib/weapp/LocalDatastoreController.js +3 -1
- package/lib/weapp/ObjectStateMutations.js +14 -1
- package/lib/weapp/ParseACL.js +2 -1
- package/lib/weapp/ParseCLP.js +6 -1
- package/lib/weapp/ParseConfig.js +1 -0
- package/lib/weapp/ParseFile.js +4 -1
- package/lib/weapp/ParseInstallation.js +4 -1
- package/lib/weapp/ParseObject.js +10 -7
- package/lib/weapp/ParseOp.js +3 -1
- package/lib/weapp/ParseQuery.js +79 -24
- package/lib/weapp/ParseRole.js +5 -1
- package/lib/weapp/ParseSchema.js +1 -1
- package/lib/weapp/ParseSession.js +5 -1
- package/lib/weapp/ParseUser.js +42 -1
- package/lib/weapp/Push.js +8 -2
- package/lib/weapp/RESTController.js +20 -0
- package/lib/weapp/SingleInstanceStateController.js +6 -1
- package/lib/weapp/TaskQueue.js +4 -0
- package/lib/weapp/UniqueInstanceStateController.js +3 -1
- package/lib/weapp/unsavedChildren.js +4 -1
- package/package.json +18 -18
|
@@ -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]: {
|
package/lib/weapp/TaskQueue.js
CHANGED
|
@@ -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-alpha.
|
|
3
|
+
"version": "4.1.0-alpha.4",
|
|
4
4
|
"description": "Parse JavaScript SDK",
|
|
5
5
|
"homepage": "https://parseplatform.org",
|
|
6
6
|
"keywords": [
|
|
@@ -33,37 +33,37 @@
|
|
|
33
33
|
"idb-keyval": "6.2.0",
|
|
34
34
|
"react-native-crypto-js": "1.0.0",
|
|
35
35
|
"uuid": "9.0.0",
|
|
36
|
-
"ws": "8.
|
|
36
|
+
"ws": "8.13.0",
|
|
37
37
|
"xmlhttprequest": "1.8.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@babel/core": "7.21.
|
|
41
|
-
"@babel/eslint-parser": "7.
|
|
40
|
+
"@babel/core": "7.21.4",
|
|
41
|
+
"@babel/eslint-parser": "7.21.3",
|
|
42
42
|
"@babel/plugin-proposal-class-properties": "7.18.6",
|
|
43
43
|
"@babel/plugin-transform-flow-comments": "7.21.0",
|
|
44
44
|
"@babel/plugin-transform-flow-strip-types": "7.21.0",
|
|
45
|
-
"@babel/plugin-transform-runtime": "7.21.
|
|
46
|
-
"@babel/preset-env": "7.
|
|
45
|
+
"@babel/plugin-transform-runtime": "7.21.4",
|
|
46
|
+
"@babel/preset-env": "7.21.4",
|
|
47
47
|
"@babel/preset-react": "7.18.6",
|
|
48
48
|
"@parse/minami": "1.0.0",
|
|
49
49
|
"@saithodev/semantic-release-backmerge": "2.1.3",
|
|
50
|
-
"@semantic-release/changelog": "6.0.
|
|
50
|
+
"@semantic-release/changelog": "6.0.3",
|
|
51
51
|
"@semantic-release/commit-analyzer": "9.0.2",
|
|
52
52
|
"@semantic-release/git": "10.0.1",
|
|
53
53
|
"@semantic-release/github": "8.0.7",
|
|
54
54
|
"@semantic-release/npm": "9.0.2",
|
|
55
55
|
"@semantic-release/release-notes-generator": "10.0.3",
|
|
56
|
-
"babel-jest": "29.
|
|
56
|
+
"babel-jest": "29.5.0",
|
|
57
57
|
"babel-plugin-inline-package-json": "2.0.0",
|
|
58
58
|
"babel-plugin-minify-dead-code-elimination": "0.5.2",
|
|
59
59
|
"babel-plugin-transform-inline-environment-variables": "0.4.4",
|
|
60
60
|
"browserify": "17.0.0",
|
|
61
61
|
"codecov": "3.8.3",
|
|
62
|
-
"core-js": "3.
|
|
62
|
+
"core-js": "3.30.1",
|
|
63
63
|
"cross-env": "7.0.2",
|
|
64
|
-
"eslint": "8.
|
|
64
|
+
"eslint": "8.39.0",
|
|
65
65
|
"eslint-plugin-flowtype": "8.0.3",
|
|
66
|
-
"eslint-plugin-jsdoc": "
|
|
66
|
+
"eslint-plugin-jsdoc": "43.0.7",
|
|
67
67
|
"express": "4.18.2",
|
|
68
68
|
"gulp": "4.0.2",
|
|
69
69
|
"gulp-babel": "8.0.0",
|
|
@@ -73,19 +73,19 @@
|
|
|
73
73
|
"gulp-uglify": "3.0.2",
|
|
74
74
|
"gulp-watch": "5.0.1",
|
|
75
75
|
"husky": "8.0.3",
|
|
76
|
-
"jasmine": "4.
|
|
76
|
+
"jasmine": "4.6.0",
|
|
77
77
|
"jasmine-reporters": "2.5.2",
|
|
78
78
|
"jasmine-spec-reporter": "7.0.0",
|
|
79
|
-
"jest": "29.
|
|
80
|
-
"jest-environment-jsdom": "29.
|
|
79
|
+
"jest": "29.5.0",
|
|
80
|
+
"jest-environment-jsdom": "29.5.0",
|
|
81
81
|
"jsdoc": "4.0.2",
|
|
82
82
|
"jsdoc-babel": "0.5.0",
|
|
83
|
-
"lint-staged": "13.
|
|
84
|
-
"metro-react-native-babel-preset": "0.
|
|
83
|
+
"lint-staged": "13.2.2",
|
|
84
|
+
"metro-react-native-babel-preset": "0.76.3",
|
|
85
85
|
"mongodb-runner": "4.10.0",
|
|
86
86
|
"parse-server": "git+https://github.com/parse-community/parse-server#alpha",
|
|
87
|
-
"prettier": "2.8.
|
|
88
|
-
"puppeteer": "19.
|
|
87
|
+
"prettier": "2.8.8",
|
|
88
|
+
"puppeteer": "19.11.1",
|
|
89
89
|
"regenerator-runtime": "0.13.11",
|
|
90
90
|
"semantic-release": "19.0.5",
|
|
91
91
|
"vinyl-source-stream": "2.0.0"
|