0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-25 06:32:41 -05:00
Commit graph

2181 commits

Author SHA1 Message Date
Lukasz Czerniawski
c4b2e17841 Move mode prop 2024-08-03 10:34:02 +02:00
Lukasz Czerniawski
67a581cf13 Make mode non-optional as it is now working on Windows 2024-08-03 10:32:52 +02:00
Lukasz Czerniawski
2df81fc0bb Remove mode unix only filter in parseFileInfo 2024-08-02 21:21:19 +02:00
Lukasz Czerniawski
d4c10523e6 Fix missing change mtime -> ctime Node polyfills 2024-08-02 19:50:50 +02:00
Lukasz Czerniawski
de29ab2a0c Fix comment 2024-08-02 17:59:53 +02:00
Lukasz Czerniawski
0791b32a9e Fix lint and format 2024-08-02 17:51:30 +02:00
Lukasz Czerniawski
ba32d4a29d Add a Microsoft source to comment 2024-08-02 17:50:30 +02:00
Lukasz Czerniawski
68b5dd6eac Add a Microsoft source to comment 2024-08-02 17:42:43 +02:00
Lukasz Czerniawski
6d48778991 Fix NtQueryInformationFile and get ChangeTime from single sys call 2024-08-02 17:39:35 +02:00
Lukasz Czerniawski
eed2a7a8a7 Remove unnecessary variable 2024-07-30 22:00:06 +02:00
Lukasz Czerniawski
7cd2a6de65 Remove unnecessary mutable 2024-07-30 21:41:50 +02:00
Lukasz Czerniawski
452b295d4e Change the way that get_change_time for windows is structured 2024-07-30 21:01:26 +02:00
Lukasz Czerniawski
ea7db6f525 Fix formating 2024-07-30 20:52:22 +02:00
Lukasz Czerniawski
9fb0be7d3a Fix missing ctime in js struct 2024-07-30 20:50:22 +02:00
Lukasz Czerniawski
054c7b1c0c Add error handling for both unix and windows 2024-07-30 17:48:31 +02:00
Lukasz Czerniawski
dd69f76690 Move around helper function for time conversion 2024-07-29 22:40:37 +02:00
Lukasz Czerniawski
83eb7aa5f4 Fix wrong borrowed value 2024-07-29 22:25:58 +02:00
Lukasz Czerniawski
2b51e87e4d Fix missing & 2024-07-29 22:24:46 +02:00
Lukasz Czerniawski
f1f74d12fe Fix missing std and using 2024-07-29 22:23:54 +02:00
Lukasz Czerniawski
e93a521c93 Fix missing method 2024-07-29 22:22:46 +02:00
Lukasz Czerniawski
18bd277f49 Fix ctime pass to struct 2024-07-29 22:21:00 +02:00
Lukasz Czerniawski
60c13059c3 Update windows to get ctime from special method 2024-07-29 22:15:25 +02:00
Lukasz Czerniawski
789e7dda05 Fix node compact layer ctime to use ctime instead of mtime 2024-07-29 16:23:20 +02:00
Lukasz Czerniawski
a939477f46 Expose ctime to TS interface 2024-07-29 16:06:48 +02:00
Lukasz Czerniawski
86933ee41e Convert ctim to milliseconds 2024-07-29 16:06:06 +02:00
Lukasz Czerniawski
6dc80bfdf5 Add ctime support for windows, based on ChangeTime field 2024-07-29 15:39:05 +02:00
Lukasz Czerniawski
61b0818741 Add ctime to FsStat and support of it for unix 2024-07-29 15:32:01 +02:00
David Sherret
06b6352292
fix(unstable/compile): handle byonm import in sub dir (#24755)
Regression in 1.45.0 caused by storing relative paths instead of
absolute paths in the binary.

Closes #24654
2024-07-26 15:53:53 -04:00
denobot
ed2bf8ce31
chore: forward v1.45.4 release commit to main (#24754)
Co-authored-by: David Sherret <dsherret@gmail.com>
2024-07-26 14:26:13 -04:00
MrEconomical
f4952f75a8
fix(ext/node): read correct CPU usage stats on Linux (#24732)
Fixes #24731

<img width="554" alt="deno_fixed"
src="https://github.com/user-attachments/assets/691f2f89-d979-4ca5-be9a-cf51446cd9b2">

The total CPU usage row is ignored and info from `cpu0` and `cpu1` is
correctly read.

---------

Signed-off-by: MrEconomical <47700125+MrEconomical@users.noreply.github.com>
2024-07-26 09:09:01 +05:30
David Sherret
7907265590
fix(node): cjs pkg dynamically importing esm-only pkg fails (#24730) 2024-07-25 21:40:10 -04:00
David Sherret
3bf147fe28
refactor: decouple node resolution from deno_core (#24724) 2024-07-25 19:08:14 -04:00
Marvin Hagemeister
0cf7f268a7
fix(node/worker_threads): support port.once() (#24725)
Support `MessagePort.once` in Node mode and enable relevant
`worker_threads` test. Noticed that another Node test was passing as
well, so I enabled that too.
2024-07-25 23:06:19 +02:00
Asher Gomez
5f44148e83
chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
Asher Gomez
f248050cb4
chore: use @std prefix for internal module specifiers (#24543)
This change aims to replace all relative import specifiers targeted at
`tests/util/std` with mapped ones (using a `deno.json` file). Towards
updating the `std` git submodule.
2024-07-25 10:26:54 +10:00
Bartek Iwańczuk
1fad6eb2ac
fix(ext/fetch): respect authority from URL (#24705)
This commit fixes handling of "authority" in the URL by properly
sending "Authorization Basic..." header in `fetch` API.

This is a regression from https://github.com/denoland/deno/pull/24593
Fixes https://github.com/denoland/deno/issues/24697

CC @seanmonstar
2024-07-24 23:22:43 +02:00
Sean McArthur
c7f468d33b
fix(ext/fetch): use correct ALPN to proxies (#24696)
Sending ALPN to a proxy, and then when tunneling, requires better
juggling of TLS configs. This improves the choice of TLS config in the
proxy connector, based on what reqwest does. It also includes some
`ext/fetch/tests.rs` that check the different combinations.

Fixes #24632
Fixes #24691
2024-07-24 20:20:06 +00:00
Yoshiya Hinosawa
199a8ca4c5
fix(ext/node/net): emit error before close when connection is refused (#24656) 2024-07-24 20:33:45 +09:00
Nathan Whitaker
29934d558c
fix(node): Run node compat tests listed in the ignore field (and fix the ones that fail) (#24631)
The intent is that those tests will be executed, but our check that the
files are up to date won't overwrite the contents of the tests. This is
useful when a test needs some manual edits to work.

It turns out we weren't actually running them.

---

This ended up turning into a couple of small bug fixes to get the tests
passing:

- We weren't canonicalizing the exec path properly (it sometimes still
had `..` or `.` in it)
- We weren't accepting strings in `process.exit`

There was one failure I couldn't figure out quickly, so I disabled the
test for now, and filed a follow up issue: #24694
2024-07-24 03:12:08 +00:00
David Sherret
52ababc4bf
fix(node): better detection for when to surface node resolution errors (#24653) 2024-07-24 00:22:24 +00:00
Bartek Iwańczuk
445e05a39d
Reland "fix: CFunctionInfo and CTypeInfo leaks (#24634)" (#24692)
Reverted in
95847f4e94.
2024-07-24 02:11:38 +02:00
David Sherret
6055629ee7
refactor: update to use deno_package_json (#24688)
This is in preparation for extracting out node resolution code from
ext/node (which is something I'm going to do gradually over time).

Uses https://github.com/denoland/deno_package_json
2024-07-23 17:34:46 -04:00
denobot
9806064ac2
chore: forward v1.45.3 release commit to main (#24681)
This is the release commit being forwarded back to main for 1.45.3

---------

Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2024-07-23 03:41:40 +02:00
Bartek Iwańczuk
3f8efe5289
Revert "chore: move all node-api impl to ext (#24662)" (#24680)
This reverts commit d00fbd7025.

Reverting because, it caused a failure during v1.45.3 publish:

https://github.com/denoland/deno/actions/runs/10048730693/job/27773718095
2024-07-23 00:01:31 +00:00
Kenta Moriuchi
715675565a
fix(types): Conform lib.deno_web.d.ts to lib.dom.d.ts and lib.webworker.d.ts (#24599)
Fix #24578
Fix #21981
2024-07-22 22:02:39 +02:00
snek
92abdb7669
chore: move all node-api impl to ext (#24662)
these symbols are re-exported from runtime/cli using `build.rs`, so we
don't need them in the same crate.
2024-07-22 11:41:59 -07:00
MujahedSafaa
994b6327d3
fix(ext/console): Error Cause Not Inspect-Formatted when printed (#24526)
This pull request addresses an issue where the Error.cause property was
not formatted correctly when printed using console.log, leading to
confusion.

solution:
Implemented a fix to ensure that Error.cause is formatted properly when
printed by console.log, and the fix done by using JSON.stringify

This PR fixes https://github.com/denoland/deno/issues/23416

---------

Signed-off-by: MujahedSafaa <168719085+MujahedSafaa@users.noreply.github.com>
2024-07-22 04:18:49 -07:00
Marvin Hagemeister
c77b8b96ef
fix: missing emitWarning import (#24587)
We were missing an import of `emitWarning` in our streams
implementation. The code prior to this PR assumed that `process` would
be available as a global.

Fixes https://github.com/denoland/deno/issues/23709

---------

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2024-07-19 23:35:07 +00:00
Marvin Hagemeister
ee2e693340
fix(node): support tty.hasColors() and tty.getColorDepth() (#24619)
This PR adds support for
[`tty.WriteStream.prototype.hasColors()`](https://nodejs.org/api/tty.html#writestreamhascolorscount-env)
and
[`tty.WriteStream.prototype.getColorDepth()`](https://nodejs.org/api/tty.html#writestreamgetcolordepthenv).

I couldn't find any usage on GitHub which passes parameters to it.
Therefore I've skipped adding support for the `env` parameter to keep
our snapshot size small.

Based on https://github.com/denoland/deno_terminal/pull/3

Fixes https://github.com/denoland/deno/issues/24616
2024-07-19 12:39:05 +02:00
Yoshiya Hinosawa
76b8ecbb6d
fix(ext/node): do not expose self global in node (#24637)
closes #23727
2024-07-19 12:37:08 +09:00