Skip to content

Commit

Permalink
⚡️ Release v2.4.0 (#805)
Browse files Browse the repository at this point in the history
Bump eslint-plugin-flowtype to 3.6.1

Suppress console in test logs for readability
  • Loading branch information
dplewis authored Apr 24, 2019
1 parent 5405703 commit 3941798
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 9 deletions.
21 changes: 20 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,26 @@
# Parse-SDK-JS

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

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

**New Features**:
- LocalDatastore: Support Users ([#801](https://github.com/parse-community/Parse-SDK-JS/pull/801))
- LiveQuery subscribe with sessionToken ([#791](https://github.com/parse-community/Parse-SDK-JS/pull/791))

**Improvements**:
- LocalDatastore: Improve pinning unsaved objects ([#795](https://github.com/parse-community/Parse-SDK-JS/pull/795))
- LocalDatastore: Improve error handling ([#803](https://github.com/parse-community/Parse-SDK-JS/pull/803))

**Dependency Updates**:
- [uuid@3.3.2](https://www.npmjs.com/package/uuid)

**Development Dependency Updates**:
- [eslint-plugin-flowtype@3.6.1](https://www.npmjs.com/package/eslint-plugin-flowtype)
- [gulp@4.0.1](https://www.npmjs.com/package/gulp)
- [jasmine@3.4.0](https://www.npmjs.com/package/jasmine)

## 2.3.2
[Full Changelog](https://github.com/parse-community/Parse-SDK-JS/compare/2.3.1...2.3.2)
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "parse",
"version": "2.3.2",
"version": "2.4.0",
"description": "The Parse JavaScript SDK",
"homepage": "https://parseplatform.org/",
"keywords": [
Expand Down Expand Up @@ -52,7 +52,7 @@
"browserify": "16.2.3",
"codecov": "3.3.0",
"eslint": "5.16.0",
"eslint-plugin-flowtype": "3.6.0",
"eslint-plugin-flowtype": "3.6.1",
"express": "4.16.4",
"gulp": "4.0.1",
"gulp-babel": "8.0.0",
Expand Down
8 changes: 6 additions & 2 deletions src/__tests__/LocalDatastore-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ describe('LocalDatastore', () => {
});

it('isDisabled', () => {
const spy = jest.spyOn(console, 'error');
const spy = jest.spyOn(console, 'error').mockImplementationOnce(() => {});
LocalDatastore.isEnabled = false;
const isEnabled = LocalDatastore.checkIfEnabled();
expect(isEnabled).toBe(false);
Expand Down Expand Up @@ -585,6 +585,7 @@ describe('LocalDatastore', () => {

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

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

jest.spyOn(console, 'error');
jest.spyOn(console, 'error').mockImplementationOnce(() => {});
await LocalDatastore.updateFromServer();

expect(mockLocalStorageController.getAllContents).toHaveBeenCalledTimes(1);
Expand Down Expand Up @@ -949,6 +950,7 @@ describe('LocalDatastore (RNDatastoreController)', () => {
throw new Error('error thrown');
},
};
jest.spyOn(console, 'error').mockImplementationOnce(() => {});
CoreManager.setAsyncStorage(mockStorageError);
try {
await LocalDatastore.pinWithName('myKey', [{ name: 'test' }]);
Expand Down Expand Up @@ -980,6 +982,7 @@ describe('LocalDatastore (RNDatastoreController)', () => {
cb(undefined, [KEY1, 'DO_NOT_CLEAR']);
}
};
jest.spyOn(console, 'error').mockImplementationOnce(() => {});
CoreManager.setAsyncStorage(mockStorageError);
await LocalDatastore._clear();
});
Expand All @@ -993,6 +996,7 @@ describe('LocalDatastore (RNDatastoreController)', () => {
cb(undefined, [KEY1, 'DO_NOT_CLEAR']);
}
};
jest.spyOn(console, 'error').mockImplementationOnce(() => {});
CoreManager.setAsyncStorage(mockStorageError);
const LDS = await LocalDatastore._getAllContents();
expect(LDS).toEqual({});
Expand Down
1 change: 1 addition & 0 deletions src/__tests__/Parse-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ describe('Parse module', () => {
});

it('can enable LocalDatastore', () => {
jest.spyOn(console, 'log').mockImplementationOnce(() => {});
Parse.LocalDatastore.isEnabled = false;
Parse.enableLocalDatastore();
expect(Parse.LocalDatastore.isEnabled).toBe(true);
Expand Down

0 comments on commit 3941798

Please sign in to comment.