0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-23 13:43:31 -05:00
Commit graph

11843 commits

Author SHA1 Message Date
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
Yoshiya Hinosawa
99e811f5eb
test(ext/node): reduce http_test flakiness (#24742) 2024-07-27 22:47:47 +09:00
David Sherret
086fa28348
fix(npmrc): skip loading .npmrc in home dir on permission error (#24758) 2024-07-27 09:04:28 -04:00
David Sherret
9956737941
refactor(lint): move reporters to separate module (#24757) 2024-07-27 09:01:42 -04:00
Kyle Kelley
63f8218a7d
fix: adapt to new jupyter runtime API and include session IDs (#24762)
Closes #24737, #24437.
2024-07-27 10:39:08 +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
David Sherret
bee16c54ab
fix(publish): workspace included license file had incorrect path (#24747)
Also fixes the issue where we say a package was successfully published
before it wasn't.

Bug in https://github.com/denoland/deno/pull/24714
2024-07-26 15:35:29 +00:00
Bartek Iwańczuk
7776636c2e
fix: support npm:bindings and npm:callsites packages (#24727)
Adds support for `npm:bindings` and `npm:callsites` packages because of
changes in
https://github.com/denoland/deno_core/pull/838.

This `deno_core` bump causes us to stop prepending `file://` scheme for
locations
in stack traces that are for local files.

Fixes https://github.com/denoland/deno/issues/24462 , fixes
https://github.com/denoland/deno/issues/22671 , fixes
https://github.com/denoland/deno/issues/15717 , fixes
https://github.com/denoland/deno/issues/19130 , fixes
https://github.com/WiseLibs/better-sqlite3/issues/1205 , fixes
https://github.com/WiseLibs/better-sqlite3/issues/1034 , fixes
https://github.com/denoland/deno/issues/20936

---------

Co-authored-by: Nathan Whitaker <17734409+nathanwhit@users.noreply.github.com>
2024-07-26 09:08:15 +02: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
Asher Gomez
ef38aa9d9c
chore: fix bench task (#24718)
<!--
Before submitting a PR, please read
https://docs.deno.com/runtime/manual/references/contributing

1. Give the PR a descriptive title.

  Examples of good title:
    - fix(std/http): Fix race condition in server
    - docs(console): Update docstrings
    - feat(doc): Handle nested reexports

  Examples of bad title:
    - fix #7123
    - update docs
    - fix bugs

2. Ensure there is a related issue and it is referenced in the PR text.
3. Ensure there are tests that cover the changes.
4. Ensure `cargo test` passes.
5. Ensure `./tools/format.js` passes without changing files.
6. Ensure `./tools/lint.js` passes.
7. Open as a draft PR if your work is still in progress. The CI won't
run
   all steps, but you can add '[ci]' to a commit message to force it to.
8. If you would like to run the benchmarks on the CI, add the 'ci-bench'
label.
-->
2024-07-25 23:53:52 +00: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
David Sherret
763f05e74d
fix(unstable): move sloppy-import warnings to lint rule (#24710)
Adds a new `no-sloppy-imports` lint rule and cleans up the lint code.

Closes #22844
Closes https://github.com/denoland/deno_lint/issues/1293
2024-07-25 09:07:59 -04:00
Asher Gomez
ef78d317f0
chore: fix WPT epoch (#24716)
This was missed in the previous `std` updates.
2024-07-25 09:20:44 +02:00
Asher Gomez
5f44148e83
chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
David Sherret
84b7504d0f
fix(workspaces/publish): include the license file from the workspace root if not in pkg (#24714) 2024-07-25 01:43:30 +00:00
Bartek Iwańczuk
5f5f662a68
fix: upgrade deno_core to 0.298.0 (#24709)
Fixes percent-encoded filenames in stack traces:
- https://github.com/denoland/deno_core/pull/759

Closes #18983
2024-07-25 03:36:34 +02: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
Nathan Whitaker
795ed23b35
fix(future): Emit deno install warning less often, suggest deno install in error message (#24706)
Two small changes:

- In our BYONM errors, suggest running `deno install` instead of `npm
install` if `DENO_FUTURE` is set
- Only emit warning about `deno install` changes if you do `deno install
<foo>` with deno_future unset
2024-07-24 23:37:13 +00: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
Leo Kettmeir
b305ba3e1c
perf: update deno_doc (#24700)
Ref https://github.com/denoland/deno_doc/pull/616
2024-07-24 12:23:16 -07:00
HasanAlrimawi
fcd9bbe8ee
fix: update lsp error message of 'relative import path' to 'use deno add' for npm/jsr packages (#24524) 2024-07-24 16:12:42 +01: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