parse 8.0.3 → 8.1.0-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.
- package/dist/parse.js +166 -126
- package/dist/parse.min.js +1 -1
- package/dist/parse.weapp.js +167 -127
- package/dist/parse.weapp.min.js +1 -1
- package/lib/browser/CoreManager.js +1 -1
- package/lib/browser/LiveQueryClient.js +38 -18
- package/lib/browser/LiveQuerySubscription.js +20 -1
- package/lib/browser/WebSocketController.js +0 -4
- package/lib/node/CoreManager.js +1 -1
- package/lib/node/LiveQueryClient.js +29 -11
- package/lib/node/LiveQuerySubscription.js +18 -1
- package/lib/node/WebSocketController.js +1 -9
- package/lib/react-native/CoreManager.js +1 -1
- package/lib/react-native/LiveQueryClient.js +20 -4
- package/lib/react-native/LiveQuerySubscription.js +15 -1
- package/lib/react-native/WebSocketController.js +0 -3
- package/lib/weapp/CoreManager.js +1 -1
- package/lib/weapp/LiveQueryClient.js +38 -18
- package/lib/weapp/LiveQuerySubscription.js +20 -1
- package/lib/weapp/WebSocketController.js +1 -5
- package/package.json +9 -9
- package/types/LiveQueryClient.d.ts +15 -13
- package/types/LiveQuerySubscription.d.ts +7 -1
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
5
4
|
_Object$defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.default = void 0;
|
|
9
|
-
var _ws = _interopRequireDefault(require("ws"));
|
|
10
|
-
var _Socket = _interopRequireDefault(require("./Socket.weapp"));
|
|
11
8
|
/* global WebSocket */
|
|
12
|
-
|
|
13
9
|
let WebSocketController;
|
|
14
10
|
try {
|
|
15
|
-
WebSocketController =
|
|
11
|
+
WebSocketController = require('./Socket.weapp');
|
|
16
12
|
} catch (_) {
|
|
17
13
|
// WebSocket unavailable
|
|
18
14
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "parse",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.1.0-alpha.1",
|
|
4
4
|
"description": "Parse JavaScript SDK",
|
|
5
5
|
"homepage": "https://parseplatform.org",
|
|
6
6
|
"keywords": [
|
|
@@ -67,14 +67,14 @@
|
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"@babel/runtime": "7.28.6",
|
|
70
|
-
"@babel/runtime-corejs3": "7.
|
|
70
|
+
"@babel/runtime-corejs3": "7.29.0",
|
|
71
71
|
"crypto-js": "4.2.0",
|
|
72
72
|
"idb-keyval": "6.2.2",
|
|
73
73
|
"react-native-crypto-js": "1.0.0",
|
|
74
74
|
"ws": "8.19.0"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"@babel/core": "7.
|
|
77
|
+
"@babel/core": "7.29.0",
|
|
78
78
|
"@babel/plugin-proposal-class-properties": "7.18.6",
|
|
79
79
|
"@babel/plugin-transform-runtime": "7.28.5",
|
|
80
80
|
"@babel/preset-env": "7.28.6",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"@semantic-release/changelog": "6.0.3",
|
|
88
88
|
"@semantic-release/commit-analyzer": "13.0.1",
|
|
89
89
|
"@semantic-release/git": "10.0.1",
|
|
90
|
-
"@semantic-release/github": "12.0.
|
|
90
|
+
"@semantic-release/github": "12.0.3",
|
|
91
91
|
"@semantic-release/npm": "13.1.3",
|
|
92
92
|
"@semantic-release/release-notes-generator": "14.1.0",
|
|
93
93
|
"@types/facebook-js-sdk": "3.3.11",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"cross-env": "10.1.0",
|
|
100
100
|
"eslint": "9.39.2",
|
|
101
101
|
"eslint-plugin-expect-type": "0.6.2",
|
|
102
|
-
"eslint-plugin-jsdoc": "62.
|
|
102
|
+
"eslint-plugin-jsdoc": "62.5.0",
|
|
103
103
|
"express": "5.2.1",
|
|
104
104
|
"gulp": "5.0.1",
|
|
105
105
|
"gulp-babel": "8.0.0",
|
|
@@ -114,12 +114,12 @@
|
|
|
114
114
|
"lint-staged": "16.2.7",
|
|
115
115
|
"madge": "8.0.0",
|
|
116
116
|
"metro-react-native-babel-preset": "0.77.0",
|
|
117
|
-
"mongodb-runner": "6.
|
|
117
|
+
"mongodb-runner": "6.6.0",
|
|
118
118
|
"parse-server": "8.6.2",
|
|
119
|
-
"puppeteer": "24.36.
|
|
119
|
+
"puppeteer": "24.36.1",
|
|
120
120
|
"regenerator-runtime": "0.14.1",
|
|
121
|
-
"semantic-release": "25.0.
|
|
122
|
-
"typescript-eslint": "8.
|
|
121
|
+
"semantic-release": "25.0.3",
|
|
122
|
+
"typescript-eslint": "8.54.0",
|
|
123
123
|
"vite": "7.3.1",
|
|
124
124
|
"vite-plugin-commonjs": "0.10.4",
|
|
125
125
|
"vite-plugin-node-polyfills": "0.25.0"
|
|
@@ -65,21 +65,23 @@ declare class LiveQueryClient {
|
|
|
65
65
|
on: any;
|
|
66
66
|
emit: any;
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
* @param
|
|
71
|
-
* @param
|
|
72
|
-
* @param
|
|
73
|
-
* @param
|
|
74
|
-
* @param
|
|
68
|
+
* Creates a new LiveQueryClient instance.
|
|
69
|
+
*
|
|
70
|
+
* @param options - Configuration options for the LiveQuery client
|
|
71
|
+
* @param options.applicationId - The applicationId of your Parse app
|
|
72
|
+
* @param options.serverURL - The URL of your LiveQuery server (must start with 'ws' or 'wss')
|
|
73
|
+
* @param options.javascriptKey - (Optional) The JavaScript key for your Parse app
|
|
74
|
+
* @param options.masterKey - (Optional) Your Parse Master Key (Node.js only!)
|
|
75
|
+
* @param options.sessionToken - (Optional) Session token for authenticated requests
|
|
76
|
+
* @param options.installationId - (Optional) Installation ID for the client
|
|
75
77
|
*/
|
|
76
78
|
constructor({ applicationId, serverURL, javascriptKey, masterKey, sessionToken, installationId, }: {
|
|
77
|
-
applicationId:
|
|
78
|
-
serverURL:
|
|
79
|
-
javascriptKey
|
|
80
|
-
masterKey
|
|
81
|
-
sessionToken
|
|
82
|
-
installationId
|
|
79
|
+
applicationId: string;
|
|
80
|
+
serverURL: string;
|
|
81
|
+
javascriptKey?: string;
|
|
82
|
+
masterKey?: string;
|
|
83
|
+
sessionToken?: string;
|
|
84
|
+
installationId?: string;
|
|
83
85
|
});
|
|
84
86
|
shouldOpen(): any;
|
|
85
87
|
/**
|
|
@@ -89,15 +89,21 @@ declare class LiveQuerySubscription {
|
|
|
89
89
|
subscribePromise: any;
|
|
90
90
|
unsubscribePromise: any;
|
|
91
91
|
subscribed: boolean;
|
|
92
|
+
client: any;
|
|
92
93
|
emitter: EventEmitter;
|
|
93
94
|
on: EventEmitter['on'];
|
|
94
95
|
emit: EventEmitter['emit'];
|
|
95
|
-
constructor(id: string | number, query: ParseQuery, sessionToken?: string);
|
|
96
|
+
constructor(id: string | number, query: ParseQuery, sessionToken?: string, client?: any);
|
|
96
97
|
/**
|
|
97
98
|
* Close the subscription
|
|
98
99
|
*
|
|
99
100
|
* @returns {Promise}
|
|
100
101
|
*/
|
|
101
102
|
unsubscribe(): Promise<void>;
|
|
103
|
+
/**
|
|
104
|
+
* Execute a query on this subscription.
|
|
105
|
+
* The results will be delivered via the 'result' event.
|
|
106
|
+
*/
|
|
107
|
+
find(): void;
|
|
102
108
|
}
|
|
103
109
|
export default LiveQuerySubscription;
|