Skip to content

Commit 83baaa4

Browse files
committed
Remove support for IE11 and dead browsers
Handlebars v5 will target modern browsers, while older browsers will still receive support via version 4.x.
1 parent 785a63e commit 83baaa4

5 files changed

Lines changed: 15 additions & 36 deletions

File tree

README.markdown

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,16 @@ There are a few Mustache behaviors that Handlebars does not implement.
7979
Supported Environments
8080
----------------------
8181

82-
Handlebars has been designed to work in any ECMAScript 3 environment. This includes
82+
Handlebars has been designed to work in any ECMAScript 7 (2016) environment. This includes
8383

84-
- Node.js 12+
84+
- Node.js
8585
- Chrome
8686
- Firefox
87-
- Safari 5+
88-
- Opera 11+
89-
- IE 6+
87+
- Safari
88+
- Edge
89+
90+
If you need to support older environments, use Handlebars version 4.
9091

91-
Older versions and other runtimes are likely to work but have not been formally
92-
tested. The compiler requires `JSON.stringify` to be implemented natively or via a polyfill. If using the precompiler this is not necessary.
9392

9493
Performance
9594
-----------

package-lock.json

Lines changed: 0 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
"eslint": "^6.7.2",
4444
"eslint-config-prettier": "^6.7.0",
4545
"eslint-plugin-compat": "^3.13.0",
46-
"eslint-plugin-es5": "^1.4.1",
4746
"fs-extra": "^8.1.0",
4847
"grunt": "^1.0.4",
4948
"grunt-babel": "^5.0.0",
@@ -113,6 +112,13 @@
113112
"types/*.d.ts",
114113
"runtime.d.ts"
115114
],
115+
"browserslist": [
116+
"last 2 versions",
117+
"Firefox ESR",
118+
"not dead",
119+
"not IE 11",
120+
"maintained node versions"
121+
],
116122
"husky": {
117123
"hooks": {
118124
"pre-commit": "lint-staged"

spec/.eslintrc

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
{
2-
"extends": [
3-
"../.eslintrc.js",
4-
"plugin:es5/no-es2015",
5-
"prettier"
6-
],
7-
"plugins": [
8-
"es5"
9-
],
2+
"extends": ["../.eslintrc.js"],
103
"globals": {
114
"CompilerContext": true,
125
"Handlebars": true,
@@ -16,8 +9,6 @@
169
"shouldThrow": true,
1710
"expectTemplate": true,
1811
"compileWithPartials": true,
19-
"console": true,
20-
"require": true,
2112
"suite": true,
2213
"equal": true,
2314
"equals": true,

tests/integration/multi-nodejs-test/.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
extends: ['eslint:recommended', 'plugin:es5/no-es2015', 'prettier'],
2+
extends: ['eslint:recommended', 'prettier'],
33
globals: {
44
self: false
55
},

0 commit comments

Comments
 (0)