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
cc46f6776c
Revert "perf: disable TSC snapshot compression ( #18333 )" ( #18336 )
...
This reverts commit 0d27de943a
.
2023-03-21 19:11:22 +00:00
Bartek Iwańczuk
0d27de943a
perf: disable TSC snapshot compression ( #18333 )
...
This commit disables compression of the TSC snapshot.
The compression only decreased the size of snapshot by 0.5Mb
and it took about 40s during release build to compress.
With recent gains in TS 5.0 upgrade in terms of size and performance
it makes sense to remove this compression.
2023-03-21 17:53:46 +00: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
Max
84fedabab3
chore: bump http to ^0.29.0 ( #18259 )
...
`http` is very stable, it's safe to "unpin" it from `=0.28.0` version.
This helps embedders that depend on newer version of `http` crate.
2023-03-19 00:34:56 +00:00
Bartek Iwańczuk
8f9becee76
perf: disable runtime snapshot compression ( #18239 )
...
This commit removes compression for the runtime JS code.
It means that we will have a bigger binary, but faster startup. After
several discussion in the CLI team we decided it's worth to trade
about 3Mb of binary size for 2ms faster startup time. With WebGPU
removed in 35196eab27
it shouldn't have such a big impact on the binary size.
2023-03-17 08:49:46 +05:30
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
Divy Srivastava
5a1d3ea614
chore: bump rusty_v8 to 0.65.0 ( #18231 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-03-16 22:02:09 +00:00
Luca Casonato
b99c431ac7
feat(serde_v8): support BigInt serialization ( #18225 )
...
This commit enables serializing `v8::BigInt` to `num_bigint::BigInt`
in Rust.
Pre-requisite for sub upcoming feature work.
2023-03-16 16:59:47 +00:00
denobot
33b85a2b8e
chore: forward v1.31.3 release commit to main ( #18222 )
...
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2023-03-16 17:09:26 +09:00
Yiyu Lin
96b1ede254
refactor(lockfile): move anyhow
to thiserror
( #18178 )
2023-03-14 10:55:52 -04:00
Yoshiya Hinosawa
e80cc17dc4
fix(ext/node): add crypto.createCipheriv ( #18091 )
2023-03-14 15:59:23 +09:00
sean watters
e712fbfe4a
fix(core): Upgrades bytes crate from =1.2.1 to ^1.4.0 ( #18123 )
...
Motivation: currently can't embed `deno_core` in any project that
depends on later version of `bytes` crate.
2023-03-13 13:26:46 +01:00
denobot
857393d934
chore: forward v1.31.2 release commit to main ( #18114 )
...
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2023-03-10 17:39:29 +09:00
Bartek Iwańczuk
78d430103a
fix(prompt): better output with control chars ( #18108 )
2023-03-10 01:09:14 +01:00
Divy Srivastava
2f81e555d8
chore: bump rusty_v8 to 0.64.0 ( #18096 )
2023-03-09 19:51:26 +00:00
David Sherret
25d98ca289
refactor(lsp): improve test client initialization ( #18015 )
2023-03-08 23:15:20 +00:00
Miroslav Bajtoš
b21129173a
deps: bump once_cell to ^1.17.1 ( #18075 )
2023-03-08 15:49:13 +00:00
David Sherret
88b5fd9088
fix: attempt to only allow one deno process to update the node_modules folder at a time ( #18058 )
...
This is implemented in such a way that it should still allow processes
to go through when a file lock wasn't properly cleaned up and the OS
hasn't released it yet (but with a 200ms-ish delay).
Closes #18039
2023-03-08 15:13:13 +00:00
Bartek Iwańczuk
fe368b72c1
refactor: Add "deno_fs" extension crate ( #18040 )
...
This commit factors out APIs related to file system from "runtime/"
to a separate "deno_fs" extension crate.
2023-03-07 18:13:44 +09:00
Divy Srivastava
c9c782940e
chore(ext/node): cleanup empty internal_bindings ( #18032 )
2023-03-05 10:53:42 -04:00
Bartek Iwańczuk
7afa3aceb0
refactor(runtime): factor out deno_io extension crate ( #18001 )
...
This is a prerequisite to factor out FS ops to a separate crate.
2023-03-05 00:39:48 +00:00
Dominic DiGiacomo
5e91489db9
deps: bump regexp
to ^1.7.0
( #17966 )
2023-02-27 08:30:45 +02:00
sean watters
ce94bf47ae
fix(cli,ext/web): Upgrading uuid from =1.1.2 to 1.3.0 ( #17963 )
...
Resolves https://github.com/denoland/deno/issues/17962
2023-02-26 21:53:52 +02:00
luketpeterson
086fe13bda
chore: Changing dependency on tokio-util from version-lock to semver minimum ( #17863 )
2023-02-26 21:39:06 +02:00
denobot
3cd24fa8d0
chore: forward v1.31.1 release commit to main ( #17939 )
...
Co-authored-by: David Sherret <dsherret@gmail.com>
2023-02-24 22:37:46 -05:00
David Sherret
b6ac54815c
chore: fix cargo publish ( #17907 )
2023-02-24 01:20:54 +01:00
denobot
c26fbe38d5
1.31.0 ( #17906 )
...
Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-02-24 00:16:04 +01:00
David Sherret
b15f9e60a0
feat(task): support scripts in package.json ( #17887 )
...
This is a super basic initial implementation. We don't create a
`node_modules/.bin` folder at the moment and add it to the PATH like we
should which is necessary to make command name resolution in the
subprocess work properly (ex. you run a script that launches another
script that then tries to launch an "npx command"... this won't work
atm).
Closes #17492
2023-02-22 22:45:35 -05:00
Divy Srivastava
ea7ca00c89
perf: use ops for node:crypto ciphers ( #17819 )
...
Towards #17809
2023-02-20 22:22:28 +05:30
Bartek Iwańczuk
e0074b5afd
chore: upgrade tokio to 1.25.0 ( #17590 )
...
Upgrades "tokio" dependency to version 1.25.0.
2023-02-17 00:34:12 +01:00
David Sherret
c4b9a91e27
refactor: use deno_graph's semver and npm structs ( #17791 )
2023-02-15 13:20:40 -05:00
Bartek Iwańczuk
1740e0fc36
chore: upgrade rusty_v8 to 0.63.0 ( #17705 )
2023-02-10 12:40:03 +00:00
David Sherret
b3e88e0681
refactor: deno_graph 0.43 upgrade ( #17692 )
2023-02-09 22:00:23 -05:00
Bartek Iwańczuk
65500f36e8
chore: upgrade rusty_v8 to 0.62.2 ( #17604 )
...
Co-authored-by: Bert Belder <bertbelder@gmail.com>
2023-02-07 13:36:41 +01:00
denobot
a4988d00da
chore: forward v1.30.3 release commit to main ( #17677 )
...
Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-02-07 04:15:38 +00:00
denobot
f8ecd236fb
chore: forward v1.30.2 release commit to main ( #17641 )
...
This is the release commit being forwarded back to main for 1.30.2
Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
2023-02-03 16:26:43 +00:00
denobot
65755a115a
chore: forward v1.30.1 release commit to main ( #17623 )
...
This is the release commit being forwarded back to main for 1.30.1
2023-02-02 16:28:40 +00:00
luketpeterson
1b46b2f0e4
chore: bump serde & serde_json deps to use semver minimums ( #17610 )
...
Changing serde & serde_json dependencies to use semver minimums rather
than exact crate version.
Fixes https://github.com/denoland/deno/issues/17609
2023-02-01 14:40:35 +00:00
Leo Kettmeir
3035dee9f1
chore: update webgpu ( #17534 )
2023-01-30 15:14:16 +01:00
denobot
a6f915c22f
1.30.0 ( #17532 )
...
Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-01-26 00:15:08 +01:00
Bartek Iwańczuk
8b7023bc7e
Revert "chore: upgrade rusty_v8 to 0.62.0 ( #17200 )" ( #17523 )
...
This reverts commit e2d75491d5
.
2023-01-25 15:36:10 +01:00
Bartek Iwańczuk
e2d75491d5
chore: upgrade rusty_v8 to 0.62.0 ( #17200 )
2023-01-25 12:22:27 +00:00
Bartek Iwańczuk
bf237c6241
refactor: Move lockfile to a separate crate ( #17503 )
...
Moves the lockfile implementation to a separate crate so other projects
like Deploy can use it as well.
2023-01-23 23:41:02 +01:00
Jun Jiang
c230a95551
chore: upgrade tokio to 1.24.2 ( #17467 )
...
Tokio 1.24.2 fixed an unsoundness issue
https://github.com/tokio-rs/tokio/pull/5375
2023-01-19 21:57:13 +05:30
Kyle Willmon
84e9794970
chore(ext/crypto): Update rsa to 0.7.0 ( #16327 )
...
Bump the rsa crate to 0.7.0
The API for the `rsa` crate has changed significantly, but I have
verified that tests continue to pass throughout this update.
2023-01-18 15:18:41 +00:00
denobot
f2a5f6d7f0
chore: forward v1.29.4 release commit to main ( #17453 )
...
Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-01-17 00:30:33 +01:00
Bartek Iwańczuk
d0f88fc1ca
chore: upgrade rusty_v8 to 0.60.1 ( #17407 )
...
Required for https://github.com/denoland/deno/pull/17306
2023-01-14 10:36:42 +05:30
David Sherret
377f593273
chore: forward 1.29.3 release back to main ( #17401 )
2023-01-13 13:36:51 -05:00
Jun Jiang
f26700862a
chore: upgrade tokio to 1.24.0 ( #17271 )
2023-01-06 16:37:23 +01:00
denobot
fa271b70db
chore: forward v1.29.2 release commit to main ( #17277 )
...
Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-01-05 16:48:19 +01:00
David Sherret
0ee64ad847
fix: upgrade deno_ast to 0.23 ( #17269 )
...
Closes #17172
Closes #15669
Closes #8529
2023-01-04 18:54:54 -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
Ryan Dahl
400cd331fb
chore: bump deno_fetch and deno_http versions ( #17124 )
...
https://github.com/denoland/deno/pull/17081
https://github.com/denoland/deno/pull/17126
2022-12-20 04:54:27 -08:00
denobot
b9527f5020
chore: forward v1.29.1 release commit to main ( #17067 )
...
Co-authored-by: dsherret <dsherret@users.noreply.github.com>
2022-12-15 13:30:55 -05:00
denobot
0d4e4af7ac
1.29.0 ( #17052 )
...
Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-12-15 00:22:54 +01:00
Bartek Iwańczuk
12626b11f7
chore: upgrade rusty_v8 to 0.60.0 ( #17033 )
2022-12-13 17:07:18 +01:00
Christian Dürr
9daf6e197a
chore: remove exact version constraint from libc ( #16955 )
2022-12-08 21:29:10 -05:00
David Sherret
dac30af151
feat(fmt): improve width calculation ( #16982 )
...
Formats code according to Unicode Standard Annex #11 rules
(https://crates.io/crates/unicode-width ).
This aligns `deno fmt` more with prettier.
2022-12-07 17:32:24 -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
denobot
98d062e3dc
chore: forward v1.28.3 release commit to main ( #16884 )
...
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2022-12-01 22:46:27 +09:00
Bartek Iwańczuk
381932ce1e
chore: upgrade rusty_v8 to 0.58.0 ( #16879 )
2022-11-30 22:20:18 +00:00
Bartek Iwańczuk
3f71c0dcf5
chore: upgrade rusty_v8 to 0.57.0 ( #16871 )
2022-11-30 00:45:33 +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
Bartek Iwańczuk
d8ab492d01
chore: update rusty_v8 to 0.56.1 ( #16835 )
2022-11-26 20:11:27 +01:00
Bartek Iwańczuk
55da1a2e72
chore: update rusty_v8 to 0.56.0 ( #16814 )
...
Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
2022-11-26 16:35:46 +01:00
denobot
72dd7ad807
chore: forward v1.28.2 release commit to main ( #16796 )
...
Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-11-24 23:59:42 +01:00
Leo Kettmeir
13e3acf71d
chore: workspace inheritance ( #16343 )
2022-11-22 21:07:35 +01:00
Divy Srivastava
e136bd86b3
perf(napi): optimize primitive napi functions ( #16163 )
...
This optimization applies on `napi_get_undefined`, `napi_get_null` &
`napi_get_boolean`.
```
# main
benchmark time (avg) (min … max) p75 p99 p995
---------------------------------------------------------- -----------------------------
warmup 482.55 ps/iter (462.5 ps … 15.67 ns) 475 ps 525 ps 829.1 ps
napi_get_undefined 25.07 ns/iter (24.03 ns … 36.87 ns) 25.37 ns 27.09 ns 34.85 ns
```
```
# This patch
benchmark time (avg) (min … max) p75 p99 p995
---------------------------------------------------------- -----------------------------
warmup 484.78 ps/iter (462.5 ps … 14.4 ns) 475 ps 554.1 ps 583.3 ps
napi_get_undefined 15.52 ns/iter (15.35 ns … 22.14 ns) 15.41 ns 17.18 ns 20.02 ns
```
2022-10-07 16:24:01 +05:30
Divy Srivastava
0b016a7fb8
feat(npm): implement Node API ( #13633 )
...
This PR implements the NAPI for loading native modules into Deno.
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: DjDeveloper <43033058+DjDeveloperr@users.noreply.github.com>
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
2022-10-05 19:36:44 +05:30
Satya Rohith
b312279e58
feat: implement Web Cache API ( #15829 )
2022-09-28 17:41:12 +05:30
Bartek Iwańczuk
a3b4037c8a
Revert "perf(cli): use -O3 instead of -Oz ( #15952 )" ( #16053 )
...
This reverts commit 06c77a30f9
.
2022-09-27 14:55:02 +02:00
Divy Srivastava
06c77a30f9
perf(cli): use -O3 instead of -Oz ( #15952 )
...
perf(cli): use -O3 instead of -Os
2022-09-22 20:07:01 +05:30
Divy Srivastava
cd21cff299
feat(ext/flash): An optimized http/1.1 server ( #15405 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: Ben Noordhuis <info@bnoordhuis.nl>
Co-authored-by: crowlkats <crowlkats@toaxl.com>
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
2022-08-18 17:35:02 +05:30
David Sherret
39fb32df46
chore(ext/node): correct publishing for ext/node ( #15461 )
2022-08-11 17:25:41 -04:00
Bartek Iwańczuk
a919a5dd11
Revert "refactor(snapshots): to their own crate ( #14794 )" ( #15076 )
...
This reverts commit fd5a12d7e2
.
2022-07-05 00:12:41 +02:00
Nugine
1328a56230
perf(ext/web): use base64-simd for atob/btoa ( #14992 )
2022-06-29 21:12:39 +05:30
Aaron O'Mullan
fd5a12d7e2
refactor(snapshots): to their own crate ( #14794 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-06-24 15:04:45 +02:00
AlexDebug
cc7da96508
chore: eliminate an empty comment ( #14788 )
...
This commit eliminates an extra line of comment
2022-06-04 23:23:51 -04:00
Divy Srivastava
b4e42953e1
feat(core): codegen ops ( #13861 )
...
Co-authored-by: Aaron O'Mullan <aaron.omullan@gmail.com>
2022-03-14 18:44:15 +01:00
Aaron O'Mullan
6a635345ef
perf: opt-level-3 all of ext/* ( #13940 )
2022-03-14 00:19:53 +01:00
Andreu Botella
760f4c9e24
chore(ext/timers): move ext/timers to ext/web ( #13665 )
2022-02-15 12:17:30 +01:00
evan
b66afa2518
feat(cli, runtime): compress snapshots ( #13320 )
2022-01-10 15:51:23 -08:00
Ryan Dahl
1fb5858009
chore: update copyright to 2022 ( #13306 )
...
Co-authored-by: Erfan Safari <erfanshield@outlook.com>
2022-01-07 22:09:52 -05:00
Bert Belder
b042697902
perf: optimize some important crates more aggressively ( #12332 )
2021-11-08 12:49:11 -08:00
Luca Casonato
be68b82eb4
chore: update to rusty_v8 0.33.0 ( #12564 )
2021-10-27 23:26:15 +02:00
Aaron O'Mullan
4f48efcc55
chore: return serde_v8 to main repo ( #12500 )
...
Reduces fragmentation, avoids version drift and facilitates coordinating serde_v8 and op-layer changes
2021-10-20 00:00:45 +02:00
Leo K
f4a9db350f
chore(ext/webgpu): update wgpu to 0.10.0 ( #11781 )
...
Co-authored-by: Luca Casonato <hello@lcas.dev>
2021-08-24 13:29:42 +02:00
Aaron O'Mullan
4f322da07c
perf(url): build with opt-level 3 ( #11779 )
...
A ~25% improvement: `~1950ns/call` => `~1500ns/call`
2021-08-19 19:11:27 +02:00
Divy Srivastava
5d6d6836bb
perf(wpt/crypto): optimize num-bigint-dig for debug builds ( #11681 )
2021-08-13 10:08:13 +02:00
Ryan Dahl
a0285e2eb8
Rename extensions/ directory to ext/ ( #11643 )
2021-08-11 12:27:05 +02:00
Elias Sjögreen
33c8d790c3
feat: ffi to replace plugins ( #11152 )
...
This commit removes implementation of "native plugins" and replaces
it with FFI API.
Effectively "Deno.openPlugin" API was replaced with "Deno.dlopen" API.
2021-08-06 23:28:10 +02:00
David Sherret
d7d452efc1
chore: format toml files internally ( #11563 )
2021-08-02 10:19:27 -04:00
Luca Casonato
f649960f87
refactor: deno_http op crate ( #11335 )
2021-07-12 12:44:49 +02:00
Ryan Dahl
511c48a03a
Revert "Remove unstable native plugins ( #10908 )"
...
This reverts commit 7dd4090c2a
.
2021-07-11 18:12:26 -07:00
Luca Casonato
bdeb4f430b
perf: opt-level = 3 for deno_net ( #11283 )
2021-07-06 01:23:18 +02:00
Bartek Iwańczuk
7dd4090c2a
Remove unstable native plugins ( #10908 )
...
This commit removes implementation of native plugins
alongside the unstable "Deno.openPlugin()" API.
2021-07-02 16:11:23 +02:00
Bartek Iwańczuk
38a7128cdd
feat: Add "deno_net" extension ( #11150 )
...
This commits moves implementation of net related APIs available on "Deno"
namespace to "deno_net" extension.
Following APIs were moved:
- Deno.listen()
- Deno.connect()
- Deno.listenTls()
- Deno.serveHttp()
- Deno.shutdown()
- Deno.resolveDns()
- Deno.listenDatagram()
- Deno.startTls()
- Deno.Conn
- Deno.Listener
- Deno.DatagramConn
2021-06-29 01:43:03 +02:00
Bert Belder
e02403bb45
ci: run Linux release builds in sysroot with Ubuntu 18.04 and LLVM ( #10920 )
2021-06-23 19:36:05 +00:00
Bartek Iwańczuk
6091ea098a
refactor: merge deno_file crate into deno_web ( #10914 )
...
This refactor makes it so there's one less crate to publish on each release.
2021-06-10 15:26:10 +02:00