question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Process for updating browser.webidl.preprocessed.json?

See original GitHub issue

The readme says that browser.webidl.preprocessed.json is a JSON file generated by Microsoft Edge, not to be updated. It looks like it was last updated in April 2019.

addedTypes.json, however, seems to be often updated.

Which brings me to my question: is a new approach needed to get more of the definitions via (semi) automated processes, rather than adding types by hand? I also do some work on webref (scraped IDL from specs) and BCD (browser compat data) and this is what comes to mind:

Match up IDL definitions with BCD entries. For IDL definitions missing in TSJS-lib-generator where BCD says the APIs are supported, propose those for inclusion in TSJS-lib-generator. The precise rules for what level of support is necessary can be debated.

There would be additional work to ensure that BCD keeps getting new entries based on additions to webref, of course, but that’s something @vinyldarkscratch and I are already working on separately in https://github.com/foolip/mdn-bcd-collector.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
foolipcommented, Sep 22, 2020

Thanks @saschanaz! I agree that trying to differentiate WHATWG and W3C specs doesn’t seem very useful, but hopefully I won’t run into that. I hadn’t seen removedTypes.json, thanks for pointing that out.

Currently I’m not removing types that are widely supported but nonstandard. I think such things should be specced anyway.

I agree, but don’t think there will ever be a point in time when the sum of all spec IDL adds up to something consistent and covering everything shipped in any browser, so some manual curation of IDL seems necessary. I’d like to avoid it though, if the problem becomes small enough.

0reactions
github-actions[bot]commented, Sep 17, 2021

Closing because @saschanaz is one of the code-owners of this repository.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeScript and JavaScript lib generator - GitHub
browser.webidl.preprocessed.json : a JSON file generated by Microsoft Edge. Do not edit this file. Due to the different update schedules between Edge and ......
Read more >
Interacting with code — Emscripten 3.1.26-git (dev ...
Embind or WebIDL-Binder ... For information on how compiled code interacts with the browser ... Require the library and call its procedures from...
Read more >
Use javascript to update a json file - Stack Overflow
To edit a JSON file: Open the file with php; Send the contents to the browser (Just dump it as string in a...
Read more >
WebDriver - W3C
The WebDriver API is primarily intended to allow developers to write tests that automate a browser from a separate controlling process, ...
Read more >
Information contained in a WebIDL file - MDN Web Docs
When writing documentation about an API, the sources of information are many: the specifications describe what should be implemented as well ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found