Skip to content

Commit

Permalink
Minor version bump to deprecate use of require.extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
mde committed Sep 2, 2019
1 parent 63a5082 commit cce319f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
@@ -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)
Expand Down
1 change: 1 addition & 0 deletions lib/ejs.js
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -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)"
Expand Down

0 comments on commit cce319f

Please sign in to comment.