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

11850 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
a734201808 Remove ctime from fstat test 2024-08-02 22:26:20 +02:00
Lukasz Czerniawski
6ee7cf46f4 Fix lint 2024-08-02 21:41:21 +02:00
Lukasz Czerniawski
2df81fc0bb Remove mode unix only filter in parseFileInfo 2024-08-02 21:21:19 +02:00
Lukasz Czerniawski
e66d2c9719 Add tests for ctime 2024-08-02 20:41:44 +02:00
Lukasz Czerniawski
98dd346524 Add tests for ctime 2024-08-02 19:58:20 +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
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