Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a new pull request by comparing changes across two branches #709

Merged
merged 227 commits into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
227 commits
Select commit Hold shift + click to select a range
3ba464d
chore: temporarily disable dns tests for Node compat (#26915)
bartlomieju Nov 18, 2024
dd4570e
perf(compile): code cache (#26528)
dsherret Nov 18, 2024
19bbf83
perf(windows): delay load webgpu and some other dlls (#26917)
dsherret Nov 18, 2024
c36f877
fix(lsp): ignore editor indent settings if deno.json is present (#26912)
nayeemrmn Nov 18, 2024
106d47a
feat: fmt and lint respect .gitignore file (#26897)
bartlomieju Nov 18, 2024
594a998
feat(runtime): remove public OTEL trace API (#26854)
lucacasonato Nov 18, 2024
df1d363
fix(node/crypto): support promisify on generateKeyPair (#26913)
marvinhagemeister Nov 19, 2024
9f26ca4
feat(ext/http): Make http server parameters configurable (#26785)
magurotuna Nov 19, 2024
0e2f6e3
feat(ext/fetch): Make fetch client parameters configurable (#26909)
magurotuna Nov 19, 2024
069bc15
feat(ext/node): perf_hooks.monitorEventLoopDelay() (#26905)
littledivy Nov 19, 2024
661aa22
feat(task): dependencies (#26467)
dsherret Nov 19, 2024
186b527
fix(node): handle resolving ".//<something>" in npm packages (#26920)
dsherret Nov 19, 2024
6288164
refactor: update deno_doc, use prismjs, remove internal reference htm…
crowlKats Nov 19, 2024
c55e936
feat(fmt): support SQL (#26750)
M4RC3L05 Nov 19, 2024
46b6037
feat(compile): ability to embed local data files (#26934)
dsherret Nov 19, 2024
6b478cd
feat(compile): ability to embed directory in executable (#26939)
dsherret Nov 19, 2024
8be2bbf
feat: Wasm module support (#26668)
dsherret Nov 19, 2024
9956731
feat(publish): add `--set-version <version>` flag (#26141)
ckrassow Nov 20, 2024
fadda6a
fix(lockfile): track dependencies specified in TypeScript compiler op…
dsherret Nov 20, 2024
429f392
feat(info): show location for Web Cache (#26205)
haturatu Nov 20, 2024
dabb677
fix(publish): improve error message when missing exports (#26945)
dsherret Nov 20, 2024
318dd3c
feat(task): add --eval flag (#26943)
bartlomieju Nov 20, 2024
03f47e6
fix(fmt): formatting of .svelte files (#26948)
bartlomieju Nov 20, 2024
8f72798
feat(lint): Add checked files list to the JSON output(#26936)
skeithtan Nov 20, 2024
cf49599
feat: permission stack traces in ops (#26938)
crowlKats Nov 20, 2024
0670206
chore: use forked sqlformat-rs (#26952)
bartlomieju Nov 20, 2024
56f3162
feat: subcommand to view and update outdated dependencies (#26942)
nathanwhit Nov 20, 2024
b729bf0
feat(permission): support suffix wildcards in `--allow-env` flag (#25…
yazan-abdalrahman Nov 20, 2024
f0b245c
feat(task): workspace support with --filter and --recursive (#26949)
marvinhagemeister Nov 20, 2024
d17f459
feat(init): add --npm flag to initialize npm projects (#26896)
bartlomieju Nov 21, 2024
be10901
docs: fix casing of Wasm (#26954)
dsherret Nov 21, 2024
3da4eca
2.1.0 (#26957)
denobot Nov 21, 2024
0b8df9f
chore: fix cargo publish (#26958)
dsherret Nov 21, 2024
e515ed2
fix(task): ensure root config always looks up dependencies in root (#…
dsherret Nov 21, 2024
3f3568b
fix(cli): Fix typo in doc subcommand help output (#26321)
ckrassow Nov 21, 2024
aa0ba65
fix: Buffer global in --unstable-node-globals (#26973)
bartlomieju Nov 21, 2024
bfa9230
fix(watch): don't panic if there's no path provided (#26972)
bartlomieju Nov 21, 2024
75f8164
chore: update url + idna (#26963)
lucacasonato Nov 21, 2024
9288081
fix(node): regression where ts files were sometimes resolved instead …
dsherret Nov 21, 2024
566a6c2
fix(task): update --filter flag description (#26974)
bartlomieju Nov 21, 2024
6ee8efc
fix(install/global): do not error if path is an npm pkg and relative …
dsherret Nov 21, 2024
a875a37
docs(cli/add): add clarification to add command (#26968)
bp7968h Nov 21, 2024
8a5609a
chore: forward v2.1.1 release commit to main (#26981)
denobot Nov 21, 2024
a19b3f4
fix(cli): remove extraneous comma in task --eval help (#26985)
canac Nov 21, 2024
8f7787f
fix(ext/websocket): don't throw exception when sending to closed sock…
bellinitte Nov 21, 2024
45fad6a
chore(compile): log code cache file path (#26977)
dsherret Nov 21, 2024
5ca47ee
fix: support non-function exports in Wasm modules (#26992)
bartlomieju Nov 22, 2024
9c0e636
chore(check): add test for Wasm memory and table (#26996)
dsherret Nov 22, 2024
4ded751
fix(compile): correct buffered reading of assets and files (#27008)
dsherret Nov 22, 2024
50538ba
fix(node/fs): missing uv error context for readFile (#27011)
marvinhagemeister Nov 22, 2024
5462b58
fix(lsp): remove stray debug output (#27010)
nayeemrmn Nov 22, 2024
9eee2a0
fix(fmt): return `None` if sql fmt result is the same (#27014)
M4RC3L05 Nov 22, 2024
9967e75
chore: update to file_test_runner 0.7.3 (#27016)
dsherret Nov 22, 2024
12b3772
fix(lsp): wasm file import completions (#27018)
nayeemrmn Nov 23, 2024
6b7e4c3
fix(ext/node): add `fs.promises.fstat` and `FileHandle#stat` (#26719)
manzt Nov 25, 2024
8ea95c3
feat: Instrument Deno.serve (#26964)
devsnek Nov 25, 2024
d04d567
chore: update node_compat setup script (#27051)
kt3k Nov 25, 2024
4365f8d
fix(compile): handle TypeScript file included as asset (#27032)
dsherret Nov 25, 2024
15f1463
fix(init): always force managed node modules (#27047)
bartlomieju Nov 25, 2024
08a5676
chore: upgrade sqlformat-rs to non-forked version (#27063)
bartlomieju Nov 25, 2024
d59bd5e
feat(unstable): Instrument fetch (#27057)
devsnek Nov 25, 2024
38b618c
fix(runtime/ops): Fix watchfs remove event (#27041)
DanieleAurilio Nov 25, 2024
7456255
Merge commit from fork
rexxars Nov 25, 2024
02b480b
fix(compile): do not error embedding same symlink via multiple method…
dsherret Nov 25, 2024
2b26444
fix(check): support jsdoc `@import` tag (#26991)
dsherret Nov 25, 2024
d4fe331
fix(task): handle multiline descriptions properly (#27069)
bartlomieju Nov 26, 2024
114fe9b
fix(lsp): support task object notation for tasks request (#27076)
nayeemrmn Nov 26, 2024
e61cf8d
refactor(unstable): move telemetry to own ext (#27067)
devsnek Nov 26, 2024
584631d
docs(cli): remove redundant word in comment (#27055)
hongmengning Nov 26, 2024
4f776a7
chore: update node_compat setup script, show remaining percentage (#2…
kt3k Nov 26, 2024
4c56767
chore(node/tests): increase tolerance of timers test on CI (#27077)
dsherret Nov 26, 2024
3a55b67
chore(compile): prefer denort binary in target/ directory when availa…
irbull Nov 26, 2024
93bbbe4
fix(ext/fetch): don't throw when `bodyUsed` inspect after upgrade (#2…
littledivy Nov 26, 2024
c443ac5
fix(ext/webgpu): normalize limits to number (#27072)
crowlKats Nov 26, 2024
115a306
fix(node): correct resolution of dynamic import of esm from cjs (#27071)
dsherret Nov 26, 2024
4330ef5
fix(streams): reject `string` in `ReadableStream.from` type (#25116)
petamoriken Nov 26, 2024
a750314
fix(install): don't re-set up node_modules if running lifecycle scrip…
nathanwhit Nov 26, 2024
e2f7e03
chore: fix flaky `specs::publish::npm_workspace_jsr_pkg_with_npm_dep:…
dsherret Nov 27, 2024
4700f12
fix(task): handle carriage return in task description (#27099)
bartlomieju Nov 27, 2024
42b71d8
chore(lint): add .out file reference checker (#27078)
crowlKats Nov 27, 2024
927352b
fix(node/fs): add missing stat path argument validation (#27086)
marvinhagemeister Nov 27, 2024
7400181
fix(tools/doc): HTML resolve main entrypoint from config file (#27103)
crowlKats Nov 27, 2024
1e51b65
perf(ext/webstorage): use object wrap for `Storage` (#26931)
littledivy Nov 27, 2024
2bbfef1
feat(unstable): repurpose `--unstable-detect-cjs` to attempt loading …
dsherret Nov 27, 2024
e943c6a
test(ext/node): enable parallel/test-fs-promises-file-handle-stat.js …
kt3k Nov 27, 2024
93adf37
fix(task): strip ansi codes and control chars when printing tasks (#2…
bartlomieju Nov 27, 2024
9bc36aa
fix(node/http): casing ignored in ServerResponse.hasHeader() (#27105)
marvinhagemeister Nov 27, 2024
6fb0e10
chore: fix lint step due to node compat test changes (#27111)
dsherret Nov 27, 2024
16e1669
fix(ext/webgpu): use correct variable name (#27108)
crowlKats Nov 27, 2024
76daa03
fix(info): resolve bare specifier pointing to workspace member (#27020)
nathanwhit Nov 27, 2024
f161adf
perf(compile): read embedded files as static references when UTF-8 an…
dsherret Nov 28, 2024
1af2d24
fix(ext/node): `tls.connect` socket upgrades (#27125)
littledivy Nov 28, 2024
32e260d
fix: support bun specifiers in JSR publish (#24588)
lucacasonato Nov 28, 2024
026bbc4
fix(init): support scoped npm packages (#27128)
marvinhagemeister Nov 28, 2024
39722f1
fix(node/timers): error when passing id to clearTimeout/clearInterval…
marvinhagemeister Nov 28, 2024
12aea20
chore: forward v2.1.2 release commit to main (#27136)
denobot Nov 28, 2024
3553aa9
fix(publish): error on missing name field (#27131)
marvinhagemeister Nov 28, 2024
8626ec7
refactor(ext/fs): align error messages (#25414)
irbull Nov 28, 2024
f624860
fix(task): forward signals to spawned sub-processes on unix (#27141)
dsherret Nov 29, 2024
1d49b3c
fix: support `workspace:^` and `workspace:~` version constraints (#27…
bartlomieju Nov 29, 2024
f9a6cc3
chore: export variables from node compat tools script (#27189)
ffMathy Dec 2, 2024
6dd2d5e
refactor: upgrade to deno_npm 0.26 (#27194)
dsherret Dec 2, 2024
7c03677
feat(unstable): add metrics to otel (#27143)
devsnek Dec 2, 2024
76571fd
chore: upgrade deno_lint to 0.68.2 (#27197)
bartlomieju Dec 2, 2024
53936ed
fix(fmt): stable formatting of HTML files with JS (#27164)
bartlomieju Dec 3, 2024
70d69a8
chore: fix cjs_with_deps test to use a temp dir (#27199)
dsherret Dec 3, 2024
c1dcf1b
refactor: add deno_npm_cache crate (#27200)
dsherret Dec 3, 2024
b78c851
refactor(ext/web): align error messages (#25871)
irbull Dec 3, 2024
2fbc5fe
fix(node/fs): support `recursive` option in readdir (#27179)
marvinhagemeister Dec 3, 2024
d5b63bb
fix(task): only pass args to root task (#27213)
marvinhagemeister Dec 3, 2024
8cd257d
refactor: remove `CliNpmRegistryApi` (#27222)
dsherret Dec 4, 2024
32b4c37
test(ext/node): reduce race condition in test case (#27207)
kt3k Dec 4, 2024
fb24fd3
test: add node compat test cases (#27134)
kt3k Dec 4, 2024
120b381
fix(task): don't panic with filter on missing task argument (#27180)
marvinhagemeister Dec 4, 2024
5c17bb4
fix(unstable): otel context with multiple keys (#27230)
devsnek Dec 4, 2024
f863a62
fix: improve auto-imports for npm packages (#27224)
dsherret Dec 4, 2024
f058623
fix(task): kill descendants when killing task process on Windows (#27…
dsherret Dec 4, 2024
e718e3f
fix(outdated): allow `--latest` without `--update` (#27227)
nathanwhit Dec 4, 2024
a26b873
refactor: remove usages of `deno_core::resolve_import` for resolving …
dsherret Dec 4, 2024
e8d731c
fix(node/worker_threads): data url not encoded properly with eval (#2…
marvinhagemeister Dec 5, 2024
25aed50
fix(unstable/temporal): respect locale in `Duration.prototype.toLocal…
0f-0b Dec 5, 2024
ae5c743
chore: update hickory dns crates (#27137)
lucacasonato Dec 5, 2024
3bae68e
test(ext/node): fix flaky node/http2.createServer() test (#27208)
kt3k Dec 5, 2024
ab4568a
fix: clear dep analysis when module loading is done (#27204)
bartlomieju Dec 5, 2024
f098dd0
fix(task): `--recursive` option not working (#27183)
marvinhagemeister Dec 5, 2024
ffac282
fix(install): use locked version of jsr package when fetching exports…
nathanwhit Dec 5, 2024
2e2d317
chore: forward v2.1.3 release commit to main (#27248)
denobot Dec 6, 2024
1ee13a3
chore: add script to check remaining node compat cases (#27122)
kt3k Dec 6, 2024
07737b0
fix(ext/node): accept file descriptor in fs.readFile(Sync) (#27252)
kt3k Dec 6, 2024
796749c
test(ext/node): remove flaky node:dgram compat test case (#27249)
kt3k Dec 6, 2024
9fe52b1
fix: do not panic when fetching invalid file url on Windows (#27259)
dsherret Dec 6, 2024
56035f3
fix(task): do not always kill child on ctrl+c on windows (#27269)
dsherret Dec 9, 2024
d7dfd4b
refactor: Make `deno_runtime::shared` module public (#27242)
theswerd Dec 9, 2024
883abfa
fix(ext/node): handle Float16Array in node:v8 module (#27285)
bartlomieju Dec 9, 2024
44d7697
fix(node): update list of builtin node modules, add missing export to…
nathanwhit Dec 9, 2024
da3a676
fix: do not error when subpath has an @ symbol (#27290)
dsherret Dec 9, 2024
1c0f236
fix(unstable): don't unwrap optional state in otel (#27292)
devsnek Dec 9, 2024
d99b2d6
chore: reduce allocations in a few places (#27288)
dsherret Dec 10, 2024
94c7653
fix(compile): correct read length for transpiled typescript files (#2…
dsherret Dec 10, 2024
c3af098
fix(outdated): show a suggestion for updating (#27304)
bartlomieju Dec 10, 2024
59dd5d2
fix: replace the @deno-types with @ts-types (#27310)
MohammadSu1 Dec 10, 2024
21a9e2d
perf(compile): improve FileBackedVfsFile (#27299)
dsherret Dec 10, 2024
7bab83d
fix(outdated): respect --quiet flag for hints (#27317)
bartlomieju Dec 10, 2024
4ab668e
fix(lint): do not error providing --allow-import (#27321)
dsherret Dec 10, 2024
fe1be71
chore(tests): Deprecate remaining usages of itest in check tests (#26…
ingalless Dec 10, 2024
7c8b55b
fix(outdated): error when there are no config files (#27306)
bartlomieju Dec 10, 2024
dd42a64
refactor(lint): manage schema files for linter in Deno repo (#27324)
bartlomieju Dec 11, 2024
6f50620
feat(unstable): support caching npm dependencies only as they're need…
nathanwhit Dec 11, 2024
9df6be8
chore: forward v2.1.4 release commit to main (#27329)
denobot Dec 11, 2024
c6fa628
fix(compile): output contents of embedded file system (#27302)
dsherret Dec 11, 2024
5f8be05
refactor(unstable): otel configuration (#27333)
devsnek Dec 12, 2024
4cfa340
fix(compile): analyze modules in directory specified in --include (#2…
dsherret Dec 12, 2024
b756463
chore: add npm distribution at `deno` package (#27346)
dsherret Dec 12, 2024
f4f64cb
fix(npm): search node_modules folder for package matching npm specifi…
dsherret Dec 12, 2024
a63f845
chore: mark ./tools/release/npm/build.ts as executable (#27349)
dsherret Dec 13, 2024
960776c
fix(ext/node): support createConnection option in node:http.request()…
satyarohith Dec 13, 2024
e46f42d
ci: try fix cache (#27348)
dsherret Dec 13, 2024
3ddbea6
ci: use self-hosted mac arm runner only on main branch (#27347)
bartlomieju Dec 13, 2024
bf888d9
feat(ext/web): add `[[ErrorData]]` slot to `DOMException` (#27342)
petamoriken Dec 13, 2024
05de351
Revert "ci: use self-hosted mac arm runner only on main branch (#2734…
bartlomieju Dec 13, 2024
369d68c
chore: bump hyper-util to 0.1.10 (#27330)
magurotuna Dec 13, 2024
32b57f7
fix(lsp): sql and component file formatting (#27350)
nayeemrmn Dec 13, 2024
3946956
fix(lockfile): include dependencies listed in external import map in …
nathanwhit Dec 13, 2024
9d315f2
fix(outdated): support updating dependencies in external import maps …
nathanwhit Dec 13, 2024
39f7845
ci: restore cargo home cache before rust install (#27356)
dsherret Dec 14, 2024
7949f53
refactor: add 'sync' feature to deno_resolver crate (#27357)
bartlomieju Dec 15, 2024
50871b2
fix: FastString v8_string() should error when cannot allocated (#27375)
littledivy Dec 16, 2024
75945cb
fix(compile): display embedded file sizes and total (#27360)
dsherret Dec 16, 2024
f9f5a12
fix: upgrade deno_doc to 0.161.3 (#27377)
littledivy Dec 16, 2024
358bf56
fix(lsp): respect "typescript.suggestionActions.enabled" setting (#27…
nayeemrmn Dec 16, 2024
95928c4
refactor: extract out `FileFetcher` to `deno_cache_dir` (#27263)
dsherret Dec 16, 2024
59f2634
refactor: use capacity_builder for writing deno compile data section …
dsherret Dec 17, 2024
f9add94
refactor(lint): renames and code flattening (#27386)
bartlomieju Dec 17, 2024
c562742
feat(permission): separate PermissionDeniedError to Retryable and Fat…
magurotuna Dec 17, 2024
ee9f24c
chore: release "deno_*" crates (#27402)
denobot Dec 17, 2024
d632ec9
fix: deno_resolver crate without 'sync' feature (#27403)
bartlomieju Dec 17, 2024
2820ba1
fix(lsp): include "node:" prefix for node builtin auto-imports (#27404)
nayeemrmn Dec 17, 2024
9d7174e
fix(outdated): ensure "Latest" version is greater than "Update" versi…
nathanwhit Dec 17, 2024
14e4064
fix(task): properly handle task name wildcards with --recursive (#27396)
bartlomieju Dec 18, 2024
8590aa9
fix(ext/node): sort list of built-in modules alphabetically (#27410)
bartlomieju Dec 18, 2024
ae74407
chore: upgrade libc (#27414)
devsnek Dec 18, 2024
b1c685f
fix(ext/fetch): retry some http/2 errors (#27417)
seanmonstar Dec 18, 2024
8fc4796
fix(ext/node): Fix `fs.access`/`fs.promises.access` with `X_OK` mode …
filipstev Dec 18, 2024
55d345b
chore: release ext/ crates (#27419)
denobot Dec 19, 2024
350d9dc
fix(ext/node): do not exit worker thread when there is pending async …
kt3k Dec 19, 2024
074444a
fix(compile): be more deterministic when compiling the same code in d…
dsherret Dec 19, 2024
351e796
fix(task): support tasks without commands (#27191)
marvinhagemeister Dec 19, 2024
3c147d6
fix(publish): infer literal types in const contexts (#27425)
dsherret Dec 19, 2024
feb94d0
fix(lsp): rewrite imports for 'Move to a new file' action (#27427)
nayeemrmn Dec 20, 2024
23f7032
fix(ext/node): add `truncate` method to the `FileHandle` class (#27389)
filipstev Dec 20, 2024
65b6479
feat(unstable): Implement QUIC (#21942)
devsnek Dec 20, 2024
c30f345
perf: don't store duplicate info for ops in the snapshot (#27430)
bartlomieju Dec 20, 2024
ece718e
perf: upgrade to deno_semver 0.7 (#27426)
dsherret Dec 20, 2024
77e1af7
perf: remove now needless canonicalization getting closest package.js…
dsherret Dec 20, 2024
26425a1
feat(unstable): add JS linting plugin infrastructure (#27416)
marvinhagemeister Dec 20, 2024
e6869d7
fix(node): handle cjs exports with escaped chars (#27438)
dsherret Dec 21, 2024
2e58e08
fix(ext/fs): do not throw for bigint ctime/mtime/atime (#27453)
kt3k Dec 23, 2024
3cc861c
fix(ext/fetch): better error message when body resource is unavailabl…
kt3k Dec 23, 2024
1a809b8
feat(unstable): support selectors in JS lint plugins (#27452)
marvinhagemeister Dec 23, 2024
a9ab7a8
fix: incorrect memory info free/available bytes on mac (#27460)
nathanwhit Dec 24, 2024
9115070
fix(ext/node): make getCiphers return supported ciphers (#27466)
kt3k Dec 26, 2024
f4e3213
feat(unstable): add OTEL MeterProvider (#27240)
lucacasonato Dec 26, 2024
6061f22
fix(ext/node): RangeError timingSafeEqual with different byteLength (…
littledivy Dec 27, 2024
c45d0da
fix(ext/node): add support of any length IV for aes-(128|256)-gcm cip…
kt3k Dec 27, 2024
fdd0edf
fix(unstable): don't error on non-existing attrs or type attr (#27456)
marvinhagemeister Dec 27, 2024
5194222
fix(ext/node): convert brotli chunks with proper byte offset (#27455)
littledivy Dec 28, 2024
fd8400e
perf(node/fs/copy): reduce metadata lookups copying directory (#27495)
dsherret Dec 30, 2024
c391ad3
refactor: use sys_traits (#27480)
dsherret Dec 30, 2024
a844d96
chore(lint): remove manual AST field counter (#27449)
marvinhagemeister Dec 31, 2024
7b491a2
fix(node): Add missing `inspector/promises` (#27491)
ije Dec 31, 2024
1cd3600
fix(ext/node): support private key export in JWK format (#27325)
bartlomieju Dec 31, 2024
4638caa
refactor: do not use `deno_fs::FileSystem` everywhere (#27508)
dsherret Dec 31, 2024
88bd5f0
perf(fs/windows): stat - only open file once (#27487)
dsherret Dec 31, 2024
ac7b33a
chore: cargo fmt - turn on group_imports=StdExternalCrate (#26646)
dsherret Dec 31, 2024
8fb073d
chore: Happy New Year 2025 (#27509)
petamoriken Dec 31, 2024
2965413
perf: build denort with `panic = "abort"` for releases (#27507)
nathanwhit Dec 31, 2024
8e618e1
fix(npm): deterministically output tags to initialized file (#27514)
dsherret Dec 31, 2024
7d66018
chore: fix windows pre release CI job (#27518)
nathanwhit Dec 31, 2024
79c0b2c
fix(lsp): css preprocessor formatting (#27526)
nayeemrmn Jan 2, 2025
9215aa6
refactor(node/npm): separate out permission check from npm resolvers …
dsherret Jan 2, 2025
225c3de
refactor: update some fs_util functions to use sys_traits (#27515)
dsherret Jan 2, 2025
0457c38
refactor: remove use of home crate (#27516)
dsherret Jan 2, 2025
2092f0c
fix(permissions): implicit `--allow-import` when using `--cached-only…
dsherret Jan 2, 2025
e9af7f8
refactor: Use 'await using' in serve_test (#27532)
bartlomieju Jan 2, 2025
18b813b
fix(check): line-break between diagnostic message chain entries (#27543)
nayeemrmn Jan 3, 2025
89c92b8
fix(check): move module not found errors to typescript diagnostics (#…
dsherret Jan 3, 2025
7cabd02
fix(kv): improve backoff error message and inline documentation (#27537)
kitsonk Jan 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 3 additions & 1 deletion .dprint.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"exec": {
"commands": [{
"command": "rustfmt --config imports_granularity=item",
"command": "rustfmt --config imports_granularity=item --config group_imports=StdExternalCrate",
"exts": ["rs"]
}]
},
Expand All @@ -31,6 +31,8 @@
"cli/tsc/dts/lib.scripthost.d.ts",
"cli/tsc/dts/lib.webworker*.d.ts",
"cli/tsc/dts/typescript.d.ts",
"cli/tools/doc/prism.css",
"cli/tools/doc/prism.js",
"ext/websocket/autobahn/reports",
"gh-pages",
"target",
Expand Down
2 changes: 1 addition & 1 deletion .github/mtime_cache/action.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.
// This file contains the implementation of a Github Action. Github uses
// Node.js v20.x to run actions, so this is Node code and not Deno code.

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cargo_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Install deno
uses: denoland/setup-deno@v2
with:
deno-version: v1.x
deno-version: v2.x

- name: Publish
env:
Expand Down
99 changes: 58 additions & 41 deletions .github/workflows/ci.generate.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/usr/bin/env -S deno run --allow-write=. --lock=./tools/deno.lock.json
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright 2018-2025 the Deno authors. MIT license.
import { stringify } from "jsr:@std/yaml@^0.221/stringify";

// Bump this number when you want to purge the cache.
// Note: the tools/release/01_bump_crate_versions.ts script will update this version
// automatically via regex, so ensure that this line maintains this format.
const cacheVersion = 25;
const cacheVersion = 32;

const ubuntuX86Runner = "ubuntu-24.04";
const ubuntuX86XlRunner = "ubuntu-24.04-xl";
Expand Down Expand Up @@ -59,6 +59,15 @@ const Runners = {

const prCacheKeyPrefix =
`${cacheVersion}-cargo-target-\${{ matrix.os }}-\${{ matrix.arch }}-\${{ matrix.profile }}-\${{ matrix.job }}-`;
const prCacheKey = `${prCacheKeyPrefix}\${{ github.sha }}`;
const prCachePath = [
// this must match for save and restore (https://github.com/actions/cache/issues/1444)
"./target",
"!./target/*/gn_out",
"!./target/*/gn_root",
"!./target/*/*.zip",
"!./target/*/*.tar.gz",
].join("\n");

// Note that you may need to add more version to the `apt-get remove` line below if you change this
const llvmVersion = 19;
Expand Down Expand Up @@ -196,7 +205,7 @@ const installNodeStep = {
const installDenoStep = {
name: "Install Deno",
uses: "denoland/setup-deno@v2",
with: { "deno-version": "v1.x" },
with: { "deno-version": "v2.x" },
};

const authenticateWithGoogleCloud = {
Expand Down Expand Up @@ -475,6 +484,27 @@ const ci = {
" -czvf target/release/deno_src.tar.gz -C .. deno",
].join("\n"),
},
{
name: "Cache Cargo home",
uses: "actions/cache@v4",
with: {
// See https://doc.rust-lang.org/cargo/guide/cargo-home.html#caching-the-cargo-home-in-ci
// Note that with the new sparse registry format, we no longer have to cache a `.git` dir
path: [
"~/.cargo/.crates.toml",
"~/.cargo/.crates2.json",
"~/.cargo/bin",
"~/.cargo/registry/index",
"~/.cargo/registry/cache",
"~/.cargo/git/db",
].join("\n"),
key:
`${cacheVersion}-cargo-home-\${{ matrix.os }}-\${{ matrix.arch }}-\${{ hashFiles('Cargo.lock') }}`,
// We will try to restore from the closest cargo-home we can find
"restore-keys":
`${cacheVersion}-cargo-home-\${{ matrix.os }}-\${{ matrix.arch }}-`,
},
},
installRustStep,
{
if:
Expand Down Expand Up @@ -598,37 +628,14 @@ const ci = {
installBenchTools,
].join("\n"),
},
{
name: "Cache Cargo home",
uses: "actions/cache@v4",
with: {
// See https://doc.rust-lang.org/cargo/guide/cargo-home.html#caching-the-cargo-home-in-ci
// Note that with the new sparse registry format, we no longer have to cache a `.git` dir
path: [
"~/.cargo/registry/index",
"~/.cargo/registry/cache",
].join("\n"),
key:
`${cacheVersion}-cargo-home-\${{ matrix.os }}-\${{ matrix.arch }}-\${{ hashFiles('Cargo.lock') }}`,
// We will try to restore from the closest cargo-home we can find
"restore-keys":
`${cacheVersion}-cargo-home-\${{ matrix.os }}-\${{ matrix.arch }}`,
},
},
{
// Restore cache from the latest 'main' branch build.
name: "Restore cache build output (PR)",
uses: "actions/cache/restore@v4",
if:
"github.ref != 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/')",
with: {
path: [
"./target",
"!./target/*/gn_out",
"!./target/*/gn_root",
"!./target/*/*.zip",
"!./target/*/*.tar.gz",
].join("\n"),
path: prCachePath,
key: "never_saved",
"restore-keys": prCacheKeyPrefix,
},
Expand Down Expand Up @@ -709,6 +716,19 @@ const ci = {
"df -h",
].join("\n"),
},
{
name: "Build denort release",
if: [
"matrix.job == 'test' &&",
"matrix.profile == 'release' &&",
"github.repository == 'denoland/deno'",
].join("\n"),
run: [
"df -h",
"cargo build --profile=release-slim --locked --bin denort",
"df -h",
].join("\n"),
},
{
// Run a minimal check to ensure that binary is not corrupted, regardless
// of our build mode
Expand Down Expand Up @@ -755,10 +775,11 @@ const ci = {
"cd target/release",
"zip -r deno-${{ matrix.arch }}-unknown-linux-gnu.zip deno",
"shasum -a 256 deno-${{ matrix.arch }}-unknown-linux-gnu.zip > deno-${{ matrix.arch }}-unknown-linux-gnu.zip.sha256sum",
"strip denort",
"zip -r denort-${{ matrix.arch }}-unknown-linux-gnu.zip denort",
"shasum -a 256 denort-${{ matrix.arch }}-unknown-linux-gnu.zip > denort-${{ matrix.arch }}-unknown-linux-gnu.zip.sha256sum",
"./deno types > lib.deno.d.ts",
"cd ../release-slim",
"zip -r ../release/denort-${{ matrix.arch }}-unknown-linux-gnu.zip denort",
"cd ../release",
"shasum -a 256 denort-${{ matrix.arch }}-unknown-linux-gnu.zip > denort-${{ matrix.arch }}-unknown-linux-gnu.zip.sha256sum",
].join("\n"),
},
{
Expand All @@ -783,8 +804,9 @@ const ci = {
"cd target/release",
"zip -r deno-${{ matrix.arch }}-apple-darwin.zip deno",
"shasum -a 256 deno-${{ matrix.arch }}-apple-darwin.zip > deno-${{ matrix.arch }}-apple-darwin.zip.sha256sum",
"strip denort",
"zip -r denort-${{ matrix.arch }}-apple-darwin.zip denort",
"cd ../release-slim",
"zip -r ../release/denort-${{ matrix.arch }}-apple-darwin.zip denort",
"cd ../release",
"shasum -a 256 denort-${{ matrix.arch }}-apple-darwin.zip > denort-${{ matrix.arch }}-apple-darwin.zip.sha256sum",
]
.join("\n"),
Expand All @@ -801,7 +823,8 @@ const ci = {
run: [
"Compress-Archive -CompressionLevel Optimal -Force -Path target/release/deno.exe -DestinationPath target/release/deno-${{ matrix.arch }}-pc-windows-msvc.zip",
"Get-FileHash target/release/deno-${{ matrix.arch }}-pc-windows-msvc.zip -Algorithm SHA256 | Format-List > target/release/deno-${{ matrix.arch }}-pc-windows-msvc.zip.sha256sum",
"Compress-Archive -CompressionLevel Optimal -Force -Path target/release/denort.exe -DestinationPath target/release/denort-${{ matrix.arch }}-pc-windows-msvc.zip",

"Compress-Archive -CompressionLevel Optimal -Force -Path target/release-slim/denort.exe -DestinationPath target/release/denort-${{ matrix.arch }}-pc-windows-msvc.zip",
"Get-FileHash target/release/denort-${{ matrix.arch }}-pc-windows-msvc.zip -Algorithm SHA256 | Format-List > target/release/denort-${{ matrix.arch }}-pc-windows-msvc.zip.sha256sum",
].join("\n"),
},
Expand Down Expand Up @@ -1080,14 +1103,8 @@ const ci = {
if:
"(matrix.job == 'test' || matrix.job == 'lint') && github.ref == 'refs/heads/main'",
with: {
path: [
"./target",
"!./target/*/gn_out",
"!./target/*/*.zip",
"!./target/*/*.sha256sum",
"!./target/*/*.tar.gz",
].join("\n"),
key: prCacheKeyPrefix + "${{ github.sha }}",
path: prCachePath,
key: prCacheKey,
},
},
]),
Expand Down
53 changes: 34 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,26 @@ jobs:
mkdir -p target/release
tar --exclude=".git*" --exclude=target --exclude=third_party/prebuilt \
-czvf target/release/deno_src.tar.gz -C .. deno
- name: Cache Cargo home
uses: actions/cache@v4
with:
path: |-
~/.cargo/.crates.toml
~/.cargo/.crates2.json
~/.cargo/bin
~/.cargo/registry/index
~/.cargo/registry/cache
~/.cargo/git/db
key: '32-cargo-home-${{ matrix.os }}-${{ matrix.arch }}-${{ hashFiles(''Cargo.lock'') }}'
restore-keys: '32-cargo-home-${{ matrix.os }}-${{ matrix.arch }}-'
if: '!(matrix.skip)'
- uses: dsherret/rust-toolchain-file@v1
if: '!(matrix.skip)'
- if: '!(matrix.skip) && (matrix.job == ''lint'' || matrix.job == ''test'' || matrix.job == ''bench'')'
name: Install Deno
uses: denoland/setup-deno@v2
with:
deno-version: v1.x
deno-version: v2.x
- name: Install Python
uses: actions/setup-python@v5
with:
Expand Down Expand Up @@ -355,15 +368,6 @@ jobs:
- name: Install benchmark tools
if: '!(matrix.skip) && (matrix.job == ''bench'')'
run: ./tools/install_prebuilt.js wrk hyperfine
- name: Cache Cargo home
uses: actions/cache@v4
with:
path: |-
~/.cargo/registry/index
~/.cargo/registry/cache
key: '25-cargo-home-${{ matrix.os }}-${{ matrix.arch }}-${{ hashFiles(''Cargo.lock'') }}'
restore-keys: '25-cargo-home-${{ matrix.os }}-${{ matrix.arch }}'
if: '!(matrix.skip)'
- name: Restore cache build output (PR)
uses: actions/cache/restore@v4
if: '!(matrix.skip) && (github.ref != ''refs/heads/main'' && !startsWith(github.ref, ''refs/tags/''))'
Expand All @@ -375,7 +379,7 @@ jobs:
!./target/*/*.zip
!./target/*/*.tar.gz
key: never_saved
restore-keys: '25-cargo-target-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.profile }}-${{ matrix.job }}-'
restore-keys: '32-cargo-target-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.profile }}-${{ matrix.job }}-'
- name: Apply and update mtime cache
if: '!(matrix.skip) && (!startsWith(github.ref, ''refs/tags/''))'
uses: ./.github/mtime_cache
Expand Down Expand Up @@ -415,6 +419,15 @@ jobs:
df -h
cargo build --release --locked --all-targets
df -h
- name: Build denort release
if: |-
!(matrix.skip) && (matrix.job == 'test' &&
matrix.profile == 'release' &&
github.repository == 'denoland/deno')
run: |-
df -h
cargo build --profile=release-slim --locked --bin denort
df -h
- name: Check deno binary
if: '!(matrix.skip) && (matrix.job == ''test'')'
run: 'target/${{ matrix.profile }}/deno eval "console.log(1+2)" | grep 3'
Expand Down Expand Up @@ -444,10 +457,11 @@ jobs:
cd target/release
zip -r deno-${{ matrix.arch }}-unknown-linux-gnu.zip deno
shasum -a 256 deno-${{ matrix.arch }}-unknown-linux-gnu.zip > deno-${{ matrix.arch }}-unknown-linux-gnu.zip.sha256sum
strip denort
zip -r denort-${{ matrix.arch }}-unknown-linux-gnu.zip denort
shasum -a 256 denort-${{ matrix.arch }}-unknown-linux-gnu.zip > denort-${{ matrix.arch }}-unknown-linux-gnu.zip.sha256sum
./deno types > lib.deno.d.ts
cd ../release-slim
zip -r ../release/denort-${{ matrix.arch }}-unknown-linux-gnu.zip denort
cd ../release
shasum -a 256 denort-${{ matrix.arch }}-unknown-linux-gnu.zip > denort-${{ matrix.arch }}-unknown-linux-gnu.zip.sha256sum
- name: Pre-release (mac)
if: |-
!(matrix.skip) && (matrix.os == 'macos' &&
Expand All @@ -463,8 +477,9 @@ jobs:
cd target/release
zip -r deno-${{ matrix.arch }}-apple-darwin.zip deno
shasum -a 256 deno-${{ matrix.arch }}-apple-darwin.zip > deno-${{ matrix.arch }}-apple-darwin.zip.sha256sum
strip denort
zip -r denort-${{ matrix.arch }}-apple-darwin.zip denort
cd ../release-slim
zip -r ../release/denort-${{ matrix.arch }}-apple-darwin.zip denort
cd ../release
shasum -a 256 denort-${{ matrix.arch }}-apple-darwin.zip > denort-${{ matrix.arch }}-apple-darwin.zip.sha256sum
- name: Pre-release (windows)
if: |-
Expand All @@ -476,7 +491,7 @@ jobs:
run: |-
Compress-Archive -CompressionLevel Optimal -Force -Path target/release/deno.exe -DestinationPath target/release/deno-${{ matrix.arch }}-pc-windows-msvc.zip
Get-FileHash target/release/deno-${{ matrix.arch }}-pc-windows-msvc.zip -Algorithm SHA256 | Format-List > target/release/deno-${{ matrix.arch }}-pc-windows-msvc.zip.sha256sum
Compress-Archive -CompressionLevel Optimal -Force -Path target/release/denort.exe -DestinationPath target/release/denort-${{ matrix.arch }}-pc-windows-msvc.zip
Compress-Archive -CompressionLevel Optimal -Force -Path target/release-slim/denort.exe -DestinationPath target/release/denort-${{ matrix.arch }}-pc-windows-msvc.zip
Get-FileHash target/release/denort-${{ matrix.arch }}-pc-windows-msvc.zip -Algorithm SHA256 | Format-List > target/release/denort-${{ matrix.arch }}-pc-windows-msvc.zip.sha256sum
- name: Upload canary to dl.deno.land
if: |-
Expand Down Expand Up @@ -682,10 +697,10 @@ jobs:
path: |-
./target
!./target/*/gn_out
!./target/*/gn_root
!./target/*/*.zip
!./target/*/*.sha256sum
!./target/*/*.tar.gz
key: '25-cargo-target-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.profile }}-${{ matrix.job }}-${{ github.sha }}'
key: '32-cargo-target-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.profile }}-${{ matrix.job }}-${{ github.sha }}'
publish-canary:
name: publish canary
runs-on: ubuntu-24.04
Expand Down
45 changes: 45 additions & 0 deletions .github/workflows/npm_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: npm_publish

on:
workflow_dispatch:
inputs:
version:
description: 'Version'
type: string
release:
types: [published]

permissions:
id-token: write

jobs:
build:
name: npm publish
runs-on: ubuntu-latest
timeout-minutes: 30

steps:
- name: Configure git
run: |
git config --global core.symlinks true
git config --global fetch.parallel 32

- name: Clone repository
uses: actions/checkout@v4
with:
submodules: recursive

- name: Install Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: '22.x'
registry-url: 'https://registry.npmjs.org'

- name: Publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: ./tools/release/npm/build.ts ${{ github.event.inputs.version }} --publish
2 changes: 1 addition & 1 deletion .github/workflows/promote_to_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Install deno
uses: denoland/setup-deno@v2
with:
deno-version: v1.x
deno-version: v2.x

- name: Install rust-codesign
run: |-
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/start_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Install deno
uses: denoland/setup-deno@v2
with:
deno-version: v1.x
deno-version: v2.x

- name: Create Gist URL
env:
Expand Down
Loading
Loading