From 2859897a26b469bfee167bdad2756b51824c94b3 Mon Sep 17 00:00:00 2001 From: Shea Bunge Date: Tue, 7 Nov 2023 00:41:13 +1100 Subject: [PATCH] Update changelog and version number to version 3.6.0. --- CHANGELOG.md | 4 ++- code-snippets.php | 6 ++-- package-lock.json | 16 ++-------- package.json | 2 +- readme.txt | 76 ++++++++++++----------------------------------- 5 files changed, 28 insertions(+), 76 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b9f58a2..d565a516 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## 3.6.0-beta.1 (18 Oct 2023) +## 3.6.0 (07 Nov 2023) * Updated minimum PHP requirement to 7.4. * Added: Ability to authenticate with Code Snippets Cloud using OAuth. (PRO) @@ -13,6 +13,8 @@ * Improved: Added debug settings menu for manually performing problem-solving actions. * Fixed: Moved active status border on edit name field to left-hand side. * Added: Filter to disable scroll-into-view functionality for edit page notices. +* Fixed: New notices will not scroll if already at top of page. +* Fixed: Potential CSRF vulnerability allowing an authenticated user to reset settings. ## 3.5.1 (15 Sep 2023) * Fixed: Undefined array key error when accessing plugin settings page. (PRO) diff --git a/code-snippets.php b/code-snippets.php index 969fd61b..8ce9dc4a 100644 --- a/code-snippets.php +++ b/code-snippets.php @@ -8,11 +8,11 @@ * License: GPL-2.0-or-later * License URI: license.txt * Text Domain: code-snippets - * Version: 3.6.0-beta.2 + * Version: 3.6.0 * Requires PHP: 7.4 * Requires at least: 5.0 * - * @version 3.6.0-beta.2 + * @version 3.6.0 * @package Code_Snippets * @author Shea Bunge * @copyright 2012-2023 Code Snippets Pro @@ -37,7 +37,7 @@ * * @const string */ - define( 'CODE_SNIPPETS_VERSION', '3.6.0-beta.2' ); + define( 'CODE_SNIPPETS_VERSION', '3.6.0' ); /** * The full path to the main file of this plugin. diff --git a/package-lock.json b/package-lock.json index 2d8e8f47..68f895ec 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "code-snippets", - "version": "3.6.0-beta.2", + "version": "3.6.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "code-snippets", - "version": "3.6.0-beta.2", + "version": "3.6.0", "license": "GPL-2.0-or-later", "dependencies": { "@codemirror/fold": "^0.19.3", @@ -6845,12 +6845,6 @@ "node": ">=0.3.1" } }, - "node_modules/diff-match-patch": { - "version": "1.0.5", - "resolved": "http://artifact-repo.hq.local:8081/nexus/content/groups/npm-group/diff-match-patch/-/diff-match-patch-1.0.5.tgz", - "integrity": "sha512-IayShXAgj/QMXgB0IWmKx+rOPuGMhqm5w6jvFxmVenXKIzRqTAAsbBPT3kWQeGANj3jGgvcvv4yK6SxqYmikgw==", - "license": "Apache-2.0" - }, "node_modules/dir-glob": { "version": "3.0.1", "dev": true, @@ -12539,12 +12533,6 @@ "node": ">= 0.8" } }, - "node_modules/prism-themes": { - "version": "1.9.0", - "resolved": "http://artifact-repo.hq.local:8081/nexus/content/groups/npm-group/prism-themes/-/prism-themes-1.9.0.tgz", - "integrity": "sha512-tX2AYsehKDw1EORwBps+WhBFKc2kxfoFpQAjxBndbZKr4fRmMkv47XN0BghC/K1qwodB1otbe4oF23vUTFDokw==", - "license": "MIT" - }, "node_modules/prismjs": { "version": "1.29.0", "license": "MIT", diff --git a/package.json b/package.json index 56f96b9f..21f34711 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "code-snippets", - "version": "3.6.0-beta.2", + "version": "3.6.0", "description": "Manage code snippets running on a WordPress-powered site through a graphical interface", "homepage": "https://wordpress.org/plugins/code-snippets", "main": "gulpfile.babel.ts", diff --git a/readme.txt b/readme.txt index 47cca21e..273d265b 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: https://codesnippets.pro Tags: snippets, functions, multisite, code, php, html, css, javascript License: MIT License URI: license.txt -Stable tag: 3.5.1 +Stable tag: 3.6.0 Tested up to: 6.4 An easy, clean and simple way to run code snippets on your site. @@ -131,6 +131,22 @@ You can report security bugs found in the source code of this plugin through the == Changelog == += 3.6.0 (07 Nov 2023) = +* Updated minimum PHP requirement to 7.4. + +* Added: Ability to authenticate with Code Snippets Cloud using OAuth. (PRO) +* Added: Integration with GPT AI for generating snippets. (PRO) +* Added: Ability to generate line-by-line descriptions of snippet code with GPT AI. (PRO) +* Added: Ability to generate tags and description text from existing snippet code with GPT AI. (PRO) + +* Improved: Ensure that the URL of the edit snippet page changes when adding a new snippet. +* Improved: Snippet tags will automatically be added when focus is lost on the tags field. +* Improved: Added debug settings menu for manually performing problem-solving actions. +* Fixed: Moved active status border on edit name field to left-hand side. +* Added: Filter to disable scroll-into-view functionality for edit page notices. +* Fixed: New notices will not scroll if already at top of page. +* Fixed: Potential CSRF vulnerability allowing an authenticated user to reset settings. + = 3.5.1 (15 Sep 2023) = * Fixed: Undefined array key error when accessing plugin settings page. (PRO) * Fixed: Issue registering API endpoints affecting edit post screen. (PRO) @@ -242,63 +258,9 @@ thanks to contributions made by [Amaral Krichman](https://github.com/karmaral). * Added: Icon to 'Go Pro' button indicating it opens an external tab. * Improved: Allow display styles in snippet descriptions. -= 3.0.1 (14 May 2022) = -* Fixed: Incompatibility issue with earlier versions of PHP. - -= 3.0.0 (14 May 2022) = - -__Added__ - -* Added: HTML content snippets for displaying as shortcodes or including in the page head or footer area. -* Added: Notice reminding users to upgrade unsupported PHP versions. -* Added: Visual settings to add attributes to shortcodes. -* Added: Shortcode buttons to the post and page content editors. -* Added: Basic REST API endpoints. -* Added: Snippet type column to the snippets table. -* Added: Snippet type badges to Edit and Add New Snippet pages. -* Added: Setting to control whether the current line of the code editor is highlighted. -* Added: Display a warning when saving a snippet with missing title or code. -* Added: Add suffix to title of cloned snippets. - -__Changed__ - -* Improved: Updated plugin code to use namespaces, preventing name collisions with other plugins. -* Improved: Added key for the 'active' and 'scope' database table columns to speed up queries. -* Improved: Redirect from edit menu if not editing a valid snippet. -* Improved: Moved activation switch into its own table column. -* Improved: Updated code documentation according to WordPress standards. -* Improved: Added snippet type labels to the tabs on the Snippets page. -* Improved: Split settings page into tabs. -* Improved: Use the version of CodeMirror included with WordPress where possible to inherit the additional built-in features. -* Improved: Added hover effect to priority settings in the snippets table to show that they are editable. -* Fixed: Snippets table layout on smaller screens. - -__Deprecated__ - -* Removed: Deprecated functions and compatibility code for unsupported PHP versions. -* Removed: Option to disable snippet scopes. - -__New in Pro__ - -* Added: CSS style snippets for the site front-end and admin area. -* Added: JavaScript snippets for the site head and body area on the front-end. -* Added: Browser cache versioning for CSS and JavaScript snippets. -* Added: Support for exporting and downloading CSS and JavaScript snippets. -* Added: Support for highlighting code on the front-end. -* Added: Editor syntax highlighting for CSS, JavaScript and HTML snippets. -* Added: Button to preview full file when editing CSS or JavaScript snippets. -* Added: Option to minify CSS and JavaScript snippets. -* Added: Gutenberg editor block for displaying content snippets. -* Added: Gutenberg editor block for displaying snippet source code. -* Added: Elementor widget for displaying content snippets. -* Added: Elementor widget for displaying snippet source code. - **[The full changelog is available on GitHub](https://github.com/codesnippetspro/code-snippets/blob/master/CHANGELOG.md)** == Upgrade Notice == -= 3.5.1 = -Code Snippets Cloud is here! Share snippets and synchronise between sites. - -= 3.5.0 = -Code Snippets Cloud is here! Share snippets and synchronise between sites. += 3.6.0 = +New Pro feature: Generate and explain snippets using AI.