parse 8.6.0 → 8.6.1-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 +1100 -29
- package/dist/parse.min.js +44 -19
- package/dist/parse.weapp.js +1100 -29
- package/dist/parse.weapp.min.js +44 -19
- package/lib/browser/CoreManager.js +1 -1
- package/lib/node/CoreManager.js +1 -1
- package/lib/react-native/CoreManager.js +1 -1
- package/lib/weapp/CoreManager.js +1 -1
- package/package.json +11 -11
package/dist/parse.weapp.min.js
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
(function(t) {
|
|
2
2
|
"function" == typeof define && define.amd ? define([], t) : t();
|
|
3
3
|
})((function() {
|
|
4
|
-
var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __esmMin = (t, e
|
|
4
|
+
var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __esmMin = (t, e, r) => () => {
|
|
5
|
+
if (r) throw r[0];
|
|
6
|
+
try {
|
|
7
|
+
return t && (e = t(t = 0)), e;
|
|
8
|
+
} catch (t) {
|
|
9
|
+
throw r = [t], t;
|
|
10
|
+
}
|
|
11
|
+
}, __commonJSMin = (t, e) => () => (e || (t((e = { exports: {} }).exports, e), t = null), e.exports), __exportAll = (t, e) => {
|
|
5
12
|
let r = {};
|
|
6
13
|
for (var i in t) __defProp(r, i, {
|
|
7
14
|
get: t[i],
|
|
@@ -110,7 +117,7 @@
|
|
|
110
117
|
SERVER_URL: "https://api.parse.com/1",
|
|
111
118
|
LIVEQUERY_SERVER_URL: null,
|
|
112
119
|
ENCRYPTED_KEY: null,
|
|
113
|
-
VERSION: "js8.6.
|
|
120
|
+
VERSION: "js8.6.1-alpha.1",
|
|
114
121
|
APPLICATION_ID: null,
|
|
115
122
|
JAVASCRIPT_KEY: null,
|
|
116
123
|
MAINTENANCE_KEY: null,
|
|
@@ -3506,7 +3513,9 @@
|
|
|
3506
3513
|
var h, u = require_destroy$1(), f = require_state().getHighWaterMark, l = require_errors_browser().codes, c = l.ERR_INVALID_ARG_TYPE, d = l.ERR_METHOD_NOT_IMPLEMENTED, p = l.ERR_MULTIPLE_CALLBACK, m = l.ERR_STREAM_CANNOT_PIPE, g = l.ERR_STREAM_DESTROYED, y = l.ERR_STREAM_NULL_VALUES, b = l.ERR_STREAM_WRITE_AFTER_END, v = l.ERR_UNKNOWN_ENCODING, _ = u.errorOrDestroy;
|
|
3507
3514
|
function w() {}
|
|
3508
3515
|
function M(t, e, n) {
|
|
3509
|
-
i = i || require__stream_duplex$1(), t = t || {}, "boolean" != typeof n && (n = e instanceof i), this.objectMode = !!t.objectMode, n && (this.objectMode = this.objectMode || !!t.writableObjectMode), this.highWaterMark = f(this, t, "writableHighWaterMark", n), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1
|
|
3516
|
+
i = i || require__stream_duplex$1(), t = t || {}, "boolean" != typeof n && (n = e instanceof i), this.objectMode = !!t.objectMode, n && (this.objectMode = this.objectMode || !!t.writableObjectMode), this.highWaterMark = f(this, t, "writableHighWaterMark", n), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
|
|
3517
|
+
var o = !1 === t.decodeStrings;
|
|
3518
|
+
this.decodeStrings = !o, this.defaultEncoding = t.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(t) {
|
|
3510
3519
|
(function(t, e) {
|
|
3511
3520
|
var r = t._writableState, i = r.sync, n = r.writecb;
|
|
3512
3521
|
if ("function" != typeof n) throw new p();
|
|
@@ -4699,7 +4708,9 @@
|
|
|
4699
4708
|
if (t = t || {}, this._data) return this._data;
|
|
4700
4709
|
if ("buffer" === this._source?.format) return this._data = this._source.buffer.toString("base64"), this._data;
|
|
4701
4710
|
if (!this._url) throw new Error("Cannot retrieve data for unsaved ParseFile.");
|
|
4702
|
-
|
|
4711
|
+
t.requestTask = (t) => this._requestTask = t;
|
|
4712
|
+
const e = await CoreManager.getFileController().download(this._url, t);
|
|
4713
|
+
return this._data = e.base64, this._data;
|
|
4703
4714
|
}
|
|
4704
4715
|
name() {
|
|
4705
4716
|
return this._name;
|
|
@@ -8066,7 +8077,8 @@
|
|
|
8066
8077
|
return new e(t);
|
|
8067
8078
|
}, e;
|
|
8068
8079
|
}, i._cbcInit = function() {
|
|
8069
|
-
|
|
8080
|
+
var t = new n(this.options.iv);
|
|
8081
|
+
this._cbcState = t;
|
|
8070
8082
|
}, i._update = function(t, e, r, i) {
|
|
8071
8083
|
var n = this._cbcState, o = this.constructor.super_.prototype, s = n.iv;
|
|
8072
8084
|
if ("encrypt" === this.type) {
|
|
@@ -8113,7 +8125,9 @@
|
|
|
8113
8125
|
];
|
|
8114
8126
|
}
|
|
8115
8127
|
function a(t) {
|
|
8116
|
-
n.call(this, t)
|
|
8128
|
+
n.call(this, t);
|
|
8129
|
+
var e = new s(this.type, this.options.key);
|
|
8130
|
+
this._edeState = e;
|
|
8117
8131
|
}
|
|
8118
8132
|
i(a, n), e.exports = a, a.create = function(t) {
|
|
8119
8133
|
return new a(t);
|
|
@@ -11239,7 +11253,9 @@
|
|
|
11239
11253
|
var s = e instanceof n;
|
|
11240
11254
|
this.objectMode = !!t.objectMode, s && (this.objectMode = this.objectMode || !!t.writableObjectMode);
|
|
11241
11255
|
var a = t.highWaterMark, h = t.writableHighWaterMark, u = this.objectMode ? 16 : 16384;
|
|
11242
|
-
this.highWaterMark = a || 0 === a ? a : s && (h || 0 === h) ? h : u, this.highWaterMark = Math.floor(this.highWaterMark), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1
|
|
11256
|
+
this.highWaterMark = a || 0 === a ? a : s && (h || 0 === h) ? h : u, this.highWaterMark = Math.floor(this.highWaterMark), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
|
|
11257
|
+
var f = !1 === t.decodeStrings;
|
|
11258
|
+
this.decodeStrings = !f, this.defaultEncoding = t.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(t) {
|
|
11243
11259
|
(function(t, e) {
|
|
11244
11260
|
var i = t._writableState, n = i.sync, s = i.writecb;
|
|
11245
11261
|
if (function(t) {
|
|
@@ -20540,7 +20556,7 @@
|
|
|
20540
20556
|
var r = function() {
|
|
20541
20557
|
if (e) {
|
|
20542
20558
|
if ("function" == typeof e.getRandomValues) try {
|
|
20543
|
-
return e.getRandomValues(new Uint32Array(1))[0];
|
|
20559
|
+
return e.getRandomValues(/* @__PURE__ */ new Uint32Array(1))[0];
|
|
20544
20560
|
} catch (t) {}
|
|
20545
20561
|
if ("function" == typeof e.randomBytes) try {
|
|
20546
20562
|
return e.randomBytes(4).readInt32LE();
|
|
@@ -22795,7 +22811,11 @@
|
|
|
22795
22811
|
if ("function" != typeof t) throw new TypeError("A ParseQuery must be constructed with a ParseObject or class name.");
|
|
22796
22812
|
{
|
|
22797
22813
|
const e = t;
|
|
22798
|
-
"string" == typeof e.className
|
|
22814
|
+
if ("string" == typeof e.className) this.className = e.className;
|
|
22815
|
+
else {
|
|
22816
|
+
const t = new e();
|
|
22817
|
+
this.className = t.className;
|
|
22818
|
+
}
|
|
22799
22819
|
}
|
|
22800
22820
|
}
|
|
22801
22821
|
this._where = {}, this._watch = [], this._include = [], this._exclude = [], this._count = !1, this._limit = -1, this._skip = 0, this._readPreference = null, this._includeReadPreference = null, this._subqueryReadPreference = null, this._queriesLocalDatastore = !1, this._localDatastorePinName = null, this._extraOptions = {}, this._xhrRequest = {
|
|
@@ -23187,16 +23207,16 @@
|
|
|
23187
23207
|
return i.subscribePromise.then((() => i));
|
|
23188
23208
|
}
|
|
23189
23209
|
static or(...e) {
|
|
23190
|
-
const r = new t(
|
|
23191
|
-
return
|
|
23210
|
+
const r = _getClassNameFromQueries(e), i = new t(r);
|
|
23211
|
+
return i._orQuery(e), i;
|
|
23192
23212
|
}
|
|
23193
23213
|
static and(...e) {
|
|
23194
|
-
const r = new t(
|
|
23195
|
-
return
|
|
23214
|
+
const r = _getClassNameFromQueries(e), i = new t(r);
|
|
23215
|
+
return i._andQuery(e), i;
|
|
23196
23216
|
}
|
|
23197
23217
|
static nor(...e) {
|
|
23198
|
-
const r = new t(
|
|
23199
|
-
return
|
|
23218
|
+
const r = _getClassNameFromQueries(e), i = new t(r);
|
|
23219
|
+
return i._norQuery(e), i;
|
|
23200
23220
|
}
|
|
23201
23221
|
fromNetwork() {
|
|
23202
23222
|
return this._queriesLocalDatastore = !1, this._localDatastorePinName = null, this;
|
|
@@ -24623,7 +24643,7 @@
|
|
|
24623
24643
|
t._localId && (o._localId = t._localId), e[r] = o;
|
|
24624
24644
|
for (const t in e) n.push(t), i.push(this.pinWithName(t, [e[t]]));
|
|
24625
24645
|
}
|
|
24626
|
-
const o = this.fromPinWithName(r), [s] = await Promise.all([o, i]), a = [
|
|
24646
|
+
const o = this.fromPinWithName(r), [s] = await Promise.all([o, i]), a = [.../* @__PURE__ */ new Set([...s || [], ...n])];
|
|
24627
24647
|
return this.pinWithName(r, a);
|
|
24628
24648
|
},
|
|
24629
24649
|
async _handleUnPinAllWithName(t, e) {
|
|
@@ -24958,7 +24978,9 @@
|
|
|
24958
24978
|
} });
|
|
24959
24979
|
var LiveQuerySubscription = class {
|
|
24960
24980
|
constructor(t, e, r, i) {
|
|
24961
|
-
this.id = t, this.query = e, this.sessionToken = r, this.client = i, this.subscribePromise = resolvingPromise(), this.unsubscribePromise = resolvingPromise(), this.subscribed = !1
|
|
24981
|
+
this.id = t, this.query = e, this.sessionToken = r, this.client = i, this.subscribePromise = resolvingPromise(), this.unsubscribePromise = resolvingPromise(), this.subscribed = !1;
|
|
24982
|
+
const n = CoreManager.getEventEmitter();
|
|
24983
|
+
this.emitter = new n(), this.on = (t, e) => this.emitter.on(t, e), this.emit = (t, ...e) => this.emitter.emit(t, ...e), this.on("error", (() => {}));
|
|
24962
24984
|
}
|
|
24963
24985
|
unsubscribe() {
|
|
24964
24986
|
return CoreManager.getLiveQueryController().getDefaultLiveQueryClient().then(((t) => (this.emit("close"), t.unsubscribe(this))));
|
|
@@ -25012,7 +25034,9 @@
|
|
|
25012
25034
|
}, generateInterval = (t) => Math.random() * Math.min(30, Math.pow(2, t) - 1) * 1e3, LiveQueryClient = class {
|
|
25013
25035
|
constructor({ applicationId: t, serverURL: e, javascriptKey: r, masterKey: i, sessionToken: n, installationId: o }) {
|
|
25014
25036
|
if (!e || 0 !== e.indexOf("ws")) throw new Error("You need to set a proper Parse LiveQuery server url before using LiveQueryClient");
|
|
25015
|
-
this.reconnectHandle = null, this.attempts = 1, this.id = 0, this.requestId = 1, this.serverURL = e, this.applicationId = t, this.javascriptKey = r || void 0, this.masterKey = i || void 0, this.sessionToken = n || void 0, this.installationId = o || void 0, this.additionalProperties = !0, this.connectPromise = resolvingPromise(), this.subscriptions = /* @__PURE__ */ new Map(), this.state = CLIENT_STATE.INITIALIZED
|
|
25037
|
+
this.reconnectHandle = null, this.attempts = 1, this.id = 0, this.requestId = 1, this.serverURL = e, this.applicationId = t, this.javascriptKey = r || void 0, this.masterKey = i || void 0, this.sessionToken = n || void 0, this.installationId = o || void 0, this.additionalProperties = !0, this.connectPromise = resolvingPromise(), this.subscriptions = /* @__PURE__ */ new Map(), this.state = CLIENT_STATE.INITIALIZED;
|
|
25038
|
+
const s = CoreManager.getEventEmitter();
|
|
25039
|
+
this.emitter = new s(), this.on = (t, e) => this.emitter.on(t, e), this.emit = (t, ...e) => this.emitter.emit(t, ...e), this.on("error", (() => {}));
|
|
25016
25040
|
}
|
|
25017
25041
|
shouldOpen() {
|
|
25018
25042
|
return this.state === CLIENT_STATE.INITIALIZED || this.state === CLIENT_STATE.DISCONNECTED;
|
|
@@ -25169,7 +25193,8 @@
|
|
|
25169
25193
|
}
|
|
25170
25194
|
var LiveQuery = class {
|
|
25171
25195
|
constructor() {
|
|
25172
|
-
|
|
25196
|
+
const t = CoreManager.getEventEmitter();
|
|
25197
|
+
this.emitter = new t(), this.on = (t, e) => this.emitter.on(t, e), this.emit = (t, ...e) => this.emitter.emit(t, ...e), this.on("error", (() => {}));
|
|
25173
25198
|
}
|
|
25174
25199
|
async open() {
|
|
25175
25200
|
(await getLiveQueryClient()).open();
|
package/lib/node/CoreManager.js
CHANGED
package/lib/weapp/CoreManager.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "parse",
|
|
3
|
-
"version": "8.6.
|
|
3
|
+
"version": "8.6.1-alpha.1",
|
|
4
4
|
"description": "Parse JavaScript SDK",
|
|
5
5
|
"homepage": "https://parseplatform.org",
|
|
6
6
|
"keywords": [
|
|
@@ -71,10 +71,10 @@
|
|
|
71
71
|
"crypto-js": "4.2.0",
|
|
72
72
|
"idb-keyval": "6.2.2",
|
|
73
73
|
"react-native-crypto-js": "1.0.0",
|
|
74
|
-
"ws": "8.
|
|
74
|
+
"ws": "8.21.0"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"@babel/core": "7.29.
|
|
77
|
+
"@babel/core": "7.29.6",
|
|
78
78
|
"@babel/plugin-proposal-class-properties": "7.18.6",
|
|
79
79
|
"@babel/plugin-transform-runtime": "7.29.0",
|
|
80
80
|
"@babel/preset-env": "7.29.2",
|
|
@@ -97,14 +97,14 @@
|
|
|
97
97
|
"codecov": "3.8.3",
|
|
98
98
|
"core-js": "3.49.0",
|
|
99
99
|
"cross-env": "10.1.0",
|
|
100
|
-
"eslint": "10.2.
|
|
100
|
+
"eslint": "10.2.1",
|
|
101
101
|
"eslint-plugin-expect-type": "0.6.2",
|
|
102
102
|
"eslint-plugin-jsdoc": "62.9.0",
|
|
103
103
|
"express": "5.2.1",
|
|
104
104
|
"gulp": "5.0.1",
|
|
105
105
|
"gulp-babel": "8.0.0",
|
|
106
106
|
"gulp-watch": "5.0.1",
|
|
107
|
-
"jasmine": "6.
|
|
107
|
+
"jasmine": "6.2.0",
|
|
108
108
|
"jasmine-reporters": "2.5.2",
|
|
109
109
|
"jasmine-spec-reporter": "7.0.0",
|
|
110
110
|
"jest": "30.3.0",
|
|
@@ -114,13 +114,13 @@
|
|
|
114
114
|
"lint-staged": "16.4.0",
|
|
115
115
|
"madge": "8.0.0",
|
|
116
116
|
"metro-react-native-babel-preset": "0.77.0",
|
|
117
|
-
"mongodb-runner": "6.7.
|
|
118
|
-
"parse-server": "9.
|
|
119
|
-
"puppeteer": "24.
|
|
117
|
+
"mongodb-runner": "6.7.7",
|
|
118
|
+
"parse-server": "9.9.0",
|
|
119
|
+
"puppeteer": "24.42.0",
|
|
120
120
|
"regenerator-runtime": "0.14.1",
|
|
121
121
|
"semantic-release": "25.0.3",
|
|
122
|
-
"typescript-eslint": "8.58.
|
|
123
|
-
"vite": "8.
|
|
122
|
+
"typescript-eslint": "8.58.2",
|
|
123
|
+
"vite": "8.1.4",
|
|
124
124
|
"vite-plugin-commonjs": "0.10.4",
|
|
125
125
|
"vite-plugin-node-polyfills": "0.26.0"
|
|
126
126
|
},
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"release": "node build_releases.js && npm publish",
|
|
134
134
|
"test": "cross-env PARSE_BUILD=node jest",
|
|
135
135
|
"test:mongodb": "npm run test:mongodb:runnerstart && npm run integration",
|
|
136
|
-
"test:mongodb:runnerstart": "mongodb-runner start -- --port 27017",
|
|
136
|
+
"test:mongodb:runnerstart": "mongodb-runner start --version=8.0.x -- --port 27017",
|
|
137
137
|
"posttest:mongodb": "mongodb-runner stop --all",
|
|
138
138
|
"lint": "eslint --cache src/ integration/",
|
|
139
139
|
"lint:fix": "eslint --fix --cache src/ integration/",
|