Bartek Iwańczuk
554bce98b5
Merge branch 'main' into lint_plugins
2025-01-02 10:35:12 +01:00
Nathan Whitaker
7d66018874
chore: fix windows pre release CI job ( #27518 )
...
See
https://github.com/denoland/deno/actions/runs/12563186693/job/35024695065 .
Broke in #27507 .
2024-12-31 23:08:15 +00:00
David Sherret
8e618e1b2a
fix(npm): deterministically output tags to initialized file ( #27514 )
...
The tags were being sorted in a random order due to the package_reqs
hashmap
2024-12-31 20:36:57 +00:00
Nathan Whitaker
2965413374
perf: build denort with panic = "abort"
for releases ( #27507 )
...
This PR changes CI to build denort with a separate, new build profile
`release-slim` that disables unwinding and strips symbols. This reduces
the size of denort by about 10%
current denort:
```
FILE SIZE VM SIZE
-------------- --------------
58.1% 39.3Mi 57.9% 39.3Mi __TEXT,__text
31.5% 21.3Mi 31.4% 21.3Mi __TEXT,__const
2.5% 1.68Mi 2.5% 1.68Mi __DATA_CONST,__const
2.4% 1.62Mi 2.4% 1.62Mi __TEXT,__eh_frame
2.4% 1.60Mi 2.4% 1.60Mi __TEXT,__gcc_except_tab
0.9% 610Ki 0.9% 610Ki __TEXT,__cstring
0.8% 536Ki 0.8% 536Ki Code Signature
0.7% 507Ki 0.7% 507Ki __TEXT,__unwind_info
0.3% 207Ki 0.3% 207Ki Function Start Addresses
0.2% 165Ki 0.2% 165Ki __DATA,__data
0.0% 0 0.2% 153Ki __DATA,__bss
0.1% 51.0Ki 0.1% 51.0Ki Rebase Info
0.1% 45.3Ki 0.1% 45.3Ki __TEXT,__literals
0.0% 31.4Ki 0.1% 36.8Ki [15 Others]
0.0% 25.6Ki 0.0% 25.7Ki [__TEXT]
0.0% 19.3Ki 0.0% 20.2Ki [__DATA]
0.0% 8.11Ki 0.0% 8.11Ki Lazy Binding Info
0.0% 8 0.0% 8.08Ki [__LINKEDIT]
0.0% 6.84Ki 0.0% 6.84Ki Symbol Table
0.0% 5.55Ki 0.0% 5.55Ki String Table
0.0% 5.53Ki 0.0% 5.53Ki __TEXT,__ustring
100.0% 67.6Mi 100.0% 67.8Mi TOTAL
```
built with this PR:
```
FILE SIZE VM SIZE
-------------- --------------
59.6% 36.6Mi 59.5% 36.6Mi __TEXT,__text
34.6% 21.3Mi 34.5% 21.3Mi __TEXT,__const
2.7% 1.68Mi 2.7% 1.68Mi __DATA_CONST,__const
1.0% 610Ki 1.0% 610Ki __TEXT,__cstring
0.8% 487Ki 0.8% 487Ki Code Signature
0.3% 193Ki 0.3% 193Ki Function Start Addresses
0.3% 165Ki 0.3% 165Ki __DATA,__data
0.0% 0 0.2% 153Ki __DATA,__bss
0.2% 152Ki 0.2% 152Ki __TEXT,__unwind_info
0.1% 69.5Ki 0.1% 69.5Ki __TEXT,__eh_frame
0.1% 50.9Ki 0.1% 50.9Ki Rebase Info
0.1% 45.3Ki 0.1% 45.3Ki __TEXT,__literals
0.1% 34.1Ki 0.1% 39.5Ki [15 Others]
0.0% 19.3Ki 0.0% 20.2Ki [__DATA]
0.0% 19.6Ki 0.0% 19.7Ki [__TEXT]
0.0% 16.6Ki 0.0% 16.6Ki __TEXT,__gcc_except_tab
0.0% 8.09Ki 0.0% 8.09Ki Lazy Binding Info
0.0% 8 0.0% 7.69Ki [__LINKEDIT]
0.0% 6.83Ki 0.0% 6.83Ki Symbol Table
0.0% 5.77Ki 0.0% 5.77Ki [__DATA_CONST]
0.0% 5.53Ki 0.0% 5.53Ki __TEXT,__ustring
100.0% 61.4Mi 100.0% 61.6Mi TOTAL
```
A caveat is that this will increase release build times in CI since it
requires building twice - once with unwinding and once without
2024-12-31 11:19:00 -08:00
Kenta Moriuchi
8fb073d7b4
chore: Happy New Year 2025 ( #27509 )
2024-12-31 19:12:39 +00:00
David Sherret
ac7b33a340
chore: cargo fmt - turn on group_imports=StdExternalCrate ( #26646 )
2024-12-31 12:13:39 -05:00
David Sherret
88bd5f09f7
perf(fs/windows): stat - only open file once ( #27487 )
2024-12-31 11:29:51 -05:00
David Sherret
4638caa740
refactor: do not use deno_fs::FileSystem
everywhere ( #27508 )
...
This changes the cli to mostly use `std::fs` via `sys_traits` instead of
the implemention of `deno_fs::FileSystem`.
2024-12-31 11:29:07 -05:00
Bartek Iwańczuk
1cd36009b0
fix(ext/node): support private key export in JWK format ( #27325 )
...
Closes https://github.com/denoland/deno/issues/26643
---------
Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
2024-12-31 13:49:02 +01:00
Je Xia
7b491a28df
fix(node): Add missing inspector/promises
( #27491 )
...
Add missing `inspector/promises` in node builtin module list, that
causes types checking error.
2024-12-31 11:06:21 +01:00
Marvin Hagemeister
a844d96ee9
chore(lint): remove manual AST field counter ( #27449 )
...
Addresses the review feedback in
https://github.com/denoland/deno/pull/27416 .
- Hoist the buffer max size variable to make it less confusing
- Remove manual AST field counter in favour of an explicit "commit
schema" step which writes the actual field count.
2024-12-31 08:59:41 +01:00
David Sherret
c391ad315e
refactor: use sys_traits ( #27480 )
2024-12-30 12:38:20 -05:00
David Sherret
fd8400eaec
perf(node/fs/copy): reduce metadata lookups copying directory ( #27495 )
2024-12-30 00:36:29 -05:00
Divy Srivastava
5194222e02
fix(ext/node): convert brotli chunks with proper byte offset ( #27455 )
...
Fixes https://github.com/denoland/deno/issues/27029
Fixes https://github.com/denoland/deno/issues/26086
2024-12-28 12:44:37 +05:30
Marvin Hagemeister
fdd0edf23c
fix(unstable): don't error on non-existing attrs or type attr ( #27456 )
...
When running selectors for JS linting plugins we would error when
encountering an unknown attribute name:
```js
// selector
Foo[non-existant]
// error
Error: Missing string id: <number>
```
This was caused by using `0` as the invalid marker, but also overloading
`0` with an actual node type. So the fix is to reserve `0` as the
invalid marker and move the property type to the next index.
2024-12-27 22:46:29 +01:00
Yoshiya Hinosawa
c45d0dadb3
fix(ext/node): add support of any length IV for aes-(128|256)-gcm ciphers ( #27476 )
2024-12-27 17:46:01 +09:00
Divy Srivastava
6061f22abd
fix(ext/node): RangeError timingSafeEqual with different byteLength ( #27470 )
...
Fixes https://github.com/denoland/deno/issues/27214
2024-12-27 11:20:49 +05:30
Bartek Iwańczuk
a6d1f1116f
add support for hint
2024-12-26 13:38:52 +01:00
Bartek Iwańczuk
c3ac6031f6
renames
2024-12-26 13:33:47 +01:00
Bartek Iwańczuk
f283a0fd73
put fns into Rc
2024-12-26 12:26:44 +01:00
Bartek Iwańczuk
df54f58874
use static strings
2024-12-26 11:54:49 +01:00
Bartek Iwańczuk
47178efd62
lint
2024-12-26 11:41:21 +01:00
Bartek Iwańczuk
46e191c563
remove debug logs
2024-12-26 11:36:54 +01:00
Bartek Iwańczuk
2d7ef0660d
revert
2024-12-26 11:32:54 +01:00
Bartek Iwańczuk
1a0a61d059
cleanup
2024-12-26 11:26:04 +01:00
Bartek Iwańczuk
f8e8f251a4
smaller diff
2024-12-26 11:19:34 +01:00
Bartek Iwańczuk
c1e3357d2c
add CancellationToken, but not wired up yet
2024-12-26 11:18:49 +01:00
Luca Casonato
f4e321342f
feat(unstable): add OTEL MeterProvider ( #27240 )
...
This commit replaces `Deno.telemetry.MetricsExporter` with
`Deno.telemetry.MeterProvider`.
Signed-off-by: Luca Casonato <hello@lcas.dev>
Co-authored-by: snek <snek@deno.com>
2024-12-26 09:01:39 +01:00
Yoshiya Hinosawa
91150706d8
fix(ext/node): make getCiphers return supported ciphers ( #27466 )
...
Currently we only supports 7 ciphers (`aes-(128|192|256)-ecb` and
`aes-(128|256)-(cbc|gcm)`) in `node:crypto`, but `crypto.getCiphers`
returns other supported cipher names. That confuses `npm:openpgp`
package and causes https://github.com/denoland/deno/issues/26875 .
This PR makes `getCiphers` return actually supported cipher names.
With this change, the example given in #26875 can create private and
public key files.
closes #26875
2024-12-26 13:24:28 +09:00
Bartek Iwańczuk
05a89f5ffb
add PluginLogger, finally works in the LSP
2024-12-25 15:18:50 +01:00
Bartek Iwańczuk
f55dd0d0bb
wire up in the lsp
2024-12-24 16:22:09 +01:00
Bartek Iwańczuk
f6efc9f357
plugins are run inside CliLinter now
2024-12-24 10:52:36 +01:00
Bartek Iwańczuk
e6d0a6fde1
abstract away running plugins
2024-12-24 10:43:10 +01:00
Bartek Iwańczuk
0e8457d7c3
simplify plugin loading
2024-12-24 10:27:30 +01:00
Bartek Iwańczuk
0a28ac650a
revert most of typings for now
2024-12-24 10:22:48 +01:00
Nathan Whitaker
a9ab7a80da
fix: incorrect memory info free/available bytes on mac ( #27460 )
...
Fixes https://github.com/denoland/deno/issues/27435
For some reason this was dividing by 1024 (as if the unit was KB, and we
wanted bytes) but the page size is already in bytes.
2024-12-24 05:48:00 +00:00
Bartek Iwańczuk
7be95bbb6d
revert types change
2024-12-23 09:41:39 +01:00
Bartek Iwańczuk
a2bacbb030
remove integration tests for now, we have unit tests for that
2024-12-23 09:10:39 +01:00
Bartek Iwańczuk
fdea4eaa7e
type
2024-12-23 08:53:30 +01:00
Bartek Iwańczuk
a6d1032891
remove duplicate types
2024-12-23 08:52:46 +01:00
Bartek Iwańczuk
46db6dd14d
Merge branch 'main' into lint_plugins
2024-12-23 08:50:34 +01:00
Marvin Hagemeister
1a809b8115
feat(unstable): support selectors in JS lint plugins ( #27452 )
...
This PR adds support for using selectors in the JS linting plugin API.
Supported at the moment are:
- `Foo Bar` (descendant)
- `Foo > Bar` (child combinator)
- `Foo + Foo` (next sibling)
- `Foo ~ Foo` (subsequent sibling)
- `[attr]`, `[attr=value]` (attribute selectors, supported operators:
`=`, `!=`, `<`, `>`, `<=`, `>=`)
- `:first-child`
- `:last-child`
- `:nth-child(2)`, `:nth-child(2n + 1)`
2024-12-23 08:45:47 +01:00
Yoshiya Hinosawa
3cc861cdca
fix(ext/fetch): better error message when body resource is unavailable ( #27429 )
...
fixes #27132
When the body resource is unavailable when start reading it, the error
message is `Bad Resource ID` and that doesn't tell what's wrong very
well.
This PR changes that error message to `Cannot read body as underlying
resource unavailable`
2024-12-23 13:59:04 +09:00
Yoshiya Hinosawa
2e58e088b0
fix(ext/fs): do not throw for bigint ctime/mtime/atime ( #27453 )
2024-12-23 13:56:37 +09:00
Bartek Iwańczuk
71c82e47ef
run jsr plugins
2024-12-22 22:06:31 +01:00
Bartek Iwańczuk
3bea4cfa18
load plugins relative to the config file
2024-12-22 21:46:49 +01:00
Bartek Iwańczuk
a446c89620
remove --plugins flag support for now
2024-12-22 21:35:29 +01:00
Bartek Iwańczuk
06ddb574f3
remove dead code
2024-12-22 21:25:42 +01:00
Bartek Iwańczuk
6d03bafd1e
move ops
2024-12-22 21:20:52 +01:00
Bartek Iwańczuk
8479e9541d
update a todo
2024-12-22 21:04:55 +01:00