summaryrefslogtreecommitdiff
path: root/cli/tsc
AgeCommit message (Collapse)Author
2024-01-23refactor: set removal version for `Deno.Server` (#22024)Asher Gomez
This change sets the removal version for the deprecated `Deno.Server` interface for Deno 2.0. Towards #22021
2024-01-22feat(unstable): remove Deno.upgradeHttp API (#21856)Bartek Iwańczuk
Closes https://github.com/denoland/deno/issues/21828. This API is a huge footgun. And given that "Deno.serveHttp" is a deprecated API that is discouraged to use (use "Deno.serve()" instead); it makes no sense to keep this API around. This is a step towards fully migrating to Hyper 1.
2024-01-22feat(web): ImageBitmap (#21898)Leo Kettmeir
2024-01-22chore: use `FsFile[Symbol.dispose]()` (#22007)Asher Gomez
This change takes advantage of explicit resources management for `FsFile` instances and tweaks documentation to encourage the use of it. --------- Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-01-21chore: use `Deno.readTextFile()` where appropriate (#22018)Asher Gomez
2024-01-21chore: use `Deno.writeTextFile()` where appropriate (#22008)Asher Gomez
2024-01-21chore: add types for `Deno.UnsafeWindowSurface` (#22010)Divy Srivastava
2024-01-18fix(types): align global deno worker type with deno.worker/webworker one ↵Jérôme Benoit
(#21936) Transpiler doing type checking such as the ones used in dnt or bundler fail because of incompatible Worker types if env like browser are targeted. Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
2024-01-16docs(ns): add a notice on file order returned by readDir (#21953)king8fisher
2024-01-15feat(unstable): add Temporal API support (#21738)Bartek Iwańczuk
This commit adds support for [Stage 3 Temporal API proposal](https://tc39.es/proposal-temporal/docs/). The API is available when `--unstable-temporal` flag is passed. --------- Signed-off-by: Bartek Iwańczuk <biwanczuk@gmail.com> Co-authored-by: David Sherret <dsherret@gmail.com> Co-authored-by: Kenta Moriuchi <moriken@kimamass.com>
2024-01-15chore: define removal version for `Deno.metrics()` (#21872)Asher Gomez
Sets the removal version for `Deno.metrics()` to be v2.
2024-01-14feat: Stabilize Deno.connect for 'unix' transport (#21937)Bartek Iwańczuk
2024-01-14chore: define removal version for `Deno.run()` (#21863)Asher Gomez
This change sets the removal for `Deno.run()` in v2.
2024-01-14feat: Deprecate 'Deno.serveHttp' API (#21874)Bartek Iwańczuk
`Deno.serveHttp` is now deprecated. Users should migrate to `Deno.serve` API.
2024-01-14feat: remove conditional unstable type-checking (#21825)Bartek Iwańczuk
This commit removes conditional type-checking of unstable APIs. Before this commit `deno check` (or any other type-checking command and the LSP) would error out if there was an unstable API in the code, but not `--unstable` flag provided. This situation hinders DX and makes it harder to configure Deno. Failing during runtime unless `--unstable` flag is provided is enough in this case.
2024-01-14feat: stabilize Deno.connectTls options and Deno.TlsConn.handshake (#21889)Bartek Iwańczuk
2024-01-12feat: "rejectionhandled" Web event and "rejectionHandled" Node event (#21875)Bartek Iwańczuk
This commit adds support for "rejectionhandled" Web Event and "rejectionHandled" Node event. ```js import process from "node:process"; process.on("rejectionHandled", (promise) => { console.log("rejectionHandled", reason, promise); }); window.addEventListener("rejectionhandled", (event) => { console.log("rejectionhandled", event.reason, event.promise); }); ``` --------- Co-authored-by: Matt Mastracci <matthew@mastracci.com>
2024-01-10feat(unstable): fast subset type checking of JSR dependencies (#21873)David Sherret
2024-01-10fix(lsp): implement host.getGlobalTypingsCacheLocation() (#21882)Nayeem Rahman
2024-01-10fix: android support (#19437)cions
<!-- Before submitting a PR, please read https://deno.com/manual/contributing 1. Give the PR a descriptive title. Examples of good title: - fix(std/http): Fix race condition in server - docs(console): Update docstrings - feat(doc): Handle nested reexports Examples of bad title: - fix #7123 - update docs - fix bugs 2. Ensure there is a related issue and it is referenced in the PR text. 3. Ensure there are tests that cover the changes. 4. Ensure `cargo test` passes. 5. Ensure `./tools/format.js` passes without changing files. 6. Ensure `./tools/lint.js` passes. 7. Open as a draft PR if your work is still in progress. The CI won't run all steps, but you can add '[ci]' to a commit message to force it to. 8. If you would like to run the benchmarks on the CI, add the 'ci-bench' label. --> --------- Signed-off-by: Matt Mastracci <matthew@mastracci.com> Co-authored-by: Matt Mastracci <matthew@mastracci.com>
2024-01-08perf(lsp): use host-owned cache for auto-import completions (#21852)Nayeem Rahman
2024-01-06chore: define removal version in deprecated IO APIs (#21702)Asher Gomez
This defines the removal version of v2 for the following APIs that favour the Streams API: * `Deno.copy()` * `Deno.File` * `Deno.iter()` * `Deno.Buffer` * `Deno.readAll()` * `Deno.readAllSync()` * `Deno.writeAll()` * `Deno.writeAllSync()` * `Deno.FsWatcher.return()`
2024-01-06fix(kv): improve .listenQueue types (#21781)Kitson Kelly
Fixes: #21780
2024-01-01chore: update to Rust 1.75 (#21731)林炳权
2024-01-01chore: update copyright to 2024 (#21753)David Sherret
2023-12-30fix: `Object.groupBy` return type should be a partial (#21680)Joel Walker
Signed-off-by: Joel Walker <joelwalker1995@gmail.com>
2023-12-28perf(lsp): use LanguageServiceHost::getProjectVersion() (#21719)Nayeem Rahman
2023-12-13chore: deprecate `Deno.Reader`, `Deno.ReaderSync`, `Deno.Writer`, ↵Asher Gomez
`Deno.WriterSync` and `Deno.Closer` (#21465) This change deprecates `Deno.Reader`, `Deno.ReaderSync`, `Deno.Writer`, `Deno.WriterSync` and `Deno.Closer` in favour of the [Web Streams API](https://developer.mozilla.org/en-US/docs/Web/API/Streams_API). After discussing with Yoshiya, we both thought now might be the right time to deprecate these interfaces with v2 getting closer.
2023-12-14feat(unstable): append commit versionstamp to key (#21556)Heyang Zhou
2023-12-12feat(ext/kv) add backoffSchedule to enqueue (#21474)Igor Zinkovsky
Also reduces the time to run `kv_queue_undelivered_test.ts` test from 100 seconds down to 3 seconds. closes #21437
2023-12-12perf(lsp): use null types instead of stub modules (#21541)Nayeem Rahman
2023-12-11perf(lsp): simplify some of the startup code (#21538)Bartek Iwańczuk
Remove some dead code in "99_main_compiler.js". Eagerly start the LSP TSC host, it was adding some not needed complexity around the TSC thread code.
2023-12-09feat: bring back WebGPU (#20812)Leo Kettmeir
Signed-off-by: Leo Kettmeir <crowlkats@toaxl.com> Co-authored-by: Kenta Moriuchi <moriken@kimamass.com> Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-12-06feat: TypeScript 5.3 (#21480)David Sherret
https://github.com/denoland/TypeScript/pull/9
2023-12-06feat: stabilize Deno.HttpServer.shutdown and Unix socket support (#21463)Bartek Iwańczuk
This commit stabilizes "Deno.HttpServer.shutdown" API as well as Unix socket support in "Deno.serve" API. --------- Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2023-12-06feat(ext/fetch): allow `Deno.HttpClient` to be declared with `using` (#21453)Yusuke Tanaka
This commit adds a method of `Symbol.dispose` to the object returned from `Deno.createHttpClient`, so we can make use of [explicit resource management](https://github.com/tc39/proposal-explicit-resource-management) by declaring it with `using`.
2023-12-05docs: fix description of FileInfo's mode property (#21366)David Sherret
2023-12-05feat(unstable): kv.watch() (#21147)Luca Casonato
This commit adds support for a new `kv.watch()` method that allows watching for changes to a key-value pair. This is useful for cases where you want to be notified when a key-value pair changes, but don't want to have to poll for changes. --------- Co-authored-by: losfair <zhy20000919@hotmail.com>
2023-12-03refactor: faster args for op_load in TSC (#21438)Bartek Iwańczuk
This commit changes the argument that "op_load" accepts, from a serde struct to "&str". This should equal to a slightly better performance.
2023-12-02perf(lsp): fix redundant serialization of sources (#21435)Nayeem Rahman
2023-12-02chore: update std to 0.208.0 (#21318)Asher Gomez
Re-attempt at #21284. I was more thorough this time. --------- Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-12-01perf(lsp): better op performance logging (#21423)Bartek Iwańczuk
2023-11-30fix(cron): move deprecated Deno.cron overload (#21407)Igor Zinkovsky
Moving the deprecated `Deno.cron` overload to be the last one.
2023-11-30feat(cron): added the support for json type schedule to cron api (#21340)Raashid Anwar
Added the support for JSON type schedule to cron API; previously it was string only. fixes #21122
2023-11-30perf(lsp): remove throttling of cancellation token (#21395)Bartek Iwańczuk
This commit removes "ThrottledCancellationToken" in favor of "CancellationToken". Since calling into Rust to check if Tokio's cancellation token has already been canceled is really cheap, there's no need for us to throttle this check and let TSC burn up CPU with heavy computation.
2023-11-25fix(dts): `Deno.ChildProcess` actually implements `AsyncDisposable` (#21326)Yusuke Tanaka
What `Deno.ChildProcess` actually implements is `AsyncDisposable`, but the type declaration says it's `Disposable`. This PR fixes the type declaration to match the actual implementation.
2023-11-22docs: update `Deno.*` deprecation notices (#21283)Asher Gomez
This PR updates the deprecation notices to point to the same replacement APIs that the Standard Library points to. I've also tweaked the notices to be a little more presentable/navigatable. In particular, a follow-up PR in std will be made that documents the use of `toArrayBuffer()`. Closes #21193 Towards #20976
2023-11-20docs: typo fixlet in worker type comment (#21268)Jérôme Benoit
2023-11-16feat(ext/cron) modify Deno.cron API to make handler arg last (#21225)Igor Zinkovsky
This PR changes the `Deno.cron` API: * Marks the existing function as deprecated * Introduces 2 new overloads, where the handler arg is always last: ```ts Deno.cron( name: string, schedule: string, handler: () => Promise<void> | void, ) Deno.cron( name: string, schedule: string, options?: { backoffSchedule?: number[]; signal?: AbortSignal }, handler: () => Promise<void> | void, ) ``` This PR also fixes a bug, when other crons continue execution after one of the crons was closed using `signal`.
2023-11-13chore: remove duplicate esnext.dispoable (#21184)David Sherret