From b334d363612276408f577416fadbf373f4f9e584 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Jake=C5=A1?= Date: Sat, 1 Aug 2026 09:58:06 +0200 Subject: [PATCH 1/4] Prepare release 3.0.0-rc.8 --- packages/mysql-on-sqlite/src/version.php | 2 +- packages/plugin-sqlite-database-integration/load.php | 2 +- packages/plugin-sqlite-database-integration/readme.txt | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/mysql-on-sqlite/src/version.php b/packages/mysql-on-sqlite/src/version.php index bb54d64dc..e436dd0e7 100644 --- a/packages/mysql-on-sqlite/src/version.php +++ b/packages/mysql-on-sqlite/src/version.php @@ -5,4 +5,4 @@ * * This constant needs to be updated on plugin release! */ -define( 'SQLITE_DRIVER_VERSION', '3.0.0-rc.7' ); +define( 'SQLITE_DRIVER_VERSION', '3.0.0-rc.8' ); diff --git a/packages/plugin-sqlite-database-integration/load.php b/packages/plugin-sqlite-database-integration/load.php index 2546fb5a7..ba8e6f5d8 100644 --- a/packages/plugin-sqlite-database-integration/load.php +++ b/packages/plugin-sqlite-database-integration/load.php @@ -3,7 +3,7 @@ * Plugin Name: SQLite Database Integration * Description: SQLite database driver drop-in. * Author: The WordPress Team - * Version: 3.0.0-rc.7 + * Version: 3.0.0-rc.8 * Requires PHP: 7.2 * Network: true * Textdomain: sqlite-database-integration diff --git a/packages/plugin-sqlite-database-integration/readme.txt b/packages/plugin-sqlite-database-integration/readme.txt index d19a6521c..357e73b95 100644 --- a/packages/plugin-sqlite-database-integration/readme.txt +++ b/packages/plugin-sqlite-database-integration/readme.txt @@ -4,7 +4,7 @@ Contributors: wordpressdotorg, aristath, janjakes, zieladam, berislav.grgic Requires at least: 6.4 Tested up to: 7.0 Requires PHP: 7.2 -Stable tag: 3.0.0-rc.7 +Stable tag: 3.0.0-rc.8 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Tags: performance, database @@ -44,6 +44,10 @@ with SQLite syntax and behavior. == Changelog == += 3.0.0-rc.8 = + +* (no changes listed) + = 3.0.0-rc.7 = * Preserve configured SQLite journal mode in driver wrapper ([#447](https://github.com/WordPress/sqlite-database-integration/pull/447)) From 1bae2bdc9fa0b244a61bae6d7c651ac3e7f7b0e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Jake=C5=A1?= Date: Sat, 1 Aug 2026 10:15:31 +0200 Subject: [PATCH 2/4] Generate release changelogs from commit ranges Fetch the previous release tag explicitly, then map first-parent commits since that tag to their merged pull requests. This avoids missing local tags and timestamp boundary errors while preserving PR-based changelog entries. --- bin/prepare-release.sh | 51 ++++++++++++++++++++++++++++++++---------- 1 file changed, 39 insertions(+), 12 deletions(-) diff --git a/bin/prepare-release.sh b/bin/prepare-release.sh index 5170291dc..ca14eb60f 100755 --- a/bin/prepare-release.sh +++ b/bin/prepare-release.sh @@ -19,7 +19,8 @@ fail() { exit 1 } -REPO_URL="https://github.com/WordPress/sqlite-database-integration" +REPO="WordPress/sqlite-database-integration" +REPO_URL="https://github.com/$REPO" VERSION_PHP="packages/mysql-on-sqlite/src/version.php" LOAD_PHP="packages/plugin-sqlite-database-integration/load.php" README_TXT="packages/plugin-sqlite-database-integration/readme.txt" @@ -58,19 +59,45 @@ git pull --ff-only origin trunk --quiet || fail "trunk is not up to date with or LATEST_TAG="v$CURRENT_VERSION" echo "Generating changelog from merged PRs since $LATEST_TAG..." +git fetch --quiet origin "refs/tags/$LATEST_TAG:refs/tags/$LATEST_TAG" \ + || fail "Failed to fetch release tag $LATEST_TAG from origin." +git merge-base --is-ancestor "$LATEST_TAG" origin/trunk \ + || fail "Release tag $LATEST_TAG is not an ancestor of origin/trunk." + +COMMITS="$(git rev-list --first-parent "$LATEST_TAG..origin/trunk")" CHANGELOG="" -if git rev-parse "$LATEST_TAG" >/dev/null 2>&1; then - TAG_TIMESTAMP="$(git log -1 --format='%aI' "$LATEST_TAG")" - - CHANGELOG="$(gh pr list \ - --state merged \ - --base trunk \ - --search "merged:>$TAG_TIMESTAMP" \ - --limit 100 \ - --json number,title,mergedAt \ - --jq "sort_by(.mergedAt) | reverse | .[] - | \"* \\(.title) ([#\\(.number)]($REPO_URL/pull/\\(.number)))\"")" +if [ -n "$COMMITS" ]; then + QUERY='query($owner: String!, $name: String!) { + repository(owner: $owner, name: $name) {' + while IFS= read -r commit; do + QUERY="$QUERY + commit_$commit: object(oid: \"$commit\") { + ... on Commit { + associatedPullRequests(first: 100) { + nodes { number title mergedAt baseRefName } + } + } + }" + done <<< "$COMMITS" + QUERY="$QUERY + } + }" + + if ! CHANGELOG="$(gh api graphql \ + -f query="$QUERY" \ + -F owner="${REPO%%/*}" \ + -F name="${REPO#*/}" \ + --jq "[.data.repository[] + | .associatedPullRequests.nodes[] + | select(.mergedAt != null and .baseRefName == \"trunk\")] + | unique_by(.number) + | sort_by(.mergedAt) + | reverse + | .[] + | \"* \\(.title) ([#\\(.number)]($REPO_URL/pull/\\(.number)))\"")"; then + fail "Failed to generate changelog from merged pull requests." + fi fi if [ -z "$CHANGELOG" ]; then From 051abf3e50d1238727d0449071cbe3765f3ed61f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Jake=C5=A1?= Date: Sat, 1 Aug 2026 10:16:08 +0200 Subject: [PATCH 3/4] Add 3.0.0-rc.8 changelog List the eight pull requests merged since v3.0.0-rc.7. --- packages/plugin-sqlite-database-integration/readme.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/plugin-sqlite-database-integration/readme.txt b/packages/plugin-sqlite-database-integration/readme.txt index 357e73b95..74cbec852 100644 --- a/packages/plugin-sqlite-database-integration/readme.txt +++ b/packages/plugin-sqlite-database-integration/readme.txt @@ -46,7 +46,14 @@ with SQLite syntax and behavior. = 3.0.0-rc.8 = -* (no changes listed) +* Preserve aliases in UPDATE JOIN translation ([#462](https://github.com/WordPress/sqlite-database-integration/pull/462)) +* Restrict SQLite installation permissions ([#464](https://github.com/WordPress/sqlite-database-integration/pull/464)) +* Improve string escaping ([#466](https://github.com/WordPress/sqlite-database-integration/pull/466)) +* Stabilize WordPress E2E tests ([#459](https://github.com/WordPress/sqlite-database-integration/pull/459)) +* Address WordPress PHPUnit test fails: charset detection, length validation etc ([#331](https://github.com/WordPress/sqlite-database-integration/pull/331)) +* User defined REVERSE() function Unicode support 🎉 ([#453](https://github.com/WordPress/sqlite-database-integration/pull/453)) +* Simplify the MySQL-on-SQLite driver API ([#449](https://github.com/WordPress/sqlite-database-integration/pull/449)) +* Add WordPress 7.0 compatibility ([#450](https://github.com/WordPress/sqlite-database-integration/pull/450)) = 3.0.0-rc.7 = From 4c2b2e4fb46bfbe499e6d302763379b2562eedb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Jake=C5=A1?= Date: Sat, 1 Aug 2026 10:49:42 +0200 Subject: [PATCH 4/4] Improve changelog --- packages/plugin-sqlite-database-integration/readme.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/plugin-sqlite-database-integration/readme.txt b/packages/plugin-sqlite-database-integration/readme.txt index 74cbec852..ae7a6fe95 100644 --- a/packages/plugin-sqlite-database-integration/readme.txt +++ b/packages/plugin-sqlite-database-integration/readme.txt @@ -46,12 +46,12 @@ with SQLite syntax and behavior. = 3.0.0-rc.8 = -* Preserve aliases in UPDATE JOIN translation ([#462](https://github.com/WordPress/sqlite-database-integration/pull/462)) +* Preserve aliases in `UPDATE JOIN` translation ([#462](https://github.com/WordPress/sqlite-database-integration/pull/462)) * Restrict SQLite installation permissions ([#464](https://github.com/WordPress/sqlite-database-integration/pull/464)) * Improve string escaping ([#466](https://github.com/WordPress/sqlite-database-integration/pull/466)) * Stabilize WordPress E2E tests ([#459](https://github.com/WordPress/sqlite-database-integration/pull/459)) * Address WordPress PHPUnit test fails: charset detection, length validation etc ([#331](https://github.com/WordPress/sqlite-database-integration/pull/331)) -* User defined REVERSE() function Unicode support 🎉 ([#453](https://github.com/WordPress/sqlite-database-integration/pull/453)) +* Add Unicode support to the user-defined `REVERSE()` function ([#453](https://github.com/WordPress/sqlite-database-integration/pull/453)) * Simplify the MySQL-on-SQLite driver API ([#449](https://github.com/WordPress/sqlite-database-integration/pull/449)) * Add WordPress 7.0 compatibility ([#450](https://github.com/WordPress/sqlite-database-integration/pull/450))