Skip to content

Commit

Permalink
Update version support
Browse files Browse the repository at this point in the history
Fixes #16
  • Loading branch information
lukasbestle committed Mar 6, 2024
1 parent 6827de0 commit 06581c5
Show file tree
Hide file tree
Showing 4 changed files with 97 additions and 39 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Versions for Kirby 3
# Versions for Kirby

[![Kirby 3.7.0+](https://img.shields.io/badge/Kirby-3.7.0%2B-green)](https://getkirby.com)
[![MIT license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE.md)
[![Release](https://img.shields.io/github/v/release/lukasbestle/kirby-versions)](https://github.com/lukasbestle/kirby-versions/releases/latest)
[![CI Status](https://img.shields.io/github/actions/workflow/status/lukasbestle/kirby-versions/ci.yml?branch=main&label=CI)](https://github.com/lukasbestle/kirby-versions/actions?query=workflow%3ACI+branch%3Amain)
[![Coverage Status](https://img.shields.io/codecov/c/gh/lukasbestle/kirby-versions?token=IBYEIB22SM)](https://codecov.io/gh/lukasbestle/kirby-versions)

> Keep track of content changes and switch between different versions from the Kirby 3 Panel
> Keep track of content changes and switch between different versions from the Kirby Panel
![Screenshot of the Versions view in the Kirby Panel](screenshot.png)

Expand Down Expand Up @@ -38,8 +38,8 @@ This plugin is made for you if you have one or multiple of the use cases describ

## Requirements

- Kirby 3.7.0+
- PHP 8.0+
- Kirby 4.0.0+ (version 1.1.0 supports Kirby 3.7.0+)
- PHP 8.1+
- Git 2.5+ (ideally newer for better reliability)

Support for older Kirby versions is provided by previous versions of this plugin. I recommend to update your Kirby installation to benefit from fixes and improvements both in Kirby and in this plugin.
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lukasbestle/kirby-versions",
"description": "Versions Plugin for Kirby 3",
"description": "Versions Plugin for Kirby",
"license": "MIT",
"type": "kirby-plugin",
"version": "1.1.0",
Expand All @@ -11,8 +11,8 @@
}
],
"require": {
"php": ">=8.0.0 <8.4.0",
"getkirby/cms": "^3.7",
"php": ">=8.1.0 <8.4.0",
"getkirby/cms": "^4.0",
"getkirby/composer-installer": "^1.1"
},
"minimum-stability": "RC",
Expand Down
116 changes: 87 additions & 29 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* Kirby Versions Plugin
* Keep track of content changes and switch between
* different versions from the Kirby 3 Panel
* different versions from the Kirby Panel
*
* @package Kirby Versions Plugin
* @author Lukas Bestle <[email protected]>
Expand All @@ -22,8 +22,8 @@
if (
$kirbyVersion !== null &&
(
version_compare($kirbyVersion, '3.7.0-rc.1', '<') === true ||
version_compare($kirbyVersion, '4.0.0-alpha', '>=') === true
version_compare($kirbyVersion, '4.0.0-rc.1', '<') === true ||
version_compare($kirbyVersion, '5.0.0-alpha', '>=') === true
)
) {
throw new Exception(
Expand Down

0 comments on commit 06581c5

Please sign in to comment.