Skip to content

Commit 3941798

Browse files
authored
⚡️ Release v2.4.0 (#805)
Bump eslint-plugin-flowtype to 3.6.1 Suppress console in test logs for readability
1 parent 5405703 commit 3941798

File tree

5 files changed

+33
-9
lines changed

5 files changed

+33
-9
lines changed

CHANGELOG.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,26 @@
11
# Parse-SDK-JS
22

33
### master
4-
[Full Changelog](https://github.com/parse-community/Parse-SDK-JS/compare/2.3.2...master)
4+
[Full Changelog](https://github.com/parse-community/Parse-SDK-JS/compare/2.4.0...master)
5+
6+
## 2.4.0
7+
[Full Changelog](https://github.com/parse-community/Parse-SDK-JS/compare/2.3.2...2.4.0)
8+
9+
**New Features**:
10+
- LocalDatastore: Support Users ([#801](https://github.com/parse-community/Parse-SDK-JS/pull/801))
11+
- LiveQuery subscribe with sessionToken ([#791](https://github.com/parse-community/Parse-SDK-JS/pull/791))
12+
13+
**Improvements**:
14+
- LocalDatastore: Improve pinning unsaved objects ([#795](https://github.com/parse-community/Parse-SDK-JS/pull/795))
15+
- LocalDatastore: Improve error handling ([#803](https://github.com/parse-community/Parse-SDK-JS/pull/803))
16+
17+
**Dependency Updates**:
18+
- [[email protected]](https://www.npmjs.com/package/uuid)
19+
20+
**Development Dependency Updates**:
21+
- [[email protected]](https://www.npmjs.com/package/eslint-plugin-flowtype)
22+
- [[email protected]](https://www.npmjs.com/package/gulp)
23+
- [[email protected]](https://www.npmjs.com/package/jasmine)
524

625
## 2.3.2
726
[Full Changelog](https://github.com/parse-community/Parse-SDK-JS/compare/2.3.1...2.3.2)

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "parse",
3-
"version": "2.3.2",
3+
"version": "2.4.0",
44
"description": "The Parse JavaScript SDK",
55
"homepage": "https://parseplatform.org/",
66
"keywords": [
@@ -52,7 +52,7 @@
5252
"browserify": "16.2.3",
5353
"codecov": "3.3.0",
5454
"eslint": "5.16.0",
55-
"eslint-plugin-flowtype": "3.6.0",
55+
"eslint-plugin-flowtype": "3.6.1",
5656
"express": "4.16.4",
5757
"gulp": "4.0.1",
5858
"gulp-babel": "8.0.0",

src/__tests__/LocalDatastore-test.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ describe('LocalDatastore', () => {
132132
});
133133

134134
it('isDisabled', () => {
135-
const spy = jest.spyOn(console, 'error');
135+
const spy = jest.spyOn(console, 'error').mockImplementationOnce(() => {});
136136
LocalDatastore.isEnabled = false;
137137
const isEnabled = LocalDatastore.checkIfEnabled();
138138
expect(isEnabled).toBe(false);
@@ -585,6 +585,7 @@ describe('LocalDatastore', () => {
585585

586586
it('do not sync if disabled', async () => {
587587
LocalDatastore.isEnabled = false;
588+
jest.spyOn(console, 'error').mockImplementationOnce(() => {});
588589
jest.spyOn(mockLocalStorageController, 'getAllContents');
589590

590591
await LocalDatastore.updateFromServer();
@@ -730,7 +731,7 @@ describe('LocalDatastore', () => {
730731
return Promise.reject('Unable to connect to the Parse API');
731732
});
732733

733-
jest.spyOn(console, 'error');
734+
jest.spyOn(console, 'error').mockImplementationOnce(() => {});
734735
await LocalDatastore.updateFromServer();
735736

736737
expect(mockLocalStorageController.getAllContents).toHaveBeenCalledTimes(1);
@@ -949,6 +950,7 @@ describe('LocalDatastore (RNDatastoreController)', () => {
949950
throw new Error('error thrown');
950951
},
951952
};
953+
jest.spyOn(console, 'error').mockImplementationOnce(() => {});
952954
CoreManager.setAsyncStorage(mockStorageError);
953955
try {
954956
await LocalDatastore.pinWithName('myKey', [{ name: 'test' }]);
@@ -980,6 +982,7 @@ describe('LocalDatastore (RNDatastoreController)', () => {
980982
cb(undefined, [KEY1, 'DO_NOT_CLEAR']);
981983
}
982984
};
985+
jest.spyOn(console, 'error').mockImplementationOnce(() => {});
983986
CoreManager.setAsyncStorage(mockStorageError);
984987
await LocalDatastore._clear();
985988
});
@@ -993,6 +996,7 @@ describe('LocalDatastore (RNDatastoreController)', () => {
993996
cb(undefined, [KEY1, 'DO_NOT_CLEAR']);
994997
}
995998
};
999+
jest.spyOn(console, 'error').mockImplementationOnce(() => {});
9961000
CoreManager.setAsyncStorage(mockStorageError);
9971001
const LDS = await LocalDatastore._getAllContents();
9981002
expect(LDS).toEqual({});

src/__tests__/Parse-test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ describe('Parse module', () => {
8484
});
8585

8686
it('can enable LocalDatastore', () => {
87+
jest.spyOn(console, 'log').mockImplementationOnce(() => {});
8788
Parse.LocalDatastore.isEnabled = false;
8889
Parse.enableLocalDatastore();
8990
expect(Parse.LocalDatastore.isEnabled).toBe(true);

0 commit comments

Comments
 (0)