From 2a842ac5891916d93356ada81d7cd73918d4f443 Mon Sep 17 00:00:00 2001 From: Mike Pennisi Date: Wed, 5 Jan 2022 11:59:13 -0500 Subject: [PATCH] v2.13.3 --- CHANGELOG.md | 7 +++++++ dist/jshint-rhino.js | 16 +++++++++++----- dist/jshint.js | 16 +++++++++++----- package.json | 2 +- 4 files changed, 30 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 79f504e30c..08da799fc4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ + +## [2.13.3](https://github.com/jshint/jshint/compare/2.13.2...v2.13.3) (2022-01-05) + +### Bug Fixes + +* Recognize ES2020 globals ([b1426f1](https://github.com/jshint/jshint/commit/b1426f1)) + ## [2.13.2](https://github.com/jshint/jshint/compare/2.13.1...v2.13.2) (2021-12-27) diff --git a/dist/jshint-rhino.js b/dist/jshint-rhino.js index 538aafbf2e..068e40bcc0 100755 --- a/dist/jshint-rhino.js +++ b/dist/jshint-rhino.js @@ -1,6 +1,6 @@ #!/usr/bin/env rhino var window = {}; -/*! 2.13.2 */ +/*! 2.13.3 */ var JSHINT; if (typeof window === 'undefined') window = {}; (function () { @@ -22388,7 +22388,8 @@ exports.val = { * Notable additions: optional catch bindings. * - `11` - To enable language features introduced by ECMAScript 11. Notable * additions: "export * as ns from 'module'", `import.meta`, the nullish - * coalescing operator, and optional chaining, and dynamic import. + * coalescing operator, the BigInt type, the `globalThis` binding, + * optional chaining, and dynamic import. */ esversion: 5 }; @@ -24572,7 +24573,8 @@ exports.ecmaIdentifiers = { SharedArrayBuffer : false }, 11: { - BigInt : false + BigInt : false, + globalThis : false } }; @@ -25028,8 +25030,8 @@ exports.node = { clearInterval : true, setImmediate : true, // v0.9.1+ clearImmediate : true, // v0.9.1+ - URL : true, // v6.13.0+ - URLSearchParams: true // v6.13.0+ + URL : true, // v10.0.0+ + URLSearchParams: true // v10.0.0+ }; exports.browserify = { @@ -25562,6 +25564,10 @@ var JSHINT = (function() { combine(predefined, vars.ecmaIdentifiers[8]); } + if (state.inES11()) { + combine(predefined, vars.ecmaIdentifiers[11]); + } + /** * Use `in` to check for the presence of any explicitly-specified value for * `globalstrict` because both `true` and `false` should trigger an error. diff --git a/dist/jshint.js b/dist/jshint.js index cf81530273..d0cf46993f 100644 --- a/dist/jshint.js +++ b/dist/jshint.js @@ -1,4 +1,4 @@ -/*! 2.13.2 */ +/*! 2.13.3 */ var JSHINT; if (typeof window === 'undefined') window = {}; (function () { @@ -22386,7 +22386,8 @@ exports.val = { * Notable additions: optional catch bindings. * - `11` - To enable language features introduced by ECMAScript 11. Notable * additions: "export * as ns from 'module'", `import.meta`, the nullish - * coalescing operator, and optional chaining, and dynamic import. + * coalescing operator, the BigInt type, the `globalThis` binding, + * optional chaining, and dynamic import. */ esversion: 5 }; @@ -24570,7 +24571,8 @@ exports.ecmaIdentifiers = { SharedArrayBuffer : false }, 11: { - BigInt : false + BigInt : false, + globalThis : false } }; @@ -25026,8 +25028,8 @@ exports.node = { clearInterval : true, setImmediate : true, // v0.9.1+ clearImmediate : true, // v0.9.1+ - URL : true, // v6.13.0+ - URLSearchParams: true // v6.13.0+ + URL : true, // v10.0.0+ + URLSearchParams: true // v10.0.0+ }; exports.browserify = { @@ -25560,6 +25562,10 @@ var JSHINT = (function() { combine(predefined, vars.ecmaIdentifiers[8]); } + if (state.inES11()) { + combine(predefined, vars.ecmaIdentifiers[11]); + } + /** * Use `in` to check for the presence of any explicitly-specified value for * `globalstrict` because both `true` and `false` should trigger an error. diff --git a/package.json b/package.json index 219681d86d..c1e79f279a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jshint", - "version": "2.13.2", + "version": "2.13.3", "homepage": "http://jshint.com/", "description": "Static analysis tool for JavaScript", "author": {