Hirotaka Tagawa / wafuwafu13
114ec3c1f7
feat(ext/fs): add isBlockDevice, isCharDevice, isFifo, isSocket to FileInfo ( #19008 )
...
`isFile`, `isDirectory`, `isSymlink` are defined in `Deno.FileInfo`, but
`isBlockDevice`, `isCharacterDevice`, `isFIFO`, `isSocket` are not
defined.
---------
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-05-24 21:18:13 +02:00
Connor Burton
19f1823e44
docs: be explicit in the unit of time of delay in setTimeout ( #19207 )
2023-05-22 14:04:28 +00:00
Leo Kettmeir
addfb0c546
fix(ci): simplify test assertion for http version enforcing with Deno.createHttpClient ( #19210 )
2023-05-21 21:52:45 +02:00
Leo Kettmeir
3e03865d89
feat(unstable): add more options to Deno.createHttpClient ( #17385 )
2023-05-21 03:43:54 +02:00
Matt Mastracci
7f5290b694
feat(ext/http): ref/unref for server ( #19197 )
...
Add `ref` and `unref` to return value from `Deno.serve`. Unblocks #3326 .
2023-05-19 15:14:40 -06:00
Bartek Iwańczuk
5b07522349
BREAKING(unstable): change return type of Deno.serve() API ( #19189 )
...
This commit changes the return type of an unstable `Deno.serve()` API
to instead return a `Deno.Server` object that has a `finished` field.
This change is done in preparation to be able to ref/unref the HTTP
server.
2023-05-19 02:59:23 +02:00
Heyang Zhou
320c6d30f5
fix(kv): kv.close() interrupts in-flight operations ( #19076 )
...
Fixes https://github.com/denoland/deno/issues/19049
2023-05-17 12:18:47 +08:00
Yoshiya Hinosawa
6bea6b31d3
fix(dts): move BroadcastChannel type to lib.deno.unstable.d.ts ( #19108 )
2023-05-14 20:27:14 +09:00
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
Luca Casonato
3fbb31c3c1
feat(kv): return ok bool from atomic commit ( #18873 )
2023-04-27 16:59:02 +02: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
f4e442da4d
fix(dts): URLPatternComponentResult
groups should have possibly undefined key values ( #18643 )
...
Closes #18640
2023-04-26 19:15:25 -04:00
Matt Mastracci
e2761df3fe
fix(ext/http): internal upgradeHttpRaw works with "Deno.serve()" API ( #18859 )
...
Fix internal "upgradeHttpRaw" API restoring capability to upgrade HTTP
connection in polyfilles "node:http" API.
2023-04-27 00:58:18 +02:00
Ryan Dahl
2df6db36c8
feat(ext/kv): add more atomic operation helpers ( #18854 )
...
Co-authored-by: losfair <zhy20000919@hotmail.com>
Co-authored-by: Luca Casonato <hello@lcas.dev>
2023-04-26 17:14:01 +00:00
Bartek Iwańczuk
1b450015e7
BREAKING(unstable): remove "Deno.serve(handler, options)" overload ( #18759 )
...
In preparation to stabilization of the API this overload was decided to
be removed.
2023-04-26 14:54:03 +02:00
Leo Kettmeir
be9e3c430f
docs: add categories to APIs without ( #18826 )
2023-04-24 20:24:18 +00:00
Ryan Dahl
2184103a5e
feat(kv): AtomicOperation#sum ( #18704 )
2023-04-15 10:33:31 +02:00
Dj
62c5664697
feat(ext/ffi): support marking symbols as optional ( #18529 )
2023-04-03 21:32:21 +03:00
David Sherret
7ec45770c8
fix: upgrade to TypeScript 5.0.3 ( #18532 )
2023-03-31 17:09:04 +00:00
Luca Casonato
02e01b171f
fix(dts): improve types for the Deno.KV API ( #18510 )
2023-03-30 22:52:31 +02:00
Luca Casonato
e888c3f534
feat(ext/kv): return versionstamp from set/commit ( #18512 )
...
This commit updates the `Deno.Kv` API to return the new commited
versionstamp for the mutated data from `db.set` and `ao.commit`. This is
returned in the form of a `Deno.KvCommitResult` object that has a
`versionstamp` property.
2023-03-30 20:57:21 +02:00
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