From 14be5322e924b6d3fa3e1a347fd513b156c9d843 Mon Sep 17 00:00:00 2001
From: Manuel <5673677+mtrezza@users.noreply.github.com>
Date: Thu, 27 Apr 2023 00:46:56 +0200
Subject: [PATCH] build: Release (#494)
---
CHANGELOG.md | 12 +++-
README.md | 79 ++++++++++++---------------
src/Parse/ParseClient.php | 6 +-
tests/Parse/ParseInstallationTest.php | 2 +-
4 files changed, 49 insertions(+), 50 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d0cf33ec..8da6358f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,7 +1,13 @@
-## Parse PHP SDK Changelog
+# [2.0.0](https://github.com/parse-community/parse-php-sdk/compare/1.6.0...2.0.0) (2023-04-27)
-### master
-[Full Changelog](https://github.com/parse-community/parse-php-sdk/compare/1.6.0...master)
+### Features
+
+* 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))
+* 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))
+
+### BREAKING CHANGES
+
+- 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))
### 1.6.0
[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)
diff --git a/README.md b/README.md
index ebffe24a..901cb0bb 100644
--- a/README.md
+++ b/README.md
@@ -13,7 +13,6 @@
-
@@ -22,57 +21,51 @@
-
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).
-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.
-- [1.6.0 README](https://github.com/parse-community/parse-php-sdk/blob/1.6.0/README.md)
-- [1.5.1 README](https://github.com/parse-community/parse-php-sdk/blob/1.5.1/README.md)
-- [1.4.0 README](https://github.com/parse-community/parse-php-sdk/blob/1.4.0/README.md)
-- [1.3.0 README](https://github.com/parse-community/parse-php-sdk/blob/1.3.0/README.md)
-
## Table of Contents
+- [Table of Contents](#table-of-contents)
- [Installation](#installation)
- - [Install with Composer](#install-with-composer)
- - [Install with Git](#install-with-git)
- - [Install with another method](#install-with-another-method)
+ - [Install with Composer](#install-with-composer)
+ - [Install with Git](#install-with-git)
+ - [Install with another method](#install-with-another-method)
- [Setup](#setup)
- - [Initializing](#initializing)
- - [Server URL](#server-url)
- - [Server Health Check](#server-health-check)
- - [Http Clients](#http-clients)
- - [Alternate CA files](#alternate-ca-file)
+ - [Initializing](#initializing)
+ - [Server URL](#server-url)
+ - [Server Health Check](#server-health-check)
+ - [Http Clients](#http-clients)
+ - [Alternate CA File](#alternate-ca-file)
- [Getting Started](#getting-started)
- - [Use Declarations](#use-declarations)
- - [Parse Objects](#parse-objects)
- - [Users](#users)
- - [Session Id and Session Fixation](#session-id-and-session-fixation)
- - [Verification Emails](#verification-emails)
- - [ACLs/Security](#acls)
- - [Queries](#queries)
- - [Aggregate](#aggregate)
- - [Distinct](#distinct)
- - [Relative Time](#relative-time)
- - [Cloud Functions](#cloud-functions)
- - [Cloud Jobs](#cloud-jobs)
- - [Config](#config)
- - [Analytics](#analytics)
- - [Files](#files)
- - [Push Notifications](#push)
- - [Push to Channels](#push-to-channels)
- - [Push with Query](#push-with-query)
- - [Push with Audience](#push-with-audience)
- - [Push Status](#push-status)
- - [Server Info](#server-info)
- - [Version](#version)
- - [Features](#features)
- - [Schema](#schema)
- - [Index](#index)
- - [Purge](#purge)
- - [Logs](#logs)
+ - [Use Declarations](#use-declarations)
+ - [Parse Objects](#parse-objects)
+ - [Users](#users)
+ - [Session Id and Session Fixation](#session-id-and-session-fixation)
+ - [Verification Emails](#verification-emails)
+ - [ACLs](#acls)
+ - [Queries](#queries)
+ - [Aggregate](#aggregate)
+ - [Distinct](#distinct)
+ - [Relative Time](#relative-time)
+ - [Cloud Functions](#cloud-functions)
+ - [Cloud Jobs](#cloud-jobs)
+ - [Config](#config)
+ - [Analytics](#analytics)
+ - [Files](#files)
+ - [Push](#push)
+ - [Push to Channels](#push-to-channels)
+ - [Push with Query](#push-with-query)
+ - [Push with Audience](#push-with-audience)
+ - [Push Status](#push-status)
+ - [Server Info](#server-info)
+ - [Version](#version)
+ - [Features](#features)
+ - [Schema](#schema)
+ - [Index](#index)
+ - [Purge](#purge)
+ - [Logs](#logs)
- [Contributing / Testing](#contributing--testing)
## Installation
diff --git a/src/Parse/ParseClient.php b/src/Parse/ParseClient.php
index 9fa6dc1d..2e0a014b 100755
--- a/src/Parse/ParseClient.php
+++ b/src/Parse/ParseClient.php
@@ -111,11 +111,11 @@ final class ParseClient
private static $caFile;
/**
- * Constant for version string to include with requests. Currently 1.6.0.
+ * Constant for version string to include with requests.
*
* @var string
*/
- const VERSION_STRING = 'php1.6.0';
+ const VERSION_STRING = '2.0.0';
/**
* Parse\Client::initialize, must be called before using Parse features.
@@ -522,7 +522,7 @@ public static function _request(
// add appId & client version
$httpClient->addRequestHeader('X-Parse-Application-Id', self::$applicationId);
- $httpClient->addRequestHeader('X-Parse-Client-Version', self::VERSION_STRING);
+ $httpClient->addRequestHeader('X-Parse-Client-Version', 'php' . self::VERSION_STRING);
if ($sessionToken) {
diff --git a/tests/Parse/ParseInstallationTest.php b/tests/Parse/ParseInstallationTest.php
index 98f20b08..1e5ae8d8 100644
--- a/tests/Parse/ParseInstallationTest.php
+++ b/tests/Parse/ParseInstallationTest.php
@@ -101,7 +101,7 @@ public function testInstallation()
$appVersion = '1.0.0';
$appName = 'Foo Bar App';
$appIdentifier = 'foo-bar-app-id';
- $parseVersion = substr(ParseClient::VERSION_STRING, 3); // pull the version #
+ $parseVersion = ParseClient::VERSION_STRING;
$installation = new ParseInstallation();
$installation->set('installationId', $installationId);