-
Notifications
You must be signed in to change notification settings - Fork 135
Deprecate TSD #269
Comments
👍 for refernces to upgrade from tsd webpack+typescript gulpjs+typescript gulpjs with typescript commands
|
Just a small addition to @gdi2290 migration steps regarding something that just happened to me. |
How do you do |
You don't. TSD link is flawed and not really a solid long-term solution - as it relies on ambient modules, causes duplicate identifiers and generally forces users to re-install sub-dependencies. Assuming you want the exact same thing, you can do |
Ran into an issue installing typings from another repository. Created an new issue: typings/typings#133 |
Just wondering what the vision/intent here is for DefinitelyTyped/tsd vs Typings? I get that Typings is decentralised and that it can talk to DefinitelyTyped, but I also know that Typings has repos for some popular projects as well... hence my question. |
Wouldn't it make sense to mandate all typedefs be forced centralized in npm package installations instead of replicating half the efrastructure inside our local projects ?
JSPM is alarmingly a case in point NPM already has the fittings to support and process this. Is anyone even theorizing the impact of transient dependencies ? I wouldn't send my kid to a daycare, which subs out the task to another daycare somewhere else... something is eventually going to disconnect... let alone a single transient dependency roaming thru the ecosystem. |
@nhhockeyplayer ideally that would be the case but for this to happen every author would need to include and maintain type definitions. Related
For Angular 2 we can assume every ng2 module will include type definitions but for the other modules that will likely not be the case. So there will be a community (ng2) who will benefit more by ensuring every module in it's ecosystem includes type definitions (the ideal case). |
TSD has been deprecated (DefinitelyTyped/tsd#269), with typings suggested as the replacement. These changes migrate the code from TSD to typings.
@blakeembrey sorry for bumping this issue. Just noticed the deprecation notice added to the readme here on github is not on npm which could lead to people still using it without initial knowledge that the package is deprecated. It's probably because there was no new release since the package got deprecated. |
If you do NPM install, it says it. Edit: But I'll check it out and release a new version. |
Cool, then it's fine 👍 |
could you add a deprecation notice to the npm page? |
It would be cool to ship complete and finished version of |
There are four issues on this issues page now dating back months, pointing out that tsd no longer functions for installing basic packages such as jquery or react. Deprecating or halting development is one thing, but it appears tsd has actually been shut down (?). This is a real problem— especially since there seems to have been no kind of explicit announcement service was outright discontinuing— since tsd is the kind of tool which could be part of automated deployment. I just had a web service kill itself because its automated deployment runs tsd, which no longer works. |
It says it is deprecated on install for over a year now. Since TSD is based on GitHub, it all still works perfectly fine. What you'd be seeing is DefinitelyTyped changes. The TSD architecture can not handle the changes, and the move was a decision from TypeScript to support NPM |
Reason: tsd is deprecated (DefinitelyTyped/tsd#269) and typings is the new standard. Also, tsd was behaving badly - running `tsd install` on a clean client was causing it to incorrectly depend on typing files from node_modules, which resulted in a broken build. This issue does not exist with typings. For convenience, and since typings is really fast when all deps are up-to-date, I made it a part of the standard gulp task. `npm install` so you have all the deps, and running `gulp` will keep the typing files synchronized - there no longer is a separate step for downloading them. The logical next step is to do the same for bower. I did wire that up, but I will not connect it to the gulp task until after the big bower dependency upgrade CL is through. If I add it right now, it will fail on unresolved dependency conflicts and make everyone sad. Change: 115370585
The Typings project (https://github.com/typings/typings) has evolved and can currently consume DefinitelyTyped as a subset of the ecosystem. This improvement has effectively make TSD maintenance redundant and over time definitions should be written as external modules with
typings.json
, or converted inline with libraries for the TypeScript compiler to consume directly.This issue will be closed when an official website for Typings is created and improved documentation can be linked to. Currently it serves as a notice for new or existing users.
To continuing installing type definitions from DefinitelyTyped, remember to use the
--ambient
flag (everything in DefinitelyTyped is essentially "global"). If you intend to publish a library using dependencies without type definitions (E.g. you installed typings from DefinitelyTyped/Typings), you will need to make sure those are dependencies (and not ambient). The core issue with global dependencies is maintenance and conflicts.TSD PRs and issues will continue to be responded to, but development is effectively EOL. If another developer would like to pick up maintenance and/or development, you are welcome to contribute. Existing issues should be solved already with Typings, but if you find something that does not work - make an issue in Typings.
Links: #150, typings/discussions#5 and typings/typings#125.
Edit: Typings has implemented an upgrade command for TSD users. Upgrading will only convert the format of
tsd.json
totypings.json
, there may be additional tweaks you need to make (such as correcting now stripped references).The text was updated successfully, but these errors were encountered: