Skip to content

Commit aeb7aaa

Browse files
committed
First commit for 8.0.0-alpha release
1 parent 0334e5b commit aeb7aaa

File tree

605 files changed

+13639
-212853
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

605 files changed

+13639
-212853
lines changed

.ci/run-repository.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ script_path=$(dirname $(realpath -s $0))
99
source $script_path/functions/imports.sh
1010
set -euo pipefail
1111

12-
PHP_VERSION=${PHP_VERSION-7.4-cli}
12+
PHP_VERSION=${PHP_VERSION-8.0-cli}
1313
ELASTICSEARCH_URL=${ELASTICSEARCH_URL-"$elasticsearch_url"}
1414
elasticsearch_container=${elasticsearch_container-}
1515

.ci/test-matrix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ STACK_VERSION:
33
- 8.0.0-SNAPSHOT
44

55
PHP_VERSION:
6+
- 8.1-cli
67
- 8.0-cli
78
- 7.4-cli
8-
- 7.3-cli
99

1010
TEST_SUITE:
1111
- free

.gitattributes

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,8 @@
55
/util export-ignore
66
/.gitattributes export-ignore
77
/.gitignore export-ignore
8-
/.gitmodules export-ignore
9-
/.php_cs export-ignore
108
/phpstan.neon export-ignore
119
/phpunit-integration-tests.xml export-ignore
1210
/phpunit-yaml-free-tests.xml export-ignore
1311
/phpunit-yaml-platinum-tests.xml export-ignore
1412
/phpunit.xml.dist export-ignore
15-
/ruleset.xml export-ignore

.github/workflows/test.yml

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99

1010
strategy:
1111
matrix:
12-
php-version: [7.3, 7.4, 8.0]
12+
php-version: [7.4, 8.0, 8.1]
1313
os: [ubuntu-latest]
1414
es-version: [8.0.0-SNAPSHOT]
1515

