parse 6.0.0-alpha.2 → 6.0.0
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/README.md +0 -1
- package/dist/parse.js +12 -23
- package/dist/parse.min.js +2 -2
- package/dist/parse.weapp.js +12 -23
- package/dist/parse.weapp.min.js +2 -2
- package/lib/browser/CoreManager.js +1 -1
- package/lib/browser/Parse.js +10 -21
- package/lib/node/CoreManager.js +1 -1
- package/lib/node/Parse.js +10 -19
- package/lib/react-native/CoreManager.js +1 -1
- package/lib/react-native/Parse.js +3 -5
- package/lib/weapp/CoreManager.js +1 -1
- package/lib/weapp/Parse.js +10 -21
- package/package.json +12 -13
package/lib/browser/Parse.js
CHANGED
|
@@ -9,8 +9,8 @@ _Object$defineProperty(exports, "__esModule", {
|
|
|
9
9
|
});
|
|
10
10
|
exports.default = void 0;
|
|
11
11
|
var _promise = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/promise"));
|
|
12
|
-
var
|
|
13
|
-
var
|
|
12
|
+
var _decode = _interopRequireDefault(require("./decode"));
|
|
13
|
+
var _encode = _interopRequireDefault(require("./encode"));
|
|
14
14
|
var _CryptoController = _interopRequireDefault(require("./CryptoController"));
|
|
15
15
|
var _EventuallyQueue = _interopRequireDefault(require("./EventuallyQueue"));
|
|
16
16
|
var _IndexedDBStorageController = _interopRequireDefault(require("./IndexedDBStorageController"));
|
|
@@ -71,20 +71,11 @@ function _interopRequireWildcard(e, r) {
|
|
|
71
71
|
}
|
|
72
72
|
return n.default = e, t && t.set(e, n), n;
|
|
73
73
|
}
|
|
74
|
-
/**
|
|
75
|
-
* Contains all Parse API classes and functions.
|
|
76
|
-
*
|
|
77
|
-
* @static
|
|
78
|
-
* @global
|
|
79
|
-
* @class
|
|
80
|
-
* @hideconstructor
|
|
81
|
-
*/
|
|
82
|
-
|
|
83
74
|
const Parse = {
|
|
84
75
|
ACL: _ParseACL.default,
|
|
85
|
-
Analytics
|
|
76
|
+
Analytics,
|
|
86
77
|
AnonymousUtils: _AnonymousUtils.default,
|
|
87
|
-
Cloud
|
|
78
|
+
Cloud,
|
|
88
79
|
CLP: _ParseCLP.default,
|
|
89
80
|
CoreManager: _CoreManager.default,
|
|
90
81
|
Config: _ParseConfig.default,
|
|
@@ -105,7 +96,7 @@ const Parse = {
|
|
|
105
96
|
AddUnique: ParseOp.AddUniqueOp,
|
|
106
97
|
Relation: ParseOp.RelationOp
|
|
107
98
|
},
|
|
108
|
-
Push
|
|
99
|
+
Push,
|
|
109
100
|
Query: _ParseQuery.default,
|
|
110
101
|
Relation: _ParseRelation.default,
|
|
111
102
|
Role: _ParseRole.default,
|
|
@@ -320,10 +311,10 @@ const Parse = {
|
|
|
320
311
|
},
|
|
321
312
|
// We attempt to match the signatures of the legacy versions of these methods
|
|
322
313
|
_decode(_, value) {
|
|
323
|
-
return (0,
|
|
314
|
+
return (0, _decode.default)(value);
|
|
324
315
|
},
|
|
325
316
|
_encode(value, _, disallowObjects) {
|
|
326
|
-
return (0,
|
|
317
|
+
return (0, _encode.default)(value, disallowObjects);
|
|
327
318
|
},
|
|
328
319
|
_getInstallationId() {
|
|
329
320
|
return _CoreManager.default.getInstallationController().currentInstallationId();
|
|
@@ -336,17 +327,15 @@ const Parse = {
|
|
|
336
327
|
* @param [ms] Milliseconds to ping the server. Default 2000ms
|
|
337
328
|
* @static
|
|
338
329
|
*/
|
|
339
|
-
enableLocalDatastore() {
|
|
340
|
-
let polling = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
341
|
-
let ms = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2000;
|
|
330
|
+
enableLocalDatastore(polling, ms) {
|
|
342
331
|
if (!this.applicationId) {
|
|
343
332
|
console.log("'enableLocalDataStore' must be called after 'initialize'");
|
|
344
333
|
return;
|
|
345
334
|
}
|
|
346
335
|
if (!this.LocalDatastore.isEnabled) {
|
|
347
336
|
this.LocalDatastore.isEnabled = true;
|
|
348
|
-
if (polling) {
|
|
349
|
-
_CoreManager.default.getEventuallyQueue().poll(ms);
|
|
337
|
+
if (polling || typeof polling === 'undefined') {
|
|
338
|
+
_CoreManager.default.getEventuallyQueue().poll(ms || 2000);
|
|
350
339
|
}
|
|
351
340
|
}
|
|
352
341
|
},
|
package/lib/node/CoreManager.js
CHANGED
package/lib/node/Parse.js
CHANGED
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var
|
|
8
|
-
var
|
|
7
|
+
var _decode = _interopRequireDefault(require("./decode"));
|
|
8
|
+
var _encode = _interopRequireDefault(require("./encode"));
|
|
9
9
|
var _CryptoController = _interopRequireDefault(require("./CryptoController"));
|
|
10
10
|
var _EventuallyQueue = _interopRequireDefault(require("./EventuallyQueue"));
|
|
11
11
|
var _IndexedDBStorageController = _interopRequireDefault(require("./IndexedDBStorageController"));
|
|
@@ -72,20 +72,11 @@ function _interopRequireDefault(e) {
|
|
|
72
72
|
default: e
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
|
-
/**
|
|
76
|
-
* Contains all Parse API classes and functions.
|
|
77
|
-
*
|
|
78
|
-
* @static
|
|
79
|
-
* @global
|
|
80
|
-
* @class
|
|
81
|
-
* @hideconstructor
|
|
82
|
-
*/
|
|
83
|
-
|
|
84
75
|
const Parse = {
|
|
85
76
|
ACL: _ParseACL.default,
|
|
86
|
-
Analytics
|
|
77
|
+
Analytics,
|
|
87
78
|
AnonymousUtils: _AnonymousUtils.default,
|
|
88
|
-
Cloud
|
|
79
|
+
Cloud,
|
|
89
80
|
CLP: _ParseCLP.default,
|
|
90
81
|
CoreManager: _CoreManager.default,
|
|
91
82
|
Config: _ParseConfig.default,
|
|
@@ -106,7 +97,7 @@ const Parse = {
|
|
|
106
97
|
AddUnique: ParseOp.AddUniqueOp,
|
|
107
98
|
Relation: ParseOp.RelationOp
|
|
108
99
|
},
|
|
109
|
-
Push
|
|
100
|
+
Push,
|
|
110
101
|
Query: _ParseQuery.default,
|
|
111
102
|
Relation: _ParseRelation.default,
|
|
112
103
|
Role: _ParseRole.default,
|
|
@@ -311,10 +302,10 @@ const Parse = {
|
|
|
311
302
|
},
|
|
312
303
|
// We attempt to match the signatures of the legacy versions of these methods
|
|
313
304
|
_decode(_, value) {
|
|
314
|
-
return (0,
|
|
305
|
+
return (0, _decode.default)(value);
|
|
315
306
|
},
|
|
316
307
|
_encode(value, _, disallowObjects) {
|
|
317
|
-
return (0,
|
|
308
|
+
return (0, _encode.default)(value, disallowObjects);
|
|
318
309
|
},
|
|
319
310
|
_getInstallationId() {
|
|
320
311
|
return _CoreManager.default.getInstallationController().currentInstallationId();
|
|
@@ -327,15 +318,15 @@ const Parse = {
|
|
|
327
318
|
* @param [ms] Milliseconds to ping the server. Default 2000ms
|
|
328
319
|
* @static
|
|
329
320
|
*/
|
|
330
|
-
enableLocalDatastore(polling
|
|
321
|
+
enableLocalDatastore(polling, ms) {
|
|
331
322
|
if (!this.applicationId) {
|
|
332
323
|
console.log("'enableLocalDataStore' must be called after 'initialize'");
|
|
333
324
|
return;
|
|
334
325
|
}
|
|
335
326
|
if (!this.LocalDatastore.isEnabled) {
|
|
336
327
|
this.LocalDatastore.isEnabled = true;
|
|
337
|
-
if (polling) {
|
|
338
|
-
_CoreManager.default.getEventuallyQueue().poll(ms);
|
|
328
|
+
if (polling || typeof polling === 'undefined') {
|
|
329
|
+
_CoreManager.default.getEventuallyQueue().poll(ms || 2000);
|
|
339
330
|
}
|
|
340
331
|
}
|
|
341
332
|
},
|
|
@@ -228,17 +228,15 @@ var Parse = {
|
|
|
228
228
|
_getInstallationId: function () {
|
|
229
229
|
return _CoreManager.default.getInstallationController().currentInstallationId();
|
|
230
230
|
},
|
|
231
|
-
enableLocalDatastore: function () {
|
|
232
|
-
var polling = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
233
|
-
var ms = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2000;
|
|
231
|
+
enableLocalDatastore: function (polling, ms) {
|
|
234
232
|
if (!this.applicationId) {
|
|
235
233
|
console.log("'enableLocalDataStore' must be called after 'initialize'");
|
|
236
234
|
return;
|
|
237
235
|
}
|
|
238
236
|
if (!this.LocalDatastore.isEnabled) {
|
|
239
237
|
this.LocalDatastore.isEnabled = true;
|
|
240
|
-
if (polling) {
|
|
241
|
-
_CoreManager.default.getEventuallyQueue().poll(ms);
|
|
238
|
+
if (polling || typeof polling === 'undefined') {
|
|
239
|
+
_CoreManager.default.getEventuallyQueue().poll(ms || 2000);
|
|
242
240
|
}
|
|
243
241
|
}
|
|
244
242
|
},
|
package/lib/weapp/CoreManager.js
CHANGED
package/lib/weapp/Parse.js
CHANGED
|
@@ -9,8 +9,8 @@ _Object$defineProperty(exports, "__esModule", {
|
|
|
9
9
|
});
|
|
10
10
|
exports.default = void 0;
|
|
11
11
|
var _promise = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/promise"));
|
|
12
|
-
var
|
|
13
|
-
var
|
|
12
|
+
var _decode = _interopRequireDefault(require("./decode"));
|
|
13
|
+
var _encode = _interopRequireDefault(require("./encode"));
|
|
14
14
|
var _CryptoController = _interopRequireDefault(require("./CryptoController"));
|
|
15
15
|
var _EventuallyQueue = _interopRequireDefault(require("./EventuallyQueue"));
|
|
16
16
|
var _IndexedDBStorageController = _interopRequireDefault(require("./IndexedDBStorageController"));
|
|
@@ -71,20 +71,11 @@ function _interopRequireWildcard(e, r) {
|
|
|
71
71
|
}
|
|
72
72
|
return n.default = e, t && t.set(e, n), n;
|
|
73
73
|
}
|
|
74
|
-
/**
|
|
75
|
-
* Contains all Parse API classes and functions.
|
|
76
|
-
*
|
|
77
|
-
* @static
|
|
78
|
-
* @global
|
|
79
|
-
* @class
|
|
80
|
-
* @hideconstructor
|
|
81
|
-
*/
|
|
82
|
-
|
|
83
74
|
const Parse = {
|
|
84
75
|
ACL: _ParseACL.default,
|
|
85
|
-
Analytics
|
|
76
|
+
Analytics,
|
|
86
77
|
AnonymousUtils: _AnonymousUtils.default,
|
|
87
|
-
Cloud
|
|
78
|
+
Cloud,
|
|
88
79
|
CLP: _ParseCLP.default,
|
|
89
80
|
CoreManager: _CoreManager.default,
|
|
90
81
|
Config: _ParseConfig.default,
|
|
@@ -105,7 +96,7 @@ const Parse = {
|
|
|
105
96
|
AddUnique: ParseOp.AddUniqueOp,
|
|
106
97
|
Relation: ParseOp.RelationOp
|
|
107
98
|
},
|
|
108
|
-
Push
|
|
99
|
+
Push,
|
|
109
100
|
Query: _ParseQuery.default,
|
|
110
101
|
Relation: _ParseRelation.default,
|
|
111
102
|
Role: _ParseRole.default,
|
|
@@ -316,10 +307,10 @@ const Parse = {
|
|
|
316
307
|
},
|
|
317
308
|
// We attempt to match the signatures of the legacy versions of these methods
|
|
318
309
|
_decode(_, value) {
|
|
319
|
-
return (0,
|
|
310
|
+
return (0, _decode.default)(value);
|
|
320
311
|
},
|
|
321
312
|
_encode(value, _, disallowObjects) {
|
|
322
|
-
return (0,
|
|
313
|
+
return (0, _encode.default)(value, disallowObjects);
|
|
323
314
|
},
|
|
324
315
|
_getInstallationId() {
|
|
325
316
|
return _CoreManager.default.getInstallationController().currentInstallationId();
|
|
@@ -332,17 +323,15 @@ const Parse = {
|
|
|
332
323
|
* @param [ms] Milliseconds to ping the server. Default 2000ms
|
|
333
324
|
* @static
|
|
334
325
|
*/
|
|
335
|
-
enableLocalDatastore() {
|
|
336
|
-
let polling = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
337
|
-
let ms = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2000;
|
|
326
|
+
enableLocalDatastore(polling, ms) {
|
|
338
327
|
if (!this.applicationId) {
|
|
339
328
|
console.log("'enableLocalDataStore' must be called after 'initialize'");
|
|
340
329
|
return;
|
|
341
330
|
}
|
|
342
331
|
if (!this.LocalDatastore.isEnabled) {
|
|
343
332
|
this.LocalDatastore.isEnabled = true;
|
|
344
|
-
if (polling) {
|
|
345
|
-
_CoreManager.default.getEventuallyQueue().poll(ms);
|
|
333
|
+
if (polling || typeof polling === 'undefined') {
|
|
334
|
+
_CoreManager.default.getEventuallyQueue().poll(ms || 2000);
|
|
346
335
|
}
|
|
347
336
|
}
|
|
348
337
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "parse",
|
|
3
|
-
"version": "6.0.0
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"description": "Parse JavaScript SDK",
|
|
5
5
|
"homepage": "https://parseplatform.org",
|
|
6
6
|
"keywords": [
|
|
@@ -33,17 +33,16 @@
|
|
|
33
33
|
"idb-keyval": "6.2.1",
|
|
34
34
|
"react-native-crypto-js": "1.0.0",
|
|
35
35
|
"uuid": "10.0.0",
|
|
36
|
-
"ws": "8.18.
|
|
36
|
+
"ws": "8.18.1",
|
|
37
37
|
"xmlhttprequest": "1.8.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@babel/core": "7.26.
|
|
40
|
+
"@babel/core": "7.26.9",
|
|
41
41
|
"@babel/plugin-proposal-class-properties": "7.18.6",
|
|
42
|
-
"@babel/plugin-transform-runtime": "7.26.
|
|
43
|
-
"@babel/preset-env": "7.26.
|
|
42
|
+
"@babel/plugin-transform-runtime": "7.26.9",
|
|
43
|
+
"@babel/preset-env": "7.26.9",
|
|
44
44
|
"@babel/preset-react": "7.26.3",
|
|
45
45
|
"@babel/preset-typescript": "7.26.0",
|
|
46
|
-
"@definitelytyped/dtslint": "0.0.163",
|
|
47
46
|
"@eslint/js": "9.18.0",
|
|
48
47
|
"@parse/minami": "git+https://github.com/parse-community/minami#main",
|
|
49
48
|
"@saithodev/semantic-release-backmerge": "4.0.1",
|
|
@@ -62,7 +61,8 @@
|
|
|
62
61
|
"codecov": "3.8.3",
|
|
63
62
|
"core-js": "3.40.0",
|
|
64
63
|
"cross-env": "7.0.2",
|
|
65
|
-
"eslint": "9.
|
|
64
|
+
"eslint": "9.21.0",
|
|
65
|
+
"eslint-plugin-expect-type": "0.6.2",
|
|
66
66
|
"eslint-plugin-jsdoc": "50.6.3",
|
|
67
67
|
"express": "4.21.2",
|
|
68
68
|
"gulp": "5.0.0",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"gulp-uglify": "3.0.2",
|
|
74
74
|
"gulp-watch": "5.0.1",
|
|
75
75
|
"husky": "9.1.7",
|
|
76
|
-
"jasmine": "5.
|
|
76
|
+
"jasmine": "5.6.0",
|
|
77
77
|
"jasmine-reporters": "2.5.2",
|
|
78
78
|
"jasmine-spec-reporter": "7.0.0",
|
|
79
79
|
"jest": "29.7.0",
|
|
@@ -85,11 +85,11 @@
|
|
|
85
85
|
"metro-react-native-babel-preset": "0.77.0",
|
|
86
86
|
"mongodb-runner": "5.8.0",
|
|
87
87
|
"parse-server": "7.3.0",
|
|
88
|
-
"prettier": "3.5.
|
|
88
|
+
"prettier": "3.5.2",
|
|
89
89
|
"puppeteer": "24.2.1",
|
|
90
90
|
"regenerator-runtime": "0.14.1",
|
|
91
|
-
"semantic-release": "24.2.
|
|
92
|
-
"typescript-eslint": "8.
|
|
91
|
+
"semantic-release": "24.2.3",
|
|
92
|
+
"typescript-eslint": "8.25.0",
|
|
93
93
|
"vinyl-source-stream": "2.0.0"
|
|
94
94
|
},
|
|
95
95
|
"optionalDependencies": {
|
|
@@ -102,11 +102,10 @@
|
|
|
102
102
|
"test": "cross-env PARSE_BUILD=node jest",
|
|
103
103
|
"test:mongodb": "npm run test:mongodb:runnerstart && npm run integration",
|
|
104
104
|
"test:mongodb:runnerstart": "mongodb-runner start -- --port 27017",
|
|
105
|
-
"test:types": "dtslint --expectOnly types",
|
|
106
105
|
"posttest:mongodb": "mongodb-runner stop --all",
|
|
107
106
|
"lint": "eslint --cache src/ integration/",
|
|
108
107
|
"lint:fix": "eslint --fix --cache src/ integration/",
|
|
109
|
-
"
|
|
108
|
+
"test:types": "eslint --cache types/tests.ts -c eslint.config.test.mjs",
|
|
110
109
|
"watch": "cross-env PARSE_BUILD=${PARSE_BUILD} gulp watch",
|
|
111
110
|
"watch:browser": "cross-env PARSE_BUILD=browser npm run watch",
|
|
112
111
|
"watch:node": "cross-env PARSE_BUILD=node npm run watch",
|