summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-11-08refactor: simplify deno_core's grab_global and ensure_objs (#16564)Ryan Dahl
- refactor: remove JsRuntime::ensure_objs - refactor: Replace JsRuntime::grab_global with JsRuntime::eval
2022-11-06chore: upgrade deno_std submodule (#16546)Bartek Iwańczuk
2022-11-06chore(ci): update github actions (#16534)Abdul Rauf
2022-11-06fix(npm): fix CJS resolution with local node_modules dir (#16547)Bartek Iwańczuk
This commit fixes CJS resolution when there's a local "node_modules/" directory. Before this commit relative imports from CJS files where resolved relative to root directory of the package instead of relative to referrer file.
2022-11-05fix(upgrade): don't prompt if current version has changed (#16542)sigmaSd
fix https://github.com/denoland/deno/issues/16539 fix https://github.com/denoland/deno/issues/16537
2022-11-04fix(ext/http): flush chunk when streaming resource (#16536)Luca Casonato
When streaming a resource in ext/http, with compression enabled, we didn't flush individual chunks. This became very problematic when we enabled `req.body` from `fetch` for FastStream recently. This commit now correctly flushes each resource chunk after compression.
2022-11-04chore: forward v1.27.1 release commit to main (#16533)denobot
Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com> Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-11-04fix(runtime): fix Deno.hostname on windows (#16530)Yoshiya Hinosawa
2022-11-03fix(lock): add --no-lock flag to disable auto discovery of lock file (#16526)Bartek Iwańczuk
2022-11-03fix(lock): require --unstable flag to auto discover lockfile (#16524)Bartek Iwańczuk
2022-11-02fix(npm): add `console` global for node environment (#16519)David Sherret
This global is already isolated to node during type checking. Closes #16518
2022-11-02chore: update deno_doc (#16515)Leo Kettmeir
2022-11-02 fix(cli/dts): add typings for Change Array by copy proposal (#16499)Leo Kettmeir
2022-11-02fix(lock): autodiscovery of lockfile (#16498)Bartek Iwańczuk
This commit adds autodiscovery of lockfile. This only happens if Deno discovers the configuration file (either "deno.json" or "deno.jsonc"). In such case Deno tries to load "deno.lock" file that sits next to the configuration file, or creates one for user if the lockfile doesn't exist yet. As a consequence, "--lock" and "--lock-write" flags had been updated. "--lock" no longer requires a value, if one is not provided, it defaults to "./deno.lock" resolved from the current working directory. "--lock-write" description was updated to say that it forces to overwrite a lockfile. Autodiscovery is currently not handled by the LSP.
2022-11-02refactor: Combine ImportMapResolver and JsxResolver (#16508)Bartek Iwańczuk
These resolvers are used in `deno_graph` APIs. Combining them removes a lot of code and unblocks me on https://github.com/denoland/deno/pull/16157
2022-11-02chore: fix clippy warning (#16512)Bartek Iwańczuk
2022-11-02chore(runtime): remove dependency on sys-info crate (#16441)Divy Srivastava
Fixes #9862 `loadavg` | Target family | Syscall | Description | | ------------- | ------- | ----------- | | Linux | `sysinfo` | - | | Windows | - | Returns `DEFAULT_LOADAVG`. There is no concept of loadavg on Windows | | macOS, BSD | `getloadavg` | https://www.freebsd.org/cgi/man.cgi?query=getloadavg | `os_release` | Target family | Syscall | Description | | ------------- | ------- | ----------- | | Linux | `/proc/sys/kernel/osrelease` | - | | Windows | [`RtlGetVersion`](https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/wdm/nf-wdm-rtlgetversion) | dwMajorVersion . dwMinorVersion . dwBuildNumber | | macOS | `sysctl([CTL_KERN, KERN_OSRELEASE])` | - | `hostname` | Target family | Syscall | Description | | ------------- | ------- | ----------- | | Unix | `gethostname(sysconf(_SC_HOST_NAME_MAX))` | - | | Windows | `GetHostNameW` | - | `mem_info` | Target family | Syscall | Description | | ------------- | ------- | ----------- | | Linux | sysinfo | - | | Windows | `sysinfoapi::GlobalMemoryStatusEx` | - | | macOS | <br> <pre> sysctl([CTL_HW, HW_MEMSIZE]); <br> sysctl([CTL_VM, VM_SWAPUSAGE]); <br> host_statistics64(mach_host_self(), HOST_VM_INFO64) </pre> | - |
2022-11-02fix(lockfile): error if a referenced package id doesn't exist in list of ↵David Sherret
packages (#16509) Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-11-01revert 9ea0ce61981aa09851c3d1e0a2b7dbd7f7a392f5 (#16501)Bartek Iwańczuk
Closes https://github.com/denoland/deno/issues/16450
2022-11-01fix(lock): Additive lock file (#16500)Bartek Iwańczuk
This commit changes lockfile to be "additive" - ie. integrity check only fails if file/package is already specified in the lockfile, but its integrity doesn't match. If file/package is not present in the lockfile, it will be added to the lockfile and the lockfile will be written to disk.
2022-10-31feat(unstable/npm): `deno info --json` support for npm specifiers (#16472)David Sherret
2022-10-31chore: remove stale comments (#16491)Bartek Iwańczuk
Just a drive-by, noticed some stale comments that haven't been removed earlier.
2022-10-31fix(tools): show correct upgrade command for upgrading canary (#16486)sigmaSd
2022-10-31fix(ext/websocket): make try_send ops infallible (#16454)Divy Srivastava
Fixes #16450
2022-10-31fix(test): add slice method to filename to make them portable (#16482)Shogo Hida
In order for test cases to pass regardless of each individual's environment, this commit adds calls to `slice` method when printing the filenames so we can avoid getting `console.log` to truncate them. Fixes #16305
2022-10-30chore: remove stable unstable APIs from cli/diagnostics.rs (#16492)Bartek Iwańczuk
All these APIs are now stable
2022-10-30fix: update env to sys permission in jsdoc for Deno.osRelease (#16483)Geert-Jan Zwiers
This API needs `--allow-sys` permissions nowadays, but the docs still mention `--allow-env` permissions. ``` deno run .\file.ts ⚠️ ┌ Deno requests sys access to "osRelease". ├ Requested by `Deno.osRelease()` API ├ Run again with --allow-sys to bypass this prompt. └ Allow? [y/n] (y = yes, allow; n = no, deny) > ```
2022-10-30test: disable run_watch_external_watch_files on macOS (#16477)Bartek Iwańczuk
This test has hung a lot recently on macOS. I am not sure if this is because of a bug in the test or because of the macOS runner that is extremely slow and flaky in general.
2022-10-30fix(napi): fix is_detached_arraybuffer (#16478)Marcos Casagrande
2022-10-29fix(core): fix APIs not to be affected by `Promise.prototype.then` ↵Kenta Moriuchi
modification (#16326)
2022-10-28feat: support npm specifiers in `deno info` for display text output only ↵David Sherret
(#16470)
2022-10-28refactor(npm): reorganize initialization of compat layer (#16471)Bartek Iwańczuk
Ensures that "std/node" graph is analyzed only once.
2022-10-28feat(core): support creating snapshots from existing snapshots (#14744)Bartek Iwańczuk
2022-10-28fix(lsp): correct `parameterNames.suppressWhenArgumentMatchesName` and ↵David Sherret
`variableTypes.suppressWhenTypeMatchesName` (#16469) Closes #16468
2022-10-28fix(upgrade): don't prompt if latest version is older than current binary ↵Bartek Iwańczuk
(#16464)
2022-10-28chore: pin lsp types due to unstable "proposed" feature (#16467)David Sherret
The "proposed" feature that we depend upon in tower-lsp, turns on the "proposed" feature in lsp-types which has breaking changes in patch releases because it's explicitly unstable. We need to pin it to prevent it breaking cargo publish.
2022-10-28fix: change default locale value (#16463)Bartek Iwańczuk
Pointed by @zbraniecki in https://github.com/denoland/deno/pull/12322#discussion_r1007416061, I made a mistake with default locale value.
2022-10-28refactor: move `deno info` functionality from deno_graph to CLI (#16434)David Sherret
Closes #16423
2022-10-28fix(ext/crypto): fix HMAC jwk import "use" check (#16465)Filip Skokan
2022-10-28Reland "perf(core): generate inlined wrappers for async ops" (#16455)Divy Srivastava
Reland https://github.com/denoland/deno/pull/16428
2022-10-28chore(core): remove TODO in bindings.rs (#16456)Divy Srivastava
2022-10-27chore(npm): add explicit tests for `module.exports` assignment with type ↵David Sherret
checking (#16435)
2022-10-27fix: finish stabilizing Deno.osRelease() (#16447)Colin Ihrig
Fixes: https://github.com/denoland/deno/issues/16446
2022-10-27fix(lsp): add ServerCapabilities::encoding (#16444)Bartek Iwańczuk
This caused v1.27.0 publishing to fail.
2022-10-271.27.0 (#16442)denobot
Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com> Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-10-27Revert "perf(core): generate inlined wrappers for async ops (#16428)" (#16443)Divy Srivastava
2022-10-27perf(core): generate inlined wrappers for async ops (#16428)Divy Srivastava
V8's JIT can do a better job knowing the argument count and also enable fast call path (in future). This also lets us call async ops without `opAsync`: ```js const { ops } = Deno.core; await ops.op_void_async(); ``` this patch: 4405286 ops/sec main: 3508771 ops/sec
2022-10-27fix(typescript): allow synthetic default imports when using ↵David Sherret
`ModuleKind.ESNext` (#16438) Closes #16437
2022-10-26fix(cli): do not log update checker when log level is quiet (#16433)David Sherret
Co-authored-by: lucacasonato <hello@lcas.dev>
2022-10-26chore(unstable): rename Deno.getUid() and Deno.getGid() (#16432)Colin Ihrig
This commit renames `Deno.getUid()` to `Deno.uid()` and renames `Deno.getGid()` to `Deno.gid()`.