Minor version bump to deprecate use of require.extensions

This commit is contained in:
mde
2019-09-02 12:26:20 -07:00
parent 63a5082025
commit cce319f40f
3 changed files with 5 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
## v2.7.1: 2019-09-02
* Added deprecation notice for use of require.extensions (@mde)
## v2.6.2: 2019-06-19
* Correctly pass custom escape function to includes (@alecgibson)
* Fixes for rmWhitespace (@nwoltman)

View File

@@ -916,6 +916,7 @@ exports.__express = exports.renderFile;
/* istanbul ignore else */
if (require.extensions) {
require.extensions['.ejs'] = function (module, flnm) {
console.log('Deprecated: this API will go away in EJS v2.8');
var filename = flnm || /* istanbul ignore next */ module.filename;
var options = {
filename: filename,

View File

@@ -6,7 +6,7 @@
"engine",
"ejs"
],
"version": "2.6.2",
"version": "2.7.0",
"author": "Matthew Eernisse <mde@fleegix.org> (http://fleegix.org)",
"contributors": [
"Timothy Gu <timothygu99@gmail.com> (https://timothygu.github.io)"