@@ -40,10 +40,6 @@ jobs:
4040
run: |
4141
composer install --prefer-dist
4242
43-
- name: PHP Coding Standards
44-
run: |
45-
composer run-script phpcs
46-
4743
- name: PHP Static Analysis Tool
4844
run: |
4945
composer run-script phpstan
@@ -53,22 +49,4 @@ jobs:
5349
vendor/bin/phpunit -c phpunit.xml.dist
5450
env:
5551
TEST_SUITE: free
56-
57-
- name: Configure sysctl limits
58-
run: |
59-
sudo swapoff -a
60-
sudo sysctl -w vm.swappiness=1
61-
sudo sysctl -w fs.file-max=262144
62-
sudo sysctl -w vm.max_map_count=262144
63-
64-
- name: Runs Elasticsearch ${{ matrix.es-version }}
65-
uses: elastic/elastic-github-actions/elasticsearch@master
66-
with:
67-
stack-version: ${{ matrix.es-version }}
68-
69-
- name: Integration tests
70-
run: |
71-
vendor/bin/phpunit -c phpunit-integration-tests.xml
72-
env:
73-
ELASTICSEARCH_URL: http://localhost:9200
7452

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ build
4545
tests/*-junit.xml
4646

4747
# YAML tests
48-
tests/Elasticsearch/Tests/Yaml
48+
tests/Yaml
4949

5050
# Exclude .ci/make.sh artifcats
5151
.ci/output

.php_cs

Lines changed: 0 additions & 23 deletions
This file was deleted.

BREAKING_CHANGES.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
# 8.0
2+
3+
This major release is a complete new PHP client for Elasticsearch. We build it from scratch!
4+
We tried to reduce the BC breaks as much as possible but there are some big differences :rage:
5+
6+
## Architectural changes:
7+
8+
- we changed the namespace, now everything is under `Elastic\Elasticsearch`;
9+
- we used the [elastic-transport-php](https://github.com/elastic/elastic-transport-php) library
10+
to manage the HTTP requests and responses; This library allows the usage of any [PSR-18](https://www.php-fig.org/psr/psr-18/)
11+
client.
12+
- we changed the response type of each endpoints using a wrapper class of a [PSR-7](https://www.php-fig.org/psr/psr-7/)
13+
response. This class allows the access of the body response as array or object. This means
14+
you can access the API response as in 7.x, no BC break here! :angel:
15+
16+
## Specific changes:
17+
18+
- to be completed
19+
# 7.17
20+
21+
- We changed the signature of `Elasticsearch\Common\EmptyLogger::log` adding the `void` return type.
22+
This change has been needed to support psr/log v3.
23+
124
# 7.4
225

326
- Using a deprecated parameter is notified triggering a [E_USER_DEPRECATED](https://www.php.net/manual/en/errorfunc.constants.php)

CHANGELOG.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,50 @@
1+
## Release 7.17.0
2+
3+
- Allow psr/log v3
4+
[#1184](https://github.com/elastic/elasticsearch-php/pull/1184)
5+
6+
## Release 7.16.0
7+
8+
- Added support of includePortInHostHeader in ClientBuilder::fromConfig
9+
[#1181](https://github.com/elastic/elasticsearch-php/pull/1181)
10+
- Fixed UTF-16 issue in SmartSerializer with single unpaired surrogate in unicode escape
11+
[#1179](https://github.com/elastic/elasticsearch-php/pull/1179)
12+
- Replace trait with abstract class to avoid Deprecated Functionality issue in PHP 8.1
13+
[#1175](https://github.com/elastic/elasticsearch-php/pull/1175)
14+
15+
## Release 7.15.0
16+
17+
- Updated endpoints for Elasticsearch 7.15.0
18+
[995f6d4](https://github.com/elastic/elasticsearch-php/commit/995f6d4bde7de76004e95d7a434b1d59da7a7e75)
19+
20+
## Release 7.14.0
21+
22+
- Usage of psr/log version 2
23+
[#1154](https://github.com/elastic/elasticsearch-php/pull/1154)
24+
- Update search iterators to send `scroll_id` inside the request body
25+
[#1134](https://github.com/elastic/elasticsearch-php/pull/1134)
26+
- Added the `ingest.geoip.downloader.enabled=false` setting for ES
27+
[5867351](https://github.com/elastic/elasticsearch-php/commit/586735109dc18f22bfdf3b73ab0621b37e857be1)
28+
- Removed phpcs for autogenerated files (endpoints)
29+
[651c57b](https://github.com/elastic/elasticsearch-php/commit/651c57b2e6bf98a0fd48220949966e630e5a804a)
30+
31+
## Release 7.13.1
32+
33+
- Added port in url for trace and logger messages
34+
[#1126](https://github.com/elastic/elasticsearch-php/pull/1126)
35+
## Release 7.13.0
36+
37+
- (DOCS) Added the HTTP meta data section
38+
[#1143](https://github.com/elastic/elasticsearch-php/pull/1143)
39+
- Added support for API Compatibility Header
40+
[#1142](https://github.com/elastic/elasticsearch-php/pull/1142)
41+
- (DOCS) Added Helpers section to PHP book
42+
[#1129](https://github.com/elastic/elasticsearch-php/pull/1129)
43+
- Added the API description in phpdoc section for each endpoint
44+
[9e05c81](https://github.com/elastic/elasticsearch-php/commit/9e05c8108b638b60cc676b6a4f4be97c7df9eb64)
45+
- Usage of PHPUnit 9 only + migrated xml configurations
46+
[038b5dd](https://github.com/elastic/elasticsearch-php/commit/038b5dd043dc76b20b9f5f265ea914a38d33568d)
47+
148
## Release 7.12.0
249

350
- Updated the endpoints for ES 7.12 + removed cpliakas/git-wrapper

LICENSE

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
1-
Copyright 2013-2020 Elasticsearch B.V.
1+
Copyright 2022 Elasticsearch B.V (https://www.elastic.co)
22

3-
elasticsearch-php is licensed under the Apache License, Version 2.0
4-
(<LICENSE-APACHE> or <http://www.apache.org/licenses/LICENSE-2.0>) or the GNU
5-
Lesser General Public License, Version 2.1 (<LICENSE-LGPL> or
6-
<https://www.gnu.org/licenses/lgpl-2.1.html>) at your option.
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in
11+
all copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
THE SOFTWARE.

LICENSE-APACHE

Lines changed: 0 additions & 174 deletions
This file was deleted.

0 commit comments

Comments
 (0)