feat: Upgrade Parse JS SDK from 6.0.0 to 6.1.0 (#9686)
This commit is contained in:
103
package-lock.json
generated
103
package-lock.json
generated
@@ -39,7 +39,7 @@
|
|||||||
"mongodb": "6.15.0",
|
"mongodb": "6.15.0",
|
||||||
"mustache": "4.2.0",
|
"mustache": "4.2.0",
|
||||||
"otpauth": "9.3.6",
|
"otpauth": "9.3.6",
|
||||||
"parse": "6.0.0",
|
"parse": "6.1.0",
|
||||||
"path-to-regexp": "6.3.0",
|
"path-to-regexp": "6.3.0",
|
||||||
"pg-monitor": "2.1.0",
|
"pg-monitor": "2.1.0",
|
||||||
"pg-promise": "11.13.0",
|
"pg-promise": "11.13.0",
|
||||||
@@ -2454,9 +2454,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/runtime-corejs3": {
|
"node_modules/@babel/runtime-corejs3": {
|
||||||
"version": "7.26.9",
|
"version": "7.26.10",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.26.9.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.26.10.tgz",
|
||||||
"integrity": "sha512-5EVjbTegqN7RSJle6hMWYxO4voo4rI+9krITk+DWR+diJgGrjZjrIBnJhjrHYYQsFgI7j1w1QnrvV7YSKBfYGg==",
|
"integrity": "sha512-uITFQYO68pMEYR46AHgQoyBg7KPPJDAbGn4jUTIRgCFJIp88MIBUianVOplhZDEec07bp9zIyr4Kp0FCyQzmWg==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"core-js-pure": "^3.30.2",
|
"core-js-pure": "^3.30.2",
|
||||||
"regenerator-runtime": "^0.14.0"
|
"regenerator-runtime": "^0.14.0"
|
||||||
@@ -4176,6 +4176,49 @@
|
|||||||
"node": "18 || 20 || 22"
|
"node": "18 || 20 || 22"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@parse/push-adapter/node_modules/@babel/runtime-corejs3": {
|
||||||
|
"version": "7.26.9",
|
||||||
|
"resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.26.9.tgz",
|
||||||
|
"integrity": "sha512-5EVjbTegqN7RSJle6hMWYxO4voo4rI+9krITk+DWR+diJgGrjZjrIBnJhjrHYYQsFgI7j1w1QnrvV7YSKBfYGg==",
|
||||||
|
"dependencies": {
|
||||||
|
"core-js-pure": "^3.30.2",
|
||||||
|
"regenerator-runtime": "^0.14.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=6.9.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@parse/push-adapter/node_modules/parse": {
|
||||||
|
"version": "6.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/parse/-/parse-6.0.0.tgz",
|
||||||
|
"integrity": "sha512-uBfgO5refS/KhrKGQWEgTEjz5+m9F+Q9d6N4gbKWElGUWwoOUCBlGVgfErZOouunTwbKmpBy5f1i8KeYk46qkw==",
|
||||||
|
"dependencies": {
|
||||||
|
"@babel/runtime-corejs3": "7.26.9",
|
||||||
|
"idb-keyval": "6.2.1",
|
||||||
|
"react-native-crypto-js": "1.0.0",
|
||||||
|
"uuid": "10.0.0",
|
||||||
|
"ws": "8.18.1",
|
||||||
|
"xmlhttprequest": "1.8.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": "18 || 19 || 20 || 22"
|
||||||
|
},
|
||||||
|
"optionalDependencies": {
|
||||||
|
"crypto-js": "4.2.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@parse/push-adapter/node_modules/uuid": {
|
||||||
|
"version": "10.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz",
|
||||||
|
"integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==",
|
||||||
|
"funding": [
|
||||||
|
"https://github.com/sponsors/broofa",
|
||||||
|
"https://github.com/sponsors/ctavan"
|
||||||
|
],
|
||||||
|
"bin": {
|
||||||
|
"uuid": "dist/bin/uuid"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@pkgjs/parseargs": {
|
"node_modules/@pkgjs/parseargs": {
|
||||||
"version": "0.11.0",
|
"version": "0.11.0",
|
||||||
"resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz",
|
"resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz",
|
||||||
@@ -17793,11 +17836,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/parse": {
|
"node_modules/parse": {
|
||||||
"version": "6.0.0",
|
"version": "6.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/parse/-/parse-6.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/parse/-/parse-6.1.0.tgz",
|
||||||
"integrity": "sha512-uBfgO5refS/KhrKGQWEgTEjz5+m9F+Q9d6N4gbKWElGUWwoOUCBlGVgfErZOouunTwbKmpBy5f1i8KeYk46qkw==",
|
"integrity": "sha512-ZMMWWDJirau7Xrcgy3fKYhV3OqPdKZcdkdNs4WoFt31UrPBSDZs8/E4yQOvF1/t5d3LVJXWDV1oqTZROJ0oW3g==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime-corejs3": "7.26.9",
|
"@babel/runtime-corejs3": "7.26.10",
|
||||||
"idb-keyval": "6.2.1",
|
"idb-keyval": "6.2.1",
|
||||||
"react-native-crypto-js": "1.0.0",
|
"react-native-crypto-js": "1.0.0",
|
||||||
"uuid": "10.0.0",
|
"uuid": "10.0.0",
|
||||||
@@ -23707,9 +23750,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@babel/runtime-corejs3": {
|
"@babel/runtime-corejs3": {
|
||||||
"version": "7.26.9",
|
"version": "7.26.10",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.26.9.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.26.10.tgz",
|
||||||
"integrity": "sha512-5EVjbTegqN7RSJle6hMWYxO4voo4rI+9krITk+DWR+diJgGrjZjrIBnJhjrHYYQsFgI7j1w1QnrvV7YSKBfYGg==",
|
"integrity": "sha512-uITFQYO68pMEYR46AHgQoyBg7KPPJDAbGn4jUTIRgCFJIp88MIBUianVOplhZDEec07bp9zIyr4Kp0FCyQzmWg==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"core-js-pure": "^3.30.2",
|
"core-js-pure": "^3.30.2",
|
||||||
"regenerator-runtime": "^0.14.0"
|
"regenerator-runtime": "^0.14.0"
|
||||||
@@ -24921,6 +24964,36 @@
|
|||||||
"npmlog": "7.0.1",
|
"npmlog": "7.0.1",
|
||||||
"parse": "6.0.0",
|
"parse": "6.0.0",
|
||||||
"web-push": "3.6.7"
|
"web-push": "3.6.7"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@babel/runtime-corejs3": {
|
||||||
|
"version": "7.26.9",
|
||||||
|
"resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.26.9.tgz",
|
||||||
|
"integrity": "sha512-5EVjbTegqN7RSJle6hMWYxO4voo4rI+9krITk+DWR+diJgGrjZjrIBnJhjrHYYQsFgI7j1w1QnrvV7YSKBfYGg==",
|
||||||
|
"requires": {
|
||||||
|
"core-js-pure": "^3.30.2",
|
||||||
|
"regenerator-runtime": "^0.14.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"parse": {
|
||||||
|
"version": "6.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/parse/-/parse-6.0.0.tgz",
|
||||||
|
"integrity": "sha512-uBfgO5refS/KhrKGQWEgTEjz5+m9F+Q9d6N4gbKWElGUWwoOUCBlGVgfErZOouunTwbKmpBy5f1i8KeYk46qkw==",
|
||||||
|
"requires": {
|
||||||
|
"@babel/runtime-corejs3": "7.26.9",
|
||||||
|
"crypto-js": "4.2.0",
|
||||||
|
"idb-keyval": "6.2.1",
|
||||||
|
"react-native-crypto-js": "1.0.0",
|
||||||
|
"uuid": "10.0.0",
|
||||||
|
"ws": "8.18.1",
|
||||||
|
"xmlhttprequest": "1.8.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"uuid": {
|
||||||
|
"version": "10.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz",
|
||||||
|
"integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ=="
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@pkgjs/parseargs": {
|
"@pkgjs/parseargs": {
|
||||||
@@ -34615,11 +34688,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"parse": {
|
"parse": {
|
||||||
"version": "6.0.0",
|
"version": "6.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/parse/-/parse-6.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/parse/-/parse-6.1.0.tgz",
|
||||||
"integrity": "sha512-uBfgO5refS/KhrKGQWEgTEjz5+m9F+Q9d6N4gbKWElGUWwoOUCBlGVgfErZOouunTwbKmpBy5f1i8KeYk46qkw==",
|
"integrity": "sha512-ZMMWWDJirau7Xrcgy3fKYhV3OqPdKZcdkdNs4WoFt31UrPBSDZs8/E4yQOvF1/t5d3LVJXWDV1oqTZROJ0oW3g==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@babel/runtime-corejs3": "7.26.9",
|
"@babel/runtime-corejs3": "7.26.10",
|
||||||
"crypto-js": "4.2.0",
|
"crypto-js": "4.2.0",
|
||||||
"idb-keyval": "6.2.1",
|
"idb-keyval": "6.2.1",
|
||||||
"react-native-crypto-js": "1.0.0",
|
"react-native-crypto-js": "1.0.0",
|
||||||
|
|||||||
@@ -49,7 +49,7 @@
|
|||||||
"mongodb": "6.15.0",
|
"mongodb": "6.15.0",
|
||||||
"mustache": "4.2.0",
|
"mustache": "4.2.0",
|
||||||
"otpauth": "9.3.6",
|
"otpauth": "9.3.6",
|
||||||
"parse": "6.0.0",
|
"parse": "6.1.0",
|
||||||
"path-to-regexp": "6.3.0",
|
"path-to-regexp": "6.3.0",
|
||||||
"pg-monitor": "2.1.0",
|
"pg-monitor": "2.1.0",
|
||||||
"pg-promise": "11.13.0",
|
"pg-promise": "11.13.0",
|
||||||
|
|||||||
@@ -302,7 +302,7 @@ describe('Parse.Object testing', () => {
|
|||||||
|
|
||||||
it('invalid key name', function (done) {
|
it('invalid key name', function (done) {
|
||||||
const item = new Parse.Object('Item');
|
const item = new Parse.Object('Item');
|
||||||
expect(() => item.set({ 'foo^bar': 'baz' })).toThrow(new Parse.Error(Parse.Error.INVALID_KEY_NAME, 'Invalid key name: "foo^bar"'));
|
expect(() => item.set({ 'foo^bar': 'baz' })).toThrow(new Parse.Error(Parse.Error.INVALID_KEY_NAME, 'Invalid key name: foo^bar'));
|
||||||
item.save({ 'foo^bar': 'baz' }).then(fail, () => done());
|
item.save({ 'foo^bar': 'baz' }).then(fail, () => done());
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ const PostgresStorageAdapter = require('../lib/Adapters/Storage/Postgres/Postgre
|
|||||||
.default;
|
.default;
|
||||||
const MongoStorageAdapter = require('../lib/Adapters/Storage/Mongo/MongoStorageAdapter').default;
|
const MongoStorageAdapter = require('../lib/Adapters/Storage/Mongo/MongoStorageAdapter').default;
|
||||||
const RedisCacheAdapter = require('../lib/Adapters/Cache/RedisCacheAdapter').default;
|
const RedisCacheAdapter = require('../lib/Adapters/Cache/RedisCacheAdapter').default;
|
||||||
const RESTController = require('parse/lib/node/RESTController');
|
const RESTController = require('parse/lib/node/RESTController').default;
|
||||||
const { VolatileClassesSchemas } = require('../lib/Controllers/SchemaController');
|
const { VolatileClassesSchemas } = require('../lib/Controllers/SchemaController');
|
||||||
|
|
||||||
const mongoURI = 'mongodb://localhost:27017/parseServerMongoAdapterTestDatabase';
|
const mongoURI = 'mongodb://localhost:27017/parseServerMongoAdapterTestDatabase';
|
||||||
|
|||||||
@@ -2893,7 +2893,7 @@ describe('schemas', () => {
|
|||||||
object.save({
|
object.save({
|
||||||
'!12field': 'field',
|
'!12field': 'field',
|
||||||
})
|
})
|
||||||
).toBeRejectedWith(new Parse.Error(Parse.Error.INVALID_KEY_NAME, 'Invalid key name: "!12field"'));
|
).toBeRejectedWith(new Parse.Error(Parse.Error.INVALID_KEY_NAME, 'Invalid key name: !12field'));
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
const Config = require('./Config');
|
const Config = require('./Config');
|
||||||
const Auth = require('./Auth');
|
const Auth = require('./Auth');
|
||||||
const RESTController = require('parse/lib/node/RESTController');
|
import RESTController from 'parse/lib/node/RESTController';
|
||||||
const Parse = require('parse/node');
|
const Parse = require('parse/node');
|
||||||
|
|
||||||
function getSessionToken(options) {
|
function getSessionToken(options) {
|
||||||
|
|||||||
Reference in New Issue
Block a user