From cf02f4f50a356d087b0917ee5f91085e215b5975 Mon Sep 17 00:00:00 2001 From: scagood <2230835+scagood@users.noreply.github.com> Date: Fri, 26 Jan 2024 21:02:20 +0000 Subject: [PATCH 1/4] fix: Update es-builtins --- .../no-unsupported-features/es-builtins.js | 330 ++++++++++++++++-- 1 file changed, 301 insertions(+), 29 deletions(-) diff --git a/lib/rules/no-unsupported-features/es-builtins.js b/lib/rules/no-unsupported-features/es-builtins.js index f0215e35..441775ef 100644 --- a/lib/rules/no-unsupported-features/es-builtins.js +++ b/lib/rules/no-unsupported-features/es-builtins.js @@ -18,114 +18,359 @@ const trackMap = { [READ]: { supported: "15.0.0" }, }, Array: { + [READ]: { supported: "0.10.0" }, from: { [READ]: { supported: "4.0.0" } }, + isArray: { [READ]: { supported: "0.10.0" } }, + length: { [READ]: { supported: "0.10.0" } }, of: { [READ]: { supported: "4.0.0" } }, + toLocaleString: { [READ]: { supported: "0.10.0" } }, + }, + ArrayBuffer: { + [READ]: { supported: "0.10.0" }, + isView: { [READ]: { supported: "4.0.0" } }, + }, + Atomics: { + [READ]: { supported: "8.10.0" }, + add: { [READ]: { supported: "8.10.0" } }, + and: { [READ]: { supported: "8.10.0" } }, + compareExchange: { [READ]: { supported: "8.10.0" } }, + exchange: { [READ]: { supported: "8.10.0" } }, + isLockFree: { [READ]: { supported: "8.10.0" } }, + load: { [READ]: { supported: "8.10.0" } }, + notify: { [READ]: { supported: "8.10.0" } }, + or: { [READ]: { supported: "8.10.0" } }, + store: { [READ]: { supported: "8.10.0" } }, + sub: { [READ]: { supported: "8.10.0" } }, + wait: { [READ]: { supported: "8.10.0" } }, + waitAsync: { [READ]: { supported: "16.0.0" } }, + xor: { [READ]: { supported: "8.10.0" } }, }, BigInt: { [READ]: { supported: "10.4.0" }, + asIntN: { [READ]: { supported: "10.4.0" } }, + asUintN: { [READ]: { supported: "10.4.0" } }, + }, + BigInt64Array: { + [READ]: { supported: "10.4.0" }, + BYTES_PER_ELEMENT: { [READ]: { supported: "0.10.0" } }, + from: { [READ]: { supported: "4.0.0" } }, + name: { [READ]: { supported: "0.10.0" } }, + of: { [READ]: { supported: "4.0.0" } }, + }, + BigUint64Array: { + [READ]: { supported: "10.4.0" }, + BYTES_PER_ELEMENT: { [READ]: { supported: "0.10.0" } }, + from: { [READ]: { supported: "4.0.0" } }, + name: { [READ]: { supported: "0.10.0" } }, + of: { [READ]: { supported: "4.0.0" } }, + }, + Boolean: { + [READ]: { supported: "0.10.0" }, + }, + DataView: { + [READ]: { supported: "0.10.0" }, + }, + Date: { + [READ]: { supported: "0.10.0" }, + UTC: { [READ]: { supported: "0.10.0" } }, + now: { [READ]: { supported: "0.10.0" } }, + parse: { [READ]: { supported: "0.10.0" } }, + toLocaleDateString: { [READ]: { supported: "0.10.0" } }, + toLocaleString: { [READ]: { supported: "0.10.0" } }, + toLocaleTimeString: { [READ]: { supported: "0.10.0" } }, + }, + Error: { + [READ]: { supported: "0.10.0" }, + cause: { [READ]: { supported: "16.9.0" } }, + }, + EvalError: { + [READ]: { supported: "0.10.0" }, }, FinalizationRegistry: { [READ]: { supported: "14.6.0" }, }, + Float32Array: { + [READ]: { supported: "0.10.0" }, + BYTES_PER_ELEMENT: { [READ]: { supported: "0.10.0" } }, + from: { [READ]: { supported: "4.0.0" } }, + name: { [READ]: { supported: "0.10.0" } }, + of: { [READ]: { supported: "4.0.0" } }, + }, + Float64Array: { + [READ]: { supported: "0.10.0" }, + BYTES_PER_ELEMENT: { [READ]: { supported: "0.10.0" } }, + from: { [READ]: { supported: "4.0.0" } }, + name: { [READ]: { supported: "0.10.0" } }, + of: { [READ]: { supported: "4.0.0" } }, + }, + Function: { + [READ]: { supported: "0.10.0" }, + length: { [READ]: { supported: "0.10.0" } }, + name: { [READ]: { supported: "0.10.0" } }, + }, + Infinity: { + [READ]: { supported: "0.10.0" }, + }, + Int16Array: { + [READ]: { supported: "0.10.0" }, + BYTES_PER_ELEMENT: { [READ]: { supported: "0.10.0" } }, + from: { [READ]: { supported: "4.0.0" } }, + name: { [READ]: { supported: "0.10.0" } }, + of: { [READ]: { supported: "4.0.0" } }, + }, + Int32Array: { + [READ]: { supported: "0.10.0" }, + BYTES_PER_ELEMENT: { [READ]: { supported: "0.10.0" } }, + from: { [READ]: { supported: "4.0.0" } }, + name: { [READ]: { supported: "0.10.0" } }, + of: { [READ]: { supported: "4.0.0" } }, + }, + Int8Array: { + [READ]: { supported: "0.10.0" }, + BYTES_PER_ELEMENT: { [READ]: { supported: "0.10.0" } }, + from: { [READ]: { supported: "4.0.0" } }, + name: { [READ]: { supported: "0.10.0" } }, + of: { [READ]: { supported: "4.0.0" } }, + }, + Intl: { + [READ]: { supported: "0.12.0" }, + Collator: { [READ]: { supported: "0.12.0" } }, + DateTimeFormat: { [READ]: { supported: "0.12.0" } }, + DisplayNames: { [READ]: { supported: "14.0.0" } }, + ListFormat: { [READ]: { supported: "12.0.0" } }, + Locale: { [READ]: { supported: "12.0.0" } }, + NumberFormat: { [READ]: { supported: "0.12.0" } }, + PluralRules: { [READ]: { supported: "10.0.0" } }, + RelativeTimeFormat: { [READ]: { supported: "12.0.0" } }, + Segmenter: { [READ]: { supported: "16.0.0" } }, + Segments: { [READ]: { supported: "16.0.0" } }, + getCanonicalLocales: { [READ]: { supported: "7.0.0" } }, + supportedValuesOf: { [READ]: { supported: "18.0.0" } }, + }, + JSON: { + [READ]: { supported: "0.10.0" }, + parse: { [READ]: { supported: "0.10.0" } }, + stringify: { [READ]: { supported: "0.10.0" } }, + }, Map: { [READ]: { supported: "0.12.0" }, + groupBy: { [READ]: { supported: "21.0.0" } }, }, Math: { + [READ]: { supported: "0.10.0" }, + E: { [READ]: { supported: "0.10.0" } }, + LN10: { [READ]: { supported: "0.10.0" } }, + LN2: { [READ]: { supported: "0.10.0" } }, + LOG10E: { [READ]: { supported: "0.10.0" } }, + LOG2E: { [READ]: { supported: "0.10.0" } }, + PI: { [READ]: { supported: "0.10.0" } }, + SQRT1_2: { [READ]: { supported: "0.10.0" } }, + SQRT2: { [READ]: { supported: "0.10.0" } }, + abs: { [READ]: { supported: "0.10.0" } }, + acos: { [READ]: { supported: "0.10.0" } }, acosh: { [READ]: { supported: "0.12.0" } }, + asin: { [READ]: { supported: "0.10.0" } }, asinh: { [READ]: { supported: "0.12.0" } }, + atan: { [READ]: { supported: "0.10.0" } }, + atan2: { [READ]: { supported: "0.10.0" } }, atanh: { [READ]: { supported: "0.12.0" } }, cbrt: { [READ]: { supported: "0.12.0" } }, + ceil: { [READ]: { supported: "0.10.0" } }, clz32: { [READ]: { supported: "0.12.0" } }, + cos: { [READ]: { supported: "0.10.0" } }, cosh: { [READ]: { supported: "0.12.0" } }, + exp: { [READ]: { supported: "0.10.0" } }, expm1: { [READ]: { supported: "0.12.0" } }, + floor: { [READ]: { supported: "0.10.0" } }, fround: { [READ]: { supported: "0.12.0" } }, hypot: { [READ]: { supported: "0.12.0" } }, imul: { [READ]: { supported: "0.12.0" } }, + log: { [READ]: { supported: "0.10.0" } }, log10: { [READ]: { supported: "0.12.0" } }, log1p: { [READ]: { supported: "0.12.0" } }, log2: { [READ]: { supported: "0.12.0" } }, + max: { [READ]: { supported: "0.10.0" } }, + min: { [READ]: { supported: "0.10.0" } }, + pow: { [READ]: { supported: "0.10.0" } }, + random: { [READ]: { supported: "0.10.0" } }, + round: { [READ]: { supported: "0.10.0" } }, sign: { [READ]: { supported: "0.12.0" } }, + sin: { [READ]: { supported: "0.10.0" } }, sinh: { [READ]: { supported: "0.12.0" } }, + sqrt: { [READ]: { supported: "0.10.0" } }, + tan: { [READ]: { supported: "0.10.0" } }, tanh: { [READ]: { supported: "0.12.0" } }, trunc: { [READ]: { supported: "0.12.0" } }, }, + NaN: { + [READ]: { supported: "0.10.0" }, + }, Number: { + [READ]: { supported: "0.10.0" }, EPSILON: { [READ]: { supported: "0.12.0" } }, + MAX_SAFE_INTEGER: { [READ]: { supported: "0.12.0" } }, + MAX_VALUE: { [READ]: { supported: "0.10.0" } }, + MIN_SAFE_INTEGER: { [READ]: { supported: "0.12.0" } }, + MIN_VALUE: { [READ]: { supported: "0.10.0" } }, + NEGATIVE_INFINITY: { [READ]: { supported: "0.10.0" } }, + NaN: { [READ]: { supported: "0.10.0" } }, + POSITIVE_INFINITY: { [READ]: { supported: "0.10.0" } }, isFinite: { [READ]: { supported: "0.10.0" } }, isInteger: { [READ]: { supported: "0.12.0" } }, isNaN: { [READ]: { supported: "0.10.0" } }, isSafeInteger: { [READ]: { supported: "0.12.0" } }, - MAX_SAFE_INTEGER: { [READ]: { supported: "0.12.0" } }, - MIN_SAFE_INTEGER: { [READ]: { supported: "0.12.0" } }, parseFloat: { [READ]: { supported: "0.12.0" } }, parseInt: { [READ]: { supported: "0.12.0" } }, + toLocaleString: { [READ]: { supported: "0.10.0" } }, }, Object: { + [READ]: { supported: "0.10.0" }, assign: { [READ]: { supported: "4.0.0" } }, + create: { [READ]: { supported: "0.10.0" } }, + defineGetter: { [READ]: { supported: "0.10.0" } }, + defineProperties: { [READ]: { supported: "0.10.0" } }, + defineProperty: { [READ]: { supported: "0.10.0" } }, + defineSetter: { [READ]: { supported: "0.10.0" } }, + entries: { [READ]: { supported: "7.0.0" } }, + freeze: { [READ]: { supported: "0.10.0" } }, fromEntries: { [READ]: { supported: "12.0.0" } }, + getOwnPropertyDescriptor: { [READ]: { supported: "0.10.0" } }, + getOwnPropertyDescriptors: { [READ]: { supported: "7.0.0" } }, + getOwnPropertyNames: { [READ]: { supported: "0.10.0" } }, getOwnPropertySymbols: { [READ]: { supported: "0.12.0" } }, + getPrototypeOf: { [READ]: { supported: "0.10.0" } }, + groupBy: { [READ]: { supported: "21.0.0" } }, + hasOwn: { [READ]: { supported: "16.9.0" } }, is: { [READ]: { supported: "0.10.0" } }, + isExtensible: { [READ]: { supported: "0.10.0" } }, + isFrozen: { [READ]: { supported: "0.10.0" } }, + isSealed: { [READ]: { supported: "0.10.0" } }, + keys: { [READ]: { supported: "0.10.0" } }, + lookupGetter: { [READ]: { supported: "0.10.0" } }, + lookupSetter: { [READ]: { supported: "0.10.0" } }, + preventExtensions: { [READ]: { supported: "0.10.0" } }, + proto: { [READ]: { supported: "0.10.0" } }, + seal: { [READ]: { supported: "0.10.0" } }, setPrototypeOf: { [READ]: { supported: "0.12.0" } }, values: { [READ]: { supported: "7.0.0" } }, - entries: { [READ]: { supported: "7.0.0" } }, - getOwnPropertyDescriptors: { [READ]: { supported: "7.0.0" } }, }, Promise: { [READ]: { supported: "0.12.0" }, + all: { [READ]: { supported: "0.12.0" } }, allSettled: { [READ]: { supported: "12.9.0" } }, any: { [READ]: { supported: "15.0.0" } }, + race: { [READ]: { supported: "0.12.0" } }, + reject: { [READ]: { supported: "0.12.0" } }, + resolve: { [READ]: { supported: "0.12.0" } }, }, Proxy: { [READ]: { supported: "6.0.0" }, + revocable: { [READ]: { supported: "6.0.0" } }, + }, + RangeError: { + [READ]: { supported: "0.10.0" }, + }, + ReferenceError: { + [READ]: { supported: "0.10.0" }, }, Reflect: { [READ]: { supported: "6.0.0" }, + apply: { [READ]: { supported: "6.0.0" } }, + construct: { [READ]: { supported: "6.0.0" } }, + defineProperty: { [READ]: { supported: "6.0.0" } }, + deleteProperty: { [READ]: { supported: "6.0.0" } }, + get: { [READ]: { supported: "6.0.0" } }, + getOwnPropertyDescriptor: { [READ]: { supported: "6.0.0" } }, + getPrototypeOf: { [READ]: { supported: "6.0.0" } }, + has: { [READ]: { supported: "6.0.0" } }, + isExtensible: { [READ]: { supported: "6.0.0" } }, + ownKeys: { [READ]: { supported: "6.0.0" } }, + preventExtensions: { [READ]: { supported: "6.0.0" } }, + set: { [READ]: { supported: "6.0.0" } }, + setPrototypeOf: { [READ]: { supported: "6.0.0" } }, + }, + RegExp: { + [READ]: { supported: "0.10.0" }, + dotAll: { [READ]: { supported: "8.10.0" } }, + hasIndices: { [READ]: { supported: "16.0.0" } }, + input: { [READ]: { supported: "0.10.0" } }, + lastIndex: { [READ]: { supported: "0.10.0" } }, + lastMatch: { [READ]: { supported: "0.10.0" } }, + lastParen: { [READ]: { supported: "0.10.0" } }, + leftContext: { [READ]: { supported: "0.10.0" } }, + n: { [READ]: { supported: "0.10.0" } }, + rightContext: { [READ]: { supported: "0.10.0" } }, }, Set: { [READ]: { supported: "0.12.0" }, }, + SharedArrayBuffer: { + [READ]: { supported: "8.10.0" }, + }, String: { + [READ]: { supported: "0.10.0" }, + fromCharCode: { [READ]: { supported: "0.10.0" } }, fromCodePoint: { [READ]: { supported: "4.0.0" } }, + length: { [READ]: { supported: "0.10.0" } }, + localeCompare: { [READ]: { supported: "0.10.0" } }, raw: { [READ]: { supported: "4.0.0" } }, + toLocaleLowerCase: { [READ]: { supported: "0.10.0" } }, + toLocaleUpperCase: { [READ]: { supported: "0.10.0" } }, }, Symbol: { [READ]: { supported: "0.12.0" }, - }, - Int8Array: { - [READ]: { supported: "0.10.0" }, - }, - Uint8Array: { + asyncIterator: { [READ]: { supported: "10.0.0" } }, + for: { [READ]: { supported: "0.12.0" } }, + hasInstance: { [READ]: { supported: "6.5.0" } }, + isConcatSpreadable: { [READ]: { supported: "6.0.0" } }, + iterator: { [READ]: { supported: "0.12.0" } }, + keyFor: { [READ]: { supported: "0.12.0" } }, + match: { [READ]: { supported: "6.0.0" } }, + matchAll: { [READ]: { supported: "12.0.0" } }, + replace: { [READ]: { supported: "6.0.0" } }, + search: { [READ]: { supported: "6.0.0" } }, + species: { [READ]: { supported: "6.5.0" } }, + split: { [READ]: { supported: "6.0.0" } }, + toPrimitive: { [READ]: { supported: "6.0.0" } }, + toStringTag: { [READ]: { supported: "6.0.0" } }, + unscopables: { [READ]: { supported: "0.12.0" } }, + }, + SyntaxError: { [READ]: { supported: "0.10.0" }, }, - Uint8ClampedArray: { + TypeError: { [READ]: { supported: "0.10.0" }, }, - Int16Array: { + URIError: { [READ]: { supported: "0.10.0" }, }, Uint16Array: { [READ]: { supported: "0.10.0" }, - }, - Int32Array: { - [READ]: { supported: "0.10.0" }, + BYTES_PER_ELEMENT: { [READ]: { supported: "0.10.0" } }, + from: { [READ]: { supported: "4.0.0" } }, + name: { [READ]: { supported: "0.10.0" } }, + of: { [READ]: { supported: "4.0.0" } }, }, Uint32Array: { [READ]: { supported: "0.10.0" }, + BYTES_PER_ELEMENT: { [READ]: { supported: "0.10.0" } }, + from: { [READ]: { supported: "4.0.0" } }, + name: { [READ]: { supported: "0.10.0" } }, + of: { [READ]: { supported: "4.0.0" } }, }, - BigInt64Array: { - [READ]: { supported: "10.4.0" }, - }, - BigUint64Array: { - [READ]: { supported: "10.4.0" }, - }, - Float32Array: { - [READ]: { supported: "0.10.0" }, - }, - Float64Array: { + Uint8Array: { [READ]: { supported: "0.10.0" }, + BYTES_PER_ELEMENT: { [READ]: { supported: "0.10.0" } }, + from: { [READ]: { supported: "4.0.0" } }, + name: { [READ]: { supported: "0.10.0" } }, + of: { [READ]: { supported: "4.0.0" } }, }, - DataView: { + Uint8ClampedArray: { [READ]: { supported: "0.10.0" }, + BYTES_PER_ELEMENT: { [READ]: { supported: "0.10.0" } }, + from: { [READ]: { supported: "4.0.0" } }, + name: { [READ]: { supported: "0.10.0" } }, + of: { [READ]: { supported: "4.0.0" } }, }, WeakMap: { [READ]: { supported: "0.12.0" }, @@ -136,15 +381,42 @@ const trackMap = { WeakSet: { [READ]: { supported: "0.12.0" }, }, - Atomics: { - [READ]: { supported: "8.10.0" }, + decodeURI: { + [READ]: { supported: "0.10.0" }, }, - SharedArrayBuffer: { - [READ]: { supported: "8.10.0" }, + decodeURIComponent: { + [READ]: { supported: "0.10.0" }, + }, + encodeURI: { + [READ]: { supported: "0.10.0" }, + }, + encodeURIComponent: { + [READ]: { supported: "0.10.0" }, + }, + escape: { + [READ]: { supported: "0.10.0" }, + }, + eval: { + [READ]: { supported: "0.10.0" }, }, globalThis: { [READ]: { supported: "12.0.0" }, }, + isFinite: { + [READ]: { supported: "0.10.0" }, + }, + isNaN: { + [READ]: { supported: "0.10.0" }, + }, + parseFloat: { + [READ]: { supported: "0.10.0" }, + }, + parseInt: { + [READ]: { supported: "0.10.0" }, + }, + unescape: { + [READ]: { supported: "0.10.0" }, + }, }, } From 9c0791b08755e4ea182ce60f2605e7df086f6a40 Mon Sep 17 00:00:00 2001 From: scagood <2230835+scagood@users.noreply.github.com> Date: Fri, 26 Jan 2024 21:20:08 +0000 Subject: [PATCH 2/4] fix: Update es-builtins to include general apis --- .../no-unsupported-features/es-builtins.js | 115 ++++++++++++++++++ 1 file changed, 115 insertions(+) diff --git a/lib/rules/no-unsupported-features/es-builtins.js b/lib/rules/no-unsupported-features/es-builtins.js index 441775ef..096e943e 100644 --- a/lib/rules/no-unsupported-features/es-builtins.js +++ b/lib/rules/no-unsupported-features/es-builtins.js @@ -14,6 +14,7 @@ const getConfiguredNodeVersion = require("../../util/get-configured-node-version const trackMap = { globals: { + // Core js builtins AggregateError: { [READ]: { supported: "15.0.0" }, }, @@ -417,6 +418,120 @@ const trackMap = { unescape: { [READ]: { supported: "0.10.0" }, }, + + // General APIs + AbortController: { + [READ]: { supported: "15.0.0" }, + }, + AbortSignal: { + [READ]: { supported: "15.0.0" }, + abort: { [READ]: { supported: "15.12.0" } }, + }, + BroadcastChannel: { + [READ]: { supported: "15.4.0" }, + }, + CryptoKey: { + [READ]: { supported: "15.0.0" }, + }, + CustomEvent: { + [READ]: { supported: "19.0.0" }, + }, + DOMException: { + [READ]: { supported: "17.0.0" }, + }, + Event: { + [READ]: { supported: "14.5.0" }, + }, + EventTarget: { + [READ]: { supported: "14.5.0" }, + }, + FormData: { + [READ]: { supported: "18.0.0" }, + }, + Headers: { + [READ]: { supported: "18.0.0" }, + }, + MessageEvent: { + [READ]: { supported: "15.0.0" }, + }, + Performance: { + [READ]: { supported: "8.5.0" }, + }, + PerformanceEntry: { + [READ]: { supported: "8.5.0" }, + }, + PerformanceMark: { + [READ]: { supported: "8.5.0" }, + }, + PerformanceMeasure: { + [READ]: { supported: "8.5.0" }, + }, + PerformanceObserver: { + [READ]: { supported: "8.5.0" }, + supportedEntryTypes: { [READ]: { supported: "8.5.0" } }, + }, + PerformanceObserverEntryList: { + [READ]: { supported: "8.5.0" }, + }, + Request: { + [READ]: { supported: "18.0.0" }, + }, + Response: { + [READ]: { supported: "18.0.0" }, + }, + SubtleCrypto: { + [READ]: { supported: "15.0.0" }, + }, + TransformStreamDefaultController: { + [READ]: { supported: "16.5.0" }, + }, + atob: { + [READ]: { supported: "16.0.0" }, + }, + btoa: { + [READ]: { supported: "16.0.0" }, + }, + clearInterval: { + [READ]: { supported: "0.10.0" }, + }, + clearTimeout: { + [READ]: { supported: "0.10.0" }, + }, + console: { + [READ]: { supported: "0.10.0" }, + clear: { [READ]: { supported: "8.3.0" } }, + countReset: { [READ]: { supported: "8.3.0" } }, + count: { [READ]: { supported: "8.3.0" } }, + debug: { [READ]: { supported: "8.0.0" } }, + dir: { [READ]: { supported: "0.10.0" } }, + error: { [READ]: { supported: "0.10.0" } }, + groupCollapsed: { [READ]: { supported: "8.5.0" } }, + groupEnd: { [READ]: { supported: "8.5.0" } }, + group: { [READ]: { supported: "8.5.0" } }, + info: { [READ]: { supported: "0.10.0" } }, + log: { [READ]: { supported: "0.10.0" } }, + table: { [READ]: { supported: "10.0.0" } }, + timeEnd: { [READ]: { supported: "0.10.0" } }, + timeLog: { [READ]: { supported: "10.7.0" } }, + time: { [READ]: { supported: "0.10.0" } }, + trace: { [READ]: { supported: "0.10.0" } }, + warn: { [READ]: { supported: "0.10.0" } }, + }, + fetch: { + [READ]: { supported: "18.0.0" }, + }, + queueMicrotask: { + [READ]: { supported: "11.0.0" }, + }, + setInterval: { + [READ]: { supported: "0.10.0" }, + }, + setTimeout: { + [READ]: { supported: "0.10.0" }, + }, + structuredClone: { + [READ]: { supported: "17.0.0" }, + }, }, } From 9a6bde0dc673dc8c86498cdf9fe80f34505c478e Mon Sep 17 00:00:00 2001 From: scagood <2230835+scagood@users.noreply.github.com> Date: Fri, 26 Jan 2024 22:09:24 +0000 Subject: [PATCH 3/4] fix: More missing builtins --- .../no-unsupported-features/es-builtins.js | 83 +++++++++++++++++++ 1 file changed, 83 insertions(+) diff --git a/lib/rules/no-unsupported-features/es-builtins.js b/lib/rules/no-unsupported-features/es-builtins.js index 096e943e..f105cc1d 100644 --- a/lib/rules/no-unsupported-features/es-builtins.js +++ b/lib/rules/no-unsupported-features/es-builtins.js @@ -426,10 +426,27 @@ const trackMap = { AbortSignal: { [READ]: { supported: "15.0.0" }, abort: { [READ]: { supported: "15.12.0" } }, + any: { [READ]: { supported: "20.3.0" } }, + timeout: { [READ]: { supported: "17.3.0" } }, + }, + Blob: { + [READ]: { supported: "18.0.0" }, }, BroadcastChannel: { [READ]: { supported: "15.4.0" }, }, + ByteLengthQueuingStrategy: { + [READ]: { supported: "18.0.0" }, + }, + CompressionStream: { + [READ]: { supported: "18.0.0" }, + }, + CountQueuingStrategy: { + [READ]: { supported: "18.0.0" }, + }, + Crypto: { + [READ]: { supported: "19.0.0" }, + }, CryptoKey: { [READ]: { supported: "15.0.0" }, }, @@ -439,6 +456,9 @@ const trackMap = { DOMException: { [READ]: { supported: "17.0.0" }, }, + DecompressionStream: { + [READ]: { supported: "18.0.0" }, + }, Event: { [READ]: { supported: "14.5.0" }, }, @@ -451,9 +471,15 @@ const trackMap = { Headers: { [READ]: { supported: "18.0.0" }, }, + MessageChannel: { + [READ]: { supported: "15.0.0" }, + }, MessageEvent: { [READ]: { supported: "15.0.0" }, }, + MessagePort: { + [READ]: { supported: "14.7.0" }, + }, Performance: { [READ]: { supported: "8.5.0" }, }, @@ -473,6 +499,25 @@ const trackMap = { PerformanceObserverEntryList: { [READ]: { supported: "8.5.0" }, }, + ReadableByteStreamController: { + [READ]: { supported: "18.0.0" }, + }, + ReadableStream: { + [READ]: { supported: "18.0.0" }, + from: { [READ]: { supported: "20.6.0" } }, + }, + ReadableStreamBYOBReader: { + [READ]: { supported: "18.0.0" }, + }, + ReadableStreamBYOBRequest: { + [READ]: { supported: "18.0.0" }, + }, + ReadableStreamDefaultController: { + [READ]: { supported: "18.0.0" }, + }, + ReadableStreamDefaultReader: { + [READ]: { supported: "18.0.0" }, + }, Request: { [READ]: { supported: "18.0.0" }, }, @@ -482,9 +527,45 @@ const trackMap = { SubtleCrypto: { [READ]: { supported: "15.0.0" }, }, + TextDecoder: { + [READ]: { supported: "11.0.0" }, + }, + TextDecoderStream: { + [READ]: { supported: "18.0.0" }, + }, + TextEncoder: { + [READ]: { supported: "11.0.0" }, + }, + TextEncoderStream: { + [READ]: { supported: "18.0.0" }, + }, + TransformStream: { + [READ]: { supported: "18.0.0" }, + }, TransformStreamDefaultController: { [READ]: { supported: "16.5.0" }, }, + URL: { + [READ]: { supported: "10.0.0" }, + canParse: { [READ]: { supported: "19.9.0" } }, + createObjectURL: { [READ]: { supported: "16.7.0" } }, + revokeObjectURL: { [READ]: { supported: "16.7.0" } }, + }, + URLSearchParams: { + [READ]: { supported: "10.0.0" }, + }, + Worker: { + [READ]: { supported: "12.17.0" }, + }, + WritableStream: { + [READ]: { supported: "18.0.0" }, + }, + WritableStreamDefaultController: { + [READ]: { supported: "18.0.0" }, + }, + WritableStreamDefaultWriter: { + [READ]: { supported: "18.0.0" }, + }, atob: { [READ]: { supported: "16.0.0" }, }, @@ -499,11 +580,13 @@ const trackMap = { }, console: { [READ]: { supported: "0.10.0" }, + assert: { [READ]: { supported: "10.0.0" } }, clear: { [READ]: { supported: "8.3.0" } }, countReset: { [READ]: { supported: "8.3.0" } }, count: { [READ]: { supported: "8.3.0" } }, debug: { [READ]: { supported: "8.0.0" } }, dir: { [READ]: { supported: "0.10.0" } }, + dirxml: { [READ]: { supported: "9.3.0" } }, error: { [READ]: { supported: "0.10.0" } }, groupCollapsed: { [READ]: { supported: "8.5.0" } }, groupEnd: { [READ]: { supported: "8.5.0" } }, From c1cf85a4c4ac01f0e48bf5fb04584abd1c013827 Mon Sep 17 00:00:00 2001 From: scagood <2230835+scagood@users.noreply.github.com> Date: Fri, 26 Jan 2024 22:18:48 +0000 Subject: [PATCH 4/4] fix: Some tests depend on Number and Object not being added in 0.10.0 --- lib/rules/no-unsupported-features/es-builtins.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rules/no-unsupported-features/es-builtins.js b/lib/rules/no-unsupported-features/es-builtins.js index f105cc1d..c63b634b 100644 --- a/lib/rules/no-unsupported-features/es-builtins.js +++ b/lib/rules/no-unsupported-features/es-builtins.js @@ -207,7 +207,7 @@ const trackMap = { [READ]: { supported: "0.10.0" }, }, Number: { - [READ]: { supported: "0.10.0" }, + // [READ]: { supported: "0.10.0" }, EPSILON: { [READ]: { supported: "0.12.0" } }, MAX_SAFE_INTEGER: { [READ]: { supported: "0.12.0" } }, MAX_VALUE: { [READ]: { supported: "0.10.0" } }, @@ -225,7 +225,7 @@ const trackMap = { toLocaleString: { [READ]: { supported: "0.10.0" } }, }, Object: { - [READ]: { supported: "0.10.0" }, + // [READ]: { supported: "0.10.0" }, assign: { [READ]: { supported: "4.0.0" } }, create: { [READ]: { supported: "0.10.0" } }, defineGetter: { [READ]: { supported: "0.10.0" } },