Bartek Iwańczuk
5c43e2a665
chore: update deno_std submodule to 0.178.0 ( #18003 )
2023-03-03 19:11:10 +00:00
Filip Skokan
1b42ab4605
wpt: unlock nightly with --no-ignore ( #17998 )
...
When I was testing the code in #17892 I had updated expectations and
didn't catch this.
This PR fixes the the expectation file format to not be checked when
--no-ignore is passed during
[nightly](https://github.com/denoland/deno/actions/runs/4319520368/jobs/7538796572#step:9:46 )
runs.
2023-03-03 14:50:18 +01:00
Divy Srivastava
38555a6a0f
feat(ops): reland fast zero copy string arguments ( #17996 )
...
Reland https://github.com/denoland/deno/pull/16777
The codegen is disabled in async ops and when fallback to slow call is
possible (return type is a Result) to avoid hitting this V8 bug:
https://github.com/denoland/deno/issues/17159
2023-03-03 19:04:10 +05:30
Filip Skokan
64503fabd8
test(wpt): implement process timeout, fix expectations update, and more... ( #17892 )
...
- relands #17872
- updates the timeouts to be re-configurable just for CI
- fixes `./tools/wpt.ts update`
- adds option not "ignore" during, applied to wpt epoch runs only
2023-03-02 23:05:17 +01:00
Yusuke Tanaka
88c9a999f7
chore(cli): update deno_lint to 0.41.0 ( #17997 )
...
<!--
Before submitting a PR, please read http://deno.land/manual/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.
-->
This commit updates deno_lint crate to 0.41.0. The new version contains
a braking change that requries a minor code fix here, which is also
addressed in this commit.
2023-03-02 21:50:17 +00:00
Kenta Moriuchi
55833cf799
fix(core): introduce SafeRegExp
to primordials ( #17592 )
2023-03-01 08:14:16 +09:00
David Sherret
6ffbf8a941
chore: fix cargo build rebuilding deno_runtime each time ( #17978 )
2023-02-28 19:24:55 +00:00
David Sherret
ea1cb4c2fa
chore(test): remove TestCommandOutput macros ( #17975 )
2023-02-28 15:10:12 -04:00
Aapo Alasuutari
4835098cf7
fix(ext/ffi): Remove deno_core::OpState qualifiers, fix ops returning pointer defaults ( #17959 )
2023-02-28 08:26:48 +02:00
David Sherret
7c090b1b14
chore: test builders for integration tests ( #17965 )
...
Start of adding test builders to simplify integration tests.
I only updated a few test files. We can complete upgrading over time.
2023-02-27 16:52:49 -04:00
Geert-Jan Zwiers
6bbb4c3af6
chore(ext/node): fix variable name ( #17948 )
2023-02-27 21:26:02 +01:00
Bartek Iwańczuk
c6c747873f
fix(lockfile): don't touch lockfile is npm specifiers are identical ( #17973 )
...
We were unconditionally inserting npm specifiers into the lockfile,
marking it as "dirty" and requiring saving.
2023-02-27 16:02:19 -04:00
Yoshiya Hinosawa
92ba46c384
chore(ext/node): suppress node compat tests stdout by default ( #17909 )
2023-02-27 19:39:33 +09:00
Dominic DiGiacomo
5e91489db9
deps: bump regexp
to ^1.7.0
( #17966 )
2023-02-27 08:30:45 +02:00
sean watters
ce94bf47ae
fix(cli,ext/web): Upgrading uuid from =1.1.2 to 1.3.0 ( #17963 )
...
Resolves https://github.com/denoland/deno/issues/17962
2023-02-26 21:53:52 +02:00
luketpeterson
086fe13bda
chore: Changing dependency on tokio-util from version-lock to semver minimum ( #17863 )
2023-02-26 21:39:06 +02:00
Aapo Alasuutari
e047225620
chore(ext/ffi): Use queueMicrotask in tests ( #17954 )
2023-02-26 17:34:57 +02:00
Yoshiya Hinosawa
29a62e81dd
refactor(ext/node): remove _process/stdio.js ( #17911 )
2023-02-26 12:19:00 +09:00
Yoshiya Hinosawa
3187e4e909
fix(ext/node): util.types.isSharedArrayBuffer ( #17836 )
2023-02-26 11:23:53 +09:00
David Sherret
da5b5d4688
chore: fix flaky package_json_basic tests ( #17940 )
...
https://github.com/denoland/deno/actions/runs/4267836955/jobs/7429836369
Closes #17946
2023-02-25 13:56:39 +00:00
denobot
3cd24fa8d0
chore: forward v1.31.1 release commit to main ( #17939 )
...
Co-authored-by: David Sherret <dsherret@gmail.com>
2023-02-24 22:37:46 -05:00
David Sherret
b5b331e31a
fix(npm): skip analyzing more specifiers in package.json ( #17938 )
2023-02-25 02:16:26 +00:00
David Sherret
d6192ce8fd
fix: regression remapping remote specifier to local file ( #17935 )
...
Tests added to deno_graph, which were previously not there.
Closes #17932
2023-02-25 01:23:51 +00:00
David Sherret
033b70af19
fix(npm): lazily install package.json dependencies only when necessary ( #17931 )
...
This lazily does an "npm install" when any package name matches what's
found in the package.json or when running a script from package.json
with deno task.
Part of #17916
Closes #17928
2023-02-24 19:35:43 -05:00
David Sherret
5683daf1aa
fix: ignore workspace specifiers in package.json ( #17934 )
...
Part of #17916
2023-02-24 19:27:50 -05:00
Leo Kettmeir
484b6fe2fa
refactor(flash): move remoteAddr to options bag ( #17913 )
...
Applies suggestion from #17912
2023-02-24 23:36:07 +01:00
David Sherret
9aebc8bc19
fix: ensure concurrent non-statically analyzable dynamic imports do not sometimes fail ( #17923 )
...
Closes #17918
2023-02-24 14:42:45 -05:00
David Sherret
a27d0885f4
feat: add DENO_NO_PACKAGE_JSON
env var ( #17926 )
...
Depends on #17924
Part of #17916
2023-02-24 19:23:07 +00:00
David Sherret
7ad64283a1
fix(npm): package.json auto-discovery should respect --no-config
and --no-npm
( #17924 )
...
Part of #17916
2023-02-24 13:51:21 -05:00
David Sherret
6472afd12b
fix: remote modules should be allowed to import data urls ( #17920 )
...
This was a regression that has already been broken for some time, but
that also became broken for when using an import map 1.31.
Closes #17914
2023-02-24 12:50:03 -05:00
David Sherret
b6ac54815c
chore: fix cargo publish ( #17907 )
2023-02-24 01:20:54 +01:00
denobot
c26fbe38d5
1.31.0 ( #17906 )
...
Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-02-24 00:16:04 +01:00
David Sherret
e57b38f8b2
fix(npm): allow resolving from package.json when an import map exists ( #17905 )
2023-02-23 23:20:23 +01:00
Divy Srivastava
da781280b8
fix(core): remove async op inlining optimization ( #17899 )
...
Runtime generation of async op wrappers contributed to increased startup
time and core became unusable with
`--disallow-code-generation-from-strings` flag. The optimization only
affects very small microbenchmarks so this revert will not cause any
regressions.
2023-02-23 19:50:15 +00:00
Bartek Iwańczuk
4773d07974
feat(task): adjust warning ( #17904 )
...
Put it on a single line and remove coloring.
2023-02-23 20:43:18 +01:00
Leo Kettmeir
451b45ee3a
fix(webgpu): don't default to 0 for setVertexBuffer.size & properly use webidl.setlike ( #17800 )
2023-02-23 19:05:50 +01:00
David Sherret
6233c0aff0
fix(npm): support bare specifiers in package.json having a path ( #17903 )
...
For example `import * as test from "package/path.js"`
2023-02-23 17:33:23 +00:00
David Sherret
344317ec50
feat(npm): support bare specifiers from package.json in more subcommands and language server ( #17891 )
2023-02-23 10:58:10 -05:00
Bartek Iwańczuk
214bdbbc2b
feat(task): add warning about package.json scripts support ( #17900 )
2023-02-23 16:41:28 +01:00
David Sherret
998aeff3d4
feat(npm): support npm specifiers in remote modules without --unstable
( #17889 )
...
Closes #17455
2023-02-23 09:48:29 -05:00
Yoshiya Hinosawa
6de815859b
fix(ext/node): fix npm module resolution when --node-modules-dir specified ( #17896 )
2023-02-23 22:28:12 +09:00
Kenta Moriuchi
38f9aa0f9c
fix(ext/flash): wrong order of arguments passed to http1Response
( #17893 )
2023-02-23 18:25:40 +05:30
Bartek Iwańczuk
d5f053dabf
feat(bench): change --json output format ( #17888 )
...
Closes https://github.com/denoland/deno/issues/17775
2023-02-23 12:59:23 +01:00
David Sherret
b15f9e60a0
feat(task): support scripts in package.json ( #17887 )
...
This is a super basic initial implementation. We don't create a
`node_modules/.bin` folder at the moment and add it to the PATH like we
should which is necessary to make command name resolution in the
subprocess work properly (ex. you run a script that launches another
script that then tries to launch an "npx command"... this won't work
atm).
Closes #17492
2023-02-22 22:45:35 -05:00
Yoshiya Hinosawa
cc8e4a00aa
test(ext/node): add tty_test and util_test ( #17868 )
2023-02-23 12:28:19 +09:00
Yoshiya Hinosawa
3ca23cb642
test(ext/node): add tls_test ( #17871 )
2023-02-23 12:27:29 +09:00
Bartek Iwańczuk
93a712fbac
Revert "test(wpt): implement process timeout ( #17872 )" ( #17886 )
...
This reverts commit 5fcbdd6228
.
2023-02-23 02:34:19 +01:00
David Sherret
ddc350780d
fix(npm): resolve node_modules dir relative to package.json instead of cwd ( #17885 )
2023-02-22 20:16:16 -05:00
David Sherret
a31d8869ea
perf: remove current_dir()
call in Deno.mainModule
( #17883 )
2023-02-22 18:22:24 -05:00
Bartek Iwańczuk
1c14127c4f
feat: support bare specifier resolution with package.json ( #17864 )
...
This commit enables resolution of "bare specifiers" (eg. "import express
from 'express';") if a "package.json" file is discovered.
It's a step towards being able to run projects authored for Node.js
without any changes.
With this commit we are able to successfully run Vite projects without
any changes to the user code.
---------
Co-authored-by: David Sherret <dsherret@gmail.com>
2023-02-22 23:21:05 +01:00