Phil Hawksworth
8d2f76ae36
docs: JSDocs examples for prompt, confirm, and alert ( #27695 )
...
Adds examples
2025-01-16 14:20:45 +00:00
Phil Hawksworth
e54d467812
docs:Adds examples in JSDocs for localStorage and sessionStorage ( #27668 )
...
Improves docs for:
- http://docs.deno.com/api/web/~/localStorage
- http://docs.deno.com/api/web/~/sessionStorage
2025-01-16 12:33:08 +00:00
Nathan Whitaker
32708213d5
fix(check/lsp): correctly resolve compilerOptions.types ( #27686 )
...
Fixes https://github.com/denoland/deno/issues/27062
In the LSP we were passing `npm` specifiers to TSC as roots, but TSC
needs fully resolved specifiers (like the actual file path).
In `deno check` we were often excluding the specifiers entirely from the
roots.
In both cases, we need to resolve the specifiers fully and then pass
them to tsc
2025-01-15 18:48:10 -08:00
David Sherret
05dc69932d
refactor: create deno_lib crate ( #27673 )
...
Shifts just some code down for now. I'll do the rest of the refactor in
the next pr, but didn't want to drop a huge refactor.
2025-01-15 09:35:46 -05:00
Bartek Iwańczuk
974e2f44b2
refactor: add 'deno_os' crate ( #27655 )
...
This commit creates "deno_os" extension crate and moves
numerous ops from "runtime/" crate to the new crate.
2025-01-14 17:29:36 +01:00
David Sherret
0b033140c0
refactor: move CliNpmResolver
to deno_resolver::npm::NpmResolver
( #27659 )
...
As title. After this PR all npm resolution will be out of the CLI crate.
2025-01-14 10:01:05 -05:00
Bartek Iwańczuk
1b7ed4d990
lint
2025-01-14 15:04:45 +01:00
Bartek Iwańczuk
a8c647e0ec
Merge branch 'main' into lint_plugins
2025-01-14 15:02:22 +01:00
Marvin Hagemeister
3fb8fc1ba7
feat(unstable): refactor js lint plugin AST ( #27615 )
...
This PR changes the underlying buffer backed AST format we use for
JavaScript-based linting plugins. It adds support for various new types,
makes traversal code a lot easier and is more polished compared to
previous iterations.
Here is a quick summary (in no particular order):
- Node prop data is separate from traversal, which makes traversal code
so much easier to reason about. Previously, it was interleaved with node
prop data
- spans are in a separate table as well, as they are rarely needed.
- schema is separate from SWC conversion logic, which makes
- supports recursive plain objects
- supports numbers
- supports bigint
- supports regex
- adds all SWC nodes
Apologies, this is kinda a big PR, but it's worth it imo.
_Marking as draft because I need to update some tests tomorrow._
2025-01-14 13:31:02 +01:00
David Sherret
1e95c20561
refactor: deno_config 0.45 ( #27660 )
2025-01-14 13:00:31 +01:00
David Sherret
7616429436
fix(compile/windows): better handling of deno_dir on different drive letter than code ( #27654 )
...
Closes https://github.com/denoland/deno/issues/27651
2025-01-13 22:29:21 -05:00
David Sherret
9dbb99a83c
refactor: create NpmInstaller
( #27626 )
...
This separates npm resolution code from npm installation (more work
towards moving resolution code out of the CLI and cleaning up this
code).
2025-01-13 17:35:18 -05:00
David Sherret
2a2b39eb2e
fix(compile): store embedded fs case sensitivity ( #27653 )
2025-01-13 12:02:37 -05:00
Benjamin Swerdlow
714b40262e
refactor(node_resolver): make conditions_from_resolution_mode configurable ( #27596 )
2025-01-13 11:34:37 -05:00
Nayeem Rahman
f912aac2cb
fix(lsp): handle pathless untitled URIs ( #27637 )
2025-01-13 15:31:08 +00:00
Bartek Iwańczuk
e56e7a2841
add an error
2025-01-12 22:48:27 +01:00
Nathan Whitaker
70c822bfe2
fix(lsp/check): don't resolve unknown media types to a .js
extension ( #27631 )
...
Fixes https://github.com/denoland/deno/issues/25762 . Note that some of
the things in that issue are not resolved (vite/client types not working
properly which has other root causes), but the wildcard module
augmentation specifically is fixed by this.
We were telling TSC that files with unknown media types had an extension
of `.js`, so the ambient module declarations weren't applying. Instead,
just don't resolve them, so the ambient declaration applies.
2025-01-11 03:26:01 +00:00
David Sherret
f6dcc13537
fix(regression): show bare-node-builtin hint when using an import map ( #27632 )
2025-01-11 01:39:43 +00:00
Bartek Iwańczuk
cb638dbad8
maybe cleanup
2025-01-10 23:45:01 +01:00
David Sherret
c27248a8f3
refactor: remove CliNpmReqResolver
trait in deno_resolver ( #27616 )
2025-01-10 14:48:43 -05:00
Bartek Iwańczuk
67f77579e8
Merge branch 'main' into lint_plugins
2025-01-10 13:51:22 +01:00
Bartek Iwańczuk
aa145fd378
log -> debug
2025-01-10 02:26:39 +01:00
Bartek Iwańczuk
0486303c59
lsp
2025-01-10 02:02:55 +01:00
Bartek Iwańczuk
ebaf18e8ef
fix printer
2025-01-10 02:00:55 +01:00
Bartek Iwańczuk
31473ca292
validate range
2025-01-10 01:44:42 +01:00
Bartek Iwańczuk
714ed55473
show errors with cause raised in JS
2025-01-10 01:28:29 +01:00
David Sherret
475793f94d
refactor: implement NpmPackageFolderResolver
in deno_resolver ( #27614 )
2025-01-10 00:01:47 +00:00
David Sherret
34beeb7703
refactor(npm): move SloppyImportsCachedFs
to deno_resolver ( #27610 )
2025-01-09 18:30:48 -05:00
denobot
8bafb182ef
chore: forward v2.1.5 release commit to main ( #27613 )
...
Co-authored-by: dsherret <dsherret@users.noreply.github.com>
2025-01-09 17:38:18 -05:00
Ryan Dahl
1d64670f9c
docs: added jsdoc for window.close() ( #27608 )
2025-01-09 15:05:39 -05:00
David Sherret
966370c908
refactor(npm): move InNpmPackageChecker
code to deno_resolver ( #27609 )
...
As title. Will allow consumers to create this struct and use our
behaviour.
Closes #27409
2025-01-09 14:04:52 -05:00
Nayeem Rahman
318f524c5c
fix(lsp): use verbatim specifier for URL auto-imports ( #27605 )
2025-01-09 17:54:14 +00:00
David Sherret
093f3ba565
refactor(npm): extract out some npm fs resolution code from the cli ( #27607 )
...
Moves the npm fs resolvers into the deno_resolution crate.
This does not entirely move things out, but is a step in that direction.
2025-01-09 12:10:07 -05:00
Bartek Iwańczuk
89af19da97
fix after merge
2025-01-09 15:18:03 +01:00
Bartek Iwańczuk
807cf19157
Merge branch 'main' into lint_plugins
2025-01-09 15:13:39 +01:00
Bartek Iwańczuk
0db8db2aa7
add todos
2025-01-09 15:12:05 +01:00
Bartek Iwańczuk
900ef00c94
fix print functions
2025-01-09 14:11:54 +01:00
Bartek Iwańczuk
f7b5ee2fda
run in tc_scope
2025-01-09 14:07:10 +01:00
David Sherret
ce0968ef3a
refactor(npm): split some resolution from installation ( #27595 )
...
This splits away some npm resolution code from installation. It will
allow for more easily extracting out resolution code in the future.
2025-01-08 23:46:37 +00:00
Leo Kettmeir
ea30e188a8
refactor: update deno_core for error refactor ( #26867 )
...
Closes #26171
---------
Co-authored-by: David Sherret <dsherret@gmail.com>
2025-01-08 14:52:32 -08:00
David Sherret
fc2788bfd7
fix(jsr): Wasm imports fail to load ( #27594 )
...
* https://github.com/denoland/deno_graph/pull/562
Closes https://github.com/denoland/deno/issues/27593
2025-01-08 19:46:15 +00:00
Marvin Hagemeister
cabdfa8c2d
fix(lint): fix single char selectors being ignored ( #27576 )
...
The selector splitting code that's used for JS linting plugins didn't
properly account for selectors being a single character. This can happen
in the case of `*`.
Instead of comparing against the length, we'll now check if the
remaining string portion is not empty, which is more robust. It also
allows us to detect trailing whitespace, which we didn't before.
2025-01-08 00:21:50 +01:00
David Sherret
3f5cad38aa
fix(no-slow-types): handle rest param with internal assignments ( #27581 )
...
Closes #27575
2025-01-07 12:34:34 -08:00
Nayeem Rahman
b5e4a303d5
fix(lsp): don't skip dirs with enabled subdirs ( #27580 )
2025-01-07 19:04:06 +00:00
Bartek Iwańczuk
2fddd68d41
lint
2025-01-07 01:05:48 +01:00
Bartek Iwańczuk
ec745bd2a6
Merge branch 'main' into lint_plugins
2025-01-07 01:02:52 +01:00
Bartek Iwańczuk
b6f2646c1c
refactor: make IncrementalCache
accept a CacheDBHash
( #27570 )
2025-01-06 23:56:36 +00:00
Bartek Iwańczuk
f7051e2058
install all plugins in one go
2025-01-07 00:47:43 +01:00
Bartek Iwańczuk
1f9a5c19b0
use structs instead
2025-01-06 23:45:34 +01:00
Bartek Iwańczuk
ad41ab7c65
foo
2025-01-06 23:38:54 +01:00