Bartek Iwańczuk
b4ce48c80a
fix(napi): correct arguments for napi_get_typedarray_info ( #17306 )
2023-01-14 13:00:48 +00:00
Kiryl Dziamura
934ed8e7d1
fix(npm): use original node regex in npm resolution ( #17404 )
...
Fixes regex for matching conditional exports in a package.
Updated to the same regex Node.js uses.
2023-01-14 00:57:24 +01:00
Max Coplan
b23b4e231c
refactor(bench/http): Use optional chaining instead of ||
fallthrough ( #17317 )
2023-01-14 00:51:57 +01:00
Geert-Jan Zwiers
6557642fc8
refactor(coverage): use FileFlags struct ( #17388 )
2023-01-13 16:56:29 -05:00
Geert-Jan Zwiers
052bcc62bb
refactor(cli/tools): reduce cloning ( #17309 )
2023-01-13 22:39:19 +01:00
Lino Le Van
d4767a1a87
fix(napi): update node version to lts ( #17399 )
2023-01-13 22:10:53 +01:00
David Sherret
377f593273
chore: forward 1.29.3 release back to main ( #17401 )
2023-01-13 13:36:51 -05:00
Bartek Iwańczuk
1b17985c5a
fix(permissions): lock stdio streams when prompt is shown ( #17392 )
...
This commit changes permission prompt to lock stdio streams when prompt
is shown.
2023-01-13 10:05:07 -05:00
Bartek Iwańczuk
9644220df2
tests: Disable flaky flash_shutdown test ( #17390 )
2023-01-13 15:19:20 +01:00
Bartek Iwańczuk
291dcc31f7
fix(napi): date and unwrap handling ( #17369 )
2023-01-13 12:53:45 +01:00
Yiyu Lin
a00e432297
chore: add copyright_checker
tool and add the missing copyright ( #17285 )
2023-01-13 16:51:32 +09:00
Bartek Iwańczuk
9e282155b7
tests: move integration tests to a single module ( #17380 )
...
Effectively reverts changes done in
https://github.com/denoland/deno/pull/16816
2023-01-13 02:59:13 +01:00
Bartek Iwańczuk
4d66be1e05
Revert "test: fix flaky deno_land_unsafe_ssl test ( #17357 )" ( #17368 )
...
This reverts commit ee2c6cb04a
.
Closes https://github.com/denoland/deno/issues/17359
2023-01-12 15:25:20 +01:00
Divy Srivastava
dd2829be0c
fix(napi): Implement napi_threadsafe_function
ref and unref ( #17304 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-01-12 13:47:55 +01:00
Leo Kettmeir
cc806cdf21
fix: check if BroadcastChannel is open before sending ( #17366 )
...
Fixes #16978
2023-01-12 13:43:36 +01:00
Leo Kettmeir
a6b3910bdf
feat: allow passing a ReadableStream to Deno.writeFile/Deno.writeTextFile ( #17329 )
...
Closes #13229
2023-01-12 03:37:23 +01:00
Leo Kettmeir
692f9af14a
fix: don't unwrap in test pipe handling logic ( #17341 )
...
Fixes #14746
2023-01-12 02:30:23 +01:00
Bartek Iwańczuk
ee2c6cb04a
test: fix flaky deno_land_unsafe_ssl test ( #17357 )
2023-01-12 01:04:25 +01:00
Leo Kettmeir
b0e0e4f24b
fix: don't panic on resolveDns if unsupported record type is specified ( #17336 )
...
Fixes #14373
2023-01-11 21:31:14 +01:00
David Sherret
8c3c02354d
fix(fmt): better handling of link reference definitions when formatting markdown ( #17352 )
...
Two fixes:
- https://github.com/dprint/dprint-plugin-markdown/pull/75
- https://github.com/dprint/dprint-plugin-markdown/pull/73
2023-01-11 18:35:45 +00:00
Bartek Iwańczuk
14ada3dce2
fix(napi): support for env cleanup hooks ( #17324 )
...
This commit adds support for "napi_add_env_cleanup_hook" and
"napi_remove_env_cleanup_hook" function for Node-API.
2023-01-10 19:15:10 +01:00
Nayeem Rahman
71ea4ef274
fix(watch): preserve ProcState::file_fetcher
between restarts ( #15466 )
...
This commit changes "ProcState" to store "file_fetcher" field in an "Arc",
allowing it to be preserved between restarts and thus keeping the state
alive between the restarts. File watchers for "deno test" and "deno bench"
now reset "ProcState" between restarts.
2023-01-10 16:28:10 +01:00
Bartek Iwańczuk
0329bc69da
fix(napi): handle static properties in classes ( #17320 )
...
Adds support for static properties when using "napi_define_class".
2023-01-10 15:35:46 +01:00
Bartek Iwańczuk
636352e0ca
fix(npm): allow to read package.json if permissions are granted ( #17209 )
...
This commit changes signature of "deno_core::ModuleLoader::resolve" to pass
an enum indicating whether or not we're resolving a specifier for dynamic import.
Additionally "CliModuleLoader" was changes to store both "parent permissions" (or
"root permissions") as well as "dynamic permissions" that allow to check for permissions
in top-level module load an dynamic imports.
Then all code paths that have anything to do with Node/npm compat are now checking
for permissions which are passed from module loader instance associated with given
worker.
2023-01-10 14:35:44 +01:00
Leo Kettmeir
e6c49d14b1
feat(runtime/os): add Deno.env.has()
( #17315 )
2023-01-09 20:19:55 +01:00
Geert-Jan Zwiers
fa175d8cda
fix(cli/args): update value_name of inspect args to resolve broken completions ( #17287 )
...
This PR updates the name used in `clap::Arg::value_name` for the
`--inspect*` flags from `HOST:PORT` to `HOST_AND_PORT` because the
former causes an arguments error when using shell completions in the
`zsh` shell.
2023-01-09 13:29:43 +01:00
Leo Kettmeir
c41d4ff90e
feat(core): allow specifying name and dependencies of an Extension ( #17301 )
2023-01-08 23:48:46 +01:00
David Sherret
2be1282be4
fix(install): should always include --no-config
in shim unless --config
is specified ( #17300 )
...
Closes #17294
2023-01-08 09:03:55 -05:00
Dj
ad82918f56
feat(ext/ffi): structs by value ( #15060 )
...
Adds support for passing and returning structs as buffers to FFI. This does not implement fastapi support for structs. Needed for certain system APIs such as AppKit on macOS.
2023-01-08 09:28:10 +05:30
Geert-Jan Zwiers
84ef26ac9b
refactor(cli/tools): move flag and config logic to CliOptions ( #17008 )
...
Co-authored-by: David Sherret <dsherret@gmail.com>
2023-01-07 15:22:09 -05:00
Bartek Iwańczuk
fac6447815
refactor(permissions): add PermissionsContainer struct for internal mutability ( #17134 )
...
Turns out we were cloning permissions which after prompting were discarded,
so the state of permissions was never preserved. To handle that we need to store
all permissions behind "Arc<Mutex<>>" (because there are situations where we
need to send them to other thread).
Testing and benching code still uses "Permissions" in most places - it's undesirable
to share the same permission set between various test/bench files - otherwise
granting or revoking permissions in one file would influence behavior of other test
files.
2023-01-07 17:25:34 +01:00
David Sherret
d1cdf65b10
fix(npm): handle declaration file resolution where packages incorrectly define "types" last in "exports" ( #17290 )
...
Closes #17279
2023-01-06 12:57:52 -05:00
David Sherret
7db729a42d
fix(npm): support old packages and registries with no integrity, but with a sha1sum ( #17289 )
...
Closes #17281
2023-01-06 11:36:12 -05:00
David Sherret
3e72241fda
fix(npm): reduce copy packages when resolving optional peer dependencies ( #17280 )
...
If an optional peer dependency entry previously wasn't resolved and it's
now being resolved, then it will add it as if it were a dependency of
the previously resolved package instead of creating a new "copy package"
(seems to be what npm and pnpm does).
Closes #17240
2023-01-06 09:13:21 -05:00
David Sherret
c9b0d2709b
fix(npm): panic resolving some dependencies with dist tags ( #17278 )
...
This would only occur if a dist tag for a package was resolved more than
once.
Closes #17275
2023-01-06 08:48:56 -05:00
Doni Rubiagatra
39cbaa6d34
fix(cli): uninstall command accept short flags ( #17259 )
2023-01-06 02:09:39 +00:00
Yiyu Lin
896dd56b7a
refactor(cli,core,ext,rt): remove some unnecessary clone
or malloc
( #17274 )
2023-01-05 14:29:50 -05:00
Geert-Jan Zwiers
4e6b78cb43
refactor(cli): clean up clones ( #17268 )
2023-01-05 12:33:09 -05:00
denobot
fa271b70db
chore: forward v1.29.2 release commit to main ( #17277 )
...
Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-01-05 16:48:19 +01:00
David Sherret
0ee64ad847
fix: upgrade deno_ast to 0.23 ( #17269 )
...
Closes #17172
Closes #15669
Closes #8529
2023-01-04 18:54:54 -05:00
Yiyu Lin
319f607476
chore(cli,ext,rt): remove some unnecessary clone
or malloc
( #17261 )
2023-01-04 13:20:36 +01:00
Yiyu Lin
2da882137e
docs(cli): do not need gen doc for cli ( #17260 )
2023-01-04 13:19:58 +01:00
Asher Gomez
1b001d1b18
fix(permissions): process URL
in Deno.FfiPermissionDescriptor.path
for revoke()
and request()
( #17094 )
...
Previously, `Deno.permissions.[revoke|request]()` wouldn't correctly
process the `path: URL` when `name` was `ffi`. This change fixes that
behaviour and adds a new function, `formDescriptor()`, to ensure `URL`
arguments are consistently handled across
`Deno.permissions.[query|revoke|request]()`.
2023-01-03 21:50:14 +01:00
Bartek Iwańczuk
c1ffd3d2cb
fix(lsp): don't error if completionItem/resolve request fails ( #17250 )
2023-01-03 18:13:21 +01:00
Fenix
501472f06b
fix(cli): bundle command support shebang file ( #17113 )
2023-01-03 16:19:28 +00:00
Leo Kettmeir
7716449d41
fix(lsp): treat empty string config value as None ( #17227 )
...
Fixes #14630
2023-01-03 16:59:48 +01:00
David Sherret
421ec90a8e
fix(declaration): change Deno.open
example to not use Deno.close(rid)
( #17218 )
2023-01-03 10:48:03 -05:00
Geert-Jan Zwiers
8a9f5c152e
refactor(lsp): reduce number of clones ( #17254 )
...
This PR optimizes the code in the language server by performing less
cloning of data.
2023-01-03 11:41:50 +01:00
David Sherret
10e4b2e140
chore: update copyright year to 2023 ( #17247 )
...
Yearly tradition of creating extra noise in git.
2023-01-02 21:00:42 +00:00
Geert-Jan Zwiers
f729576b2d
refactor: cleanup redundant call ( #17226 )
2022-12-30 20:04:17 -08:00