diff --git a/compat-table/package-lock.json b/compat-table/package-lock.json index 7bd80def8ec..9f3289201ca 100644 --- a/compat-table/package-lock.json +++ b/compat-table/package-lock.json @@ -5,16 +5,16 @@ "packages": { "": { "dependencies": { - "@mdn/browser-compat-data": "5.3.16", + "@mdn/browser-compat-data": "5.3.18", "@types/caniuse-lite": "1.0.1", "@types/node": "20.3.2", - "caniuse-lite": "1.0.30001534" + "caniuse-lite": "1.0.30001538" } }, "node_modules/@mdn/browser-compat-data": { - "version": "5.3.16", - "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-5.3.16.tgz", - "integrity": "sha512-b0kKg2weqKDLI+Ai5+tocgUEIidccdSfzUndbS2YnwIp5aVvd3M0D+DCcbrsSOSgMyrV9QKMqogtqMIjKwvDxw==" + "version": "5.3.18", + "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-5.3.18.tgz", + "integrity": "sha512-QkLweIx1dEF7nBWZhRKDsYd26k/RW2G87x7Dy8YDSeYq4sPMpqVMRZnLEcKwwoIgQJOcgGaGcVMRWaQHhrhB/g==" }, "node_modules/@types/caniuse-lite": { "version": "1.0.1", @@ -27,9 +27,9 @@ "integrity": "sha512-vOBLVQeCQfIcF/2Y7eKFTqrMnizK5lRNQ7ykML/5RuwVXVWxYkgwS7xbt4B6fKCUPgbSL5FSsjHQpaGQP/dQmw==" }, "node_modules/caniuse-lite": { - "version": "1.0.30001534", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001534.tgz", - "integrity": "sha512-vlPVrhsCS7XaSh2VvWluIQEzVhefrUQcEsQWSS5A5V+dM07uv1qHeQzAOTGIMy9i3e9bH15+muvI/UHojVgS/Q==", + "version": "1.0.30001538", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001538.tgz", + "integrity": "sha512-HWJnhnID+0YMtGlzcp3T9drmBJUVDchPJ08tpUGFLs9CYlwWPH2uLgpHn8fND5pCgXVtnGS3H4QR9XLMHVNkHw==", "funding": [ { "type": "opencollective", diff --git a/compat-table/package.json b/compat-table/package.json index 715b1af259f..897f7c9a161 100644 --- a/compat-table/package.json +++ b/compat-table/package.json @@ -1,12 +1,12 @@ { "githubDependencies": { "kangax/compat-table": "d5e9c83b96b23f15318e6b2dc3f5bf51314aa340", - "williamkapke/node-compat-table": "e59188734a19f7595d29dd91643720bcbf0d0647" + "williamkapke/node-compat-table": "3dccab9db1c595030dba0e37487a78a598a16a03" }, "dependencies": { - "@mdn/browser-compat-data": "5.3.16", + "@mdn/browser-compat-data": "5.3.18", "@types/caniuse-lite": "1.0.1", "@types/node": "20.3.2", - "caniuse-lite": "1.0.30001534" + "caniuse-lite": "1.0.30001538" } } diff --git a/compat-table/src/caniuse.ts b/compat-table/src/caniuse.ts index 8525eeea6d7..89dc2c8bcc0 100644 --- a/compat-table/src/caniuse.ts +++ b/compat-table/src/caniuse.ts @@ -116,7 +116,10 @@ for (const feature in cssPrefixFeatures) { ? (model.prefix_exceptions && model.prefix_exceptions[versionRange]) || model.prefix : null for (const version of versionRange.split('-')) { - sortedVersions.push({ version, prefix }) + // Filter out bogus versions such as "TP" for Safari + if (/^\d+(\.\d+)*$/.test(version)) { + sortedVersions.push({ version, prefix }) + } } if (prefix !== null) { prefixes.add(prefix)