-
Notifications
You must be signed in to change notification settings - Fork 440
Tag Releases for Easier Versioning #1383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
FWIW, there is the table in the README of this project which lists the versions - https://github.com/microsoft/TypeScript-DOM-lib-generator#typeslib-to-typescript-versions You can also extend the deploy process I used https://github.com/microsoft/TypeScript-DOM-lib-generator#deployment-to-typescript to generate tags and/or update the README though. I avoided automating this part because it's not guaranteed that the PR send from the DOM version would get merged (too breaky, and/or required DOM changes to get merged) That could probably be improved by having the DOM -> TSC process leave a commit or tag inside the TSC repo and then on a TSC release you could have it re-use that commit/tag to make the connection from typescript back to the DOM types. Maybe be a custom header in lib.dom.d.ts which lets people link to the DOM repo at the exact commit/tag which is pretty useful for everyone. |
Do all the built-in type libraries, including |
Nah. I think it's a reasonable assumption for types/web that someone has the baseline JS types set up |
I'd like to update the README to include Jul 02, 2022: @types/[email protected] July 20, 2022: August 11, 2022: OK, let's see, |
If |
It's not for "DOM APIs" but for general web APIs that are exposed in the main thread. DOM-lib here is just some legacy way to call the lib, which IMO should be replaced at some point. |
Today, the DOM types are auto-deployed to npm, but the story there is extremely confusing. If breaks are introduced in a newer version of TypeScript, we can tell users to lock down their DOM types with
@types/web
, but there's no easy way to tell which version of@types/web
corresponds to a specific version of TypeScript.We need to come up with some stable scheme where
@types/web
.npm install @types/[email protected]
@types
packages from DefinitelyTyped.The text was updated successfully, but these errors were encountered: