Skip to content

Commit 887ac54

Browse files
authored
Merge pull request #448 from beyondwords-io/s-7155-plugin-v600
Plugin v6.0.0
2 parents 00e3635 + 1796300 commit 887ac54

File tree

203 files changed

+16913
-8142
lines changed

Some content is hidden

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

203 files changed

+16913
-8142
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ jobs:
2424
# ######################################
2525
# PHP
2626
# ######################################
27-
- name: Setup PHP 8.0
27+
- name: Setup PHP 8.1
2828
uses: shivammathur/setup-php@v2
2929
# env:
3030
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3131
with:
32-
php-version: '8.0'
32+
php-version: '8.1'
3333
extensions: mbstring intl
3434
tools: composer, wp-cli
3535

@@ -40,7 +40,7 @@ jobs:
4040
uses: actions/cache@v4
4141
with:
4242
path: /tmp/composer-cache
43-
key: ${{ runner.os }}-php8.0-no-dev-${{ hashFiles('**/composer.lock') }}
43+
key: ${{ runner.os }}-php8.1-no-dev-${{ hashFiles('**/composer.lock') }}
4444

4545
- name: Install Composer dependencies (no-dev)
4646
run: composer install --no-dev --ignore-platform-reqs --optimize-autoloader --profile
@@ -184,7 +184,7 @@ jobs:
184184
phpunit-version: ['10']
185185
operating-system: ['ubuntu-latest']
186186
include:
187-
- php-version: '8.0'
187+
- php-version: '8.1'
188188
phpunit-version: '9'
189189
operating-system: ['ubuntu-latest']
190190

@@ -220,14 +220,14 @@ jobs:
220220
uses: actions/cache@v4
221221
with:
222222
path: /tmp/composer-cache
223-
key: ${{ runner.os }}-php8.0-dev-${{ hashFiles('**/composer.lock') }}
223+
key: ${{ runner.os }}-php8.1-dev-${{ hashFiles('**/composer.lock') }}
224224

225225
- name: Install Composer dependencies (dev)
226226
uses: php-actions/composer@v6
227227
with:
228228
dev: yes
229229
args: --ignore-platform-reqs --optimize-autoloader --profile
230-
php_version: '8.0'
230+
php_version: '8.1'
231231

232232
- name: Check PHP Version
233233
run: php -v
@@ -260,7 +260,7 @@ jobs:
260260
run: bash bin/install-wp-tests.sh ${{ env.DB_DATABASE }} ${{ env.DB_USER }} ${{ env.DB_PASSWORD }}
261261

262262
- name: Run PHPUnit Tests
263-
run: ./vendor/bin/phpunit -c ./phpunit.ci.xml
263+
run: ./vendor/bin/phpunit
264264
env:
265265
BEYONDWORDS_API_URL: "${{ secrets.BEYONDWORDS_API_URL }}"
266266
BEYONDWORDS_TESTS_API_KEY: "${{ secrets.BEYONDWORDS_TESTS_API_KEY }}"
@@ -337,11 +337,9 @@ jobs:
337337
fail-fast: false
338338
matrix:
339339
php-version: ['8.4']
340-
phpunit-version: ['10']
341340
operating-system: ['ubuntu-latest']
342341
include:
343-
- php-version: '8.0'
344-
phpunit-version: '9'
342+
- php-version: '8.1'
345343
operating-system: ['ubuntu-latest']
346344

347345
env:
@@ -369,20 +367,20 @@ jobs:
369367
uses: shivammathur/setup-php@v2
370368
with:
371369
php-version: ${{ matrix.php-version }}
372-
tools: phpunit:${{ matrix.phpunit-version }}, composer, wp-cli
370+
tools: composer, wp-cli
373371

374372
- name: Cache Composer dependencies
375373
uses: actions/cache@v4
376374
with:
377375
path: /tmp/composer-cache
378-
key: ${{ runner.os }}-php8.0-dev-${{ hashFiles('**/composer.lock') }}
376+
key: ${{ runner.os }}-php8.1-dev-${{ hashFiles('**/composer.lock') }}
379377

380378
- name: Install Composer dependencies (dev)
381379
uses: php-actions/composer@v6
382380
with:
383381
dev: yes
384382
args: --ignore-platform-reqs --optimize-autoloader --profile
385-
php_version: '8.0'
383+
php_version: '8.1'
386384

387385
- name: Check PHP Version
388386
run: php -v
@@ -514,6 +512,7 @@ jobs:
514512
uses: cypress-io/github-action@v6
515513
with:
516514
browser: chrome
515+
headed: true # Temporarily set to headed to help with debugging
517516
project: ${{ github.workspace }}
518517
# parallel: true # This will only work on Cypress Cloud
519518
install: false

