Skip to content

Commit 14be532

Browse files
authored
build: Release (#494)
1 parent d5783e3 commit 14be532

File tree

4 files changed

+49
-50
lines changed

4 files changed

+49
-50
lines changed

CHANGELOG.md

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1-
## Parse PHP SDK Changelog
1+
# [2.0.0](https://github.com/parse-community/parse-php-sdk/compare/1.6.0...2.0.0) (2023-04-27)
22

3-
### master
4-
[Full Changelog](https://github.com/parse-community/parse-php-sdk/compare/1.6.0...master)
3+
### Features
4+
5+
* Add support for PHP 8.1, 8.2 ([#489](https://github.com/parse-community/parse-php-sdk/pull/489)) ([d5783e3](https://github.com/parse-community/parse-php-sdk/commit/d5783e3440a2baf9bcc65f829ec107b91ff4c037))
6+
* Add support for `object->exists()` ([#453](https://github.com/parse-community/parse-php-sdk/pull/453)) ([eada867](https://github.com/parse-community/parse-php-sdk/commit/eada867bfa72df4393b5344e97bcb188c4f6ea4f))
7+
8+
### BREAKING CHANGES
9+
10+
- This release requires PHP version >= 8.1.0 ([#489](https://github.com/parse-community/parse-php-sdk/pull/489)) ([d5783e3](https://github.com/parse-community/parse-php-sdk/commit/d5783e3440a2baf9bcc65f829ec107b91ff4c037))
511

612
### 1.6.0
713
[See the diff between 1.5.1 and 1.6.0](https://github.com/parse-community/parse-php-sdk/compare/1.5.1...1.6.0)

README.md

+36-43
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
<a href="https://twitter.com/intent/follow?screen_name=parseplatform"><img alt="Follow on Twitter" src="https://img.shields.io/twitter/follow/parseplatform?style=social&label=Follow"></a>
1414
<a href="https://community.parseplatform.org/"><img alt="Join the conversation" src="https://img.shields.io/discourse/https/community.parseplatform.org/topics.svg"></a>
1515
<a href="LICENSE"><img alt="License" src="https://img.shields.io/badge/license-BSD-lightgrey.svg"></a>
16-
<a href="https://travis-ci.org/parse-community/parse-php-sdk"><img alt="Build status" src="https://travis-ci.org/parse-community/parse-php-sdk.svg?branch=master"></a>
1716
<a href="https://packagist.org/packages/parse/php-sdk"><img alt="All time downloads" src="https://poser.pugx.org/parse/php-sdk/downloads" /></a>
1817
</p>
1918

@@ -22,57 +21,51 @@
2221
<a href="#backers"><img alt="Backers on Open Collective" src="https://opencollective.com/parse-server/backers/badge.svg" /></a>
2322
<a href="#sponsors"><img alt="Sponsors on Open Collective" src="https://opencollective.com/parse-server/sponsors/badge.svg" /></a>
2423
<a href="https://packagist.org/packages/parse/php-sdk"><img alt="Latest stable version" src="https://poser.pugx.org/parse/php-sdk/v/stable" /></a>
25-
<a href="https://packagist.org/packages/parse/php-sdk"><img alt="Latest unstable version" src="https://poser.pugx.org/parse/php-sdk/v/unstable" /></a>
2624
</p>
2725
<br>
2826

2927
For more information on Parse and its features, see [the website](https://parseplatform.org), [the PHP guide](https://docs.parseplatform.org/php/guide/) or [API Reference](https://parseplatform.org/parse-php-sdk/namespaces/Parse.html).
3028

31-
Please note that this documentation contains the latest changes that may as of yet be unreleased. To see the README for your release please use the list below.
32-
- [1.6.0 README](https://github.com/parse-community/parse-php-sdk/blob/1.6.0/README.md)
33-
- [1.5.1 README](https://github.com/parse-community/parse-php-sdk/blob/1.5.1/README.md)
34-
- [1.4.0 README](https://github.com/parse-community/parse-php-sdk/blob/1.4.0/README.md)
35-
- [1.3.0 README](https://github.com/parse-community/parse-php-sdk/blob/1.3.0/README.md)
36-
3729
## Table of Contents
30+
- [Table of Contents](#table-of-contents)
3831
- [Installation](#installation)
39-
- [Install with Composer](#install-with-composer)
40-
- [Install with Git](#install-with-git)
41-
- [Install with another method](#install-with-another-method)
32+
- [Install with Composer](#install-with-composer)
33+
- [Install with Git](#install-with-git)
34+
- [Install with another method](#install-with-another-method)
4235
- [Setup](#setup)
43-
- [Initializing](#initializing)
44-
- [Server URL](#server-url)
45-
- [Server Health Check](#server-health-check)
46-
- [Http Clients](#http-clients)
47-
- [Alternate CA files](#alternate-ca-file)
36+
- [Initializing](#initializing)
37+
- [Server URL](#server-url)
38+
- [Server Health Check](#server-health-check)
39+
- [Http Clients](#http-clients)
40+
- [Alternate CA File](#alternate-ca-file)
4841
- [Getting Started](#getting-started)
49-
- [Use Declarations](#use-declarations)
50-
- [Parse Objects](#parse-objects)
51-
- [Users](#users)
52-
- [Session Id and Session Fixation](#session-id-and-session-fixation)
53-
- [Verification Emails](#verification-emails)
54-
- [ACLs/Security](#acls)
55-
- [Queries](#queries)
56-
- [Aggregate](#aggregate)
57-
- [Distinct](#distinct)
58-
- [Relative Time](#relative-time)
59-
- [Cloud Functions](#cloud-functions)
60-
- [Cloud Jobs](#cloud-jobs)
61-
- [Config](#config)
62-
- [Analytics](#analytics)
63-
- [Files](#files)
64-
- [Push Notifications](#push)
65-
- [Push to Channels](#push-to-channels)
66-
- [Push with Query](#push-with-query)
67-
- [Push with Audience](#push-with-audience)
68-
- [Push Status](#push-status)
69-
- [Server Info](#server-info)
70-
- [Version](#version)
71-
- [Features](#features)
72-
- [Schema](#schema)
73-
- [Index](#index)
74-
- [Purge](#purge)
75-
- [Logs](#logs)
42+
- [Use Declarations](#use-declarations)
43+
- [Parse Objects](#parse-objects)
44+
- [Users](#users)
45+
- [Session Id and Session Fixation](#session-id-and-session-fixation)
46+
- [Verification Emails](#verification-emails)
47+
- [ACLs](#acls)
48+
- [Queries](#queries)
49+
- [Aggregate](#aggregate)
50+
- [Distinct](#distinct)
51+
- [Relative Time](#relative-time)
52+
- [Cloud Functions](#cloud-functions)
53+
- [Cloud Jobs](#cloud-jobs)
54+
- [Config](#config)
55+
- [Analytics](#analytics)
56+
- [Files](#files)
57+
- [Push](#push)
58+
- [Push to Channels](#push-to-channels)
59+
- [Push with Query](#push-with-query)
60+
- [Push with Audience](#push-with-audience)
61+
- [Push Status](#push-status)
62+
- [Server Info](#server-info)
63+
- [Version](#version)
64+
- [Features](#features)
65+
- [Schema](#schema)
66+
- [Index](#index)
67+
- [Purge](#purge)
68+
- [Logs](#logs)
7669
- [Contributing / Testing](#contributing--testing)
7770

7871
## Installation

src/Parse/ParseClient.php

+3-3
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.6.0.
114+
* Constant for version string to include with requests.
115115
*
116116
* @var string
117117
*/
118-
const VERSION_STRING = 'php1.6.0';
118+
const VERSION_STRING = '2.0.0';
119119

120120
/**
121121
* Parse\Client::initialize, must be called before using Parse features.
@@ -522,7 +522,7 @@ public static function _request(
522522

523523
// add appId & client version
524524
$httpClient->addRequestHeader('X-Parse-Application-Id', self::$applicationId);
525-
$httpClient->addRequestHeader('X-Parse-Client-Version', self::VERSION_STRING);
525+
$httpClient->addRequestHeader('X-Parse-Client-Version', 'php' . self::VERSION_STRING);
526526

527527

528528
if ($sessionToken) {

tests/Parse/ParseInstallationTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function testInstallation()
101101
$appVersion = '1.0.0';
102102
$appName = 'Foo Bar App';
103103
$appIdentifier = 'foo-bar-app-id';
104-
$parseVersion = substr(ParseClient::VERSION_STRING, 3); // pull the version #
104+
$parseVersion = ParseClient::VERSION_STRING;
105105

106106
$installation = new ParseInstallation();
107107
$installation->set('installationId', $installationId);

0 commit comments

Comments
 (0)