mirror of
https://github.com/CryptKeeperZK/ejs.git
synced 2026-01-09 07:27:56 -05:00
Minor version bump to deprecate use of require.extensions
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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)"
|
||||
|
||||
Reference in New Issue
Block a user