parse 8.1.1-alpha.1 → 8.1.1-alpha.2
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 +1 -1
- package/dist/parse.min.js +1 -1
- package/dist/parse.weapp.js +1 -1
- package/dist/parse.weapp.min.js +1 -1
- 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 +1 -1
- package/types/ParseObject.d.ts +1 -1
- package/types/tests.ts +8 -1
|
@@ -18,7 +18,7 @@ const config = {
|
|
|
18
18
|
SERVER_URL: 'https://api.parse.com/1',
|
|
19
19
|
LIVEQUERY_SERVER_URL: null,
|
|
20
20
|
ENCRYPTED_KEY: null,
|
|
21
|
-
VERSION: 'js' + "8.1.1-alpha.
|
|
21
|
+
VERSION: 'js' + "8.1.1-alpha.2",
|
|
22
22
|
APPLICATION_ID: null,
|
|
23
23
|
JAVASCRIPT_KEY: null,
|
|
24
24
|
MAINTENANCE_KEY: null,
|
package/lib/node/CoreManager.js
CHANGED
|
@@ -14,7 +14,7 @@ const config = {
|
|
|
14
14
|
SERVER_URL: 'https://api.parse.com/1',
|
|
15
15
|
LIVEQUERY_SERVER_URL: null,
|
|
16
16
|
ENCRYPTED_KEY: null,
|
|
17
|
-
VERSION: 'js' + "8.1.1-alpha.
|
|
17
|
+
VERSION: 'js' + "8.1.1-alpha.2",
|
|
18
18
|
APPLICATION_ID: null,
|
|
19
19
|
JAVASCRIPT_KEY: null,
|
|
20
20
|
MAINTENANCE_KEY: null,
|
package/lib/weapp/CoreManager.js
CHANGED
|
@@ -18,7 +18,7 @@ const config = {
|
|
|
18
18
|
SERVER_URL: 'https://api.parse.com/1',
|
|
19
19
|
LIVEQUERY_SERVER_URL: null,
|
|
20
20
|
ENCRYPTED_KEY: null,
|
|
21
|
-
VERSION: 'js' + "8.1.1-alpha.
|
|
21
|
+
VERSION: 'js' + "8.1.1-alpha.2",
|
|
22
22
|
APPLICATION_ID: null,
|
|
23
23
|
JAVASCRIPT_KEY: null,
|
|
24
24
|
MAINTENANCE_KEY: null,
|
package/package.json
CHANGED
package/types/ParseObject.d.ts
CHANGED
|
@@ -894,7 +894,7 @@ declare class ParseObject<T extends Attributes = Attributes> {
|
|
|
894
894
|
* @static
|
|
895
895
|
* @returns {Parse.Object} A Parse.Object reference.
|
|
896
896
|
*/
|
|
897
|
-
static createWithoutData(id: string):
|
|
897
|
+
static createWithoutData<T extends ParseObject>(this: new (...args: any[]) => T, id: string): T;
|
|
898
898
|
/**
|
|
899
899
|
* Creates a new instance of a Parse Object from a JSON representation.
|
|
900
900
|
*
|
package/types/tests.ts
CHANGED
|
@@ -42,6 +42,14 @@ async function test_object() {
|
|
|
42
42
|
// Create a new instance of that class.
|
|
43
43
|
const gameScore = new GameScore();
|
|
44
44
|
|
|
45
|
+
// Expect that `createWithoutData` returns the types for the same classes (not generic ParseObjects)
|
|
46
|
+
// $ExpectType Game
|
|
47
|
+
Game.createWithoutData('someid');
|
|
48
|
+
// $ExpectType GameScore
|
|
49
|
+
GameScore.createWithoutData('scoreid');
|
|
50
|
+
// $ExpectType ParseUser<Attributes>
|
|
51
|
+
Parse.User.createWithoutData('someuser');
|
|
52
|
+
|
|
45
53
|
gameScore.set('score', 1337);
|
|
46
54
|
gameScore.set('playerName', 'Sean Plott');
|
|
47
55
|
gameScore.set('cheatMode', false);
|
|
@@ -2375,4 +2383,3 @@ function testInitialize() {
|
|
|
2375
2383
|
// Node - 1 param (should also work since javaScriptKey is optional in node)
|
|
2376
2384
|
ParseNode.initialize('appId');
|
|
2377
2385
|
}
|
|
2378
|
-
|