David Sherret
3abc53f811
docs: clarify Deno.consoleSize
returns the window size ( #18508 )
...
Closes #18477
2023-03-30 11:47:33 -04:00
Heyang Zhou
27834dfc10
chore(ext/kv): add limits ( #18415 )
2023-03-25 15:29:36 +08:00
Ryan Dahl
f9c8d98b77
Revert "refactor: rename Deno.openKv() to Deno.kv() ( #18349 )" ( #18362 )
...
This reverts commit 50b793c9ed
.
2023-03-22 20:23:36 +01:00
Ryan Dahl
50b793c9ed
refactor: rename Deno.openKv() to Deno.kv() ( #18349 )
2023-03-22 10:02:40 -04:00
Heyang Zhou
92ebf4afe5
feat(ext/kv): key-value store ( #18232 )
...
This commit adds unstable "Deno.openKv()" API that allows to open
a key-value database at a specified path.
---------
Co-authored-by: Luca Casonato <hello@lcas.dev>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-03-22 12:13:24 +08:00
Bartek Iwańczuk
7e61e8f0e0
chore: update formatting configuration ( #18331 )
2023-03-21 17:01:53 -04:00
David Sherret
2fcf1f14cf
feat: TypeScript 5.0.2 (except decorators) ( #18294 )
...
This upgrades TypeScript to 5.0.2, but does not have ES decorator
support because swc does not support that yet.
2023-03-21 15:46:40 +00:00
ayame113
c34e26a9d5
docs: fix broken Deno.FsFile#readable
example code ( #18277 )
2023-03-21 16:22:21 +09:00
Sam Gwilym
4c34a2f2df
feat(ext/net): Add multicasting APIs to DatagramConn ( #10706 ) ( #17811 )
2023-03-20 22:27:00 +01:00
Andrew
44553aa09e
docs(FFI/UnsafePointerView): fix a typo in a docstring ( #18034 )
2023-03-18 12:25:06 +00:00
Leo Kettmeir
35196eab27
BREAKING(unstable): remove WebGPU ( #18094 )
...
This PR _**temporarily**_ removes WebGPU (which has behind the
`--unstable` flag in Deno), due to performance complications due to its
presence.
It will be brought back in the future; as a point of reference, Chrome
will ship WebGPU to stable on 26/04/2023.
---------
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-03-17 00:29:32 +01: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
Leo Kettmeir
484b6fe2fa
refactor(flash): move remoteAddr to options bag ( #17913 )
...
Applies suggestion from #17912
2023-02-24 23:36:07 +01:00
Aapo Alasuutari
0f9daaeacb
fix(ext/ffi): Fix re-ref'ing UnsafeCallback ( #17704 )
2023-02-22 19:09:59 +00:00
Aapo Alasuutari
b56b8c8a75
feat(ext/ffi): Replace pointer integers with v8::External objects ( #16889 )
2023-02-22 19:32:38 +02: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
Leo Kettmeir
c7535950b6
feat(flash): add 2nd param to handler to get remote address ( #17633 )
...
Closes #17583
2023-02-15 16:37:41 +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
Kamil Ogórek
68008bee51
fix(dts): make Deno.Command accept readonly prop in options.args ( #17718 )
2023-02-10 18:09:02 +01:00
Leo Kettmeir
3035dee9f1
chore: update webgpu ( #17534 )
2023-01-30 15:14:16 +01:00
RA80533
50ba8ae6b2
docs: fix typos in WriteFileOptions
's JSDoc ( #17507 )
2023-01-28 22:10:06 +01:00
David Sherret
83642976bf
fix: remove leftover Deno.spawn references ( #17524 )
2023-01-25 12:28:08 -05: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
cadeaae045
feat(runtime/command): make stdin default to inherit for spawn() ( #17334 )
...
Closes #17230
2023-01-24 15:03:46 +01:00
Bartek Iwańczuk
da23f7f876
feat: Stabilize Deno.Listener.ref/unref ( #17477 )
2023-01-20 16:32:55 +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
Dj
ad82918f56
feat(ext/ffi): structs by value ( #15060 )
...
Adds support for passing and returning structs as buffers to FFI. This does not implement fastapi support for structs. Needed for certain system APIs such as AppKit on macOS.
2023-01-08 09:28:10 +05:30
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
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