David Sherret
93194b185c
chore: fix upgrade_prompt test on main ( #21314 )
...
Issue was main does canary builds, which broke this test because it
didn't handle searching for a canary release. Tested by building as
canary locally.
2023-11-24 03:05:27 +01:00
David Sherret
e2cd312c62
chore: add upgrade prompt integration test ( #21273 )
...
1. Adds an upgrade prompt integration test.
1. Adds a test for when the upgrade check takes a long time in the repl.
2023-11-24 03:05:27 +01:00
Yoshiya Hinosawa
d0574f788c
fix(ext/node): fix node:stream.Writable ( #21297 )
...
This change applies the same fix as
https://github.com/nodejs/node/pull/46818 , and the original example
given in #20456 works as expected.
closes #20456
2023-11-24 03:05:27 +01:00
Asher Gomez
ff8739d05f
refactor: replace deferred()
from std/async
with Promise.withResolvers()
( #21234 )
...
Closes #21041
---------
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-11-24 03:05:26 +01:00
Bartek Iwańczuk
f16d6e6cd8
Revert "chore: update to std@0.207.0
( #21284 )" ( #21295 )
...
This reverts commit 20aa0796e6
.
`main` has been failing consistenly on `kv_undelivered_test` and
`serve_test` after this upgrade.
2023-11-24 03:05:26 +01:00
Nayeem Rahman
e7d2648faa
fix(lsp): force shutdown after a timeout ( #21251 )
2023-11-24 03:05:26 +01:00
Bartek Iwańczuk
cffdbe9d79
fix: 'Promise was collected' error in REPL/jupyter ( #21272 )
...
Fixes #20528
2023-11-24 03:05:26 +01:00
Asher Gomez
55eda68421
docs: update Deno.*
deprecation notices ( #21283 )
...
This PR updates the deprecation notices to point to the same replacement
APIs that the Standard Library points to. I've also tweaked the notices
to be a little more presentable/navigatable.
In particular, a follow-up PR in std will be made that documents the use
of `toArrayBuffer()`.
Closes #21193
Towards #20976
2023-11-24 03:05:26 +01:00
Asher Gomez
503f661303
chore: update to std@0.207.0
( #21284 )
...
Closes #21002
2023-11-24 03:05:09 +01:00
David Sherret
f5075d851c
fix(fmt): maintain parens for jsx in member expr ( #21280 )
...
Fix in
0b44991bb9
Closes https://github.com/denoland/deno/issues/21279
2023-11-24 03:05:08 +01:00
citrusmunch
bd03606935
docs(cli/args/flags.rs): Update dead link for run
example ( #21277 )
...
The `deno run` example in the help output uses
https://deno.land/std/examples/welcome.ts which no longer exists.
Replacing with https://examples.deno.land/hello-world.ts
Signed-off-by: citrusmunch <citrusmunch@users.noreply.github.com>
2023-11-24 03:05:08 +01:00
David Sherret
3b022f3472
fix: Deno.noColor should not be true when NO_COLOR is empty string ( #21275 )
...
Closes https://github.com/denoland/deno/issues/21274
2023-11-24 03:05:08 +01:00
Divy Srivastava
b81757cc56
fix(ext/node): handle closing process.stdin more than once ( #21267 )
...
Fixes https://github.com/denoland/deno/issues/21112
Aligns more towards what Node.js does. Closing stdin more than once is a
nop.
2023-11-24 03:05:07 +01:00
Bartek Iwańczuk
1dd019651b
chore: update deno_doc to 0.73.3 ( #21262 )
...
Removes some unnecessary dependencies.
2023-11-24 03:05:07 +01:00
Jérôme Benoit
f02c09be49
docs: typo fixlet in worker type comment ( #21268 )
2023-11-24 03:03:27 +01:00
Kenta Moriuchi
5a9833c760
fix(ext,runtime): add missing custom inspections ( #21219 )
2023-11-24 03:03:27 +01:00
Matt Mastracci
45be896436
fix(ext/http): fix crash in dropped Deno.serve requests ( #21252 )
...
Fixes #21250
We were attempting to recycle dropped resource responses too early.
2023-11-24 03:03:26 +01:00
David Sherret
e635d66f4a
chore: combine TestCommandBuilder
with DenoCmd
( #21248 )
2023-11-24 03:03:26 +01:00
Matt Mastracci
6a9a09c6f5
chore: disable curl --http2 tests ( #21247 )
2023-11-24 03:03:26 +01:00
Matt Mastracci
9bc489d2d0
test(cli): http test reliability fixes ( #21246 )
2023-11-24 03:03:25 +01:00
Florian Schwalm
0223ff36f1
chore(cli): Fix rename test for XFS ( #21215 )
...
Renaming a directory to a path where a non-empty directory already
exists was asserted to always fail with `ENOTEMPTY`
According to glibc manual the function may also fail with `EEXIST` on
"some other systems". One such case is using XFS [^1].
This commit handles the EEXIST case.
[^1]:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/fs/xfs/xfs_inode.c?h=v4.18&id=94710cac0ef4ee177a63b5227664b38c95bbf703#n3082
2023-11-24 03:03:25 +01:00
David Sherret
9c39172f55
refactor(upgrade): add unit tests for lsp upgrade check ( #21244 )
2023-11-24 03:03:25 +01:00
Matt Mastracci
04054cd787
chore: make http benches more reliable to start ( #21240 )
2023-11-24 03:03:25 +01:00
Matt Mastracci
d39a7f4cc9
chore: fix and deflake cert store fetch tests ( #21241 )
2023-11-24 03:03:25 +01:00
David Sherret
f7a9f432ea
ci: fix flaky stdio_streams_are_locked_in_permission_prompt ( #21238 )
...
Part of #21187
2023-11-24 03:03:25 +01:00
林炳权
53951d703c
chore: update to Rust 1.74 ( #21210 )
...
Update to Rust 1.74
2023-11-24 03:03:25 +01:00
David Sherret
7496bd8b0c
chore: various improvements to tests ( #21222 )
2023-11-24 03:03:24 +01:00
denobot
d3fb7d1a48
1.38.2 ( #21229 )
2023-11-17 13:15:07 +09:00
Bartek Iwańczuk
2b31634d61
feat(unstable): Workspaces support ( #20410 )
...
This commit adds unstable workspace support. This is extremely
bare-bones and
minimal first-pass at this.
With this change `deno.json` supports specifying `workspaces` key, that
accepts a list of subdirectories. Each workspace can have its own import
map. It's required to specify a `"name"` and `"version"` properties in the
configuration file for the workspace:
```jsonc
// deno.json
{
"workspaces": [
"a",
"b"
},
"imports": {
"express": "npm:express@5"
}
}
```
``` jsonc
// a/deno.json
{
"name": "a",
"version": "1.0.2",
"imports": {
"kleur": "npm:kleur"
}
}
```
```jsonc
// b/deno.json
{
"name": "b",
"version": "0.51.0",
"imports": {
"chalk": "npm:chalk"
}
}
```
`--unstable-workspaces` flag is required to use this feature:
```
$ deno run --unstable-workspaces mod.ts
```
---------
Co-authored-by: David Sherret <dsherret@gmail.com>
2023-11-17 11:30:53 +09:00
David Sherret
dcacdcd727
fix(doc): issue discovering re-exports of re-exports sometimes ( #21223 )
2023-11-17 11:30:49 +09:00
David Sherret
e95d5cc7dc
fix(npm): support cjs entrypoint in node_modules folder ( #21224 )
...
Closes #21109
2023-11-17 11:30:46 +09:00
Igor Zinkovsky
66c64ac511
feat(ext/cron) modify Deno.cron API to make handler arg last ( #21225 )
...
This PR changes the `Deno.cron` API:
* Marks the existing function as deprecated
* Introduces 2 new overloads, where the handler arg is always last:
```ts
Deno.cron(
name: string,
schedule: string,
handler: () => Promise<void> | void,
)
Deno.cron(
name: string,
schedule: string,
options?: { backoffSchedule?: number[]; signal?: AbortSignal },
handler: () => Promise<void> | void,
)
```
This PR also fixes a bug, when other crons continue execution after one
of the crons was closed using `signal`.
2023-11-17 11:30:43 +09:00
Matt Mastracci
fdc50d1592
feat(ext/net): use rustls_tokio_stream ( #21205 )
...
Fixes #21121 and #19498
Migrates fully to rustls_tokio_stream. We no longer need to maintain our
own TlsStream implementation to properly support duplex.
This should fix a number of errors with TLS and websockets, HTTP and
"other" places where it's failing.
2023-11-17 11:30:38 +09:00
Bartek Iwańczuk
f96d89bf7a
fix: use short git hash for deno version ( #21218 )
2023-11-17 11:30:35 +09:00
Bolat Azamat
205ac412a7
fix(cli): Allow executable name start with digit ( #21214 )
2023-11-17 11:30:31 +09:00
Divy Srivastava
0d8c9f8ef1
perf: static bootstrap options in snapshot ( #21213 )
...
Closes https://github.com/denoland/deno/issues/21133
2023-11-17 11:30:26 +09:00
Yoshiya Hinosawa
0764451e51
fix(runtime): fix Deno.noColor when stdout is not tty ( #21208 )
2023-11-17 11:30:22 +09:00
Nayeem Rahman
8c50df360f
feat(lsp): upgrade check on init and notification ( #21105 )
2023-11-17 11:30:19 +09:00
Divy Srivastava
0e91ce6b79
perf: move jupyter esm out of main snapshot ( #21163 )
...
Towards https://github.com/denoland/deno/issues/21136
2023-11-17 11:30:16 +09:00
David Sherret
3f17633de9
chore: switch compile tests over to the TestBuilder ( #21180 )
2023-11-17 11:30:13 +09:00
Bartek Iwańczuk
a85b3e7938
fix(ext/node): add APIs perf_hook.performance ( #21192 )
...
Required for Next.js.
2023-11-17 11:30:03 +09:00
Kenta Moriuchi
8bf1437f48
fix(ext/web): webstorage has trap for symbol ( #21090 )
2023-11-17 11:30:00 +09:00
David Sherret
e58e9da8df
chore: remove duplicate esnext.dispoable ( #21184 )
2023-11-17 11:29:48 +09:00
Matt Mastracci
9b07557bfb
chore(cli): unflake signal test ( #21185 )
...
If these tests do eventually break, they'll time out.
2023-11-17 11:29:37 +09:00
Matt Mastracci
83fa25653a
chore(ext/web): use a non-resource stream for textDecoderStreamCleansUpOnCancel ( #21181 )
...
Follow-up fix to #21074
2023-11-17 11:29:30 +09:00
David Sherret
60c6052060
fix(install): should work with non-existent relative root ( #21161 )
...
Closes #21160
2023-11-17 11:29:15 +09:00
Divy Srivastava
b0fe699680
perf: lazy bootstrap options - first pass ( #21164 )
...
Move most runtime options to be lazily loaded. Constant options will be
covered in a different PR.
Towards https://github.com/denoland/deno/issues/21133
2023-11-17 11:29:07 +09:00
Nayeem Rahman
bfe9c9e1ba
fix(lsp): update tsconfig after refreshing settings on init ( #21170 )
2023-11-17 11:28:56 +09:00
Florian Schwalm
7dc8c4e2a3
fix(ext/web): Prevent TextDecoderStream resource leak on stream cancellation ( #21074 )
...
This PR uses the new `cancel` method of `TransformStream` to properly
clean up the internal `TextDecoder` used in `TextDecoderStream` if the
stream is cancelled.
Fixes #13142
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-11-17 11:28:50 +09:00
Divy Srivastava
bd91d05b5a
perf: snapshot runtime ops ( #21127 )
...
Closes https://github.com/denoland/deno/issues/21135
~1ms startup time improvement
---------
Signed-off-by: Divy Srivastava <dj.srivastava23@gmail.com>
Co-authored-by: David Sherret <dsherret@users.noreply.github.com>
2023-11-17 11:28:44 +09:00