From 394179826d943bdd5d6548689be0968cbac93917 Mon Sep 17 00:00:00 2001 From: Diamond Lewis Date: Wed, 24 Apr 2019 16:17:06 -0500 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20Release=20v2.4.0=20(#805)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bump eslint-plugin-flowtype to 3.6.1 Suppress console in test logs for readability --- CHANGELOG.md | 21 ++++++++++++++++++++- package-lock.json | 8 ++++---- package.json | 4 ++-- src/__tests__/LocalDatastore-test.js | 8 ++++++-- src/__tests__/Parse-test.js | 1 + 5 files changed, 33 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f345b2e4..dff97271d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/package-lock.json b/package-lock.json index c14b397bb..9181bf5ac 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "parse", - "version": "2.3.2", + "version": "2.4.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -3981,9 +3981,9 @@ } }, "eslint-plugin-flowtype": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-flowtype/-/eslint-plugin-flowtype-3.6.0.tgz", - "integrity": "sha512-7wRfgzXteB9jswXreGG64FlOdscV4z4hIW2lS+mC5t1K2QQkUDh7A+95dB4nU7io8zIOq4cRpftF+41xvMCtiA==", + "version": "3.6.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-flowtype/-/eslint-plugin-flowtype-3.6.1.tgz", + "integrity": "sha512-VVuPKb5kgWFhxCkAMpL5wi44AK+4nkxa3XXZVa2PKf00n4INNbdKmZC0tT8qeNTHoDPYMXbqak4tGC9YtIOqGw==", "dev": true, "requires": { "lodash": "^4.17.11" diff --git a/package.json b/package.json index d0b55bd2e..f09000b34 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "parse", - "version": "2.3.2", + "version": "2.4.0", "description": "The Parse JavaScript SDK", "homepage": "https://parseplatform.org/", "keywords": [ @@ -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", diff --git a/src/__tests__/LocalDatastore-test.js b/src/__tests__/LocalDatastore-test.js index dc6bbb10c..55da547dd 100644 --- a/src/__tests__/LocalDatastore-test.js +++ b/src/__tests__/LocalDatastore-test.js @@ -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); @@ -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(); @@ -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); @@ -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' }]); @@ -980,6 +982,7 @@ describe('LocalDatastore (RNDatastoreController)', () => { cb(undefined, [KEY1, 'DO_NOT_CLEAR']); } }; + jest.spyOn(console, 'error').mockImplementationOnce(() => {}); CoreManager.setAsyncStorage(mockStorageError); await LocalDatastore._clear(); }); @@ -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({}); diff --git a/src/__tests__/Parse-test.js b/src/__tests__/Parse-test.js index be4148c0f..de3a1bc28 100644 --- a/src/__tests__/Parse-test.js +++ b/src/__tests__/Parse-test.js @@ -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);