From 83eaba0a581e0a09a8c2ace8ba0867143b3d2c9e Mon Sep 17 00:00:00 2001 From: Chris Schwartze Date: Wed, 9 Jun 2021 12:38:52 +0200 Subject: [PATCH 1/3] Update README.md The command to install was faulty, resulting in ```shell npm install grunt-yoast-tasks --save-dev npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.org/grunt-yoast-tasks - Not found npm ERR! 404 npm ERR! 404 'grunt-yoast-tasks@latest' is not in the npm registry. npm ERR! 404 You should bug the author to publish it (or use the name yourself!) npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url. ``` Have updated it so that it works. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 538e8ea..f5d76af 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ This plugin requires Grunt `^1.0.4` If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command: ```shell -npm install grunt-yoast-tasks --save-dev +npm i @yoast/grunt-plugin-tasks --save-dev ``` Once the plugin has been installed, it may be enabled inside your Gruntfile with this bit of JavaScript: From 4f1e41d9e1b20fbef428396046781da7c3d26981 Mon Sep 17 00:00:00 2001 From: noud-github Date: Mon, 5 Jul 2021 13:10:37 +0200 Subject: [PATCH 2/3] fix Rexep issue in logbuilder --- lib/logbuilder.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/logbuilder.js b/lib/logbuilder.js index 004121b..97918dd 100644 --- a/lib/logbuilder.js +++ b/lib/logbuilder.js @@ -191,7 +191,7 @@ class ChangelogBuilder { addLinesPerHeader( value ) { const key = `${value.match( new RegExp( "[ a-zA-Z]+:" ) )}`; // eslint-disable-next-line no-control-regex - const lines = value.match( new RegExp( "(?<=\n)\\*([\n]|.)+?(?=\Z|\n\n|\n\\*|\n$)", "gm" ) ); + const lines = value.match( new RegExp( "(?<=\n)\\*([\n]|.)+?(?=\n\n|\n\\*|\n$)", "gm" ) ); if ( this.ChangelogMap.has( key ) ) { this.ChangelogMap.get( key ).append( lines ); } else { @@ -215,7 +215,7 @@ class ChangelogBuilder { substractLinesPerHeader( value ) { const key = `${value.match( new RegExp( "[ a-zA-Z]+:" ) )}`; // eslint-disable-next-line no-control-regex - const lines = value.match( new RegExp( "(?<=\n)\\*([\n]|.)+?(?=\Z|\n\n|\n\\*|\n$)", "gm" ) ); + const lines = value.match( new RegExp( "(?<=\n)\\*([\n]|.)+?(?=\n\n|\n\\*|\n$)", "gm" ) ); if ( this.ChangelogMap.has( key ) ) { this.ChangelogMap.get( key ).disengage( lines ); } From 981884df1e83b07750eda4e56f50f187f450dda5 Mon Sep 17 00:00:00 2001 From: noud-github Date: Mon, 5 Jul 2021 13:23:41 +0200 Subject: [PATCH 3/3] update readme and version --- README.md | 4 ++++ package.json | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f5d76af..cc78638 100644 --- a/README.md +++ b/README.md @@ -2175,6 +2175,10 @@ get-latest-pr-texts: { ## Release History +### 2.1.1 +- Fixes a issue with Z cutting of changelog lines +- Fixes a issue with the install command. Props to [chrisschwartze](ttps://github.com/chrisschwartze). + ### 2.1.1 - fix issue with finding correct yoast-cli option diff --git a/package.json b/package.json index 20abb7c..ab823ef 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@yoast/grunt-plugin-tasks", "description": "Custom Yoast grunt tasks", - "version": "2.1.1", + "version": "2.1.2", "homepage": "https://github.com/Yoast/", "repository": { "type": "git", @@ -57,4 +57,4 @@ "browserslist": [ "extends @yoast/browserslist-config" ] -} \ No newline at end of file +}