You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deno.run was been available for so long that I have used it a lot of times in my scripts and for the long time it was required to a lot of tasks that required external binaries. One example is this script that I use a lot: https://gist.github.com/qgustavor/3a7798606fb8109c22609780115b71ac
To be fair, I'm not in the mood of manually fixing those scripts one by one mostly because the old API is still working at the moment and Deno users are not forced to update. Well, when old versions lose security patches, then I guess I will be forced to upgrade and fix this in order to not put myself at risk...
One possibility to help Deno users on this would be someone creating a "polyfill" for the old API using the new one so make migration easier. Seems feasible since the new API is more capable than the old one. Other possibility, which I'm suggesting right now, is making a codemod to automatically migrate basic use cases do Deno.run to Deno.Command. Similar to other codemods it could consist of a script which, when run, will automatically migrate most uses of Deno.run to Deno.command and alert the user when it was not possible.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Deno.run
was been available for so long that I have used it a lot of times in my scripts and for the long time it was required to a lot of tasks that required external binaries. One example is this script that I use a lot: https://gist.github.com/qgustavor/3a7798606fb8109c22609780115b71acTo be fair, I'm not in the mood of manually fixing those scripts one by one mostly because the old API is still working at the moment and Deno users are not forced to update. Well, when old versions lose security patches, then I guess I will be forced to upgrade and fix this in order to not put myself at risk...
One possibility to help Deno users on this would be someone creating a "polyfill" for the old API using the new one so make migration easier. Seems feasible since the new API is more capable than the old one. Other possibility, which I'm suggesting right now, is making a codemod to automatically migrate basic use cases do
Deno.run
toDeno.Command
. Similar to other codemods it could consist of a script which, when run, will automatically migrate most uses ofDeno.run
toDeno.command
and alert the user when it was not possible.What do you think?
Beta Was this translation helpful? Give feedback.
All reactions