From d4bf3f781930c75323763372476925d56c552c9a Mon Sep 17 00:00:00 2001 From: Alexander Lichter Date: Wed, 30 Sep 2026 13:39:06 +0200 Subject: [PATCH] chore: use Oxfmt for import sorting --- .oxfmtrc.json | 13 + .oxlintrc.json | 24 +- package.json | 1 - .../core/src/generators/metadata/types.d.ts | 2 +- .../core/src/utils/configuration/types.d.ts | 1 + .../node-legacy/src/legacy-html-all/index.mjs | 2 +- .../node-legacy/src/legacy-json/generate.mjs | 2 +- .../node-legacy/src/legacy-json/types.d.ts | 2 +- packages/react/src/html/types.d.ts | 5 +- .../react/src/html/ui/components/Banner.jsx | 4 +- .../react/src/html/ui/components/CodeBox.jsx | 4 +- .../components/DocumentationIndex/index.jsx | 6 +- .../src/html/ui/components/Layout/index.jsx | 10 +- .../src/html/ui/components/MetaBar/index.jsx | 6 +- .../react/src/html/ui/components/NavBar.jsx | 6 +- .../html/ui/components/SearchBox/index.jsx | 2 +- .../src/html/ui/components/SideBar/index.jsx | 12 +- packages/react/src/html/ui/types.d.ts | 5 +- packages/react/src/html/utils/processing.mjs | 4 +- packages/react/src/jsx-ast/types.d.ts | 1 + .../react/src/jsx-ast/utils/buildBarProps.mjs | 2 +- .../react/src/jsx-ast/utils/buildContent.mjs | 8 +- .../react/src/jsx-ast/utils/signature.mjs | 2 +- packages/react/src/orama-db/types.d.ts | 2 +- packages/react/src/section-pages/generate.mjs | 2 +- pnpm-lock.yaml | 341 ------------------ scripts/update-type-map.mjs | 2 +- 27 files changed, 62 insertions(+), 409 deletions(-) diff --git a/.oxfmtrc.json b/.oxfmtrc.json index ddbde164a..14c8e3181 100644 --- a/.oxfmtrc.json +++ b/.oxfmtrc.json @@ -11,6 +11,19 @@ "bracketSameLine": false, "arrowParens": "avoid", "sortPackageJson": false, + "sortImports": { + "groups": [ + "builtin", + "external", + "internal", + ["sibling", "parent"], + "index", + "unknown" + ], + "newlinesBetween": true, + "order": "asc", + "ignoreCase": true + }, "ignorePatterns": [ "pnpm-lock.yaml", "packages/node/src/api-links/__tests__/fixtures/", diff --git a/.oxlintrc.json b/.oxlintrc.json index 54685339f..41346e31b 100644 --- a/.oxlintrc.json +++ b/.oxlintrc.json @@ -3,10 +3,6 @@ "plugins": ["import"], "jsPlugins": [ "eslint-plugin-react-x", - { - "name": "import-x-js", - "specifier": "eslint-plugin-import-x" - }, { "name": "jsdoc-js", "specifier": "eslint-plugin-jsdoc" @@ -148,25 +144,7 @@ "curly": ["error", "all"], "import/namespace": "off", "import/no-named-as-default": "off", - "import/no-named-as-default-member": "off", - "import-x-js/order": [ - "error", - { - "groups": [ - "builtin", - "external", - "internal", - ["sibling", "parent"], - "index", - "unknown" - ], - "newlines-between": "always", - "alphabetize": { - "order": "asc", - "caseInsensitive": true - } - } - ] + "import/no-named-as-default-member": "off" }, "jsPlugins": ["eslint-plugin-react-x"], "globals": { diff --git a/package.json b/package.json index ec8ca71e9..6ffd6e249 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,6 @@ "@types/node": "~24.10.1", "@types/semver": "~7.8.0", "c8": "~12.0.0", - "eslint-plugin-import-x": "4.17.1", "eslint-plugin-jsdoc": "64.3.1", "eslint-plugin-react-x": "5.18.6", "husky": "9.1.7", diff --git a/packages/core/src/generators/metadata/types.d.ts b/packages/core/src/generators/metadata/types.d.ts index 9529d77ad..c84305c37 100644 --- a/packages/core/src/generators/metadata/types.d.ts +++ b/packages/core/src/generators/metadata/types.d.ts @@ -1,5 +1,5 @@ -import type { Position } from 'unist'; import type { Root, Node, Data, Blockquote, Heading } from 'mdast'; +import type { Position } from 'unist'; export type Generator = GeneratorMetadata< {}, diff --git a/packages/core/src/utils/configuration/types.d.ts b/packages/core/src/utils/configuration/types.d.ts index 1c29326cd..b9b4b6299 100644 --- a/packages/core/src/utils/configuration/types.d.ts +++ b/packages/core/src/utils/configuration/types.d.ts @@ -1,4 +1,5 @@ import type { SemVer } from 'semver'; + import type { ReleaseEntry } from '#parsers/types'; export type Configuration = { diff --git a/packages/node-legacy/src/legacy-html-all/index.mjs b/packages/node-legacy/src/legacy-html-all/index.mjs index aa9ca26e8..b14b5e16a 100644 --- a/packages/node-legacy/src/legacy-html-all/index.mjs +++ b/packages/node-legacy/src/legacy-html-all/index.mjs @@ -1,7 +1,7 @@ 'use strict'; -import { generate } from './generate.mjs'; import legacyHtml from '../legacy-html/index.mjs'; +import { generate } from './generate.mjs'; /** * This generator generates the legacy HTML pages of the legacy API docs diff --git a/packages/node-legacy/src/legacy-json/generate.mjs b/packages/node-legacy/src/legacy-json/generate.mjs index 331b48d6d..9ef52daf8 100644 --- a/packages/node-legacy/src/legacy-json/generate.mjs +++ b/packages/node-legacy/src/legacy-json/generate.mjs @@ -6,8 +6,8 @@ import getConfig from '@doc-kit/core/utils/configuration/index.mjs'; import { writeFile, withExt } from '@doc-kit/core/utils/file.mjs'; import { groupNodesByModule } from '@doc-kit/core/utils/generators.mjs'; -import { createSectionBuilder } from './utils/buildSection.mjs'; import { legacyToJSON } from '../utils/legacyToJSON.mjs'; +import { createSectionBuilder } from './utils/buildSection.mjs'; const buildSection = createSectionBuilder(); diff --git a/packages/node-legacy/src/legacy-json/types.d.ts b/packages/node-legacy/src/legacy-json/types.d.ts index 0ffce98d8..9c2479448 100644 --- a/packages/node-legacy/src/legacy-json/types.d.ts +++ b/packages/node-legacy/src/legacy-json/types.d.ts @@ -1,6 +1,6 @@ -import { ListItem } from '@types/mdast'; import { MetadataEntry } from '@doc-kit/core/generators/metadata/types'; import { MethodSignature } from '@doc-kit/core/utils/signature/types'; +import { ListItem } from '@types/mdast'; /** * Contains metadata related to changes, additions, removals, and deprecated statuses of an entry. diff --git a/packages/react/src/html/types.d.ts b/packages/react/src/html/types.d.ts index ed1da80c6..ff9471e02 100644 --- a/packages/react/src/html/types.d.ts +++ b/packages/react/src/html/types.d.ts @@ -1,9 +1,10 @@ -import type { PageCode } from '../jsx-ast/types'; import type { GlobalConfiguration } from '@doc-kit/core/utils/configuration/types'; -import type SideBar from '@node-core/ui-components/Containers/Sidebar'; import type NavBar from '@node-core/ui-components/Containers/NavBar'; +import type SideBar from '@node-core/ui-components/Containers/Sidebar'; import type { ComponentProps } from 'preact'; +import type { PageCode } from '../jsx-ast/types'; + // An attribute bag rendered into an HTML tag. `true` becomes a valueless // attribute (e.g. `crossorigin`); `false`/`null`/`undefined` are omitted. export type TagAttributes = Record< diff --git a/packages/react/src/html/ui/components/Banner.jsx b/packages/react/src/html/ui/components/Banner.jsx index ea0618154..de2e35a2e 100644 --- a/packages/react/src/html/ui/components/Banner.jsx +++ b/packages/react/src/html/ui/components/Banner.jsx @@ -1,12 +1,12 @@ import { ArrowUpRightIcon } from '@heroicons/react/24/outline'; import Banner from '@node-core/ui-components/Common/Banner'; +import { version } from '#theme/config'; + import useBanners from '../hooks/useBanners.mjs'; import useRemoteConfig from '../hooks/useRemoteConfig.mjs'; import withIsland from '../islands/withIsland.jsx'; -import { version } from '#theme/config'; - const Banners = () => { const remote = useRemoteConfig(); const [banner, dismissBanner] = useBanners( diff --git a/packages/react/src/html/ui/components/CodeBox.jsx b/packages/react/src/html/ui/components/CodeBox.jsx index 4e615a97e..4faa0ad59 100644 --- a/packages/react/src/html/ui/components/CodeBox.jsx +++ b/packages/react/src/html/ui/components/CodeBox.jsx @@ -1,9 +1,9 @@ import BaseCodeBox from '@node-core/ui-components/Common/BaseCodeBox'; -import withIsland from '../islands/withIsland.jsx'; - import { languageDisplayNameMap } from '#theme/config'; +import withIsland from '../islands/withIsland.jsx'; + /** * Get the display name of a language * @param {string} language - The language ID diff --git a/packages/react/src/html/ui/components/DocumentationIndex/index.jsx b/packages/react/src/html/ui/components/DocumentationIndex/index.jsx index abcd61a0a..eb5dc1d3f 100644 --- a/packages/react/src/html/ui/components/DocumentationIndex/index.jsx +++ b/packages/react/src/html/ui/components/DocumentationIndex/index.jsx @@ -1,10 +1,10 @@ import Badge from '@node-core/ui-components/Common/Badge'; -import styles from './index.module.css'; -import { STABILITY_KINDS, STABILITY_LABELS } from '../constants.mjs'; - import { documentationIndex } from '#theme/config'; +import { STABILITY_KINDS, STABILITY_LABELS } from '../constants.mjs'; +import styles from './index.module.css'; + /** * @typedef {Object} DocumentationIndexEntry * @property {string} api - Basename of the document, linked as `${api}.html` diff --git a/packages/react/src/html/ui/components/Layout/index.jsx b/packages/react/src/html/ui/components/Layout/index.jsx index 1c89ee27a..c8a7e2020 100644 --- a/packages/react/src/html/ui/components/Layout/index.jsx +++ b/packages/react/src/html/ui/components/Layout/index.jsx @@ -2,17 +2,17 @@ import CrossLink from '@node-core/ui-components/Common/BaseCrossLink'; import TableOfContents from '@node-core/ui-components/Common/TableOfContents'; import Article from '@node-core/ui-components/Containers/Article'; -import Banner from '../Banner'; -import styles from './index.module.css'; -import { relativeOrAbsolute } from '../../utils/relativeOrAbsolute.mjs'; -import { renderLabel } from '../../utils/renderLabel'; - import { navigation, chunks } from '#theme/config'; import Footer from '#theme/Footer'; import MetaBar from '#theme/Metabar'; import NavBar from '#theme/Navigation'; import SideBar from '#theme/Sidebar'; +import { relativeOrAbsolute } from '../../utils/relativeOrAbsolute.mjs'; +import { renderLabel } from '../../utils/renderLabel'; +import Banner from '../Banner'; +import styles from './index.module.css'; + /** * Flattens a section tree into document order. * diff --git a/packages/react/src/html/ui/components/MetaBar/index.jsx b/packages/react/src/html/ui/components/MetaBar/index.jsx index 6b0849c5c..b657e224f 100644 --- a/packages/react/src/html/ui/components/MetaBar/index.jsx +++ b/packages/react/src/html/ui/components/MetaBar/index.jsx @@ -3,11 +3,11 @@ import Badge from '@node-core/ui-components/Common/Badge'; import MetaBar from '@node-core/ui-components/Containers/MetaBar'; import GitHubIcon from '@node-core/ui-components/Icons/Social/GitHub'; -import styles from './index.module.css'; +import { editURL, chunks } from '#theme/config'; + import { relativeOrAbsolute } from '../../utils/relativeOrAbsolute.mjs'; import { STABILITY_KINDS, STABILITY_LABELS } from '../constants.mjs'; - -import { editURL, chunks } from '#theme/config'; +import styles from './index.module.css'; const iconMap = { JSON: CodeBracketIcon, diff --git a/packages/react/src/html/ui/components/NavBar.jsx b/packages/react/src/html/ui/components/NavBar.jsx index a3a77f31f..d0c62f90f 100644 --- a/packages/react/src/html/ui/components/NavBar.jsx +++ b/packages/react/src/html/ui/components/NavBar.jsx @@ -2,12 +2,12 @@ import NavBar from '@node-core/ui-components/Containers/NavBar'; import styles from '@node-core/ui-components/Containers/NavBar/index.module.css'; import GitHubIcon from '@node-core/ui-components/Icons/Social/GitHub'; -import SearchBox from './SearchBox'; -import ThemeToggle from './ThemeToggle.jsx'; - import { repository, showSearchBox, navigation } from '#theme/config'; import Logo from '#theme/Logo'; +import SearchBox from './SearchBox'; +import ThemeToggle from './ThemeToggle.jsx'; + /** * NavBar component that displays the headings, search, etc. */ diff --git a/packages/react/src/html/ui/components/SearchBox/index.jsx b/packages/react/src/html/ui/components/SearchBox/index.jsx index f8904329d..311a7f8b3 100644 --- a/packages/react/src/html/ui/components/SearchBox/index.jsx +++ b/packages/react/src/html/ui/components/SearchBox/index.jsx @@ -7,10 +7,10 @@ import SearchModal from '@node-core/ui-components/Common/Search/Modal'; import SearchResults from '@node-core/ui-components/Common/Search/Results'; import SearchHit from '@node-core/ui-components/Common/Search/Results/Hit'; -import styles from './index.module.css'; import useOrama from '../../hooks/useOrama.mjs'; import withIsland from '../../islands/withIsland.jsx'; import { relativeOrAbsolute } from '../../utils/relativeOrAbsolute.mjs'; +import styles from './index.module.css'; /** * Dismisses the search modal the clicked hit sits in diff --git a/packages/react/src/html/ui/components/SideBar/index.jsx b/packages/react/src/html/ui/components/SideBar/index.jsx index c053e1937..8d2c3cbe9 100644 --- a/packages/react/src/html/ui/components/SideBar/index.jsx +++ b/packages/react/src/html/ui/components/SideBar/index.jsx @@ -1,12 +1,6 @@ import Select from '@node-core/ui-components/Common/Select'; import SideBar from '@node-core/ui-components/Containers/Sidebar'; -import styles from './index.module.css'; -import useRemoteConfig from '../../hooks/useRemoteConfig.mjs'; -import withIsland from '../../islands/withIsland.jsx'; -import { relativeOrAbsolute } from '../../utils/relativeOrAbsolute.mjs'; -import { renderLabel } from '../../utils/renderLabel.jsx'; - import { project, version, @@ -16,6 +10,12 @@ import { chunks, } from '#theme/config'; +import useRemoteConfig from '../../hooks/useRemoteConfig.mjs'; +import withIsland from '../../islands/withIsland.jsx'; +import { relativeOrAbsolute } from '../../utils/relativeOrAbsolute.mjs'; +import { renderLabel } from '../../utils/renderLabel.jsx'; +import styles from './index.module.css'; + /** * Extracts the major version number from a version string. * @param {string} v - Version string (e.g., 'v14.0.0', '14.0.0') diff --git a/packages/react/src/html/ui/types.d.ts b/packages/react/src/html/ui/types.d.ts index 526f8c2f2..a0756d6d0 100644 --- a/packages/react/src/html/ui/types.d.ts +++ b/packages/react/src/html/ui/types.d.ts @@ -1,8 +1,9 @@ -import { GlobalConfiguration } from '@doc-kit/core/utils/configuration/types'; import { MetadataEntry } from '@doc-kit/core/generators/metadata/types'; -import { Configuration } from '../types'; +import { GlobalConfiguration } from '@doc-kit/core/utils/configuration/types'; import { SemVer } from 'semver'; +import { Configuration } from '../types'; + declare module '#theme/config' { // From global configuration export const repository: GlobalConfiguration['repository']; diff --git a/packages/react/src/html/utils/processing.mjs b/packages/react/src/html/utils/processing.mjs index 5c824e96d..9d344e59e 100644 --- a/packages/react/src/html/utils/processing.mjs +++ b/packages/react/src/html/utils/processing.mjs @@ -1,10 +1,10 @@ import getConfig from '@doc-kit/core/utils/configuration/index.mjs'; import { populate } from '@doc-kit/core/utils/configuration/templates.mjs'; -import createConfigSource from './config.mjs'; -import { relativeOrAbsolute } from './relativeOrAbsolute.mjs'; import { FONT_DIRECTORY, FONTS, SPECULATION_RULES } from '../constants.mjs'; import { THEME_SCRIPT } from '../ui/theme-script.mjs'; +import createConfigSource from './config.mjs'; +import { relativeOrAbsolute } from './relativeOrAbsolute.mjs'; /** * Creates the virtual imports for one bundle target. diff --git a/packages/react/src/jsx-ast/types.d.ts b/packages/react/src/jsx-ast/types.d.ts index f70d84088..de5771abf 100644 --- a/packages/react/src/jsx-ast/types.d.ts +++ b/packages/react/src/jsx-ast/types.d.ts @@ -1,4 +1,5 @@ import type { MetadataEntry } from '@doc-kit/core/generators/metadata/types'; + import type { PageContent } from './utils/buildContent.mjs'; // What the worker returns for a page: the fragment serialized to JSX code. diff --git a/packages/react/src/jsx-ast/utils/buildBarProps.mjs b/packages/react/src/jsx-ast/utils/buildBarProps.mjs index 54d08f159..5bb3823e8 100644 --- a/packages/react/src/jsx-ast/utils/buildBarProps.mjs +++ b/packages/react/src/jsx-ast/utils/buildBarProps.mjs @@ -2,8 +2,8 @@ import { visit } from 'unist-util-visit'; -import { getFullName } from './signature.mjs'; import { TOC_MAX_HEADING_DEPTH } from '../constants.mjs'; +import { getFullName } from './signature.mjs'; // Callable heading types whose ToC label should be the bare function name // rather than the full signature. diff --git a/packages/react/src/jsx-ast/utils/buildContent.mjs b/packages/react/src/jsx-ast/utils/buildContent.mjs index 8065ccca8..3a86d8aad 100644 --- a/packages/react/src/jsx-ast/utils/buildContent.mjs +++ b/packages/react/src/jsx-ast/utils/buildContent.mjs @@ -16,10 +16,6 @@ import { slice } from 'mdast-util-slice-markdown'; import { u as createTree } from 'unist-builder'; import { SKIP, visit } from 'unist-util-visit'; -import { createJSXElement } from './ast.mjs'; -import { extractHeadings, extractTextContent } from './buildBarProps.mjs'; -import { getRemarkRecma as remark } from './remark.mjs'; -import { renderAsJSX } from './render.mjs'; import { JSX_IMPORTS } from '../../html/constants.mjs'; import { STABILITY_LEVELS, @@ -30,6 +26,10 @@ import { TYPES_WITH_METHOD_SIGNATURES, TYPE_PREFIX_LENGTH, } from '../constants.mjs'; +import { createJSXElement } from './ast.mjs'; +import { extractHeadings, extractTextContent } from './buildBarProps.mjs'; +import { getRemarkRecma as remark } from './remark.mjs'; +import { renderAsJSX } from './render.mjs'; import { insertSignatureCodeBlock, createSignatureTable, diff --git a/packages/react/src/jsx-ast/utils/signature.mjs b/packages/react/src/jsx-ast/utils/signature.mjs index 4c991a2e4..d4efdee4a 100644 --- a/packages/react/src/jsx-ast/utils/signature.mjs +++ b/packages/react/src/jsx-ast/utils/signature.mjs @@ -4,9 +4,9 @@ import { parseListItem } from '@doc-kit/core/utils/signature/parseList.mjs'; import parseSignature from '@doc-kit/core/utils/signature/parseSignature.mjs'; import { h as createElement } from 'hastscript'; +import { JSX_IMPORTS } from '../../html/constants.mjs'; import { createJSXElement } from './ast.mjs'; import { parseListIntoProperties } from './types.mjs'; -import { JSX_IMPORTS } from '../../html/constants.mjs'; /** * Generates a string representation of a function or class signature. diff --git a/packages/react/src/orama-db/types.d.ts b/packages/react/src/orama-db/types.d.ts index 48db0b4f5..37f82e5a0 100644 --- a/packages/react/src/orama-db/types.d.ts +++ b/packages/react/src/orama-db/types.d.ts @@ -1,5 +1,5 @@ -import type { Orama, RawData } from '@orama/orama'; import type { MetadataEntry } from '@doc-kit/core/generators/metadata/types'; +import type { Orama, RawData } from '@orama/orama'; /** * Schema for the Orama database entry diff --git a/packages/react/src/section-pages/generate.mjs b/packages/react/src/section-pages/generate.mjs index 830ef0f36..12e134cd5 100644 --- a/packages/react/src/section-pages/generate.mjs +++ b/packages/react/src/section-pages/generate.mjs @@ -4,11 +4,11 @@ import getConfig from '@doc-kit/core/utils/configuration/index.mjs'; import { groupNodesByModule } from '@doc-kit/core/utils/generators.mjs'; import { visit } from 'unist-util-visit'; +import { headingLabel } from '../jsx-ast/utils/buildBarProps.mjs'; import { MIN_CHUNKS } from './constants.mjs'; import { buildAnchorMap, rewriteUrl } from './utils/links.mjs'; import { createUniqueNamer, toFileName } from './utils/naming.mjs'; import { splitIntoChunks } from './utils/split.mjs'; -import { headingLabel } from '../jsx-ast/utils/buildBarProps.mjs'; // The nodes that carry a URL authored relative to the module page const URL_NODE_TYPES = new Set(['link', 'image', 'definition']); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4baf400a8..724ac7466 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -35,9 +35,6 @@ importers: c8: specifier: ~12.0.0 version: 12.0.0 - eslint-plugin-import-x: - specifier: 4.17.1 - version: 4.17.1(@typescript-eslint/utils@8.68.0(eslint@10.9.1(supports-color@7.2.0))(supports-color@7.2.0)(typescript@5.9.3))(eslint@10.9.1(supports-color@7.2.0))(supports-color@7.2.0) eslint-plugin-jsdoc: specifier: 64.3.1 version: 64.3.1(eslint@10.9.1(supports-color@7.2.0))(supports-color@7.2.0)(typescript@5.9.3) @@ -419,15 +416,6 @@ packages: resolution: {integrity: sha512-y7/yvZ2TPAnR9+jnc00klvNNLkJiXFFrQA/hlLCcxA9a2A4zQIOimyFQ9XfwYKiGD1fb5GY8vbKIIgO8d5Tb2A==} engines: {node: '>= 20.12.0'} - '@emnapi/core@1.10.0': - resolution: {integrity: sha512-yq6OkJ4p82CAfPl0u9mQebQHKPJkY7WrIuk205cTYnYe+k2Z8YBh11FrbRG/H6ihirqcacOgl2BIO8oyMQLeXw==} - - '@emnapi/runtime@1.10.0': - resolution: {integrity: sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA==} - - '@emnapi/wasi-threads@1.2.1': - resolution: {integrity: sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==} - '@es-joy/jsdoccomment@0.95.1': resolution: {integrity: sha512-LO/RI08Fo9bhXwB7Od9G+1j3eSNq63+ZS5CQO8YLXHbDg6kx6S/DhTeY0+Fc9uZrjK1zZSyTx8Sg5gv5DIoCnA==} engines: {node: ^22.22.2 || >=24.15.0} @@ -696,13 +684,6 @@ packages: resolution: {integrity: sha512-xJIPs+bYuc9ASBl+cvGsKbGrJmS6fAKaSZCnT0lhahT5rhA2VVy9/EcIgd2JhtEuFOJNx7UHNn/qiTPTY4nrQw==} engines: {node: '>= 10'} - '@napi-rs/wasm-runtime@1.2.4': - resolution: {integrity: sha512-AJxoUD2/15ESHbvpcyjU274nsAPLuOtPHCk0vKJM5pj//Fg/B1FXNWjPnXTT9PymCYYiHo4zPj0ZomXBKhoy7g==} - engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} - peerDependencies: - '@emnapi/core': ^1.7.1 || ^2.0.0-alpha.4 - '@emnapi/runtime': ^1.7.1 || ^2.0.0-alpha.4 - '@noble/hashes@1.8.0': resolution: {integrity: sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==} engines: {node: ^14.21.3 || >=16} @@ -1552,9 +1533,6 @@ packages: '@swc/wasm@1.15.47': resolution: {integrity: sha512-AdcxrBWz13mPnXxzxr5Lkxkgknwi0fAaArdehpYENB/iIds+WEWVcof3FJKfYAPP7TOeCsaSTKFTSsP3/YX7iw==} - '@tybys/wasm-util@0.10.4': - resolution: {integrity: sha512-W3c4gRigFS0T/Ma4qIYF3GDAc5AQdHb1yL5znJT1Zv1YaD9Kitx656wBjvr19qbiosmZT8lWDM5BEMynUqX65A==} - '@types/debug@4.1.13': resolution: {integrity: sha512-KSVgmQmzMwPlmtljOomayoR89W4FynCAi3E8PPs7vmDVPe84hT+vGPKkJfThkmXs0x0jAaa9U8uW8bbfyS2fWw==} @@ -1655,126 +1633,6 @@ packages: '@ungap/structured-clone@1.3.3': resolution: {integrity: sha512-60YRaenCQcVjYEKOcG824+DRGGIQ3VKErcBoAEDJZz5bKIs2ZG+X/H9Nk+Q6EVkwJk5QNApxbrc5QtBSwtrXAg==} - '@unrs/resolver-binding-android-arm-eabi@1.12.2': - resolution: {integrity: sha512-g5T90pqg1bo/7mytQx6F4iBNC0Wsh9cu+z9veDbFjc7HjpesJFWD7QMS0NGStXM075+7dJPPVvBbpZlnrdpi/w==} - cpu: [arm] - os: [android] - - '@unrs/resolver-binding-android-arm64@1.12.2': - resolution: {integrity: sha512-YGCRZv/9GLhwmz6mYDeTsm/92BAyR28l6c2ReweVW5pWgfsitWLY8upvfRlGdoyD8HjeTHSYJWyZGD4KJA/nFQ==} - cpu: [arm64] - os: [android] - - '@unrs/resolver-binding-darwin-arm64@1.12.2': - resolution: {integrity: sha512-u9DiNT1auQMO20A9SyTuG3wUgQWB9Z7KjAg0uFuCDR1FsAY8A0CG2S6JpHS1xwm/w1G08bjXZDcyOCjv1WAm2w==} - cpu: [arm64] - os: [darwin] - - '@unrs/resolver-binding-darwin-x64@1.12.2': - resolution: {integrity: sha512-f7rPLi/T1HVKZu/u6t87lroib16n8vrSzcyxI7lg4BGO9UF26KhQL44sd9eOUgrTYhvRXtWOIZT5PejdPyJfUA==} - cpu: [x64] - os: [darwin] - - '@unrs/resolver-binding-freebsd-x64@1.12.2': - resolution: {integrity: sha512-BpcOjWCJub6nRZUS2zA20pmLvjtqAtGejETaIyRLiZiQf++cbrjltLA5NN/xaXfqeOBOSlMFbemIl5/S5tljmg==} - cpu: [x64] - os: [freebsd] - - '@unrs/resolver-binding-linux-arm-gnueabihf@1.12.2': - resolution: {integrity: sha512-vZTDvdSISZjJx66OzJqtsOhzifbqRjbmI1Mnu49fQDwog5GtDI4QidRiEAYbZCRj9C8YZEW+3ZjqsyS9GR4k2A==} - cpu: [arm] - os: [linux] - - '@unrs/resolver-binding-linux-arm-musleabihf@1.12.2': - resolution: {integrity: sha512-BiPI+IrIlwcW4nLLMM21+B1dFPzd55yAVgVGrdgDjNef+ch03GdxrcyaIz8X9SsQirh/kCQ7mviyWlMxdh2D7g==} - cpu: [arm] - os: [linux] - - '@unrs/resolver-binding-linux-arm64-gnu@1.12.2': - resolution: {integrity: sha512-zJc0H99FEPoFfSrNpa91HYfxzfAJCr502oxNK1cfdC9hlaFI43RT+JFCann9JUgZmLzzntChHyn13Sgn9ljHNg==} - cpu: [arm64] - os: [linux] - libc: [glibc] - - '@unrs/resolver-binding-linux-arm64-musl@1.12.2': - resolution: {integrity: sha512-KQ3Lki6l+Pz1k/eBipN41ES+YUK30beLGb9YqcB1O542cyLCNE6GaxrfcY3T6EezmGGk84wb5XyO9loTM9tkcA==} - cpu: [arm64] - os: [linux] - libc: [musl] - - '@unrs/resolver-binding-linux-loong64-gnu@1.12.2': - resolution: {integrity: sha512-3SJGEh1DborhG6pyxvhPzCT4bbSIVihsvgJc13P1bHG7KLdNDaF9T3gsTwFc7Jw/5Y5/iWOjkEx7Zy0NvCGX3Q==} - cpu: [loong64] - os: [linux] - libc: [glibc] - - '@unrs/resolver-binding-linux-loong64-musl@1.12.2': - resolution: {integrity: sha512-jiuG/Obbel7uw1PwHNFfrkiKhLAF6mnyZ6aWlOAVN9WqKm8v0OFGnciJIHu8+CMvXLQ8AD51LPzAoUfT21D5Ew==} - cpu: [loong64] - os: [linux] - libc: [musl] - - '@unrs/resolver-binding-linux-ppc64-gnu@1.12.2': - resolution: {integrity: sha512-q7xRvVpmcfeL+LlZg8Pbbo6QaTZwDU5BaGZbwfhkEsXJn3Was8xYfE0RBH266xZt0rM6B7i8xAYIvjthuUIWHg==} - cpu: [ppc64] - os: [linux] - libc: [glibc] - - '@unrs/resolver-binding-linux-riscv64-gnu@1.12.2': - resolution: {integrity: sha512-0CVdx6lcnT3Q9inOH8tsMIOJ6ImndllMjqJHg8RLVdB7Vq4SfkEXl9mCSsVNuNA4MCYycRicCUxPCabVHJRr6A==} - cpu: [riscv64] - os: [linux] - libc: [glibc] - - '@unrs/resolver-binding-linux-riscv64-musl@1.12.2': - resolution: {integrity: sha512-iOwlRo9vnp6R6ohHQS11n0NnfdXx/omhkocmIfaPRpQhKZ+3BDMkkdRVh53qjkFkpPddf+FETA28NwGN7l5l+w==} - cpu: [riscv64] - os: [linux] - libc: [musl] - - '@unrs/resolver-binding-linux-s390x-gnu@1.12.2': - resolution: {integrity: sha512-HYJtLfXq94q8iZNFT1lknx258wlkkWhZeUXJRqzKBBUJ00CvZ+N33zgbCqimLjsyw5Va6uUxhVa12mI+kaveEw==} - cpu: [s390x] - os: [linux] - libc: [glibc] - - '@unrs/resolver-binding-linux-x64-gnu@1.12.2': - resolution: {integrity: sha512-mPsUhunKKDih5O96Y6enDQyHc1SqBPlY1E/SfMWDM3EdJ95Z9CArPeCVwCCqbP45ljvivdEk8Fxn+SIb1rDAJQ==} - cpu: [x64] - os: [linux] - libc: [glibc] - - '@unrs/resolver-binding-linux-x64-musl@1.12.2': - resolution: {integrity: sha512-azrt6+5ydLd8Vt210AAFis/lZevSfPw93EJRIJG+xPu4WCJ8K0kppCTpMyLPcKT7H15M4Jnt2tMp5bOvCkRC6A==} - cpu: [x64] - os: [linux] - libc: [musl] - - '@unrs/resolver-binding-openharmony-arm64@1.12.2': - resolution: {integrity: sha512-YZ9hP4O0X9PQb8eO980qmLNGH4zT3I9+SZTdt0Pr0YyuGQhYKoOZkV02VzrzyOZJ5xIJ3UFIenKkUkGg8GjgWQ==} - cpu: [arm64] - os: [openharmony] - - '@unrs/resolver-binding-wasm32-wasi@1.12.2': - resolution: {integrity: sha512-tYFDIkMxSflfEc/h92ZWNsZlHSwgimbNHSO3PL2JWQHfCuC2q316jMyYU9TIWZsFK2bQwyK5VAdYgn8ygPj69A==} - engines: {node: '>=14.0.0'} - cpu: [wasm32] - - '@unrs/resolver-binding-win32-arm64-msvc@1.12.2': - resolution: {integrity: sha512-qzNyg3xL0VPQmCaUh+N5jSitce6k+uCBfMDesWRnlULOZaqUkaJ0ybdT+UqlAWJoQjuqfIU/0Ptx9bteN4D82g==} - cpu: [arm64] - os: [win32] - - '@unrs/resolver-binding-win32-ia32-msvc@1.12.2': - resolution: {integrity: sha512-WD9sY00OfpHVGfsnHZoA8jVT+esS/Bg8z8jzxp5BnDCjjwsuKsPQrzswwpFy4J1AUJbXPRfkpcX0mXrzeXW79g==} - cpu: [ia32] - os: [win32] - - '@unrs/resolver-binding-win32-x64-msvc@1.12.2': - resolution: {integrity: sha512-nAB74NfSNKknqQ1RrYj6uz8FcXEomu/MATJZxh/x+BArzN2U3JbOYC0APYzUIGhVY3m5hRxA8VPNdPBoG8txlA==} - cpu: [x64] - os: [win32] - '@vcarl/remark-headings@0.1.0': resolution: {integrity: sha512-ffQxJUcapJ9Bk+fiGN49YJ9RaYMibrSTSezB1Fcrtu+0YSZxA3bsaLlIv1u/4sjPIeW/BKrs4xtMT3l3P9Ba5Q==} @@ -1983,28 +1841,6 @@ packages: resolution: {integrity: sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==} engines: {node: '>=12'} - eslint-import-context@0.1.9: - resolution: {integrity: sha512-K9Hb+yRaGAGUbwjhFNHvSmmkZs9+zbuoe3kFQ4V1wYjrepUFYM2dZAfNtjbbj3qsPfUfsA68Bx/ICWQMi+C8Eg==} - engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} - peerDependencies: - unrs-resolver: ^1.0.0 - peerDependenciesMeta: - unrs-resolver: - optional: true - - eslint-plugin-import-x@4.17.1: - resolution: {integrity: sha512-4cdstYkKCyjumM2Q9NSI03K8D2a9F4Ssz33K2lv2hQa4KmR9jPLwk3uWGtNvclfqBrPGfGuMBwsGMbe6dMRbfg==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - '@typescript-eslint/utils': ^8.56.0 - eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 - eslint-import-resolver-node: '*' - peerDependenciesMeta: - '@typescript-eslint/utils': - optional: true - eslint-import-resolver-node: - optional: true - eslint-plugin-jsdoc@64.3.1: resolution: {integrity: sha512-iBAAssLx5P8RlfQTzY8+1o5O2/JCoFdT8Mpzl+38OmRen5s1SPmPvmpBwAb3Er21cQ8J39EgfFYpUdrvVfH8bg==} engines: {node: ^22.22.2 || >=24.15.0} @@ -2146,9 +1982,6 @@ packages: resolution: {integrity: sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==} engines: {node: '>=6'} - get-tsconfig@4.14.3: - resolution: {integrity: sha512-++QEw4DIY7WGoukz+/+A/8dGYPT9l9yIadnmSgZ8Rjr3YVSVDipQSO9CdnJo9ePqFqUUqh+wk9uIaoiAwsiPkA==} - github-slugger@2.0.0: resolution: {integrity: sha512-IaOQ9puYtjrkq7Y0Ygl9KDZnrf/aiUJYUpVf89y8kyaxbRG7Y1SrX/jaumrv81vc61+kiMempujsM3Yw7w5qcw==} @@ -2607,11 +2440,6 @@ packages: engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true - napi-postinstall@0.3.4: - resolution: {integrity: sha512-PHI5f1O0EP5xJ9gQmFGMS6IZcrVvTjpXjz7Na41gTE7eE2hK11lg04CECCYEEjdc17EV4DO+fkGEtt7TpTaTiQ==} - engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} - hasBin: true - natural-compare@1.4.0: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} @@ -2867,9 +2695,6 @@ packages: resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} engines: {node: '>=4'} - resolve-pkg-maps@1.0.0: - resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==} - rolldown@1.2.5: resolution: {integrity: sha512-VD2IE5PUG4Oj8zz2VGykiYd5wbnjdIiSsNQb8Qu5B+noEp+A78mu2iVvpp27g8es14Tk9rofNs5Tku9iQCS4fA==} engines: {node: ^20.19.0 || >=22.12.0} @@ -2930,10 +2755,6 @@ packages: spdx-license-ids@3.0.23: resolution: {integrity: sha512-CWLcCCH7VLu13TgOH+r8p1O/Znwhqv/dbb6lqWy67G+pT1kHmeD/+V36AVb/vq8QMIQwVShJ6Ssl5FPh0fuSdw==} - stable-hash-x@0.2.0: - resolution: {integrity: sha512-o3yWv49B/o4QZk5ZcsALc6t0+eCelPc44zZsLtCQnZPDwFpDYSWcDnrv2TtMmMbQ7uKo3J0HTURCqckw23czNQ==} - engines: {node: '>=12.0.0'} - stack-utils@2.0.6: resolution: {integrity: sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==} engines: {node: '>=10'} @@ -3082,9 +2903,6 @@ packages: unist-util-visit@5.1.0: resolution: {integrity: sha512-m+vIdyeCOpdr/QeQCu2EzxX/ohgS8KbnPDgFni4dQsfSCtpz8UqDyY5GjRru8PDKuYn7Fq19j1CQ+nJSsGKOzg==} - unrs-resolver@1.12.2: - resolution: {integrity: sha512-dmlRxBJJayXjqTwC+JtF1HhJmgf3ftQ3YejFcZrf4+KKtJv0qDsK1pjqaaVjG7wJ5NJ6UVP1OqRMQ71Z4C3rxQ==} - uri-js@4.4.1: resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} @@ -3372,22 +3190,6 @@ snapshots: fast-wrap-ansi: 0.2.2 sisteransi: 1.0.5 - '@emnapi/core@1.10.0': - dependencies: - '@emnapi/wasi-threads': 1.2.1 - tslib: 2.8.1 - optional: true - - '@emnapi/runtime@1.10.0': - dependencies: - tslib: 2.8.1 - optional: true - - '@emnapi/wasi-threads@1.2.1': - dependencies: - tslib: 2.8.1 - optional: true - '@es-joy/jsdoccomment@0.95.1': dependencies: '@types/estree': 1.0.9 @@ -3641,13 +3443,6 @@ snapshots: '@napi-rs/nice-win32-x64-msvc': 1.1.1 optional: true - '@napi-rs/wasm-runtime@1.2.4(@emnapi/core@1.10.0)(@emnapi/runtime@1.10.0)': - dependencies: - '@emnapi/core': 1.10.0 - '@emnapi/runtime': 1.10.0 - '@tybys/wasm-util': 0.10.4 - optional: true - '@noble/hashes@1.8.0': {} '@node-core/rehype-shiki@1.5.0(supports-color@7.2.0)': @@ -4343,11 +4138,6 @@ snapshots: '@swc/wasm@1.15.47': {} - '@tybys/wasm-util@0.10.4': - dependencies: - tslib: 2.8.1 - optional: true - '@types/debug@4.1.13': dependencies: '@types/ms': 2.1.0 @@ -4466,76 +4256,6 @@ snapshots: '@ungap/structured-clone@1.3.3': {} - '@unrs/resolver-binding-android-arm-eabi@1.12.2': - optional: true - - '@unrs/resolver-binding-android-arm64@1.12.2': - optional: true - - '@unrs/resolver-binding-darwin-arm64@1.12.2': - optional: true - - '@unrs/resolver-binding-darwin-x64@1.12.2': - optional: true - - '@unrs/resolver-binding-freebsd-x64@1.12.2': - optional: true - - '@unrs/resolver-binding-linux-arm-gnueabihf@1.12.2': - optional: true - - '@unrs/resolver-binding-linux-arm-musleabihf@1.12.2': - optional: true - - '@unrs/resolver-binding-linux-arm64-gnu@1.12.2': - optional: true - - '@unrs/resolver-binding-linux-arm64-musl@1.12.2': - optional: true - - '@unrs/resolver-binding-linux-loong64-gnu@1.12.2': - optional: true - - '@unrs/resolver-binding-linux-loong64-musl@1.12.2': - optional: true - - '@unrs/resolver-binding-linux-ppc64-gnu@1.12.2': - optional: true - - '@unrs/resolver-binding-linux-riscv64-gnu@1.12.2': - optional: true - - '@unrs/resolver-binding-linux-riscv64-musl@1.12.2': - optional: true - - '@unrs/resolver-binding-linux-s390x-gnu@1.12.2': - optional: true - - '@unrs/resolver-binding-linux-x64-gnu@1.12.2': - optional: true - - '@unrs/resolver-binding-linux-x64-musl@1.12.2': - optional: true - - '@unrs/resolver-binding-openharmony-arm64@1.12.2': - optional: true - - '@unrs/resolver-binding-wasm32-wasi@1.12.2': - dependencies: - '@emnapi/core': 1.10.0 - '@emnapi/runtime': 1.10.0 - '@napi-rs/wasm-runtime': 1.2.4(@emnapi/core@1.10.0)(@emnapi/runtime@1.10.0) - optional: true - - '@unrs/resolver-binding-win32-arm64-msvc@1.12.2': - optional: true - - '@unrs/resolver-binding-win32-ia32-msvc@1.12.2': - optional: true - - '@unrs/resolver-binding-win32-x64-msvc@1.12.2': - optional: true - '@vcarl/remark-headings@0.1.0': dependencies: mdast-util-to-string: 3.2.0 @@ -4708,30 +4428,6 @@ snapshots: escape-string-regexp@5.0.0: {} - eslint-import-context@0.1.9(unrs-resolver@1.12.2): - dependencies: - get-tsconfig: 4.14.3 - stable-hash-x: 0.2.0 - optionalDependencies: - unrs-resolver: 1.12.2 - - eslint-plugin-import-x@4.17.1(@typescript-eslint/utils@8.68.0(eslint@10.9.1(supports-color@7.2.0))(supports-color@7.2.0)(typescript@5.9.3))(eslint@10.9.1(supports-color@7.2.0))(supports-color@7.2.0): - dependencies: - '@typescript-eslint/types': 8.68.0 - comment-parser: 1.4.8 - debug: 4.4.3(supports-color@7.2.0) - eslint: 10.9.1(supports-color@7.2.0) - eslint-import-context: 0.1.9(unrs-resolver@1.12.2) - is-glob: 4.0.3 - minimatch: 10.2.6 - semver: 7.8.5 - stable-hash-x: 0.2.0 - unrs-resolver: 1.12.2 - optionalDependencies: - '@typescript-eslint/utils': 8.68.0(eslint@10.9.1(supports-color@7.2.0))(supports-color@7.2.0)(typescript@5.9.3) - transitivePeerDependencies: - - supports-color - eslint-plugin-jsdoc@64.3.1(eslint@10.9.1(supports-color@7.2.0))(supports-color@7.2.0)(typescript@5.9.3): dependencies: '@es-joy/jsdoccomment': 0.95.1 @@ -4914,10 +4610,6 @@ snapshots: get-nonce@1.0.1: {} - get-tsconfig@4.14.3: - dependencies: - resolve-pkg-maps: 1.0.0 - github-slugger@2.0.0: {} glob-parent@6.0.2: @@ -5678,8 +5370,6 @@ snapshots: nanoid@3.3.18: {} - napi-postinstall@0.3.4: {} - natural-compare@1.4.0: {} nth-check@2.1.1: @@ -5999,8 +5689,6 @@ snapshots: resolve-from@4.0.0: {} - resolve-pkg-maps@1.0.0: {} - rolldown@1.2.5: dependencies: '@oxc-project/types': 0.146.0 @@ -6075,8 +5763,6 @@ snapshots: spdx-license-ids@3.0.23: {} - stable-hash-x@0.2.0: {} - stack-utils@2.0.6: dependencies: escape-string-regexp: 2.0.0 @@ -6248,33 +5934,6 @@ snapshots: unist-util-is: 6.0.1 unist-util-visit-parents: 6.0.2 - unrs-resolver@1.12.2: - dependencies: - napi-postinstall: 0.3.4 - optionalDependencies: - '@unrs/resolver-binding-android-arm-eabi': 1.12.2 - '@unrs/resolver-binding-android-arm64': 1.12.2 - '@unrs/resolver-binding-darwin-arm64': 1.12.2 - '@unrs/resolver-binding-darwin-x64': 1.12.2 - '@unrs/resolver-binding-freebsd-x64': 1.12.2 - '@unrs/resolver-binding-linux-arm-gnueabihf': 1.12.2 - '@unrs/resolver-binding-linux-arm-musleabihf': 1.12.2 - '@unrs/resolver-binding-linux-arm64-gnu': 1.12.2 - '@unrs/resolver-binding-linux-arm64-musl': 1.12.2 - '@unrs/resolver-binding-linux-loong64-gnu': 1.12.2 - '@unrs/resolver-binding-linux-loong64-musl': 1.12.2 - '@unrs/resolver-binding-linux-ppc64-gnu': 1.12.2 - '@unrs/resolver-binding-linux-riscv64-gnu': 1.12.2 - '@unrs/resolver-binding-linux-riscv64-musl': 1.12.2 - '@unrs/resolver-binding-linux-s390x-gnu': 1.12.2 - '@unrs/resolver-binding-linux-x64-gnu': 1.12.2 - '@unrs/resolver-binding-linux-x64-musl': 1.12.2 - '@unrs/resolver-binding-openharmony-arm64': 1.12.2 - '@unrs/resolver-binding-wasm32-wasi': 1.12.2 - '@unrs/resolver-binding-win32-arm64-msvc': 1.12.2 - '@unrs/resolver-binding-win32-ia32-msvc': 1.12.2 - '@unrs/resolver-binding-win32-x64-msvc': 1.12.2 - uri-js@4.4.1: dependencies: punycode: 2.3.1 diff --git a/scripts/update-type-map.mjs b/scripts/update-type-map.mjs index f5cef07eb..691e6808e 100644 --- a/scripts/update-type-map.mjs +++ b/scripts/update-type-map.mjs @@ -1,7 +1,7 @@ import { writeFile } from 'node:fs/promises'; -import { MDN_COMPAT_URL, MDN_TYPE_MAP } from './constants.mjs'; import { loadFromURL } from '../packages/core/src/utils/loaders.mjs'; +import { MDN_COMPAT_URL, MDN_TYPE_MAP } from './constants.mjs'; const compat = JSON.parse(await loadFromURL(MDN_COMPAT_URL));