Skip to content

Conversation

@caugner
Copy link
Contributor

@caugner caugner commented Dec 12, 2025

Summary

Migrates from TypeScript to JavaScript.

Test results and supporting details

Consistency with other repositories, and improved performance (e.g. 10% on build).

Before
% time npm run build

> @mdn/browser-compat-data@7.2.2 build
> tsx scripts/build/index.ts

Wrote: build/LICENSE
Wrote: build/package.json (manifest)
Wrote: build/require.d.ts (CommonJS types)
Wrote: build/legacynode.mjs (wrapper for old NodeJS versions)
Wrote: build/README.md
Wrote: build/import.d.mts (ESM types)
Wrote: build/data.json (data)
Wrote: build/types.d.ts (data types)
Data bundle is ready
npm run build  5.33s user 0.35s system 122% cpu 4.622 total
After
% time npm run build

> @mdn/browser-compat-data@7.2.2 build
> node scripts/build/index.js

Wrote: build/LICENSE
Wrote: build/package.json (manifest)
Wrote: build/legacynode.mjs (wrapper for old NodeJS versions)
Wrote: build/require.d.ts (CommonJS types)
Wrote: build/README.md
Wrote: build/import.d.mts (ESM types)
Wrote: build/types.d.ts (data types)
Wrote: build/data.json (data)
Data bundle is ready
npm run build  4.89s user 0.31s system 121% cpu 4.290 total
```

#### Related issues

Similar to https://github.com/mdn/dex/pull/95/.

@github-actions github-actions bot added infra Infrastructure issues (npm, GitHub Actions, releases) of this project data:http Compat data for HTTP features. https://developer.mozilla.org/docs/Web/HTTP data:css Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS data:html Compat data for HTML elements. https://developer.mozilla.org/docs/Web/HTML linter Issues or pull requests regarding the tests / linter of the JSON files. bulk_update An update to a mass amount of data, or scripts/linters related to such changes scripts Issues or pull requests regarding the scripts in scripts/. size:xl [PR only] >1000 LoC changed merge conflicts 🚧 This PR needs to merge latest "main" branch to resolve a merge conflict or other issue. labels Dec 12, 2025
@github-actions
Copy link
Contributor

This pull request has merge conflicts that must be resolved before it can be merged.

@github-actions github-actions bot removed merge conflicts 🚧 This PR needs to merge latest "main" branch to resolve a merge conflict or other issue. data:http Compat data for HTTP features. https://developer.mozilla.org/docs/Web/HTTP data:css Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS data:html Compat data for HTML elements. https://developer.mozilla.org/docs/Web/HTML labels Dec 12, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Dec 12, 2025

Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs).

@github-actions github-actions bot added the merge conflicts 🚧 This PR needs to merge latest "main" branch to resolve a merge conflict or other issue. label Dec 19, 2025
@github-actions
Copy link
Contributor

This pull request has merge conflicts that must be resolved before it can be merged.

@github-actions github-actions bot removed the merge conflicts 🚧 This PR needs to merge latest "main" branch to resolve a merge conflict or other issue. label Dec 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bulk_update An update to a mass amount of data, or scripts/linters related to such changes infra Infrastructure issues (npm, GitHub Actions, releases) of this project linter Issues or pull requests regarding the tests / linter of the JSON files. scripts Issues or pull requests regarding the scripts in scripts/. size:xl [PR only] >1000 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant