From 9a5a319fab2af99cbdaa71b79690bec2a5fb25f8 Mon Sep 17 00:00:00 2001 From: Brady Vercher Date: Sat, 23 Nov 2024 15:10:41 -0800 Subject: [PATCH] Release 1.0.1. --- CHANGELOG.md | 10 +++++++++- bin/archive | 2 ++ composer.json | 1 + package.json | 2 +- shiny-code.php | 4 ++-- 5 files changed, 15 insertions(+), 4 deletions(-) mode change 100644 => 100755 bin/archive diff --git a/CHANGELOG.md b/CHANGELOG.md index c6715e5..c037949 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,14 @@ ## [Unreleased] +## [1.0.1] - 2024-11-23 + +* Imported PluginSidebar and other components from the editor package to prevent notices in the console after WordPress 6.6. +* Updated Prism.js to version 1.29.0. * Added an admin notice if Shiny Code is missing dependencies. ([#5](https://github.com/cedaro/shiny-code/issues/5)) +* Updated npm and Composer dependencies. +* Fixed coding standards warnings and errors. +* Updated Sass files to fix deprecation warnings and errors. ## [1.0.0] - 2018-12-13 @@ -14,5 +21,6 @@ * First release. -[Unreleased]: https://github.com/cedaro/shiny-code/compare/v1.0.0...HEAD +[Unreleased]: https://github.com/cedaro/shiny-code/compare/v1.0.1...HEAD +[1.0.1]: https://github.com/cedaro/shiny-code/compare/v1.0.0...v1.0.1 [1.0.0]: https://github.com/cedaro/shiny-code/compare/v0.1.0...v1.0.0 diff --git a/bin/archive b/bin/archive old mode 100644 new mode 100755 index c83aa3a..5cd9036 --- a/bin/archive +++ b/bin/archive @@ -13,6 +13,7 @@ const argv = require( 'minimist' )( process.argv.slice( 2 ), { } ); const pluginFile = path.join( __dirname, `../${ config.name }.php` ); +const composerJson = path.join( __dirname, '../composer.json' ); const packageJson = path.join( __dirname, '../package.json' ); let version = argv.version; @@ -23,6 +24,7 @@ if ( ! version ) { replaceInFile( pluginFile, /(Version:[\s]+).+/, `\$1${ version }` ) .then( () => replaceInFile( pluginFile, /VERSION = '.+'/, `VERSION = '${ version }'` ) ) + .then( () => replaceInFile( composerJson, /"version": "[^"]+"/, `"version": "${ version }"` )) .then( () => replaceInFile( packageJson, /"version": "[^"]+"/, `"version": "${ version }"` )) .then( () => spawn( 'composer', [ 'install', '--no-dev', '--prefer-dist' ] ) ) .then( () => spawn( 'composer', [ 'dump-autoload', '--no-dev', '--optimize' ] ) ) diff --git a/composer.json b/composer.json index 1bdc61b..ef0b2d2 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,7 @@ { "name": "cedaro/shiny-code", "description": "A Gutenberg block for editing and displaying code with syntax highlighting.", + "version": "1.0.1", "keywords": [ "wordpress" ], diff --git a/package.json b/package.json index f77b980..8384e34 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "shiny-code", - "version": "1.0.0", + "version": "1.0.1", "description": "A Gutenberg block for editing and displaying code with syntax highlighting.", "homepage": "https://www.cedaro.com/", "license": "GPL-2.0-or-later", diff --git a/shiny-code.php b/shiny-code.php index 777c5e4..0306658 100644 --- a/shiny-code.php +++ b/shiny-code.php @@ -10,7 +10,7 @@ * Plugin Name: Shiny Code * Plugin URI: https://github.com/cedaro/shiny-code * Description: A Gutenberg block for editing and displaying code with syntax highlighting. - * Version: 1.0.0 + * Version: 1.0.1 * Author: Cedaro * Author URI: https://www.cedaro.com/ * License: GPL-2.0-or-later @@ -38,7 +38,7 @@ * * @var string */ -const VERSION = '1.0.0'; +const VERSION = '1.0.1'; /** * Load the Composer autoloader.