Skip to content

Commit 02c9fff

Browse files
authored
Merge pull request #2385 from devlinjunker/master-merge
[Vue Rewrite] Upmerge Branch from Master to clean up Merge Conflicts
2 parents 94f04d4 + 3e35d78 commit 02c9fff

Some content is hidden

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

53 files changed

+859
-408
lines changed

.eslintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module.exports = {
1919
'@nextcloud',
2020
'plugin:@typescript-eslint/recommended',
2121
],
22-
ignorePatterns: ['*.d.ts'],
22+
ignorePatterns: ['*.d.ts', 'l10n/*.js'],
2323
rules: {
2424
'no-console': 'warn',
2525
'@typescript-eslint/no-var-requires': 'off',

.github/workflows/api-integration-tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
experimental: true
4444
steps:
4545
- name: Checkout
46-
uses: actions/checkout@v3
46+
uses: actions/checkout@v4
4747
with:
4848
submodules: recursive
4949

.github/workflows/api-php-static-code-check.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
name: "phpstan: Nextcloud ${{ matrix.nextcloud }} with ${{ matrix.php-versions }}"
1919
steps:
2020
- name: Checkout
21-
uses: actions/checkout@v3
21+
uses: actions/checkout@v4
2222
- name: Set up php
2323
uses: shivammathur/setup-php@master
2424
with:

.github/workflows/api-php-tests.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,15 @@ jobs:
1414
database: ['sqlite']
1515
experimental: [false]
1616
codecoverage: [false]
17+
include:
18+
- php-versions: 8.2
19+
nextcloud: stable27
20+
database: sqlite
21+
experimental: false
22+
codecoverage: true
1723
steps:
1824
- name: Checkout
19-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
2026
with:
2127
fetch-depth: 2 # https://github.com/codecov/codecov-action/issues/190#issuecomment-790729633
2228

.github/workflows/build-release.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@ jobs:
1919
database: ['sqlite']
2020
steps:
2121
- name: Checkout
22-
uses: actions/checkout@v3
22+
uses: actions/checkout@v4
2323

2424
- name: Setup PHP
25-
uses: shivammathur/setup-php@afefcaf556d98dc7896cca380e181decb609ca44
25+
uses: shivammathur/setup-php@7fdd3ece872ec7ec4c098ae5ab7637d5e0a96067 #2.26.0
2626
with:
2727
php-version: ${{ matrix.php-versions }}
2828
extensions: pdo_sqlite,pdo_mysql,pdo_pgsql,gd,zip
2929
coverage: none
3030

3131
- name: Set up server non MySQL
32-
uses: SMillerDev/nextcloud-actions/setup-nextcloud@main
32+
uses: SMillerDev/nextcloud-actions/setup-nextcloud@1e38cb369e2193642279c64ee140fc93ddd4fa77
3333
with:
3434
cron: false
3535
version: ${{ matrix.nextcloud }}
@@ -39,7 +39,7 @@ jobs:
3939
run: make
4040

4141
- name: Configure server with app
42-
uses: SMillerDev/nextcloud-actions/setup-nextcloud-app@main
42+
uses: SMillerDev/nextcloud-actions/setup-nextcloud-app@1e38cb369e2193642279c64ee140fc93ddd4fa77
4343
with:
4444
app: ${{ env.APP_NAME }}
4545
check-code: false
@@ -52,7 +52,7 @@ jobs:
5252
app_public_crt: ${{ secrets.APP_PUBLIC_CRT }}
5353

5454
- name: Upload app tarball to release
55-
uses: svenstaro/upload-release-action@2b9d2847a97b04d02ad5c3df2d3a27baa97ce689
55+
uses: svenstaro/upload-release-action@1beeb572c19a9242f4361f4cee78f8e0d9aec5df
5656
id: attach_to_release
5757
with:
5858
repo_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/documentation.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout master
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616

1717
- name: Deploy docs
1818
uses: mhausenblas/mkdocs-deploy-gh-pages@master

.github/workflows/frontend-nodejs-tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
experimental: [false]
1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919

2020
- name: Setup PHP
2121
uses: shivammathur/setup-php@v2

.github/workflows/lint-eslint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
steps:
2424
- name: Checkout
25-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
2626

2727
- name: Read package.json node and npm engines version
2828
uses: skjnldsv/[email protected]

.github/workflows/post-merge-tasks.yml

+9-3
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,20 @@ jobs:
77
php:
88
runs-on: ubuntu-latest
99
continue-on-error: false
10-
name: "Coverage: Nextcloud PHP ${{ matrix.php-versions }}"
10+
name: "Coverage: Nextcloud ${{ matrix.nextcloud }} PHP ${{ matrix.php-version }}"
1111
strategy:
1212
matrix:
1313
nextcloud: ['stable27']
14+
codecoverage: [true]
15+
php-version: ["8.1"]
1416
steps:
1517
- name: Checkout
16-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1719

1820
- name: Setup PHP
1921
uses: shivammathur/setup-php@v2
2022
with:
21-
php-version: '8.1'
23+
php-version: ${{ matrix.php-version }}
2224

2325
### Back to normal setup
2426
- name: Set up server non MySQL
@@ -39,7 +41,11 @@ jobs:
3941

4042
- name: Prep PHP tests
4143
run: cd ../server/apps/news && make php-test-dependencies
44+
4245
- name: Unittests
4346
run: cd ../server/apps/news && make unit-test
47+
env:
48+
CODECOVERAGE: ${{ matrix.codecoverage }}
49+
4450
- name: Upload codecoverage
4551
run: cd ../server/apps/news && bash <(curl -s https://codecov.io/bash) -f build/php-unit.clover

.github/workflows/updater-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
experimental: [false]
2323
steps:
2424
- name: Checkout
25-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
2626
with:
2727
submodules: recursive
2828

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ coverage
1313

1414
#bats
1515
tests/api/helpers/settings-override.bash
16+
tests/test_helper/feeds/test.xml
17+
tests/test_helper/feeds/feed1.xml
18+
tests/test_helper/feeds/feed2.xml
1619

1720
#bats
1821
tests/api/helpers/settings-override.bash

CHANGELOG.md

+29-5
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,37 @@ All notable changes to this project will be documented in this file.
33
The format is mostly based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), older entries don't fully match.
44

55
# Unreleased
6-
## [23.x.x]
6+
## [25.x.x]
77
### Changed
88
- Vue Rewrite
9-
- Add Typescript
10-
- Add Jest for Unit Tests
9+
# Releases
10+
## [24.x.x]
11+
### Changed
12+
- Set User Agent for curl in Scraper
13+
14+
### Fixed
1115

1216
# Releases
17+
## [24.0.0] - 2023-09-26
18+
No major changes compared to 24.0.0-beta1.
19+
20+
## [24.0.0-beta1] - 2023-08-26
21+
### Changed
22+
- Drop support for Nextcloud 25, Supported: 26, 27 (#2316)
23+
- Add a new command for occ `./occ news:updater:job` allows to check and reset the update job (#2166)
24+
- Check for available http(s) compression options and use them (gzip, deflate, brotli) (#2328)
25+
- Change and unify [cache](https://nextcloud.github.io/news/install/#cache) to use the instance ID of Nextcloud (#2331)
26+
27+
## [23.0.0] - 2023-08-16
28+
No notable changes compared to 23.0.0-beta1
29+
30+
## [23.0.0-beta1] - 2023-08-09
31+
### Changed
32+
- Drop support for PHP 7.4 new min. version is php 8.0 (#2237)
33+
- Upgrade feed-io to v5.1.3 (#2238)
34+
### Fixed
35+
- Some feeds missing items (#2236)
36+
1337
## [22.0.0] - 2023-07-23
1438
### Changed
1539
- Support deflate and gzip compression for HTTP response bodies (#2269)
@@ -48,15 +72,15 @@ The format is mostly based on [Keep a Changelog](https://keepachangelog.com/en/1
4872
- Use httpLastModified field for If-Modified-Since header when fetching feed updates (#2119)
4973

5074
## [21.1.0] - 2023-03-20
51-
No notable changes compared 21.1.0-beta1
75+
No notable changes compared to 21.1.0-beta1
5276

5377
## [21.1.0-beta1] - 2023-03-13
5478
### Changed
5579
- Remove unused background job OCA\News\Cron\Updater (#2137)
5680
- (Nextcloud 26+) Add info card to the admin settings, showing last job execution (#2141)
5781

5882
## [21.0.0] - 2023-02-28
59-
No notable changes compared 21.0.0-beta1
83+
No notable changes compared to 21.0.0-beta1
6084

6185
## [21.0.0-beta1] - 2023-02-14
6286
### Changed

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Read this when you want to:
2525
* Disable all browser add-ons to make sure that it's not a plugin's fault (adblockers, especially cosmetic filters)
2626
* Clear your PHP opcode cache if you use any by restarting your webserver.
2727
* [Check if they have already been reported](https://github.com/nextcloud/news/issues?state=open)
28-
* [Check if your problem is covered in the FAQ section]( https://nextcloud.github.io/news/faq)
28+
* [Check if your problem is covered in the Troubleshooting section](https://nextcloud.github.io/news/troubleshooting/)
2929

3030
### Debugging issues
3131
* Enable debug mode in your **config/config.php**:

appinfo/info.xml

+3-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Create a [feature request](https://github.com/nextcloud/news/discussions/new)
2121
2222
Report a [feed issue](https://github.com/nextcloud/news/discussions/new)
2323
]]></description>
24-
<version>22.0.0</version>
24+
<version>24.0.0</version>
2525
<licence>agpl</licence>
2626
<author>Benjamin Brahmer</author>
2727
<author>Sean Molenaar</author>
@@ -43,7 +43,7 @@ Report a [feed issue](https://github.com/nextcloud/news/discussions/new)
4343
<screenshot small-thumbnail="https://raw.githubusercontent.com/nextcloud/news/master/screenshots/2-small.png">https://raw.githubusercontent.com/nextcloud/news/master/screenshots/2.png</screenshot>
4444
<screenshot small-thumbnail="https://raw.githubusercontent.com/nextcloud/news/master/screenshots/3-small.png">https://raw.githubusercontent.com/nextcloud/news/master/screenshots/3.png</screenshot>
4545
<dependencies>
46-
<php min-version="7.4" min-int-size="64"/>
46+
<php min-version="8.0" min-int-size="64"/>
4747
<database min-version="10">pgsql</database>
4848
<database>sqlite</database>
4949
<database min-version="8.0">mysql</database>
@@ -75,6 +75,7 @@ Report a [feed issue](https://github.com/nextcloud/news/discussions/new)
7575
<command>OCA\News\Command\Updater\UpdateUser</command>
7676
<command>OCA\News\Command\Updater\BeforeUpdate</command>
7777
<command>OCA\News\Command\Updater\AfterUpdate</command>
78+
<command>OCA\News\Command\Updater\Job</command>
7879
<command>OCA\News\Command\Config\FolderList</command>
7980
<command>OCA\News\Command\Config\FolderAdd</command>
8081
<command>OCA\News\Command\Config\FolderDelete</command>

composer.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"ezyang/htmlpurifier": "^4.16.0",
4545
"pear/net_url2": "^2.2.2",
4646
"riimu/kit-pathjoin": "^1.2.0",
47-
"debril/feed-io": "^v4.9.12",
47+
"debril/feed-io": "^v5.3.1",
4848
"arthurhoaro/favicon": "^1.3.3",
4949
"fivefilters/readability.php": "^3.1",
5050
"ext-json": "*",
@@ -56,14 +56,14 @@
5656
"require-dev": {
5757
"phpunit/phpunit": "9.6.*",
5858
"squizlabs/php_codesniffer": "^3.7.2",
59-
"phpstan/phpstan": "^1.10.26",
60-
"phpstan/phpstan-doctrine": "^1.3.40",
59+
"phpstan/phpstan": "^1.10.39",
60+
"phpstan/phpstan-doctrine": "^1.3.43",
6161
"phpstan/phpstan-strict-rules": "^1.5.1",
62-
"phpstan/phpstan-phpunit": "^1.3.13",
62+
"phpstan/phpstan-phpunit": "^1.3.15",
6363
"phpstan/extension-installer": "^1.3.1",
6464
"phpstan/phpstan-deprecation-rules": "^1.1",
6565
"guzzlehttp/guzzle": "^7.3.0",
66-
"doctrine/dbal": "^3.6.5",
66+
"doctrine/dbal": "^3.7.1",
6767
"symfony/console": "^4.4.19",
6868
"psr/log": "^1.1.0"
6969
},

0 commit comments

Comments
 (0)