Skip to content

Commit f879d96

Browse files
committed
Update dependencies
1 parent 6f9f914 commit f879d96

Some content is hidden

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

58 files changed

+345
-226
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes to this project will be documented in this file, per [the Keep a Changelog standard](http://keepachangelog.com/).
44

5+
## [0.6.5] - 2025-10-16
6+
7+
### Changed
8+
9+
- Update dependencies.
10+
511
## [0.6.4] - 2025-05-30
612

713
### Changed

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ No styling is provided other than the essential [Swiper styles](https://swiperjs
1010

1111
The icons are from [Themify Icons](https://themify.me/themify-icons).
1212

13-
## Requirements
14-
15-
* PHP 7.4+
16-
* WordPress 6.1+
17-
1813
## Installation
1914

2015
`composer require pixelalbatross/slider-block`

composer.lock

Lines changed: 110 additions & 82 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

languages/slider-block.pot

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
# Copyright (C) 2024 Pixel Albatross
1+
# Copyright (C) 2025 Pixel Albatross
22
# This file is distributed under the GPL-3.0-or-later.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: Slider Block 0.6.1\n"
5+
"Project-Id-Version: Slider Block 0.6.5\n"
66
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/slider-block\n"
77
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
88
"Language-Team: LANGUAGE <LL@li.org>\n"
99
"MIME-Version: 1.0\n"
1010
"Content-Type: text/plain; charset=UTF-8\n"
1111
"Content-Transfer-Encoding: 8bit\n"
12-
"POT-Creation-Date: 2024-12-07T22:26:37+00:00\n"
12+
"POT-Creation-Date: 2025-10-15T21:56:30+00:00\n"
1313
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14-
"X-Generator: WP-CLI 2.10.0\n"
14+
"X-Generator: WP-CLI 2.12.0\n"
1515
"X-Domain: slider-block\n"
1616

1717
#. Plugin Name of the plugin

phpcs.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter"/>
88
<rule ref="Generic.Commenting.Todo"/>
99

10-
<config name="minimum_supported_wp_version" value="6.5"/>
10+
<config name="minimum_supported_wp_version" value="6.7"/>
1111
<config name="testVersion" value="7.4-"/>
1212

1313
<rule ref="WordPress.WP.I18n">

slider-block.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
* Plugin Name: Slider Block
44
* Description: Display a slider.
55
* Plugin URI: https://pixelalbatross.pt/?utm_source=wp-plugins&utm_medium=slider-block&utm_campaign=plugin-uri
6-
* Requires at least: 6.5
6+
* Requires at least: 6.7
77
* Requires PHP: 7.4
8-
* Version: 0.6.4
8+
* Version: 0.6.5
99
* Author: Pixel Albatross
1010
* Author URI: https://pixelalbatross.pt/?utm_source=wp-plugins&utm_medium=slider-block&utm_campaign=author-uri
1111
* License: GPL-3.0-or-later
@@ -17,7 +17,7 @@
1717
* @package SliderBlock
1818
*/
1919

20-
namespace PixelAlbatross\WP\SliderBlock;
20+
namespace PixelAlbatross\WP\Blocks\Slider;
2121

2222
use YahnisElsts\PluginUpdateChecker\v5\PucFactory;
2323

@@ -26,10 +26,10 @@
2626
die;
2727
}
2828

29-
define( 'PIXALB_SLIDER_BLOCK_PATH', plugin_dir_path( __FILE__ ) );
29+
define( 'PIXELALBATROSS_SLIDER_BLOCK_PATH', plugin_dir_path( __FILE__ ) );
3030

31-
if ( file_exists( PIXALB_SLIDER_BLOCK_PATH . 'vendor/autoload.php' ) ) {
32-
require_once PIXALB_SLIDER_BLOCK_PATH . 'vendor/autoload.php';
31+
if ( file_exists( PIXELALBATROSS_SLIDER_BLOCK_PATH . 'vendor/autoload.php' ) ) {
32+
require_once PIXELALBATROSS_SLIDER_BLOCK_PATH . 'vendor/autoload.php';
3333
}
3434

3535
PucFactory::buildUpdateChecker(
@@ -47,7 +47,7 @@
4747
*/
4848
function init() {
4949

50-
$block_json_files = glob( PIXALB_SLIDER_BLOCK_PATH . 'build/*/block.json' );
50+
$block_json_files = glob( PIXELALBATROSS_SLIDER_BLOCK_PATH . 'build/*/block.json' );
5151

5252
foreach ( $block_json_files as $filename ) {
5353

@@ -59,7 +59,7 @@ function init() {
5959
wp_set_script_translations(
6060
$handle,
6161
'slider-block',
62-
PIXALB_SLIDER_BLOCK_PATH . 'languages'
62+
PIXELALBATROSS_SLIDER_BLOCK_PATH . 'languages'
6363
);
6464
}
6565
}
@@ -73,7 +73,7 @@ function init() {
7373
* @return void
7474
*/
7575
function i18n() {
76-
load_plugin_textdomain( 'slider-block', false, plugin_basename( PIXALB_SLIDER_BLOCK_PATH ) . '/languages' );
76+
load_plugin_textdomain( 'slider-block', false, plugin_basename( PIXELALBATROSS_SLIDER_BLOCK_PATH ) . '/languages' );
7777
}
7878
add_action( 'init', __NAMESPACE__ . '\i18n' );
7979

vendor/autoload.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@
1414
echo $err;
1515
}
1616
}
17-
trigger_error(
18-
$err,
19-
E_USER_ERROR
20-
);
17+
throw new RuntimeException($err);
2118
}
2219

2320
require_once __DIR__ . '/composer/autoload_real.php';

vendor/composer/InstalledVersions.php

Lines changed: 41 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,23 @@
2626
*/
2727
class InstalledVersions
2828
{
29+
/**
30+
* @var string|null if set (by reflection by Composer), this should be set to the path where this class is being copied to
31+
* @internal
32+
*/
33+
private static $selfDir = null;
34+
2935
/**
3036
* @var mixed[]|null
3137
* @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null
3238
*/
3339
private static $installed;
3440

41+
/**
42+
* @var bool
43+
*/
44+
private static $installedIsLocalDir;
45+
3546
/**
3647
* @var bool|null
3748
*/
@@ -309,6 +320,24 @@ public static function reload($data)
309320
{
310321
self::$installed = $data;
311322
self::$installedByVendor = array();
323+
324+
// when using reload, we disable the duplicate protection to ensure that self::$installed data is
325+
// always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not,
326+
// so we have to assume it does not, and that may result in duplicate data being returned when listing
327+
// all installed packages for example
328+
self::$installedIsLocalDir = false;
329+
}
330+
331+
/**
332+
* @return string
333+
*/
334+
private static function getSelfDir()
335+
{
336+
if (self::$selfDir === null) {
337+
self::$selfDir = strtr(__DIR__, '\\', '/');
338+
}
339+
340+
return self::$selfDir;
312341
}
313342

314343
/**
@@ -322,19 +351,27 @@ private static function getInstalled()
322351
}
323352

324353
$installed = array();
354+
$copiedLocalDir = false;
325355

326356
if (self::$canGetVendors) {
357+
$selfDir = self::getSelfDir();
327358
foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
359+
$vendorDir = strtr($vendorDir, '\\', '/');
328360
if (isset(self::$installedByVendor[$vendorDir])) {
329361
$installed[] = self::$installedByVendor[$vendorDir];
330362
} elseif (is_file($vendorDir.'/composer/installed.php')) {
331363
/** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
332364
$required = require $vendorDir.'/composer/installed.php';
333-
$installed[] = self::$installedByVendor[$vendorDir] = $required;
334-
if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
335-
self::$installed = $installed[count($installed) - 1];
365+
self::$installedByVendor[$vendorDir] = $required;
366+
$installed[] = $required;
367+
if (self::$installed === null && $vendorDir.'/composer' === $selfDir) {
368+
self::$installed = $required;
369+
self::$installedIsLocalDir = true;
336370
}
337371
}
372+
if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) {
373+
$copiedLocalDir = true;
374+
}
338375
}
339376
}
340377

@@ -350,7 +387,7 @@ private static function getInstalled()
350387
}
351388
}
352389

353-
if (self::$installed !== array()) {
390+
if (self::$installed !== array() && !$copiedLocalDir) {
354391
$installed[] = self::$installed;
355392
}
356393

vendor/composer/autoload_files.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
$baseDir = dirname($vendorDir);
77

88
return array(
9-
'256558b1ddf2fa4366ea7d7602798dd1' => $vendorDir . '/yahnis-elsts/plugin-update-checker/load-v5p5.php',
9+
'f6d4f6bcee7247df6b777884c3e22f98' => $vendorDir . '/yahnis-elsts/plugin-update-checker/load-v5p6.php',
1010
);

vendor/composer/autoload_static.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class ComposerStaticInitb4e7d63a74e9e472e453db6109ded51b
88
{
99
public static $files = array (
10-
'256558b1ddf2fa4366ea7d7602798dd1' => __DIR__ . '/..' . '/yahnis-elsts/plugin-update-checker/load-v5p5.php',
10+
'f6d4f6bcee7247df6b777884c3e22f98' => __DIR__ . '/..' . '/yahnis-elsts/plugin-update-checker/load-v5p6.php',
1111
);
1212

1313
public static $classMap = array (

0 commit comments

Comments
 (0)