From cdbf42767264df096b638a3668820429ca3ea3e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bargull?= Date: Mon, 24 Jun 2024 08:46:41 +0200 Subject: [PATCH] Meta: Update ecma262-biblio and include ecma402-biblio - Update ecma262-biblio to a more recent version, but don't use the latest version (2.1.2736), because that requires replacing `IsIntegralNumber`, which has been removed upstream. - Add ecma402-biblio to replace the manual biblio entries in "spec/biblio.json". --- package-lock.json | 15 +++++-- package.json | 5 ++- spec/biblio.json | 109 ---------------------------------------------- 3 files changed, 14 insertions(+), 115 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3f496d79e4..917fcd7367 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,8 @@ "version": "1.0.0", "license": "BSD-3-Clause", "devDependencies": { - "@tc39/ecma262-biblio": "=2.1.2678", + "@tc39/ecma262-biblio": "=2.1.2735", + "@tc39/ecma402-biblio": "=2.1.1097", "@typescript-eslint/eslint-plugin": "^6.18.1", "@typescript-eslint/parser": "^6.18.1", "ecmarkup": "^18.1.2", @@ -373,9 +374,15 @@ } }, "node_modules/@tc39/ecma262-biblio": { - "version": "2.1.2678", - "resolved": "https://registry.npmjs.org/@tc39/ecma262-biblio/-/ecma262-biblio-2.1.2678.tgz", - "integrity": "sha512-3I6m+wpNSHuQsJjeH3UgfqUaet1aM/9ReeWJH8H1H+DKLHfQafWK+OHQLgUbpd5ruJveC2AbyKuUVsXrtMV3Bw==", + "version": "2.1.2735", + "resolved": "https://registry.npmjs.org/@tc39/ecma262-biblio/-/ecma262-biblio-2.1.2735.tgz", + "integrity": "sha512-exfzrV0yr3Ye5SYNzsoCVeAsJ66xQtSxmmGw4uanOXpoLHbFt6tMWmX3iQ7tFkanL+dwUk57GisClqT53xmYmg==", + "dev": true + }, + "node_modules/@tc39/ecma402-biblio": { + "version": "2.1.1097", + "resolved": "https://registry.npmjs.org/@tc39/ecma402-biblio/-/ecma402-biblio-2.1.1097.tgz", + "integrity": "sha512-E8T59bdzPDvS+sBW+bCGF0n3gmet1amOa1KbOAFC0OJWuLgP/K+J58Giuq5DqvN7yJT/qS3MCorq5+QPFfVH9w==", "dev": true }, "node_modules/@tootallnate/once": { diff --git a/package.json b/package.json index 33043cd160..22930302e6 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,8 @@ }, "main": "polyfill/lib/index.mjs", "devDependencies": { - "@tc39/ecma262-biblio": "=2.1.2678", + "@tc39/ecma262-biblio": "=2.1.2735", + "@tc39/ecma402-biblio": "=2.1.1097", "@typescript-eslint/eslint-plugin": "^6.18.1", "@typescript-eslint/parser": "^6.18.1", "ecmarkup": "^18.1.2", @@ -31,7 +32,7 @@ "build:polyfill": "cd polyfill && npm install && npm run build", "build:docs": "cd docs && npm install && npm run build", "prebuild:spec": "mkdirp out", - "build:spec": "ecmarkup --lint-spec --strict --load-biblio @tc39/ecma262-biblio spec.html out/index.html", + "build:spec": "ecmarkup --lint-spec --strict --load-biblio @tc39/ecma262-biblio --load-biblio @tc39/ecma402-biblio spec.html out/index.html", "prebuild": "mkdirp out/docs/assets", "pretty": "eslint . --ext js,mjs,.d.ts --fix", "build": "npm run build:polyfill && npm run build:docs && npm run build:spec", diff --git a/spec/biblio.json b/spec/biblio.json index 9a52754f7a..0d4f101c7a 100644 --- a/spec/biblio.json +++ b/spec/biblio.json @@ -1,111 +1,2 @@ [ - { - "location": "https://tc39.es/ecma402/", - "entries": [ - { - "type": "note", - "id": "legacy-constructor" - }, - { - "type": "op", - "aoid": "AvailableCanonicalCalendars", - "id": "sec-availablecanonicalcalendars" - }, - { - "type": "op", - "aoid": "AvailableCanonicalCollations", - "id": "sec-availablecanonicalcollations" - }, - { - "type": "op", - "aoid": "AvailableCanonicalCurrencies", - "id": "sec-availablecanonicalcurrencies" - }, - { - "type": "op", - "aoid": "AvailableCanonicalNumberingSystems", - "id": "sec-availablecanonicalnumberingsystems" - }, - { - "type": "op", - "aoid": "AvailableCanonicalUnits", - "id": "sec-availablecanonicalunits" - }, - { - "type": "op", - "aoid": "BasicFormatMatcher", - "id": "sec-basicformatmatcher" - }, - { - "type": "op", - "aoid": "BestFitFormatMatcher", - "id": "sec-bestfitformatmatcher" - }, - { - "type": "op", - "aoid": "CanonicalizeLocaleList", - "id": "sec-canonicalizelocalelist" - }, - { - "type": "op", - "aoid": "CoerceOptionsToObject", - "id": "sec-coerceoptionstoobject" - }, - { - "type": "op", - "aoid": "FormatNumeric", - "id": "sec-formatnumber" - }, - { - "type": "op", - "aoid": "GetNumberOption", - "id": "sec-getnumberoption" - }, - { - "type": "op", - "aoid": "ResolveLocale", - "id": "sec-resolvelocale" - }, - { - "type": "op", - "aoid": "UnwrapDateTimeFormat", - "id": "sec-unwrapdatetimeformat" - }, - { - "type": "clause", - "number": "Internal slots", - "id": "sec-intl.datetimeformat-internal-slots" - }, - { - "type": "clause", - "number": "get Intl.DateTimeFormat.prototype.format", - "id": "sec-intl.datetimeformat.prototype.format" - }, - { - "type": "clause", - "number": "Table 5", - "id": "table-datetimeformat-rangepatternfields" - }, - { - "type": "clause", - "number": "Table 7", - "id": "table-datetimeformat-components" - }, - { - "type": "clause", - "number": "Table 8", - "id": "table-datetimeformat-tolocaltime-record" - }, - { - "type": "op", - "aoid": "DateTimeStyleFormat", - "id": "sec-date-time-style-format" - }, - { - "type": "op", - "aoid": "PartitionPattern", - "id": "sec-partitionpattern" - } - ] - } ]