Skip to content

Commit

Permalink
Release 4.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
SolomoN-ua committed Aug 20, 2021
1 parent 1067941 commit 26b9158
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
4.0.1 / 2021-08-20
==================
* Debug version to investigate issue with `js-yaml` & `js-yaml-js-types`

4.0.0 / 2021-07-04
==================
* Dropped support of CoffeeScript **(breaking change)**
Expand Down
6 changes: 5 additions & 1 deletion lib/readfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ module.exports = function(file) {
if (ext.match(/ya?ml/)) {
var res = fs.readFileSync(file, 'utf8');
var yaml = require('js-yaml');
var schema = yaml.DEFAULT_SCHEMA.extend(require('js-yaml-js-types').regexp);
var REGEXP_TYPE = require('js-yaml-js-types').regexp;
if (!(REGEXP_TYPE instanceof yaml.Type)) {
console.warn('Invalid js-yaml extension type type:', REGEXP_TYPE);
}
var schema = yaml.DEFAULT_SCHEMA.extend(REGEXP_TYPE);
return yaml.load(res, { schema: schema });
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "load-grunt-config",
"version": "4.0.0",
"version": "4.0.1",
"description": "Grunt plugin that lets you break up your Gruntfile config by task",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 26b9158

Please sign in to comment.