csstype icon indicating copy to clipboard operation
csstype copied to clipboard

feat: Prepare change needed for latest mdn-browser-compat-data format

Open hkleungai opened this issue 1 year ago • 1 comments

Commits

  • feat: Prepare change needed for latest mdn-browser-compat-data format
  • Bump MDN

Description

Currently this repo is taking data from "mdn-browser-compat-data" at v5.4.5, which is released on Dec 7, 2023 for like a year ago. I think catching up with the latest version v5.6.6 is needed.

Unfortunately between these two versions, there is a huge change on the build json. All the rules and types jsons are no longer partitioned into various sub-json file. Instead, they are now all living in one single build/data.json.

$ ls -1 node_modules/mdn-browser-compat-data/build
LICENSE
README.md
data.json
import.d.mts
legacynode.mjs
package.json
require.d.ts
types.d.ts

To cope with this change, I have made some code changes to make npm run update run-able.

You may want to actually checkout my branch, review the change, and run npm run update yourself to see if anything goes wrong.

Please help review the change. It would be nice to see it can get released soon so that all the other upstream packages can consume the latest typing.

hkleungai avatar Oct 13 '24 19:10 hkleungai

Godspeed, @hkleungai, you legend. You contributions do not go unnoticed.

matthewdiamant avatar Feb 24 '25 17:02 matthewdiamant

Sorry for the long wait and thank you for your contribution 🙏 This however has been implemented now with the published types from @mdn/browser-compat-data.

frenic avatar Nov 14 '25 08:11 frenic