Skip to content

build: Release #1622

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 20 commits into from
Nov 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
3205a68
refactor: bump parse-server from `b54af6b` to `4918665` (#1585)
dependabot[bot] Oct 27, 2022
0ab17e6
refactor: bump parse-server from `4918665` to `0e30c76` (#1586)
dependabot[bot] Oct 31, 2022
8aeaa4f
fix: React Native build does not maintain arrow functions and causes …
dplewis Nov 1, 2022
b25f4ec
chore(release): 3.5.0-alpha.7 [skip ci]
semantic-release-bot Nov 1, 2022
8f94427
refactor: bump parse-server from `0e30c76` to `e90a518` (#1591)
dependabot[bot] Nov 1, 2022
03ee3ff
fix: File upload fails when uploading base64 data (#1578)
musthafa1996 Nov 3, 2022
1687d19
chore(release): 3.5.0-alpha.8 [skip ci]
semantic-release-bot Nov 3, 2022
78ee7c2
ci: release commit
mtrezza Nov 1, 2022
3f77198
ci: release commit
mtrezza Nov 1, 2022
a19da4b
chore(release): 3.5.0 [skip ci]
semantic-release-bot Nov 1, 2022
75dc899
Merge branch 'beta' into build-release-beta-336633108613
mtrezza Nov 3, 2022
4b3586b
build: Release beta (#1589)
mtrezza Nov 3, 2022
391fa35
chore(release): 3.5.1-beta.1 [skip ci]
semantic-release-bot Nov 3, 2022
2342a72
refactor: Bump parse-server from `e90a518` to `81304be` (#1595)
dependabot[bot] Nov 3, 2022
90b5936
chore(release): 3.5.1-alpha.1 [skip ci]
semantic-release-bot Nov 3, 2022
a52c4c6
docs: add beta CI badge to README
mtrezza Nov 4, 2022
f15154f
fix: SDK builds incorrectly since release 3.5.0 causing various bugs …
dblythy Nov 7, 2022
7fe54a2
chore(release): 3.5.1-alpha.2 [skip ci]
semantic-release-bot Nov 7, 2022
d0bc8fb
build: Release beta (#1621)
mtrezza Nov 26, 2022
28aaad0
chore(release): 3.5.1-beta.2 [skip ci]
semantic-release-bot Nov 26, 2022
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
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

---

[![Build Status CI alpha](https://github.com/parse-community/Parse-SDK-JS/workflows/ci/badge.svg?branch=alpha)](https://github.com/parse-community/Parse-SDK-JS/actions?query=workflow%3Aci+branch%3Aalpha)
[![Build Status CI alpha](https://github.com/parse-community/Parse-SDK-JS/workflows/ci/badge.svg?branch=alpha&subject=alpha)](https://github.com/parse-community/Parse-SDK-JS/actions?query=workflow%3Aci+branch%3Aalpha)
[![Build Status CI beta](https://github.com/parse-community/Parse-SDK-JS/workflows/ci/badge.svg?branch=beta)](https://github.com/parse-community/Parse-SDK-JS/actions?query=workflow%3Aci+branch%3Abeta)
[![Build Status CI release](https://github.com/parse-community/Parse-SDK-JS/workflows/ci/badge.svg?branch=release)](https://github.com/parse-community/Parse-SDK-JS/actions?query=workflow%3Aci+branch%3Arelease)
[![Snyk Badge](https://snyk.io/test/github/parse-community/Parse-SDK-JS/badge.svg)](https://snyk.io/test/github/parse-community/Parse-SDK-JS)
[![Coverage](http://codecov.io/github/parse-community/Parse-SDK-JS/coverage.svg?branch=alpha)](http://codecov.io/github/parse-community/Parse-SDK-JS?branch=alpha)
Expand Down
29 changes: 29 additions & 0 deletions changelogs/CHANGELOG_alpha.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,32 @@
## [3.5.1-alpha.2](https://github.com/parse-community/Parse-SDK-JS/compare/3.5.1-alpha.1...3.5.1-alpha.2) (2022-11-07)


### Bug Fixes

* SDK builds incorrectly since release 3.5.0 causing various bugs ([#1600](https://github.com/parse-community/Parse-SDK-JS/issues/1600)) ([f15154f](https://github.com/parse-community/Parse-SDK-JS/commit/f15154f903478f997bf127be198097a58c602594))

## [3.5.1-alpha.1](https://github.com/parse-community/Parse-SDK-JS/compare/3.5.0...3.5.1-alpha.1) (2022-11-03)


### Bug Fixes

* File upload fails when uploading base64 data ([#1578](https://github.com/parse-community/Parse-SDK-JS/issues/1578)) ([03ee3ff](https://github.com/parse-community/Parse-SDK-JS/commit/03ee3ffd3e4798f9dd958ddc24b9f774cb875507))
* React Native build does not maintain arrow functions and causes error with AsyncStorage ([#1587](https://github.com/parse-community/Parse-SDK-JS/issues/1587)) ([8aeaa4f](https://github.com/parse-community/Parse-SDK-JS/commit/8aeaa4f51e01f5763c497b5e86dca73835e2144b))

# [3.5.0-alpha.8](https://github.com/parse-community/Parse-SDK-JS/compare/3.5.0-alpha.7...3.5.0-alpha.8) (2022-11-03)


### Bug Fixes

* File upload fails when uploading base64 data ([#1578](https://github.com/parse-community/Parse-SDK-JS/issues/1578)) ([03ee3ff](https://github.com/parse-community/Parse-SDK-JS/commit/03ee3ffd3e4798f9dd958ddc24b9f774cb875507))

# [3.5.0-alpha.7](https://github.com/parse-community/Parse-SDK-JS/compare/3.5.0-alpha.6...3.5.0-alpha.7) (2022-11-01)


### Bug Fixes

* React Native build does not maintain arrow functions and causes error with AsyncStorage ([#1587](https://github.com/parse-community/Parse-SDK-JS/issues/1587)) ([8aeaa4f](https://github.com/parse-community/Parse-SDK-JS/commit/8aeaa4f51e01f5763c497b5e86dca73835e2144b))

# [3.5.0-alpha.6](https://github.com/parse-community/Parse-SDK-JS/compare/3.5.0-alpha.5...3.5.0-alpha.6) (2022-10-13)


Expand Down
15 changes: 15 additions & 0 deletions changelogs/CHANGELOG_beta.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
## [3.5.1-beta.2](https://github.com/parse-community/Parse-SDK-JS/compare/3.5.1-beta.1...3.5.1-beta.2) (2022-11-26)


### Bug Fixes

* SDK builds incorrectly since release 3.5.0 causing various bugs ([#1600](https://github.com/parse-community/Parse-SDK-JS/issues/1600)) ([f15154f](https://github.com/parse-community/Parse-SDK-JS/commit/f15154f903478f997bf127be198097a58c602594))

## [3.5.1-beta.1](https://github.com/parse-community/Parse-SDK-JS/compare/3.5.0...3.5.1-beta.1) (2022-11-03)


### Bug Fixes

* File upload fails when uploading base64 data ([#1578](https://github.com/parse-community/Parse-SDK-JS/issues/1578)) ([03ee3ff](https://github.com/parse-community/Parse-SDK-JS/commit/03ee3ffd3e4798f9dd958ddc24b9f774cb875507))
* React Native build does not maintain arrow functions and causes error with AsyncStorage ([#1587](https://github.com/parse-community/Parse-SDK-JS/issues/1587)) ([8aeaa4f](https://github.com/parse-community/Parse-SDK-JS/commit/8aeaa4f51e01f5763c497b5e86dca73835e2144b))

# [3.5.0-beta.1](https://github.com/parse-community/Parse-SDK-JS/compare/3.4.4...3.5.0-beta.1) (2022-10-25)


Expand Down
6 changes: 3 additions & 3 deletions 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/plugin-transform-runtime", {
const transformRuntime = ["@babel/transform-runtime", {
"corejs": 3,
"helpers": true,
"regenerator": true,
Expand All @@ -22,10 +22,10 @@ const transformRuntime = ["@babel/plugin-transform-runtime", {
const PRESETS = {
'browser': [["@babel/preset-env", {
"targets": "> 0.25%, not dead"
}], '@babel/preset-react'],
}]],
'weapp': [["@babel/preset-env", {
"targets": "> 0.25%, not dead"
}], '@babel/preset-react'],
}], '@babel/react'],
'node': [["@babel/preset-env", {
"targets": { "node": "8" }
}]],
Expand Down
31 changes: 31 additions & 0 deletions integration/test/ParseDistTest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
const puppeteer = require('puppeteer');
let page = null;
for (const fileName of ['parse.js', 'parse.min.js']) {
beforeAll(async () => {
const browser = await puppeteer.launch();
page = await browser.newPage();
await page.goto(`http://localhost:1337/${fileName}`);
});
describe(`Parse Dist Test ${fileName}`, () => {
it('can save an object', async () => {
const response = await page.evaluate(async () => {
const object = await new Parse.Object('TestObject').save();
return object.id;
});
expect(response).toBeDefined();
const obj = await new Parse.Query('TestObject').first();
expect(obj).toBeDefined();
expect(obj.id).toEqual(response);
});
it('can query an object', async () => {
const obj = await new Parse.Object('TestObject').save();
const response = await page.evaluate(async () => {
const object = await new Parse.Query('TestObject').first();
return object.id;
});
expect(response).toBeDefined();
expect(obj).toBeDefined();
expect(obj.id).toEqual(response);
});
});
}
8 changes: 7 additions & 1 deletion integration/test/ParseFileTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ describe('Parse.File', () => {
assert.equal(data, 'ParseA==');
});

it('can get file data from base64', async () => {
it('can get file data from base64 (saved)', async () => {
const file = new Parse.File('parse-server-logo', { base64: 'ParseA==' });
await file.save();
let data = await file.getData();
Expand All @@ -76,6 +76,12 @@ describe('Parse.File', () => {
assert.equal(data, 'ParseA==');
});

it('can get file data from base64 (unsaved)', async () => {
const file = new Parse.File('parse-server-logo', { base64: 'ParseA==' });
const data = await file.getData();
assert.equal(data, 'ParseA==');
});

it('can get file data from full base64', async () => {
const file = new Parse.File('parse-server-logo', {
base64: 'data:image/jpeg;base64,ParseA==',
Expand Down
23 changes: 23 additions & 0 deletions integration/test/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ const CustomAuth = require('./CustomAuth');
const sleep = require('./sleep');
const { TestUtils } = require('parse-server');
const Parse = require('../../node');
const fs = require('fs');
const path = require('path');

const port = 1337;
const mountPath = '/parse';
Expand Down Expand Up @@ -115,6 +117,27 @@ const reconfigureServer = (changedConfiguration = {}) => {
});
parseServer = ParseServer.start(newConfiguration);
const app = parseServer.expressApp;
for (const fileName of ['parse.js', 'parse.min.js']) {
const file = fs
.readFileSync(path.resolve(__dirname, `./../../dist/${fileName}`))
.toString();
app.get(`/${fileName}`, (req, res) => {
res.send(`<html><head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Parse Functionality Test</title>
<script>${file}</script>
<script>
(function() {
Parse.initialize('integration');
Parse.serverURL = 'http://localhost:1337/parse';
})();
</script>
</head>
<body>
</body></html>`);
});
}
app.get('/clear/:fast', (req, res) => {
const { fast } = req.params;
TestUtils.destroyAllDataPermanently(fast).then(() => {
Expand Down
Loading