David Sherret
ec67e96a12
fix(dts): align seekSync
position
arg with seek
( #19077 )
...
Closes #19060
2023-05-10 22:04:30 +02:00
Bartek Iwańczuk
8382adaf7d
docs: update Deno.Writer docstring ( #18987 )
...
Closes
https://github.com/denoland/deno/issues/18985#issuecomment-1534493623
2023-05-04 14:37:45 +02:00
kang
632395da89
fix(docs): replace "e.g." with "i.e." in seek()
/seekSync()
comment ( #18964 )
...
Clarify calculation of number "9" in `seek()`/`seekSync()` comment of
lib.deno.ns.d.ts by replacing "e.g." with "i.e."
2023-05-03 20:41:25 +00:00
Yarden Shoham
341fc11e24
docs(lib): document Deno.Command
requires the allow-run
permission ( #18958 )
2023-05-02 15:51:50 +00:00
Michael Lazarev
2ee55145c0
docs: correct example of piping the output of a subprocess to a file ( #18933 )
...
Fixes #18909
2023-05-01 21:52:56 +00:00
Bartek Iwańczuk
09b6dbc0a6
feat: Deprecate Deno.run API in favor of Deno.Command ( #17630 ) ( #18866 )
...
This commit adds `@deprecated` comments to `Deno.run` API declarations.
Since stabilization of `Deno.Command` API in [Deno
v1.31](https://deno.com/blog/v1.31#api-stabilizations ), `Deno.Command`
is the preferred (more reliable) API to interact with subprocesses.
This is the preparation for the removal of `Deno.run` API in Deno 2.0.
2023-04-27 02:11:23 +02:00
David Sherret
3abc53f811
docs: clarify Deno.consoleSize
returns the window size ( #18508 )
...
Closes #18477
2023-03-30 11:47:33 -04:00
Bartek Iwańczuk
7e61e8f0e0
chore: update formatting configuration ( #18331 )
2023-03-21 17:01:53 -04:00
ayame113
c34e26a9d5
docs: fix broken Deno.FsFile#readable
example code ( #18277 )
2023-03-21 16:22:21 +09:00
Bartek Iwańczuk
3f031ad9af
BREAKING(ext/fs): FileInfo.dev is defined on Windows ( #18237 )
...
Addresses feedback from
https://github.com/denoland/deno/pull/18073#issuecomment-1471480385 .
Reverts changes to `FileInfo` fields that are not available on Windows
making them `null`. Only `FileInfo.dev` is non-null.
2023-03-17 00:14:56 +01:00
Bartek Iwańczuk
48a0b7f98f
feat(fs): support FileInfo.dev on Windows ( #18073 )
...
This commit adds support for retrieving `dev` information
when stating files on Windows.
Additionally `Deno.FileInfo` interfaces was changed to always
return 0 for fields that we don't retrieve information for on Windows.
Closes https://github.com/denoland/deno/issues/18053
---------
Co-authored-by: David Sherret <dsherret@gmail.com>
2023-03-16 02:35:13 +01:00
ayame113
08591d052a
chore(docs): Fixed manual link ( #18060 )
2023-03-07 08:01:56 -05:00
Nayeem Rahman
273777f7d9
fix(check): include dts files in tsc roots ( #18026 )
2023-03-05 12:47:04 -05:00
Geert-Jan Zwiers
399a22db88
chore(docs): add note about loadavg returning 0 on windows ( #18006 )
2023-03-04 05:31:55 -04:00
Ryan Dahl
4afa150f21
Revert "feat: Deprecate Deno.run API in favor of Deno.Command ( #17630 )" ( #17875 )
...
Deno.Command needs to be stabilized first and allow people to upgrade to
it before we can deprecate Deno.run. Otherwise lint will suddenly fail
with deprecated errors without giving people a chance to update.
2023-02-22 07:27:00 -05:00
Bartek Iwańczuk
848e2c0d57
feat: Deprecate Deno.run API in favor of Deno.Command ( #17630 )
2023-02-16 12:11:32 +01:00
Bartek Iwańczuk
201737c518
feat: stabilize Deno.osUptime() ( #17554 )
...
This commit stabilizes "Deno.osUptime()" API. The "--unstable" flag is
no longer required to use this API.
2023-02-14 12:35:38 +01:00
Bartek Iwańczuk
f917d2e2c1
feat: Stabilize Deno.Command API ( #17628 )
...
This commit stabilizes "Deno.Command" API with all its related APIs.
"--unstable" flag is no longer required to use this API.
2023-02-13 19:25:00 +01:00
Leo Kettmeir
8b5be962f5
fix: add WouldBlock error ( #17339 )
2023-02-12 23:14:33 +01:00
Leo Kettmeir
a55f0eb2fc
feat: add signal option to Deno.resolveDns ( #17384 )
...
Closes #14406
2023-02-11 14:14:02 +00:00
Leo Kettmeir
e22ebc6b6b
feat: add more variants to Deno.build.os ( #17340 )
...
Closes #14799
2023-02-11 14:25:45 +01:00
RA80533
50ba8ae6b2
docs: fix typos in WriteFileOptions
's JSDoc ( #17507 )
2023-01-28 22:10:06 +01:00
Asher Gomez
900929f65c
feat: Add sync APIs for "Deno.permissions" ( #17019 )
...
This commit adds sync versions of async APIs to "Deno.permissions"
namespace.
Following APIs were added:
- "Deno.permissions.querySync"
- "Deno.permissions.requestSync"
- "Deno.permissions.revokeSync"
2023-01-25 00:42:44 +01:00
Leo Kettmeir
2027d98a8e
feat: allow first arg in test step to be a function ( #17096 )
2023-01-24 15:41:01 +01:00
Leo Kettmeir
18e8ce4ca5
feat(runtime): add bigint to seek typings ( #17314 )
2023-01-19 05:30:56 +01:00
Asher Gomez
7683ba5e90
chore: update std submodule and its imports ( #17408 )
2023-01-15 21:09:26 +01:00
Leo Kettmeir
a6b3910bdf
feat: allow passing a ReadableStream to Deno.writeFile/Deno.writeTextFile ( #17329 )
...
Closes #13229
2023-01-12 03:37:23 +01:00
Leo Kettmeir
e6c49d14b1
feat(runtime/os): add Deno.env.has()
( #17315 )
2023-01-09 20:19:55 +01:00
David Sherret
421ec90a8e
fix(declaration): change Deno.open
example to not use Deno.close(rid)
( #17218 )
2023-01-03 10:48:03 -05:00
David Sherret
10e4b2e140
chore: update copyright year to 2023 ( #17247 )
...
Yearly tradition of creating extra noise in git.
2023-01-02 21:00:42 +00:00
Kamil Ogórek
7ce2b58bcf
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
2022-12-27 00:16:12 +01: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
David Sherret
dcb4ffb93a
refactor: move dts files, diagnostics.rs, and tsc.rs to tsc folder ( #16820 )
2022-11-25 18:29:48 -05:00