Skip to content

build: Release #1881

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 78 commits into from
May 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
639196e
refactor: Bump puppeteer from 19.2.2 to 19.6.2 (#1703)
dependabot[bot] Jan 31, 2023
91768a1
refactor: Bump express from 4.17.1 to 4.18.2 (#1704)
dependabot[bot] Jan 31, 2023
3d783b9
refactor: Bump @babel/preset-env from 7.10.2 to 7.20.2 (#1709)
dependabot[bot] Jan 31, 2023
45888c6
refactor: Bump eslint-plugin-jsdoc from 30.7.3 to 39.7.5 (#1708)
dependabot[bot] Jan 31, 2023
6725cef
refactor: Bump codecov from 3.7.1 to 3.8.3 (#1707)
dependabot[bot] Jan 31, 2023
f8c26d3
refactor: Bump @semantic-release/github from 7.2.3 to 8.0.7 (#1705)
dependabot[bot] Jan 31, 2023
5805783
refactor: Fix JSDoc warnings (#1711)
dplewis Feb 1, 2023
24ce1e8
refactor: Bump @babel/runtime from 7.18.0 to 7.20.13 (#1714)
dependabot[bot] Feb 1, 2023
0ac20ed
refactor: Bump jasmine-spec-reporter from 6.0.0 to 7.0.0 (#1717)
dependabot[bot] Feb 1, 2023
6de9385
refactor: Bump regenerator-runtime from 0.13.5 to 0.13.11 (#1722)
dependabot[bot] Feb 2, 2023
4d9db85
refactor: Bump http-cache-semantics from 4.1.0 to 4.1.1 (#1723)
dependabot[bot] Feb 2, 2023
9c687de
refactor: Bump jasmine-reporters from 2.3.2 to 2.5.2 (#1721)
dependabot[bot] Feb 3, 2023
7100ed7
refactor: Bump @saithodev/semantic-release-backmerge from 2.1.2 to 2.…
dependabot[bot] Feb 3, 2023
23b8810
refactor: Bump @babel/plugin-transform-runtime from 7.10.1 to 7.19.6 …
dependabot[bot] Feb 3, 2023
6899c0f
refactor: Bump uuid to 9.0.0 (#1718)
dplewis Feb 4, 2023
1c96205
fix: `LiveQuerySubscription.unsubscribe` resolves promise before unsu…
dplewis Feb 4, 2023
528ef08
chore(release): 4.0.0-alpha.8 [skip ci]
semantic-release-bot Feb 4, 2023
16535a4
fix: Saving a new `Parse.Object` with an unsaved `Parse.File` fails (…
swittk Feb 4, 2023
a206231
chore(release): 4.0.0-alpha.9 [skip ci]
semantic-release-bot Feb 4, 2023
e993786
feat: Upgrade Node Package Manager lock file `package-lock.json` to v…
dplewis Feb 4, 2023
cf2f4f3
chore(release): 4.0.0-alpha.10 [skip ci]
semantic-release-bot Feb 4, 2023
febe187
fix: Node engine version upper range is <19 despite Node 19 support (…
mtrezza Feb 4, 2023
a67254f
chore(release): 4.0.0-alpha.11 [skip ci]
semantic-release-bot Feb 4, 2023
fa85d35
test: Refactor tests to bump jest and jsdom to 29.4.1 (#1733)
dplewis Feb 6, 2023
1fc9592
refactor: Bump json5 from 2.2.1 to 2.2.3 (#1737)
dependabot[bot] Feb 6, 2023
3485c32
refactor: Bump decode-uri-component from 0.2.0 to 0.2.2 (#1736)
dependabot[bot] Feb 6, 2023
4b0f30a
refactor: Bump @babel/plugin-transform-flow-comments from 7.10.1 to 7…
dependabot[bot] Feb 6, 2023
a53fc20
refactor: Bump @babel/core from 7.20.2 to 7.20.12 (#1741)
dependabot[bot] Feb 6, 2023
f79680c
refactor: Bump @babel/plugin-proposal-class-properties from 7.10.1 to…
dependabot[bot] Feb 6, 2023
979d660
feat: `LiveQueryClient.close` returns promise when WebSocket closes (…
dplewis Feb 6, 2023
0a2ce98
chore(release): 4.0.0-alpha.12 [skip ci]
semantic-release-bot Feb 6, 2023
ad87e02
refactor: Bump husky from 4.3.8 to 8.0.3 (#1740)
dependabot[bot] Feb 6, 2023
fe2bd1e
refactor: Bump jest-environment-jsdom from 29.4.1 to 29.4.2 (#1747)
dependabot[bot] Feb 7, 2023
a0ce373
refactor: Bump babel-jest from 29.4.1 to 29.4.2 (#1745)
dependabot[bot] Feb 7, 2023
055ede2
refactor: Bump jsdoc from 3.6.3 to 4.0.0 (#1746)
dependabot[bot] Feb 8, 2023
0f0bcc0
refactor: Bump babel-plugin-transform-inline-environment-variables fr…
dependabot[bot] Feb 8, 2023
44d1cde
refactor: Bump parse-server from `9ed42d7` to `e76123b` (#1744)
dependabot[bot] Feb 8, 2023
d21094b
refactor: Bump @babel/preset-react from 7.10.1 to 7.18.6 (#1753)
dependabot[bot] Feb 9, 2023
016e91c
refactor: Bump jest from 29.4.1 to 29.4.2 (#1749)
dependabot[bot] Feb 9, 2023
e17722a
ci: Add manual docs release workflow (#1755)
mtrezza Feb 9, 2023
d5a9dd7
refactor: Bump prettier from 2.2.1 to 2.8.4 (#1752)
dependabot[bot] Feb 9, 2023
f8ad4b8
refactor: Bump browserify from 16.5.1 to 17.0.0 (#1751)
dependabot[bot] Feb 9, 2023
3692e6a
refactor: Bump metro-react-native-babel-preset from 0.74.1 to 0.75.0 …
dependabot[bot] Feb 9, 2023
460d122
refactor: Bump lint-staged from 10.5.3 to 13.1.1 (#1760)
dependabot[bot] Feb 9, 2023
214cd6f
refactor: Bump eslint-plugin-flowtype from 5.1.2 to 7.0.0 (#1759)
dependabot[bot] Feb 9, 2023
219a18d
refactor: Bump ws from 8.6.0 to 8.12.0 (#1758)
dependabot[bot] Feb 9, 2023
8816dc2
refactor: Bump eslint-plugin-jsdoc from 39.7.5 to 39.8.0 (#1757)
dependabot[bot] Feb 10, 2023
6d09243
refactor: Bump Jasmine to 4.5.0 (#1761)
dplewis Feb 10, 2023
a9dd4f8
refactor: Bump puppeteer from 19.6.2 to 19.6.3 (#1764)
dependabot[bot] Feb 10, 2023
b15c57a
refactor: Bump idb-keyval from 6.0.3 to 6.2.0 (#1762)
dependabot[bot] Feb 10, 2023
46380b5
refactor: Bump eslint to 8.34.0 (#1765)
dplewis Feb 11, 2023
51c269f
refactor: Bump puppeteer from 19.6.3 to 19.7.0 (#1768)
dependabot[bot] Feb 13, 2023
8f8700b
refactor: Bump lint-staged from 13.1.1 to 13.1.2 (#1770)
dependabot[bot] Feb 15, 2023
5859827
refactor: Bump core-js from 3.27.2 to 3.28.0 (#1772)
dependabot[bot] Feb 15, 2023
b32bfbb
refactor: Bump parse-server from `e76123b` to `992b3c7` (#1771)
dependabot[bot] Feb 15, 2023
4bc7b2e
refactor: Bump babel-jest from 29.4.2 to 29.4.3 (#1774)
dependabot[bot] Feb 16, 2023
2d2f47f
refactor: Bump puppeteer from 19.7.0 to 19.7.1 (#1776)
dependabot[bot] Feb 16, 2023
6763e57
refactor: Bump jest-environment-jsdom from 29.4.2 to 29.4.3 (#1775)
dependabot[bot] Feb 16, 2023
aa0003c
refactor: Bump eslint-plugin-jsdoc from 39.8.0 to 40.0.0 (#1767)
dependabot[bot] Feb 16, 2023
d734148
refactor: Remove `@babel/runtime` from production dependencies (#1777)
dplewis Feb 17, 2023
451e3e0
refactor: Bump parse-server from `992b3c7` to `5477848` (#1778)
dependabot[bot] Feb 17, 2023
387fac2
refactor: Bump jest from 29.4.2 to 29.4.3 (#1779)
dependabot[bot] Feb 18, 2023
f47cb41
refactor: Bump jsdoc from 4.0.0 to 4.0.1 (#1780)
dependabot[bot] Feb 18, 2023
5ca4bbe
refactor: Bump jsdoc from 4.0.1 to 4.0.2 (#1782)
dependabot[bot] Feb 20, 2023
db18547
docs: Fix incorrect type in docs for `Parse.Query.containedIn` and `P…
richardgroves Feb 21, 2023
5112642
refactor: Bump puppeteer from 19.7.1 to 19.7.2 (#1787)
dependabot[bot] Feb 21, 2023
4c19151
refactor: Bump @babel/plugin-transform-runtime from 7.19.6 to 7.21.0 …
dependabot[bot] Feb 22, 2023
6ea1605
refactor: Bump @babel/plugin-transform-flow-comments from 7.19.0 to 7…
dependabot[bot] Feb 22, 2023
5509774
refactor: Bump @babel/runtime-corejs3 from 7.20.13 to 7.21.0 (#1790)
dependabot[bot] Feb 22, 2023
04f1ade
refactor: Bump @babel/core from 7.20.12 to 7.21.0 (#1788)
dependabot[bot] Feb 22, 2023
a9d19c2
refactor: Bump @babel/plugin-transform-flow-strip-types from 7.19.0 t…
dependabot[bot] Feb 22, 2023
4a71fcf
refactor: Bump metro-react-native-babel-preset from 0.75.0 to 0.75.1 …
dependabot[bot] Feb 23, 2023
e39fb77
refactor: Bump core-js from 3.28.0 to 3.29.0 (#1794)
dependabot[bot] Feb 27, 2023
d042b39
refactor: Bump eslint from 8.34.0 to 8.35.0 (#1792)
dependabot[bot] Feb 27, 2023
da0288e
refactor: Bump parse-server from `5477848` to `e9ab6b0` (#1793)
dependabot[bot] Feb 28, 2023
69b3b9a
Merge branch 'release' into build
mtrezza Mar 1, 2023
732a6ee
build: Release beta (#1800)
mtrezza Mar 1, 2023
ef34d37
chore(release): 4.1.0-beta.1 [skip ci]
semantic-release-bot Mar 1, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
"root": true,
"extends": [
"eslint:recommended",
"plugin:jsdoc/recommended"
"plugin:jsdoc/recommended",
"plugin:flowtype/recommended"
],
"env": {
"node": true,
"es6": true
},
"parser": "babel-eslint",
"parser": "@babel/eslint-parser",
"globals": {
"wx": true
},
Expand All @@ -18,7 +19,8 @@
],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
"sourceType": "module",
"requireConfigFile": false
},
"rules": {
"indent": ["error", 2],
Expand All @@ -34,6 +36,7 @@
"no-console": 0,
"no-prototype-builtins": "off",
"require-atomic-updates": "off",
"flowtype/no-types-missing-file-annotation": 0,
"jsdoc/require-jsdoc": 0,
"jsdoc/require-returns-description": 0,
"jsdoc/require-param-description": 0,
Expand Down
20 changes: 9 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ jobs:
check-lock-file-version:
name: NPM Lock File Version
timeout-minutes: 5
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Check NPM lock file version
uses: mansona/npm-lockfile-version@v1
with:
version: 1
version: 2
build:
runs-on: ubuntu-latest
timeout-minutes: 30
Expand All @@ -37,24 +37,22 @@ jobs:
- name: Fix git protocol for Node 14
if: ${{ startsWith(matrix.NODE_VERSION, '14.') }}
run: sudo git config --system url."https://github".insteadOf "ssh://git@github"
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.NODE_VERSION }}
- name: Cache Node.js modules
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
key: ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-
- run: npm ci
- run: npm install -g mongodb-runner
- run: mongodb-runner start
- run: npm run lint
- run: npm test -- --maxWorkers=4
- run: npm run integration
- run: npm run test:mongodb
env:
CI: true
- run: bash <(curl -s https://codecov.io/bash)
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/release-manual-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: release-manual-docs
on:
workflow_dispatch:
inputs:
tag:
default: ''
description: 'Version tag:'
jobs:
docs-publish:
if: github.event.inputs.tag != ''
runs-on: ubuntu-18.04
timeout-minutes: 15
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.tag }}
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 16
- 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-
- name: Generate Docs
run: |
npm ci
npm run release_docs
env:
SOURCE_TAG: ${{ github.event.inputs.tag }}
- name: Deploy
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
35 changes: 35 additions & 0 deletions changelogs/CHANGELOG_alpha.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,38 @@
# [4.0.0-alpha.12](https://github.com/parse-community/Parse-SDK-JS/compare/4.0.0-alpha.11...4.0.0-alpha.12) (2023-02-06)


### Features

* `LiveQueryClient.close` returns promise when WebSocket closes ([#1735](https://github.com/parse-community/Parse-SDK-JS/issues/1735)) ([979d660](https://github.com/parse-community/Parse-SDK-JS/commit/979d6607d5449dd3d3c5e51f36119bd05b25feaa))

# [4.0.0-alpha.11](https://github.com/parse-community/Parse-SDK-JS/compare/4.0.0-alpha.10...4.0.0-alpha.11) (2023-02-04)


### Bug Fixes

* Node engine version upper range is <19 despite Node 19 support ([#1732](https://github.com/parse-community/Parse-SDK-JS/issues/1732)) ([febe187](https://github.com/parse-community/Parse-SDK-JS/commit/febe187a24fb56e83542c00ae39148575fc57c4b))

# [4.0.0-alpha.10](https://github.com/parse-community/Parse-SDK-JS/compare/4.0.0-alpha.9...4.0.0-alpha.10) (2023-02-04)


### Features

* Upgrade Node Package Manager lock file `package-lock.json` to version 2 ([#1729](https://github.com/parse-community/Parse-SDK-JS/issues/1729)) ([e993786](https://github.com/parse-community/Parse-SDK-JS/commit/e993786cf0299b1150bf36afee1bc516e23e349a))

# [4.0.0-alpha.9](https://github.com/parse-community/Parse-SDK-JS/compare/4.0.0-alpha.8...4.0.0-alpha.9) (2023-02-04)


### Bug Fixes

* Saving a new `Parse.Object` with an unsaved `Parse.File` fails ([#1662](https://github.com/parse-community/Parse-SDK-JS/issues/1662)) ([16535a4](https://github.com/parse-community/Parse-SDK-JS/commit/16535a43f6c762983460aa837102a4c692de70bb))

# [4.0.0-alpha.8](https://github.com/parse-community/Parse-SDK-JS/compare/4.0.0-alpha.7...4.0.0-alpha.8) (2023-02-04)


### Bug Fixes

* `LiveQuerySubscription.unsubscribe` resolves promise before unsubscribing completes ([#1727](https://github.com/parse-community/Parse-SDK-JS/issues/1727)) ([1c96205](https://github.com/parse-community/Parse-SDK-JS/commit/1c96205cb3c162b21bf4508f7783400a28a99868))

# [4.0.0-alpha.7](https://github.com/parse-community/Parse-SDK-JS/compare/4.0.0-alpha.6...4.0.0-alpha.7) (2023-01-30)


Expand Down
14 changes: 14 additions & 0 deletions changelogs/CHANGELOG_beta.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# [4.1.0-beta.1](https://github.com/parse-community/Parse-SDK-JS/compare/4.0.1...4.1.0-beta.1) (2023-03-01)


### Bug Fixes

* `LiveQuerySubscription.unsubscribe` resolves promise before unsubscribing completes ([#1727](https://github.com/parse-community/Parse-SDK-JS/issues/1727)) ([1c96205](https://github.com/parse-community/Parse-SDK-JS/commit/1c96205cb3c162b21bf4508f7783400a28a99868))
* Node engine version upper range is <19 despite Node 19 support ([#1732](https://github.com/parse-community/Parse-SDK-JS/issues/1732)) ([febe187](https://github.com/parse-community/Parse-SDK-JS/commit/febe187a24fb56e83542c00ae39148575fc57c4b))
* Saving a new `Parse.Object` with an unsaved `Parse.File` fails ([#1662](https://github.com/parse-community/Parse-SDK-JS/issues/1662)) ([16535a4](https://github.com/parse-community/Parse-SDK-JS/commit/16535a43f6c762983460aa837102a4c692de70bb))

### Features

* `LiveQueryClient.close` returns promise when WebSocket closes ([#1735](https://github.com/parse-community/Parse-SDK-JS/issues/1735)) ([979d660](https://github.com/parse-community/Parse-SDK-JS/commit/979d6607d5449dd3d3c5e51f36119bd05b25feaa))
* Upgrade Node Package Manager lock file `package-lock.json` to version 2 ([#1729](https://github.com/parse-community/Parse-SDK-JS/issues/1729)) ([e993786](https://github.com/parse-community/Parse-SDK-JS/commit/e993786cf0299b1150bf36afee1bc516e23e349a))

## [4.0.1-beta.1](https://github.com/parse-community/Parse-SDK-JS/compare/4.0.0...4.0.1-beta.1) (2023-01-31)


Expand Down
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const watch = require('gulp-watch');
const BUILD = process.env.PARSE_BUILD || 'browser';
const VERSION = require('./package.json').version;

const transformRuntime = ["@babel/transform-runtime", {
const transformRuntime = ["@babel/plugin-transform-runtime", {
"corejs": 3,
"helpers": true,
"regenerator": true,
Expand Down
106 changes: 51 additions & 55 deletions integration/test/ParseEventuallyQueueTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,67 +190,63 @@ describe('Parse EventuallyQueue', () => {
assert.strictEqual(length, 0);
});

it('can saveEventually', async done => {
it('can saveEventually', async () => {
const parseServer = await reconfigureServer();
const object = new TestObject({ hash: 'saveSecret' });
parseServer.server.close(async () => {
await object.saveEventually();
let length = await Parse.EventuallyQueue.length();
assert(Parse.EventuallyQueue.isPolling());
assert.strictEqual(length, 1);

await reconfigureServer({});
while (Parse.EventuallyQueue.isPolling()) {
await sleep(100);
}
assert.strictEqual(Parse.EventuallyQueue.isPolling(), false);

while (await Parse.EventuallyQueue.length()) {
await sleep(100);
}
length = await Parse.EventuallyQueue.length();
assert.strictEqual(length, 0);

const query = new Parse.Query(TestObject);
query.equalTo('hash', 'saveSecret');
let results = await query.find();
while (results.length === 0) {
results = await query.find();
}
assert.strictEqual(results.length, 1);
done();
});
await new Promise((resolve) => parseServer.server.close(resolve));
await object.saveEventually();
let length = await Parse.EventuallyQueue.length();
assert(Parse.EventuallyQueue.isPolling());
assert.strictEqual(length, 1);

await reconfigureServer({});
while (Parse.EventuallyQueue.isPolling()) {
await sleep(100);
}
assert.strictEqual(Parse.EventuallyQueue.isPolling(), false);

while (await Parse.EventuallyQueue.length()) {
await sleep(100);
}
length = await Parse.EventuallyQueue.length();
assert.strictEqual(length, 0);

const query = new Parse.Query(TestObject);
query.equalTo('hash', 'saveSecret');
let results = await query.find();
while (results.length === 0) {
results = await query.find();
}
assert.strictEqual(results.length, 1);
});

it('can destroyEventually', async done => {
it('can destroyEventually', async () => {
const parseServer = await reconfigureServer();
const object = new TestObject({ hash: 'deleteSecret' });
await object.save();
parseServer.server.close(async () => {
await object.destroyEventually();
let length = await Parse.EventuallyQueue.length();
assert(Parse.EventuallyQueue.isPolling());
assert.strictEqual(length, 1);

await reconfigureServer({});
while (Parse.EventuallyQueue.isPolling()) {
await sleep(100);
}
assert.strictEqual(Parse.EventuallyQueue.isPolling(), false);
while (await Parse.EventuallyQueue.length()) {
await sleep(100);
}
length = await Parse.EventuallyQueue.length();
assert.strictEqual(length, 0);

const query = new Parse.Query(TestObject);
query.equalTo('hash', 'deleteSecret');
let results = await query.find();
while (results.length) {
results = await query.find();
}
assert.strictEqual(results.length, 0);
done();
});
await new Promise((resolve) => parseServer.server.close(resolve));
await object.destroyEventually();
let length = await Parse.EventuallyQueue.length();
assert(Parse.EventuallyQueue.isPolling());
assert.strictEqual(length, 1);

await reconfigureServer({});
while (Parse.EventuallyQueue.isPolling()) {
await sleep(100);
}
assert.strictEqual(Parse.EventuallyQueue.isPolling(), false);
while (await Parse.EventuallyQueue.length()) {
await sleep(100);
}
length = await Parse.EventuallyQueue.length();
assert.strictEqual(length, 0);

const query = new Parse.Query(TestObject);
query.equalTo('hash', 'deleteSecret');
let results = await query.find();
while (results.length) {
results = await query.find();
}
assert.strictEqual(results.length, 0);
});
});
20 changes: 20 additions & 0 deletions integration/test/ParseFileTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,24 @@ describe('Parse.File', () => {
assert.equal(e.code, Parse.Error.FILE_DELETE_ERROR);
}
});

it('can save file to localDatastore', async () => {
Parse.enableLocalDatastore();
const file = new Parse.File('parse-js-sdk', [61, 170, 236, 120]);
const object = new Parse.Object('TestObject');
await object.pin();

object.set('file', file);
await object.save();

const query = new Parse.Query(TestObject);
query.fromLocalDatastore();
query.equalTo('objectId', object.id);
const results = await query.find();

const url = results[0].get('file').url();
assert.equal(results.length, 1);
assert.notEqual(url, undefined);
assert.equal(url, file.url());
});
});
Loading