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
2502a37d41
chore(build): don't compress TSC snapshot in debug build ( #17772 )
...
Compressing the TSC snapshot in debug build took
~45s on M1 MacBook Pro; without compression it took ~1s.
Thus we're not not using compressed snapshot, trading off
a lot of build time for some startup time in debug build.
2023-02-14 02:46:32 +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
David Sherret
b3e88e0681
refactor: deno_graph 0.43 upgrade ( #17692 )
2023-02-09 22:00:23 -05:00
Leo Kettmeir
84a96110cd
refactor: rename deno
specifiers to internal
( #17655 )
2023-02-05 17:49:20 +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
f5840bdcd3
chore: upgrade to Rust 1.67 ( #17548 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-01-27 10:43:16 -05: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
Bartek Iwańczuk
fc2e00152b
feat: support node built-in module imports ( #17264 )
...
Co-authored-by: David Sherret <dsherret@gmail.com>
2023-01-24 09:05:54 -05: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
David Sherret
654e177c91
refactor(deno_graph): remove unused Resolved::Ok#kind usage ( #17504 )
...
See https://github.com/denoland/deno_graph/pull/205 for more details.
2023-01-24 08:23:19 -05: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
David Sherret
1712a88e69
refactor(tsc): do not store some typescript declaration file text in multiple places ( #17410 )
2023-01-14 09:36:19 -05: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
Bartek Iwańczuk
636352e0ca
fix(npm): allow to read package.json if permissions are granted ( #17209 )
...
This commit changes signature of "deno_core::ModuleLoader::resolve" to pass
an enum indicating whether or not we're resolving a specifier for dynamic import.
Additionally "CliModuleLoader" was changes to store both "parent permissions" (or
"root permissions") as well as "dynamic permissions" that allow to check for permissions
in top-level module load an dynamic imports.
Then all code paths that have anything to do with Node/npm compat are now checking
for permissions which are passed from module loader instance associated with given
worker.
2023-01-10 14:35:44 +01:00
Leo Kettmeir
e6c49d14b1
feat(runtime/os): add Deno.env.has()
( #17315 )
2023-01-09 20:19:55 +01:00
Leo Kettmeir
c41d4ff90e
feat(core): allow specifying name and dependencies of an Extension ( #17301 )
2023-01-08 23:48:46 +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
Geert-Jan Zwiers
4e6b78cb43
refactor(cli): clean up clones ( #17268 )
2023-01-05 12:33:09 -05:00
Yiyu Lin
319f607476
chore(cli,ext,rt): remove some unnecessary clone
or malloc
( #17261 )
2023-01-04 13:20:36 +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
linbingquan
f46df3e359
chore: update to Rust 1.66.0 ( #17078 )
2022-12-17 23:20:15 +01:00
Leo Kettmeir
50c7526526
fix: re-add Response.json static method ( #17061 )
...
Same as #16040
2022-12-15 10:33:19 -05:00
Bartek Iwańczuk
585ec1218f
Revert "feat(ops): Fast zero copy string arguments ( #16777 )" ( #17063 )
...
This reverts commit 9b2b8df927
.
Closes https://github.com/dsherret/ts-morph/issues/1372
Closes https://github.com/denoland/deno/issues/16979
2022-12-15 15:26:10 +00:00
David Sherret
9e9e8f1e38
fix: upgrade to TS 4.9.4 ( #17048 )
2022-12-14 13:00:51 -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
David Sherret
653aebfa1a
fix: respect the --quiet
flag in more cases ( #16998 )
2022-12-09 10:54:24 -05: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
91443bbc0b
fix(compile): ensure import map is used when specified in deno config file ( #16990 )
...
Closes #14246
2022-12-08 11:50:09 -05: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
David Sherret
c03e0f3853
refactor: remove deno_graph::Locker
usage ( #16877 )
...
This is just a straight refactor and doesn't make any improvements to
the code that could now be made.
Closes #16493
2022-12-06 14:12:51 -05:00
David Sherret
3973ceb634
fix(npm): dependency types were sometimes not being resolved when package had no types entry ( #16958 )
...
Closes #16957
2022-12-05 20:09:31 -05:00
阿豪
8b5b327b18
feat(ext/ffi): better type hints for Deno.dlopen ( #16874 )
2022-12-03 17:45:35 +05:30
Divy Srivastava
9b2b8df927
feat(ops): Fast zero copy string arguments ( #16777 )
...
Uses SeqOneByteString optimization to do zero-copy `&str` arguments in
fast calls.
- [x] Depends on https://github.com/denoland/rusty_v8/pull/1129
- [x] Depends on
https://chromium-review.googlesource.com/c/v8/v8/+/4036884
- [x] Disable in async ops
- [x] Make it work with owned `String` with an extra alloc in fast path.
- [x] Support `Cow<'_, str>`. Owned for slow case, Borrowed for fast
case
```rust
#[op]
fn op_string_len(s: &str) -> u32 {
str.len() as u32
}
```
2022-12-02 05:29:15 +00:00
David Sherret
b1e29d1bd0
fix(npm): improve package.json exports support for types ( #16880 )
2022-11-30 23:07:32 +00:00
David Sherret
2d4c46c975
refactor: create util folder, move nap_sym to napi/sym, move http_cache to cache folder ( #16857 )
2022-11-28 17:28:54 -05:00