match deno@2.3.3 dependencies#367
Conversation
|
I realize there are a lot of moving parts here, but there's so much codependence between all of deno's deps, I'm not certain I could have "done less". Are PRs introducing this amount of change welcome (and is there any better way I could structure this request?) |
|
Sorry! I have a newborn at home so I haven't had time to take a look yet! I've approved the checks |
| ext.esm_files = ::std::borrow::Cow::Borrowed(&[]); | ||
| ext.esm_entry_point = ::std::option::Option::None; | ||
| } | ||
| // Clears the js and esm files for warmup to avoid reloading them |
There was a problem hiding this comment.
I'm skeptical this is still necessary post-denoland/deno_core@aa6f360 (In fact, I think this entire trait can probably go away in favor of calling Extension::init directly)
| let referrer_specifier = referrer | ||
| .to_module_specifier(&self.cwd) | ||
| .map_err(|e| JsErrorBox::from_err(to_io_err(e)))?; | ||
| let referrer_specifier = if deno_core::specifier_has_uri_scheme(referrer) { |
There was a problem hiding this comment.
This was needed to fix one of the module loader unit tests, deno seems to be storing module paths internally as file:/// urls rather than preserving the relative paths from source
| use super::cjs_translator::{NodeCodeTranslator, RustyCjsCodeAnalyzer}; | ||
|
|
||
| const NODE_MODULES_DIR: &str = "node_modules"; | ||
| const TYPESCRIPT_VERSION: &str = "5.8.3"; |
There was a problem hiding this comment.
This was lifted from https://github.com/denoland/deno/blob/395878c5fb72d87a44f7c88ce9f391acc31feab3/cli/lib/version.rs
It might need to be kept in sync somehow?
|
No worries and congrats! I left a few callouts as notes |
|
this pr is great, would somebody take a look at it and merge it? |
The libffi dependency introduced (by way of deno_ffi) by #366 has caused master to break for me on macos; I decided to take a stab at a refactor to support 2.3.3 instead.