David Sherret
76f30a1878
fix(declaration): change Deno.open
example to not use Deno.close(rid)
( #17218 )
2023-01-05 13:05:50 +01:00
David Sherret
2fee8394a9
chore: update copyright year to 2023 ( #17247 )
...
Yearly tradition of creating extra noise in git.
2023-01-05 13:05:49 +01:00
Kamil Ogórek
3baf1a4bd3
feat(unstable): Add "Deno.osUptime()" API ( #17179 )
...
This PR adds support for `Deno.osUptime` which reports number of seconds
since os was booted. It will allow us to be compatible with Node's `os.uptime` -
https://nodejs.org/api/os.html#osuptime
Partially based on
https://docs.rs/uptime_lib/latest/src/uptime_lib/lib.rs.html
2023-01-05 13:05:48 +01:00
Leo Kettmeir
50c7526526
fix: re-add Response.json static method ( #17061 )
...
Same as #16040
2022-12-15 10:33:19 -05:00
Leo Kettmeir
76a9df1ed8
docs: use example & default tags ( #17032 )
2022-12-13 14:14:41 +01:00
Leo Kettmeir
5d9bb8b4b0
feat: support createNew
in Deno.writeFile
( #17023 )
2022-12-13 05:12:49 +01:00
Leo Kettmeir
a2ba573e77
fix: default to "inherit"
for Deno.Command#spawn()
's stdout
& stderr
( #17025 )
2022-12-13 05:12:19 +01:00
Bartek Iwańczuk
cb6700fa5a
unstable: remove Deno.spawn, Deno.spawnSync, Deno.spawnChild APIs ( #16893 )
...
This commit removes three unstable Deno APIs:
- "Deno.spawn()"
- "Deno.spawnSync()"
- "Deno.spawnChild()"
These APIs were replaced by a unified "Deno.Command" API.
2022-12-09 16:43:36 +01:00
David Sherret
f4385866f8
feat: upgrade to TypeScript 4.9.3 ( #16973 )
...
Updated from: https://github.com/denoland/TypeScript/pull/2
2022-12-07 12:59:59 -05:00
阿豪
8b5b327b18
feat(ext/ffi): better type hints for Deno.dlopen ( #16874 )
2022-12-03 17:45:35 +05:30
Leo Kettmeir
1dd4843b62
feat(unstable): rework Deno.Command ( #16812 )
...
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-28 12:33:51 +01:00
David Sherret
dcb4ffb93a
refactor: move dts files, diagnostics.rs, and tsc.rs to tsc folder ( #16820 )
2022-11-25 18:29:48 -05:00