From 6ca4d6f229bcd9ce94dceca939ae95ec8a35eac2 Mon Sep 17 00:00:00 2001 From: Ricardo Aragon Date: Wed, 11 Jan 2023 18:40:13 -0400 Subject: [PATCH 1/3] chore: replace strftime by date for php 8.1 compatibility --- inc/dspace/class-admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/dspace/class-admin.php b/inc/dspace/class-admin.php index b57ab76..4d2aceb 100644 --- a/inc/dspace/class-admin.php +++ b/inc/dspace/class-admin.php @@ -112,7 +112,7 @@ public function display() { $this->displayTextInput( 'pb_publisher', getset( $metadata, 'pb_publisher', '' ), __( 'Publisher', 'excalibur' ), null, false ); // SWORD: Date Available - $this->displayTextInput( 'pb_publication_date', ( ! empty( $metadata['pb_publication_date'] ) ) ? strftime( '%Y-%m-%d', $metadata['pb_publication_date'] ) : '', __( 'Publication Date', 'excalibur' ) ); + $this->displayTextInput( 'pb_publication_date', ( ! empty( $metadata['pb_publication_date'] ) ) ? date( 'Y-m-d', $metadata['pb_publication_date'] ) : '', __( 'Publication Date', 'excalibur' ) ); // SWORD: Abstract $this->displayTextArea( 'pb_about_50', getset( $metadata, 'pb_about_50', '' ), __( 'Short Description', 'excalibur' ) ); From 9c6cdc113704fae1744032c07b604e22cf8b4997 Mon Sep 17 00:00:00 2001 From: Steel Wagstaff Date: Mon, 16 Jan 2023 12:09:18 -0800 Subject: [PATCH 2/3] Use Node 18 --- .github/workflows/build-and-lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-lint.yml b/.github/workflows/build-and-lint.yml index e56d11c..804e418 100644 --- a/.github/workflows/build-and-lint.yml +++ b/.github/workflows/build-and-lint.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node: [ '14', '16', '18' ] + node: [ '18' ] name: Node ${{ matrix.node }} steps: - uses: actions/checkout@v3 From b849a4dae29517b024bfa06016687f1f305c1f18 Mon Sep 17 00:00:00 2001 From: SteelWagstaff Date: Mon, 16 Jan 2023 12:13:15 -0800 Subject: [PATCH 3/3] Use Node 18 & bump version --- README.md | 8 ++++---- excalibur.php | 2 +- package-lock.json | 2 +- package.json | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index c5f650c..41f8e22 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ **Tags:** publishing, SWORD, libraries, repositories \ **Requires at least:** 6.1.1 \ **Tested up to:** 6.1.1 \ -**Stable tag:** 0.5.0 \ +**Stable tag:** 0.6.0 \ **License:** GPLv3 or later, New BSD License \ **License URI:** http://www.gnu.org/licenses/gpl-2.0.html @@ -55,6 +55,6 @@ Or, download the latest version from the releases page and unzip it into your Wo ## Changelog -### 0.5.0 -* See https://github.com/pressbooks/excalibu/releases/tag/0.5.0 -* Full release history at https://github.com/pressbooks/excalibu/releases/ +### 0.6.0 +* See https://github.com/pressbooks/excalibur/releases/tag/0.6.0 +* Full release history at https://github.com/pressbooks/excalibur/releases/ diff --git a/excalibur.php b/excalibur.php index 70ae4a0..c271986 100644 --- a/excalibur.php +++ b/excalibur.php @@ -5,7 +5,7 @@ GitHub Plugin URI: pressbooks/excalibur Release Asset: true Description: Excalibur is a SWORD protocol client for Pressbooks. -Version: 0.5.0 +Version: 0.6.0 Author: Pressbooks (Book Oven Inc.) Author URI: https://pressbooks.org Requires PHP: 8.0 diff --git a/package-lock.json b/package-lock.json index 61d061b..2c3f29f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "pressbooks-build-tools": "^4.0.0" }, "engines": { - "node": ">= 14" + "node": ">= 18" } }, "node_modules/@ampproject/remapping": { diff --git a/package.json b/package.json index c7bd33a..30afd3c 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "lint:fix-styles": "stylelint \"assets/styles/**/*.scss\" scss --fix" }, "engines": { - "node": ">= 14" + "node": ">= 18" }, "dependencies": { "select2": "^4.0.13"