Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-11-29 | fix(ext/node): allow absolute path in createRequire (#16853) | Yoshiya Hinosawa | |
Co-authored-by: David Sherret <dsherret@gmail.com> | |||
2022-11-28 | fix(npm): don't resolve JS files when resolving types (#16854) | David Sherret | |
Closes #16851 | |||
2022-11-28 | refactor: create util folder, move nap_sym to napi/sym, move http_cache to ↵ | David Sherret | |
cache folder (#16857) | |||
2022-11-28 | feat(core): show unresolved promise origin (#16650) | Bartek Iwańczuk | |
This commit updates unhelpful messages that are raised when event loop stalls on unresolved top-level promises. Instead of "Module evaluation is still pending but there are no pending ops or dynamic imports. This situation is often caused by unresolved promises." and "Dynamically imported module evaluation is still pending but there are no pending ops. This situation is often caused by unresolved promises." we are now printing a message like: error: Top-level await promise never resolved [SOURCE LINE] ^ at [FUNCTION NAME] ([FILENAME]) eg: error: Top-level await promise never resolved await new Promise((_resolve, _reject) => {}); ^ at <anonymous> (file:///Users/ib/dev/deno/cli/tests/testdata/test/unresolved_promise.ts:1:1) Co-authored-by: David Sherret <dsherret@users.noreply.github.com> | |||
2022-11-28 | fix(npm): allow to inspect npm modules with --inspect-brk (#16841) | Bartek Iwańczuk | |
2022-11-28 | fix(runtime): feature-flag snapshot from snapshot (#16843) | Leo Kettmeir | |
2022-11-28 | feat(unstable): rework Deno.Command (#16812) | Leo Kettmeir | |
Refactors the `Deno.Command` class to not handle any state, but only being an intermediary to calling its methods, and as such any methods and properties besides `output`, `outputSync` & `spawn` have been removed. Interracting with a `spawn`ed subprocess now works by using the methods and properties on the returned class of the `spawn` method. | |||
2022-11-27 | fix(npm): ensure npm package downloaded once per run when using `--reload` ↵ | David Sherret | |
(#16842) | |||
2022-11-27 | Revert "fix(ext/flash): graceful server startup/shutdown with unsettl… ↵ | Bartek Iwańczuk | |
(#16839) …ed promises in mind (#16616)" This reverts commit fd023cf7937e67dfde5482d34ebc60839eb7397c. There are reports saying that Vite is often hanging in 1.28.2 and this is the only PR that changed something with HTTP server. I think we should hold off on trying to fix this and instead focus on #16787 CC @magurotuna | |||
2022-11-27 | feat(core): support initializing extensions with and without JS (#16789) | Bartek Iwańczuk | |
This commit allows to execute more JS code from extensions when creating a snapshot from an existing snapshot. "deno_core::RuntimeOptions::extensions_with_js" field was added that is used to pass a list of extensions whose both "ops" and associated JS source should be executed upon start. Co-authored-by: crowlkats <crowlkats@toaxl.com> | |||
2022-11-27 | feat(core): send "executionContextDestroyed" notification on program end ↵ | Bartek Iwańczuk | |
(#16831) This commit changes "JsRuntime" to send "executionContextDestroyed" notification when the program finishes and shows a prompt informing that runtime is waiting for inspector to disconnect. | |||
2022-11-26 | chore: update deno_doc (#16838) | Leo Kettmeir | |
2022-11-26 | fix(inspector): send "isDefault" in aux data (#16836) | Bartek Iwańczuk | |
With trial and error I found that most debuggers expect "isDefault" to be sent in "auxData" field of "executionContextCreated" notification. This stems from the fact that Node.js sends this data and eg. VSCode requires it to close connection to the debugger when the program finishes execution. | |||
2022-11-26 | tests: move integration tests to separate modules (#16816) | Bartek Iwańczuk | |
2022-11-26 | refactor: `DenoDir` - move to cache folder and make `root_dir` private (#16823) | David Sherret | |
2022-11-25 | refactor: move generated_symbol_exports_list_* files to napi folder (#16822) | David Sherret | |
2022-11-25 | refactor: move cdp.rs to tools/repl (#16821) | David Sherret | |
2022-11-25 | refactor: move dts files, diagnostics.rs, and tsc.rs to tsc folder (#16820) | David Sherret | |
2022-11-25 | refactor: move lockfile.rs to args module (#16818) | David Sherret | |
This should be in the `args` folder as it's similar to `config_file`. | |||
2022-11-25 | fix(npm): better error message when attempting to use typescript in npm ↵ | David Sherret | |
packages (#16813) | |||
2022-11-25 | refactor(lsp): consolidate relative_specifier (#16780) | David Sherret | |
Closes #14840 | |||
2022-11-25 | fix(cli/js): improve resource sanitizer messages (#16798) | Luca Casonato | |
This commit improves the guidance for how to close a child process stdout / stderr to also include guidance for when using `new Deno.Command()`. | |||
2022-11-25 | fix(repl): more reliable history handling (#16797) | Bartek Iwańczuk | |
This commit changes history handling of the REPL. There were some situations were history wasn't properly saved and flushed to a file, making history very spotty. This commit changes it to save every line into the history file and flush it to disk before being evaluated. Thanks to this all lines, including "close()" will be stored in the history file. If for any reason we're not able to save history file, a single warning will be printed to the REPL and it will continue to work, even if subsequent tries will fail to save to disk. | |||
2022-11-24 | fix(task): output encoding issues on windows (#16794) | David Sherret | |
Closes #16792 | |||
2022-11-24 | chore: forward v1.28.2 release commit to main (#16796) | denobot | |
Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com> Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> | |||
2022-11-24 | fix(npm/types): resolve main entrypoint declaration file when no types entry ↵ | David Sherret | |
(#16791) Closes #16782 | |||
2022-11-24 | fix(ext/flash): graceful server startup/shutdown with unsettled promises in ↵ | Yusuke Tanaka | |
mind (#16616) This PR resets the revert commit made by #16610, bringing back #16383 which attempts to fix the issue happening when we use the flash server with `--watch` option enabled. Also, some code changes are made to pass the regression test added in #16610. | |||
2022-11-24 | fix(npm/check): prioritize exports over types entry (#16788) | David Sherret | |
2022-11-24 | feat(cli): add warning for incorrectly ordered flags (#16734) | Asher Gomez | |
This code checks if permission flags are incorrectly defined after the module name (e.g. `deno run mod.ts --allow-read` instead of the correct `deno run --allow-read mod.ts`). If so, a simple warning is displayed. | |||
2022-11-23 | chore: more debug logging and avoid allocating strings in ts logging when ↵ | David Sherret | |
not debug (#16689) | |||
2022-11-23 | chore: remove unnecessary qualifier in declaration file (#16767) | David Sherret | |
2022-11-23 | fix(fmt/markdown): scenario where whitespace was being incorrectly stripped ↵ | David Sherret | |
in inline links (#16769) https://github.com/dprint/dprint-plugin-markdown/pull/69 Closes #16730 | |||
2022-11-22 | chore: workspace inheritance (#16343) | Leo Kettmeir | |
2022-11-22 | fix: Make npm packages works with import maps (#16754) | Bartek Iwańczuk | |
Co-authored-by: David Sherret <dsherret@gmail.com> | |||
2022-11-22 | chore: update import_map and deno_doc (#16755) | Bartek Iwańczuk | |
2022-11-22 | fix(inspector): ensure console methods provided by inspector are available ↵ | Bartek Iwańczuk | |
(#16724) | |||
2022-11-22 | test: disable commandChildUnref flaky test (#16752) | Bartek Iwańczuk | |
2022-11-21 | fix(install): `deno install -f` should overwrite lockfile from previous ↵ | David Sherret | |
installation (#16744) | |||
2022-11-21 | fix(npm): automatically find binary entrypoint when values are all the same ↵ | David Sherret | |
(#16735) | |||
2022-11-21 | fix(npm): add suggestions to error message when can't find binary entrypoint ↵ | David Sherret | |
(#16733) Closes #16731 | |||
2022-11-21 | feat(core): Ability to create snapshots from existing snapshots (#16597) | Bartek Iwańczuk | |
Co-authored-by: crowlkats <crowlkats@toaxl.com> | |||
2022-11-19 | fix(npm): handle directory resolution when resolving declaration files (#16706) | David Sherret | |
Also fixes resolving specifiers like `./something.generated` in declaration files. Closes #16695 | |||
2022-11-19 | fix(ext/node): handle URL in createRequire (#16682) | Yoshiya Hinosawa | |
2022-11-18 | fix(npm): use an http client with connection pool (#16705) | David Sherret | |
Should make downloading npm packages faster and more reliable. | |||
2022-11-18 | chore: fix windows-only clippy errors (#16703) | David Sherret | |
2022-11-18 | fix(npm): ancestor that resolves peer dependency should not include self in ↵ | David Sherret | |
id (#16693) Closes #16683 | |||
2022-11-18 | fix(types/unstable): change interface base for `CommandOutput` (#16696) | Jesse Jackson | |
extend from `CommandStatus` instead of `ChildStatus`. Resolves #16680. | |||
2022-11-17 | perf(npm): make dependency resolution faster (#16694) | David Sherret | |
2022-11-17 | fix(info): handle circular npm dependencies (#16692) | David Sherret | |
2022-11-18 | chore: use Rust 1.65.0 (#16688) | Aaron O'Mullan | |