.mockoon/beyondwords-api.json

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,6 @@
119119
"filePath": "",
120120
"sendFileAsBody": false,
121121
"rules": [
122-
{
123-
"target": "header",
124-
"modifier": "Content-Type",
125-
"value": "application/json",
126-
"operator": "equals",
127-
"invert": false
128-
},
129122
{
130123
"target": "header",
131124
"modifier": "X-Api-Key",
@@ -276,7 +269,7 @@
276269
},
277270
{
278271
"uuid": "ecdb7657-8a38-4380-937e-54204529d2e5",
279-
"body": "{\n \"id\": \"9279c9e0-e0b5-4789-9040-f44478ed3e9e\",\n \"title\": \"{{body 'title' 'Title'}}\",\n \"type\": \"auto_segment\",\n \"source_id\": \"{{body 'source_id' '90e4cbff-6382-4a88-adc5-1eb3ffa16c6d'}}\",\n \"source_url\": \"{{body 'source_url' 'https://example.com'}}\",\n \"author\": \"{{body 'author' 'Jane Smith'}}\",\n \"image_url\": \"{{body 'image' 'https://example.com/image.jpg'}}\",\n \"audio\": [\n {\n \"id\": 12192819,\n \"content_type\": \"application/x-mpegURL\",\n \"url\": \"https://beyondwords-cdn-b7fyckdeejejb6dj.a03.azurefd.net/audio/projects/9969/podcasts/3161419/media/e8219ee2f3465d6834984f9ae607a81e.m3u8\",\n \"duration\": 2685,\n \"base64_file\": null,\n \"variant\": \"article\"\n },\n {\n \"id\": 12192811,\n \"content_type\": \"audio/mpeg\",\n \"url\": \"https://beyondwords-cdn-b7fyckdeejejb6dj.a03.azurefd.net/audio/projects/9969/podcasts/3161419/media/fd7108e13a7c7fee6820a1b07bb676e0_compiled.mp3\",\n \"duration\": 2712,\n \"base64_file\": null,\n \"variant\": \"article\"\n }\n ],\n \"video\": [],\n \"ads_enabled\": true,\n \"is_copy\": false,\n \"title_voice_id\": 2517,\n \"summary_voice_id\": 2517,\n \"body_voice_id\": 2517,\n \"title_enabled\": true,\n \"body_enabled\": true,\n \"summary_enabled\": true,\n \"summary_title_enabled\": false,\n \"summarization\": {\n \"audio\": [],\n \"video\": []\n },\n \"background_track\": null,\n \"language\": \"{{body 'language' 'en_US'}}\",\n \"preview_token\": \"d9ce36ea-ddc4-4611-b60c-4f90ed0fc082\",\n \"status\": \"processed\",\n \"metadata\": {\n \"categories\": [\n \"News\", \n \"Audio\"\n ]\n },\n \"created\": \"2022-01-02T23:59:59Z\",\n \"updated\": \"2022-03-04T00:00:00Z\",\n \"published\": true,\n \"publish_date\": \"2099-12-31T23:59:59Z\",\n \"auto_segment_updates_enabled\": false,\n \"ai_summary_updates_enabled\": true,\n \"summary\": \"{{body 'summary' 'Summary'}}\",\n \"body\": \"<p>Test.</p>\",\n \"summarization_settings\": null,\n \"video_settings\": null\n}",
272+
"body": "{\n \"id\": \"9279c9e0-e0b5-4789-9040-f44478ed3e9e\",\n \"title\": \"{{body 'title' 'Title'}}\",\n \"type\": \"auto_segment\",\n \"source_id\": \"{{body 'source_id' '90e4cbff-6382-4a88-adc5-1eb3ffa16c6d'}}\",\n \"source_url\": \"{{body 'source_url' 'https://example.com'}}\",\n \"author\": \"{{body 'author' 'Jane Smith'}}\",\n \"image_url\": \"{{body 'image' 'https://example.com/image.jpg'}}\",\n \"audio\": [\n {\n \"id\": 12192819,\n \"content_type\": \"application/x-mpegURL\",\n \"url\": \"https://beyondwords-cdn-b7fyckdeejejb6dj.a03.azurefd.net/audio/projects/9969/podcasts/3161419/media/e8219ee2f3465d6834984f9ae607a81e.m3u8\",\n \"duration\": 2685,\n \"base64_file\": null,\n \"variant\": \"article\"\n },\n {\n \"id\": 12192811,\n \"content_type\": \"audio/mpeg\",\n \"url\": \"https://beyondwords-cdn-b7fyckdeejejb6dj.a03.azurefd.net/audio/projects/9969/podcasts/3161419/media/fd7108e13a7c7fee6820a1b07bb676e0_compiled.mp3\",\n \"duration\": 2712,\n \"base64_file\": null,\n \"variant\": \"article\"\n }\n ],\n \"video\": [],\n \"ads_enabled\": true,\n \"is_copy\": false,\n \"title_voice_id\": 2517,\n \"summary_voice_id\": 2517,\n \"body_voice_id\": 2517,\n \"title_enabled\": true,\n \"body_enabled\": true,\n \"summary_enabled\": true,\n \"summary_title_enabled\": false,\n \"summarization\": {\n \"audio\": [],\n \"video\": []\n },\n \"background_track\": null,\n \"language\": \"{{body 'language' 'en_US'}}\",\n \"preview_token\": \"d9ce36ea-ddc4-4611-b60c-4f90ed0fc082\",\n \"status\": \"processed\",\n \"metadata\": {\n \"categories\": [\n \"News\", \n \"Audio\"\n ]\n },\n \"created\": \"2022-01-02T23:59:59Z\",\n \"updated\": \"2022-03-04T00:00:00Z\",\n \"published\": true,\n \"publish_date\": \"2099-12-31T23:59:59Z\",\n \"auto_segment_updates_enabled\": true,\n \"ai_summary_updates_enabled\": true,\n \"summary\": \"{{body 'summary' 'Summary'}}\",\n \"body\": \"<p>Test.</p>\",\n \"summarization_settings\": null,\n \"video_settings\": null\n}",
280273
"latency": 0,
281274
"statusCode": 200,
282275
"label": "OK",
@@ -414,7 +407,7 @@
414407
},
415408
{
416409
"uuid": "52762211-f2da-4e53-a68f-74883e69e862",
417-
"body": "{\n \"id\": \"9279c9e0-e0b5-4789-9040-f44478ed3e9e\",\n \"title\": \"{{body 'title' 'Title'}}\",\n \"type\": \"auto_segment\",\n \"source_id\": \"{{body 'source_id' '90e4cbff-6382-4a88-adc5-1eb3ffa16c6d'}}\",\n \"source_url\": \"{{body 'source_url' 'https://example.com'}}\",\n \"author\": \"{{body 'author' 'Jane Smith'}}\",\n \"image_url\": \"{{body 'image' 'https://example.com/image.jpg'}}\",\n \"audio\": [\n {\n \"id\": 12192819,\n \"content_type\": \"application/x-mpegURL\",\n \"url\": \"https://beyondwords-cdn-b7fyckdeejejb6dj.a03.azurefd.net/audio/projects/9969/podcasts/3161419/media/e8219ee2f3465d6834984f9ae607a81e.m3u8\",\n \"duration\": 2685,\n \"base64_file\": null,\n \"variant\": \"article\"\n },\n {\n \"id\": 12192811,\n \"content_type\": \"audio/mpeg\",\n \"url\": \"https://beyondwords-cdn-b7fyckdeejejb6dj.a03.azurefd.net/audio/projects/9969/podcasts/3161419/media/fd7108e13a7c7fee6820a1b07bb676e0_compiled.mp3\",\n \"duration\": 2712,\n \"base64_file\": null,\n \"variant\": \"article\"\n }\n ],\n \"video\": [],\n \"ads_enabled\": true,\n \"is_copy\": false,\n \"title_voice_id\": 2517,\n \"summary_voice_id\": 2517,\n \"body_voice_id\": 2517,\n \"title_enabled\": true,\n \"body_enabled\": true,\n \"summary_enabled\": true,\n \"summary_title_enabled\": false,\n \"summarization\": {\n \"audio\": [],\n \"video\": []\n },\n \"background_track\": null,\n \"language\": \"{{body 'language' 'en_US'}}\",\n \"preview_token\": \"d9ce36ea-ddc4-4611-b60c-4f90ed0fc082\",\n \"status\": \"processed\",\n \"metadata\": {\n \"categories\": [\n \"News\", \n \"Audio\"\n ]\n },\n \"created\": \"2022-01-02T23:59:59Z\",\n \"updated\": \"2022-03-04T00:00:00Z\",\n \"published\": true,\n \"publish_date\": \"2099-12-31T23:59:59Z\",\n \"auto_segment_updates_enabled\": false,\n \"ai_summary_updates_enabled\": true,\n \"summary\": \"{{body 'summary' 'Summary'}}\",\n \"body\": \"<p>Test.</p>\",\n \"summarization_settings\": null,\n \"video_settings\": null\n}",
410+
"body": "{\n \"id\": \"9279c9e0-e0b5-4789-9040-f44478ed3e9e\",\n \"title\": \"{{body 'title' 'Title'}}\",\n \"type\": \"auto_segment\",\n \"source_id\": \"{{body 'source_id' '90e4cbff-6382-4a88-adc5-1eb3ffa16c6d'}}\",\n \"source_url\": \"{{body 'source_url' 'https://example.com'}}\",\n \"author\": \"{{body 'author' 'Jane Smith'}}\",\n \"image_url\": \"{{body 'image' 'https://example.com/image.jpg'}}\",\n \"audio\": [\n {\n \"id\": 12192819,\n \"content_type\": \"application/x-mpegURL\",\n \"url\": \"https://beyondwords-cdn-b7fyckdeejejb6dj.a03.azurefd.net/audio/projects/9969/podcasts/3161419/media/e8219ee2f3465d6834984f9ae607a81e.m3u8\",\n \"duration\": 2685,\n \"base64_file\": null,\n \"variant\": \"article\"\n },\n {\n \"id\": 12192811,\n \"content_type\": \"audio/mpeg\",\n \"url\": \"https://beyondwords-cdn-b7fyckdeejejb6dj.a03.azurefd.net/audio/projects/9969/podcasts/3161419/media/fd7108e13a7c7fee6820a1b07bb676e0_compiled.mp3\",\n \"duration\": 2712,\n \"base64_file\": null,\n \"variant\": \"article\"\n }\n ],\n \"video\": [],\n \"ads_enabled\": true,\n \"is_copy\": false,\n \"title_voice_id\": 2517,\n \"summary_voice_id\": 2517,\n \"body_voice_id\": 2517,\n \"title_enabled\": true,\n \"body_enabled\": true,\n \"summary_enabled\": true,\n \"summary_title_enabled\": false,\n \"summarization\": {\n \"audio\": [],\n \"video\": []\n },\n \"background_track\": null,\n \"language\": \"{{body 'language' 'en_US'}}\",\n \"preview_token\": \"d9ce36ea-ddc4-4611-b60c-4f90ed0fc082\",\n \"status\": \"processed\",\n \"metadata\": {\n \"categories\": [\n \"News\", \n \"Audio\"\n ]\n },\n \"created\": \"2022-01-02T23:59:59Z\",\n \"updated\": \"2022-03-04T00:00:00Z\",\n \"published\": true,\n \"publish_date\": \"2099-12-31T23:59:59Z\",\n \"auto_segment_updates_enabled\": true,\n \"ai_summary_updates_enabled\": true,\n \"summary\": \"{{body 'summary' 'Summary'}}\",\n \"body\": \"<p>Test.</p>\",\n \"summarization_settings\": null,\n \"video_settings\": null\n}",
418411
"latency": 0,
419412
"statusCode": 200,
420413
"label": "OK",
@@ -720,13 +713,6 @@
720713
"filePath": "",
721714
"sendFileAsBody": false,
722715
"rules": [
723-
{
724-
"target": "header",
725-
"modifier": "Content-Type",
726-
"value": "application/json",
727-
"operator": "equals",
728-
"invert": false
729-
},
730716
{
731717
"target": "header",
732718
"modifier": "X-Api-Key",
@@ -962,13 +948,6 @@
962948
"filePath": "",
963949
"sendFileAsBody": false,
964950
"rules": [
965-
{
966-
"target": "header",
967-
"modifier": "Content-Type",
968-
"value": "application/json",
969-
"operator": "equals",
970-
"invert": false
971-
},
972951
{
973952
"target": "header",
974953
"modifier": "X-Api-Key",

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v20.11.0
1+
v24.8.0

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![Github Actions Workflow](https://github.com/beyondwords-io/wordpress-plugin/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/beyondwords-io/wordpress-plugin/actions/workflows/main.yml)
66
[![PHPUnit Code Coverage](https://beyondwords-io.github.io/wordpress-plugin/coverage-badge.svg)](https://beyondwords-io.github.io/wordpress-plugin/dashboard.html)
77
[![Supported WordPress Versions](https://img.shields.io/static/v1?label=&message=5.8+-+6.8&color=blue&logo=wordpress&logoColor=white)](https://wordpress.org/)
8-
[![Supported PHP Versions](https://img.shields.io/static/v1?label=&message=8.0+-+8.4&color=777bb4&logo=php&logoColor=white)](https://www.php.net/)
8+
[![Supported PHP Versions](https://img.shields.io/static/v1?label=&message=8.1+-+8.4&color=777bb4&logo=php&logoColor=white)](https://www.php.net/)
99

1010
## Description
1111

composer.json

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,34 +7,35 @@
77
"require": {
88
"php": ">=8.0",
99
"symfony/dom-crawler": "^5.4",
10-
"symfony/property-access": "^7.1"
10+
"symfony/property-access": "^5.4"
1111
},
1212
"require-dev": {
13-
"automattic/vipwpcs": "^2.3.3",
14-
"behat/behat": "^3.13",
13+
"automattic/vipwpcs": "^3.0.1",
14+
"behat/behat": "^3.24",
1515
"bordoni/phpass": "^0.3.6",
16-
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.2",
17-
"doctrine/instantiator": "^1.5",
18-
"ergebnis/composer-normalize": "2.28.3",
19-
"php-parallel-lint/php-parallel-lint": "^1.3.2",
20-
"phpmd/phpmd": "^2.13",
21-
"phpro/grumphp": "^1.16",
16+
"dealerdirect/phpcodesniffer-composer-installer": "^1.1.2",
17+
"doctrine/instantiator": "^2.0",
18+
"ergebnis/composer-normalize": "^2.48.2",
19+
"php-parallel-lint/php-parallel-lint": "^1.4",
20+
"phpmd/phpmd": "^2.15",
21+
"phpro/grumphp": "^2.15",
2222
"phpunit/phpunit": "^9.6",
23+
"rector/rector": "^2.2",
2324
"rregeer/phpunit-coverage-check": "^0.3.1",
24-
"squizlabs/php_codesniffer": "^3.7.2",
25-
"symfony/css-selector": "^5.4",
26-
"symfony/error-handler": "^5.4",
27-
"symfony/filesystem": "^5.4",
28-
"symfony/finder": "^5.4",
29-
"symfony/http-client": "^5.4",
30-
"symfony/polyfill-mbstring": "^1.27",
31-
"symfony/string": "^5.4",
32-
"symfony/translation-contracts": "^2.5",
33-
"symfony/var-exporter": "^5.4",
34-
"vlucas/phpdotenv": "^5.5",
35-
"wp-cli/wp-cli-bundle": "^2.7.1",
36-
"wp-graphql/wp-graphql-testcase": "^2.3",
37-
"yoast/phpunit-polyfills": "^2.0"
25+
"squizlabs/php_codesniffer": "^3.9.2",
26+
"symfony/css-selector": "^7.3",
27+
"symfony/error-handler": "^7.3",
28+
"symfony/filesystem": "^7.3",
29+
"symfony/finder": "^7.3",
30+
"symfony/http-client": "^7.3",
31+
"symfony/polyfill-mbstring": "^1.33",
32+
"symfony/string": "^7.3",
33+
"symfony/translation-contracts": "^3.6",
34+
"symfony/var-exporter": "^7.3",
35+
"vlucas/phpdotenv": "^5.6",
36+
"wp-cli/wp-cli-bundle": "^2.12",
37+
"wp-phpunit/wp-phpunit": "^5.9",
38+
"yoast/phpunit-polyfills": "^4.0"
3839
},
3940
"prefer-stable": true,
4041
"autoload": {
@@ -52,7 +53,6 @@
5253
"php-parallel-lint/php-parallel-lint": false,
5354
"phpmd/phpmd": true,
5455
"phpro/grumphp": true,
55-
"phpunit/phpunit": true,
5656
"rregeer/phpunit-coverage-check": true,
5757
"squizlabs/php_codesniffer": true,
5858
"symfony/*": false,
@@ -67,8 +67,8 @@
6767
"sort-packages": true
6868
},
6969
"scripts": {
70-
"test:coverage-check": "./vendor/bin/coverage-check ./tests/phpunit/_report/clover.xml 55",
71-
"test:coverage-check-percentage": "./vendor/bin/coverage-check ./tests/phpunit/_report/clover.xml 55 --only-percentage | sed 's/[^0-9.]*//g'",
70+
"test:coverage-check": "./vendor/bin/coverage-check ./tests/phpunit/_report/clover.xml 80",
71+
"test:coverage-check-percentage": "./vendor/bin/coverage-check ./tests/phpunit/_report/clover.xml 80 --only-percentage | sed 's/[^0-9.]*//g'",
7272
"test:phpunit": [
7373
"yarn wp-env run tests-cli --env-cwd=wp-content/plugins/speechkit ./vendor/bin/phpunit -c phpunit.xml",
7474
"@test:coverage-check"

0 commit comments

Comments
 (0)