Skip to content
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

build: Release #494

Merged
merged 2 commits into from
Apr 26, 2023
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
12 changes: 9 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
79 changes: 36 additions & 43 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
<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>
<a href="https://community.parseplatform.org/"><img alt="Join the conversation" src="https://img.shields.io/discourse/https/community.parseplatform.org/topics.svg"></a>
<a href="LICENSE"><img alt="License" src="https://img.shields.io/badge/license-BSD-lightgrey.svg"></a>
<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>
<a href="https://packagist.org/packages/parse/php-sdk"><img alt="All time downloads" src="https://poser.pugx.org/parse/php-sdk/downloads" /></a>
</p>

Expand All @@ -22,57 +21,51 @@
<a href="#backers"><img alt="Backers on Open Collective" src="https://opencollective.com/parse-server/backers/badge.svg" /></a>
<a href="#sponsors"><img alt="Sponsors on Open Collective" src="https://opencollective.com/parse-server/sponsors/badge.svg" /></a>
<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>
<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>
</p>
<br>

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
Expand Down
6 changes: 3 additions & 3 deletions src/Parse/ParseClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion tests/Parse/ParseInstallationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down