From e5b647fd884c26d79f113b0134caf8948cb0c80c Mon Sep 17 00:00:00 2001 From: Diamond Lewis Date: Thu, 10 Dec 2020 13:20:19 -0600 Subject: [PATCH 1/3] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20Release=202.19.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pages.yml | 8 +++----- .github/workflows/release.yml | 26 ++++++++++++++++++++++++++ CHANGELOG.md | 16 +++++++++++++++- package-lock.json | 26 +++++++++++++------------- package.json | 2 +- 5 files changed, 58 insertions(+), 20 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index b9449a4d8..46c7ddd3c 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -1,10 +1,8 @@ name: docs on: - push: - branches: - - master - tags: - - '*' + release: + types: [published] + jobs: build: runs-on: ubuntu-18.04 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000..80aa9a361 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,26 @@ +name: release + +on: + release: + types: [published] + +jobs: + publish-npm: + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 12 + registry-url: https://registry.npmjs.org/ + - name: Cache Node.js modules + uses: actions/cache@v2 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + - run: npm ci + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} diff --git a/CHANGELOG.md b/CHANGELOG.md index 81640f598..eb4c712eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,21 @@ # Parse-SDK-JS ### master -[Full Changelog](https://github.com/parse-community/Parse-SDK-JS/compare/2.18.0...master) +[Full Changelog](https://github.com/parse-community/Parse-SDK-JS/compare/2.19.0...master) + +## 2.19.0 +[Full Changelog](https://github.com/parse-community/Parse-SDK-JS/compare/2.18.0...2.19.0) + +**Features** +- New error codes (210 and 211) for MFA ([#1268](https://github.com/parse-community/Parse-SDK-JS/pull/1268)) + +**Improvements** +- Parse.File.destroy error message ([#1257](https://github.com/parse-community/Parse-SDK-JS/pull/1257)) + +**Fixes** +- Remove unnecessary object reference and comment from AddUniqueOp ([#1253](https://github.com/parse-community/Parse-SDK-JS/pull/1253)) +- Internal Referencing for Increment Dot Notation ([#1255](https://github.com/parse-community/Parse-SDK-JS/pull/1255)) +- Saving for Increment Dot Notation ([#1219](https://github.com/parse-community/Parse-SDK-JS/pull/1219)) ## 2.18.0 [Full Changelog](https://github.com/parse-community/Parse-SDK-JS/compare/2.17.0...2.18.0) diff --git a/package-lock.json b/package-lock.json index cdb8a302a..e6d886dc6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "parse", - "version": "2.18.0", + "version": "2.19.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -10434,15 +10434,15 @@ "dev": true, "requires": { "@apollographql/graphql-playground-html": "1.6.26", - "@graphql-tools/links": "^6.2.4", - "@graphql-tools/stitch": "6.2.2", - "@graphql-tools/utils": "6.2.2", + "@graphql-tools/links": "6.2.4", + "@graphql-tools/stitch": "6.2.4", + "@graphql-tools/utils": "6.2.4", "@node-rs/bcrypt": "0.4.1", - "@parse/fs-files-adapter": "1.0.1", - "@parse/push-adapter": "3.3.0", - "@parse/s3-files-adapter": "1.5.0", + "@parse/fs-files-adapter": "1.2.0", + "@parse/push-adapter": "3.4.0", + "@parse/s3-files-adapter": "1.6.0", "@parse/simple-mailgun-adapter": "1.1.0", - "apollo-server-express": "2.17.0", + "apollo-server-express": "2.18.2", "bcryptjs": "2.4.3", "body-parser": "1.19.0", "commander": "5.1.0", @@ -10456,20 +10456,20 @@ "graphql-upload": "11.0.0", "intersect": "1.0.1", "jsonwebtoken": "8.5.1", - "jwks-rsa": "1.9.0", - "ldapjs": "2.1.1", + "jwks-rsa": "1.10.1", + "ldapjs": "2.2.0", "lodash": "4.17.20", "lru-cache": "5.1.1", "mime": "2.4.6", "mongodb": "3.6.2", - "parse": "2.15.0", - "pg-promise": "10.6.1", + "parse": "2.17.0", + "pg-promise": "10.7.0", "pluralize": "8.0.0", "redis": "3.0.2", "semver": "7.3.2", "subscriptions-transport-ws": "0.9.18", "tv4": "1.3.0", - "uuid": "8.3.0", + "uuid": "8.3.1", "winston": "3.3.3", "winston-daily-rotate-file": "4.5.0", "ws": "7.3.1" diff --git a/package.json b/package.json index ad6a04fbd..f3d3036a6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "parse", - "version": "2.18.0", + "version": "2.19.0", "description": "The Parse JavaScript SDK", "homepage": "https://parseplatform.org/", "keywords": [ From cb31411d2f099f2ac83d7119783056e61fd5f523 Mon Sep 17 00:00:00 2001 From: Diamond Lewis Date: Thu, 10 Dec 2020 13:49:47 -0600 Subject: [PATCH 2/3] Improve coverage and changelog --- CHANGELOG.md | 6 ++++-- src/__tests__/ParseQuery-test.js | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index eb4c712eb..30c0f202d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,10 +7,12 @@ [Full Changelog](https://github.com/parse-community/Parse-SDK-JS/compare/2.18.0...2.19.0) **Features** -- New error codes (210 and 211) for MFA ([#1268](https://github.com/parse-community/Parse-SDK-JS/pull/1268)) +- New error code 210 (MFA_ERROR) ([#1268](https://github.com/parse-community/Parse-SDK-JS/pull/1268)) +- New error code 211 (MFA_TOKEN_REQUIRED) ([#1268](https://github.com/parse-community/Parse-SDK-JS/pull/1268)) +- New error code 161 (FILE_DELETE_UNNAMED_ERROR) ([#1257](https://github.com/parse-community/Parse-SDK-JS/pull/1257)) **Improvements** -- Parse.File.destroy error message ([#1257](https://github.com/parse-community/Parse-SDK-JS/pull/1257)) +- Parse.File.destroy without name error message ([#1257](https://github.com/parse-community/Parse-SDK-JS/pull/1257)) **Fixes** - Remove unnecessary object reference and comment from AddUniqueOp ([#1253](https://github.com/parse-community/Parse-SDK-JS/pull/1253)) diff --git a/src/__tests__/ParseQuery-test.js b/src/__tests__/ParseQuery-test.js index 84a3ed6a5..1d21a6d39 100644 --- a/src/__tests__/ParseQuery-test.js +++ b/src/__tests__/ParseQuery-test.js @@ -2801,6 +2801,9 @@ describe('ParseQuery', () => { aggregate: () => {}, }); const query = new ParseQuery('TestCancel'); + expect(query._xhrRequest).toBeDefined(); + expect(query._xhrRequest.task).toBe(null); + expect(query._xhrRequest.onchange()).toBeUndefined(); jest.spyOn(mockRequestTask, 'abort'); query.cancel(); From ffca683d1b6ec002150a0088cb6e17b665f20831 Mon Sep 17 00:00:00 2001 From: Diamond Lewis Date: Thu, 10 Dec 2020 14:00:48 -0600 Subject: [PATCH 3/3] cleanup workflow --- .github/workflows/pages.yml | 1 - .github/workflows/release.yml | 2 -- 2 files changed, 3 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 46c7ddd3c..3ae0f39d1 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -2,7 +2,6 @@ name: docs on: release: types: [published] - jobs: build: runs-on: ubuntu-18.04 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 80aa9a361..bac1d52ec 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,9 +1,7 @@ name: release - on: release: types: [published] - jobs: publish-npm: runs-on: ubuntu-18.04