Skip to content

⚡️ Release 3.2.0 #1339

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 3 commits into from
Apr 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
22 changes: 20 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,26 @@
# Parse-SDK-JS

### master
[Full Changelog](https://github.com/parse-community/Parse-SDK-JS/compare/3.1.0...master)
- Add className argument to Parse Object subclass constructor ([#1315](https://github.com/parse-community/Parse-SDK-JS/pull/1315))
[Full Changelog](https://github.com/parse-community/Parse-SDK-JS/compare/3.2.0...master)

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

**Breaking Changes**
- Remove deletion of Anonymous User on logout ([#1324](https://github.com/parse-community/Parse-SDK-JS/pull/1324))
See https://community.parseplatform.org/t/anonymous-user-destroyed-on-logout/1425

**Improvements**
- Allow multiple classNames for `Parse.Object.registerSubclass` ([#1315](https://github.com/parse-community/Parse-SDK-JS/pull/1315))
```
const classNames = ['ClassOne', 'ClassTwo', 'ClassThree'];
for (const className of classNames) {
Parse.Object.registerSubclass(className, CustomClass);
}
```

**Fixes**
- Fixes build for WeChat WeApp, to reduce package size, see [issue/#1331](https://github.com/parse-community/Parse-SDK-JS/issues/1331)

## 3.1.0
[Full Changelog](https://github.com/parse-community/Parse-SDK-JS/compare/3.0.0...3.1.0)
Expand Down
12 changes: 10 additions & 2 deletions integration/test/helper.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
jasmine.DEFAULT_TIMEOUT_INTERVAL = 20000;

const { SpecReporter } = require('jasmine-spec-reporter');
jasmine.getEnv().addReporter(new SpecReporter());

const ParseServer = require('parse-server').default;
const CustomAuth = require('./CustomAuth');
const sleep = require('./sleep');
Expand All @@ -9,6 +12,7 @@ const Parse = require('../../node');
const port = 1337;
const mountPath = '/parse';
const serverURL = 'http://localhost:1337/parse';
let didChangeConfiguration = false;

const defaultConfiguration = {
databaseURI: 'mongodb://localhost:27017/integration',
Expand Down Expand Up @@ -68,7 +72,7 @@ const destroyAliveConnections = function () {
let parseServer;
let server;

const reconfigureServer = changedConfiguration => {
const reconfigureServer = (changedConfiguration = {}) => {
return new Promise((resolve, reject) => {
if (server) {
return parseServer.handleShutdown().then(() => {
Expand All @@ -80,6 +84,7 @@ const reconfigureServer = changedConfiguration => {
});
}
try {
didChangeConfiguration = Object.keys(changedConfiguration).length !== 0;
const newConfiguration = Object.assign({}, defaultConfiguration, changedConfiguration || {}, {
serverStartComplete: error => {
if (error) {
Expand Down Expand Up @@ -124,7 +129,7 @@ global.reconfigureServer = reconfigureServer;
beforeAll(async () => {
await reconfigureServer();
Parse.initialize('integration');
Parse.CoreManager.set('SERVER_URL', 'http://localhost:1337/parse');
Parse.CoreManager.set('SERVER_URL', serverURL);
Parse.CoreManager.set('MASTER_KEY', 'notsosecret');
});

Expand All @@ -135,4 +140,7 @@ afterEach(async () => {
destroyAliveConnections();
// Connection close events are not immediate on node 10+... wait a bit
await sleep(0);
if (didChangeConfiguration) {
await reconfigureServer();
}
});
11 changes: 10 additions & 1 deletion package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "parse",
"version": "3.1.0",
"version": "3.2.0",
"description": "The Parse JavaScript SDK",
"homepage": "https://parseplatform.org/",
"keywords": [
Expand Down Expand Up @@ -69,6 +69,7 @@
"husky": "4.3.5",
"jasmine": "3.5.0",
"jasmine-reporters": "2.3.2",
"jasmine-spec-reporter": "6.0.0",
"jest": "24.9.0",
"jsdoc": "3.6.3",
"jsdoc-babel": "0.5.0",
Expand Down