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.
@@ -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.1",
21
+ VERSION: 'js' + "8.1.1-alpha.2",
22
22
  APPLICATION_ID: null,
23
23
  JAVASCRIPT_KEY: null,
24
24
  MAINTENANCE_KEY: null,
@@ -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.1",
17
+ VERSION: 'js' + "8.1.1-alpha.2",
18
18
  APPLICATION_ID: null,
19
19
  JAVASCRIPT_KEY: null,
20
20
  MAINTENANCE_KEY: null,
@@ -10,7 +10,7 @@ var config = {
10
10
  SERVER_URL: 'https://api.parse.com/1',
11
11
  LIVEQUERY_SERVER_URL: null,
12
12
  ENCRYPTED_KEY: null,
13
- VERSION: 'js' + "8.1.1-alpha.1",
13
+ VERSION: 'js' + "8.1.1-alpha.2",
14
14
  APPLICATION_ID: null,
15
15
  JAVASCRIPT_KEY: null,
16
16
  MAINTENANCE_KEY: null,
@@ -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.1",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "parse",
3
- "version": "8.1.1-alpha.1",
3
+ "version": "8.1.1-alpha.2",
4
4
  "description": "Parse JavaScript SDK",
5
5
  "homepage": "https://parseplatform.org",
6
6
  "keywords": [
@@ -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): ParseObject;
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
-