Skip to content

Commit 19deeb4

Browse files
authored
Release 1.4.0 🐘 (#381)
* prepped for 1.4.0 release * new additions to changelog * adds verification emails & ParseConfig to README * update README & test version to 1.4.0 * pull version from current sdk version * Update parse-server-test to 1.3.6, pinning mongodb to v3.4 * Use mongodb 3.4 on prestart
1 parent e0e2dc8 commit 19deeb4

File tree

5 files changed

+58
-7
lines changed

5 files changed

+58
-7
lines changed

CHANGELOG.md

+22-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,28 @@
11
## Parse PHP SDK Changelog
22

33
### master
4-
[Full Changelog](https://github.com/parse-community/parse-php-sdk/compare/1.3.0...master)
4+
[Full Changelog](https://github.com/parse-community/parse-php-sdk/compare/1.4.0...master)
5+
6+
### 1.4.0
7+
[See the diff between 1.3.0 and 1.4.0](https://github.com/parse-community/parse-php-sdk/compare/1.3.0...1.4.0)
8+
9+
- Fixes encode/decode method descriptors
10+
- Adds Relative Time Queries (#360)
11+
- Adds Server Info (#361)
12+
- README and code cleanup, adds **CHANGELOG** and **CODE_OF_CONDUCT**
13+
- Adds Purge & Polygon to ParseSchema (#365)
14+
- Adds Parse Server Health Check (#366)
15+
- Adds the ability to upgrade to a revocable session (#368)
16+
- Adds ability to Request Verification Emails (#369)
17+
- Adds the ability to set/save in `ParseConfig` (#371)
18+
- Adds `ParseLogs` (#370)
19+
- Adds `ParseAudience` (#372)
20+
- Adds jobs to `ParseCloud` (#373)
21+
- Adds support for aggregate queries (#355) (thanks to [Diamond Lewis](https://github.com/dplewis))
22+
- Fix npm license warning (thanks to [Arthur Cinader](https://github.com/acinader))
23+
- Updates **parse-server-test** dependency to 1.3.6
24+
- Support for managing indexes via **ParseSchema** (#357) (thanks to [Diamond Lewis](https://github.com/dplewis))
25+
- Slight test adjustments
526

627
### 1.3.0
728
[See the diff between 1.2.10 and 1.3.0](https://github.com/parse-community/parse-php-sdk/compare/1.2.10...1.3.0)

README.md

+30-1
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,15 @@ Please note that this documentation contains the latest changes that may as of y
2323
- [Use Declarations](#use-declarations)
2424
- [Parse Objects](#parse-objects)
2525
- [Users](#users)
26+
- [Verification Emails](#verification-emails)
2627
- [ACLs/Security](#acls)
2728
- [Queries](#queries)
2829
- [Aggregate](#aggregate)
2930
- [Distinct](#distinct)
3031
- [Relative Time](#relative-time)
3132
- [Cloud Functions](#cloud-functions)
3233
- [Cloud Jobs](#cloud-jobs)
34+
- [Config](#config)
3335
- [Analytics](#analytics)
3436
- [Files](#files)
3537
- [Push Notifications](#push)
@@ -58,7 +60,7 @@ Note that the Parse PHP SDK requires PHP 5.4 or newer. It can also run on HHVM (
5860
```json
5961
{
6062
"require": {
61-
"parse/php-sdk" : "1.3.*"
63+
"parse/php-sdk" : "1.4.*"
6264
}
6365
}
6466
```
@@ -285,6 +287,14 @@ try {
285287
$user = ParseUser::getCurrentUser();
286288
```
287289

290+
#### Verification Emails
291+
292+
If you are using email verification in your parse server setup you can request to send verification emails by hand.
293+
```php
294+
ParseUser::requestVerificationEmail('[email protected]');
295+
```
296+
Note that this will only send if the account for the email requested has not already been verified.
297+
288298
### ACLs
289299

290300
Access Control Lists (ACLs) allow you to granularly control access to individual Parse Objects.
@@ -432,6 +442,25 @@ $status = $jobStatus->get('status'); // failed / succeeded when done
432442

433443
```
434444

445+
### Config
446+
447+
**ParseConfig** allows you to access the global **Config** object for your parse server setup.
448+
You can get, set and update simple values much like you would on an instance of **ParseObject**. Through this all your SDKs and applications can have access to global settings, options, and more.
449+
What you choose to put in your config is purely up to you however.
450+
```php
451+
$config = new ParseConfig();
452+
453+
// check a config value of yours
454+
$allowed = $config->get('feature_allowed');
455+
456+
// add a simple config value
457+
$config->set('feature_allowed', true);
458+
459+
// save this global config
460+
$config->save();
461+
```
462+
463+
435464
### Analytics
436465

437466
A specialized Parse Object built purposely to make analytics easy.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"test-stream:coverage": "./vendor/bin/phpunit --bootstrap=./tests/bootstrap-stream.php --coverage-clover=coverage.xml",
77
"lint": "./vendor/bin/phpcs --standard=./phpcs.xml.dist ./src/Parse ./tests/Parse",
88
"lint:fix": "./vendor/bin/phpcbf --standard=./phpcs.xml.dist ./src/Parse ./tests/Parse",
9-
"prestart": "mongodb-runner start",
9+
"prestart": "MONGODB_VERSION=3.4 mongodb-runner start",
1010
"start": "forever start ./node_modules/parse-server-test/server.js",
1111
"stop": "forever stop ./node_modules/parse-server-test/server.js",
1212
"poststop": "mongodb-runner stop",
@@ -20,6 +20,6 @@
2020
"license": "SEE LICENSE IN LICENSE",
2121
"homepage": "https://github.com/montymxb/parse-server-test#readme",
2222
"dependencies": {
23-
"parse-server-test": "1.3.5"
23+
"parse-server-test": "1.3.6"
2424
}
2525
}

src/Parse/ParseClient.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ final class ParseClient
111111
private static $caFile;
112112

113113
/**
114-
* Constant for version string to include with requests. Currently 1.3.0.
114+
* Constant for version string to include with requests. Currently 1.4.0.
115115
*
116116
* @var string
117117
*/
118-
const VERSION_STRING = 'php1.3.0';
118+
const VERSION_STRING = 'php1.4.0';
119119

120120
/**
121121
* Parse\Client::initialize, must be called before using Parse features.

tests/Parse/ParseInstallationTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Parse\Test;
44

5+
use Parse\ParseClient;
56
use Parse\ParseInstallation;
67

78
class ParseInstallationTest extends \PHPUnit_Framework_TestCase
@@ -98,7 +99,7 @@ public function testInstallation()
9899
$appVersion = '1.0.0';
99100
$appName = 'Foo Bar App';
100101
$appIdentifier = 'foo-bar-app-id';
101-
$parseVersion = '1.3.0';
102+
$parseVersion = substr(ParseClient::VERSION_STRING, 3); // pull the version #
102103

103104
$installation = new ParseInstallation();
104105
$installation->set('installationId', $installationId);

0 commit comments

Comments
 (0)