Bartek Iwańczuk
ac705b7936
v1.3.2
2020-08-29 09:53:13 -04:00
Yusuke Tanaka
0d11f3504b
fix(lint): use recommended rules set ( #7222 )
2020-08-29 12:58:20 +02:00
Nayeem Rahman
d6dc797d15
fix(URL): Add missing part assignment ( #7239 )
2020-08-29 10:12:10 +02:00
Yoshiya Hinosawa
00b6762412
test(cli/flags): restore disabled test cases ( #7236 )
2020-08-28 19:20:57 -04:00
Bartek Iwańczuk
7e946858a4
refactor: migrate ops to new dispatch wrapper ( #7118 )
2020-08-28 17:08:24 +02:00
Valentin Anger
31f32ed8c4
Move benchmarks to Rust ( #7134 )
...
All benchmarks are done in Rust and can be invoked with
`cargo bench`.
Currently this has it's own "harness" that behaves like
`./tools/benchmark.py` did.
Because of this tests inside `cli/bench` are currently not run.
This should be switched to the language provided harness
once the `#[bench]` attribute has been stabilized.
2020-08-28 09:03:50 -04:00
Nayeem Rahman
3d23208019
fix(deno install): Strip "@..." suffixes from inferred names ( #7223 )
2020-08-27 16:55:58 -04:00
Yusuke Tanaka
6d964fc607
test(url_test): disable no-self-assign
rule here ( #7204 )
2020-08-26 15:01:03 -04:00
Bartek Iwańczuk
4a0bc747dd
upgrade: swc, deno_doc, deno_lint, dprint ( #7194 )
2020-08-26 20:43:24 +02:00
Luca Casonato
a7fd3a4f58
fix(cli): revert "never type check deno info #6978 " ( #7199 )
2020-08-26 20:27:06 +02:00
Bert Belder
c8b5f1e454
Simplify ErrBox-to-class mapping & hook it up to core json ops ( #7195 )
2020-08-26 18:48:04 +02:00
Bert Belder
aead9dc91e
Remove some more unnecessary 'to_string()' calls ( #7190 )
2020-08-26 01:13:20 +02:00
Bert Belder
9bfb0df805
refactor: remove OpError, use ErrBox everywhere ( #7187 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2020-08-26 00:22:15 +02:00
Kitson Kelly
c4d5b01acf
feat: update to TypeScript 4.0 ( #6514 )
2020-08-24 19:43:54 -04:00
Tuan Le
545ea8e217
fix(console): handle escape sequences when logging objects ( #7171 )
2020-08-24 12:38:21 -04:00
Rob Palmer
0cbf9bdbbd
Fix incorrect comment on useDefineForClassFields ( #6386 )
2020-08-24 18:37:30 +02:00
Casper Beyer
dcc7348090
test(cli): use assertThrows and assertThrowsAsync for chown tests ( #7106 )
2020-08-24 18:21:56 +02:00
Yoshiya Hinosawa
111a2fbe3e
refactor(cli/build.rs): extract ts version ( #7127 )
2020-08-24 17:52:05 +02:00
Bartek Iwańczuk
2600d5ac09
fix(doc): stack overflow for .d.ts files ( #7167 )
2020-08-23 15:48:35 +02:00
Bartek Iwańczuk
c1558beffb
upgrade: swc, dprint, deno_lint, deno_doc ( #7162 )
2020-08-23 13:57:09 +02:00
Nayeem Rahman
d444bd89db
fix(URL): Don't encode "'" in non-special query strings ( #7152 )
2020-08-21 22:35:34 -04:00
Bartek Iwańczuk
999e5cf3d4
v1.3.1
2020-08-21 18:11:33 +02:00
迷渡
9eca347f73
fix(docs): remove Deno.dir ( #7144 )
2020-08-21 15:56:12 +02:00
Nayeem Rahman
cf603be24c
fix: Allow isolated "%"s when parsing file URLs ( #7108 )
2020-08-21 15:37:06 +02:00
Kurt Mackey
cd67f7bdc8
fix: Create body stream from any valid bodySource ( #7128 )
...
Fixes #6752
2020-08-20 11:47:58 -04:00
Bartek Iwańczuk
be1e7ab532
refactor: move cli/doc/ to separate crate ( #7103 )
2020-08-19 19:13:43 +02:00
Luca Casonato
1507a8cf2d
refactor(op_crates/web): move abort signal ( #7117 )
2020-08-19 14:43:20 +02:00
Bert Belder
27f4aeb924
Make Rc/Arc wrapper around State/GlobalState visible ( #7104 )
2020-08-19 02:01:48 +02:00
Nayeem Rahman
015fa0bd41
refactor: permissions ( #7074 )
2020-08-18 16:29:32 -04:00
Bert Belder
f6e9150b33
Async op dispatcher support with 'stateful_json_op_(a)sync()' ( #7095 )
...
Closes: #7020
2020-08-18 20:50:52 +02:00
Bert Belder
b308a774e8
Fix nightly and Windows-only clippy warnings ( #7095 )
2020-08-18 20:50:52 +02:00
Bartek Iwańczuk
36c2855932
upgrade: swc, deno_lint, dprint ( #7098 )
2020-08-18 20:11:13 +02:00
Casper Beyer
3c986ca524
test(cli): use assertThrowsAsync for permission tests ( #7092 )
2020-08-18 11:05:51 -04:00
Bartek Iwańczuk
9f1dcc1a32
refactor(doc): add helper functions for DocNode ( #7083 )
2020-08-18 00:15:04 +02:00
crowlKats
b44b7a9a60
Blob.arrayBuffer returns uint8array ( #7086 )
2020-08-17 17:46:08 -04:00
Joel Chippindale
1f7d4089f9
Fix handling of multiple spaces in URLSearchParams ( #7068 )
...
This ensures that all spaces are set to be "+" in the string rather than
just the first and brings deno into line with how browsers handle spaces
in URLSearchParams, see #7001 .
2020-08-17 14:52:45 -04:00
Tomofumi Chiba
b684df784e
fix: add NO_PROXY
to deno help
and add test ( #7048 )
2020-08-15 09:48:29 -04:00
Casper Beyer
4b3a3d9d0f
Enable WebAssembly.instantiateStreaming ( #7043 )
2020-08-14 13:48:37 -04:00
Jarrett Helton
ac56512ba4
fix: Dash Value Treated As Arg ( #7039 )
2020-08-14 13:45:22 -04:00
Casper Beyer
238816d62f
refactor(cli/rt): inline single line single use open helper functions ( #7046 )
2020-08-14 13:43:11 -04:00
Kitson Kelly
27d8969847
chore: nightly clippy refactor in lint.rs ( #7045 )
2020-08-14 12:40:29 +02:00
Bartek Iwańczuk
b38c313276
v1.3.0
2020-08-13 12:10:13 -04:00
souldzin
d6cee70695
feat: Add "--json" flag to deno lint ( #6940 )
...
Co-authored-by: JackSkylark <jdslaughter44@gmail.com>
2020-08-13 17:30:46 +02:00
Bartek Iwańczuk
08ab4d46ca
upgrade: swc, deno_lint, dprint ( #7040 )
2020-08-13 11:03:16 -04:00
Divy Srivastava
ad4af23aba
unify path normalization utility ( #6865 )
2020-08-12 16:34:17 -04:00
Ryan Dahl
c4d9c6aa4b
upgrade: TypeScript to 3.9.7 ( #7036 )
2020-08-12 20:49:02 +02:00
Jarrett Helton
de4e1fbdf0
feat: add support for --no-check flag in Deno install ( #6948 )
2020-08-12 14:22:06 -04:00
Nayeem Rahman
18ec1290af
feat: Support file URLs in Deno.run for executable ( #6994 )
2020-08-12 14:20:34 -04:00
Bert Belder
3d70a2b94e
upgrade: Rust crates
...
The following crates were _not_ upgraded to avoid having multiple
versions of the same crate in the dependency tree:
* tokio-tungstenite v0.10.1 -> v0.11.0
* swc_common v0. 8.0 -> v0. 9.1
* swc_ecmascript v0. 1.0 -> v0. 3.0
* webpki-roots v0.19.0 -> v0.20.0
* nix v0.17.0 -> v0.18.0
2020-08-12 17:45:15 +02:00
Jarrett Helton
c4edd09816
feat(bundle): add support for --reload flag ( #6996 )
2020-08-12 17:32:03 +02:00
Ryan Dahl
f5a4f1fdc0
Undo JsonOpDispatcher and OpDispatcher traits ( #7023 )
...
This reverts commit f83d672ffa
.
This reverts commit d51972377c
.
2020-08-12 16:44:58 +02:00
Divy Srivastava
6706eb5515
feat: add "--ignore" to deno lint ( #6934 )
2020-08-12 15:47:44 +02:00
Nayeem Rahman
fed70c9903
feat: deno info --reload ( #7009 )
2020-08-12 12:58:50 +02:00
Prabhanjan
b344a7f81f
fix: URLSearchParams.toString() behaviour is different from browsers ( #7017 )
2020-08-12 12:08:24 +02:00
Paul Thompson
eed77aa020
feat(web): FileReader API ( #6673 )
2020-08-11 14:00:53 +02:00
Valentin Anger
d7077b9073
doc: Remove detailed / summary distinction ( #6818 )
2020-08-11 11:06:55 +02:00
迷渡
dad74c3706
remove unnecessary await in docs ( #7012 )
2020-08-10 23:22:10 -04:00
Luca Casonato
da98f9e3a1
fix(unstable): add missing globals to diagnostics ( #6988 )
2020-08-10 18:08:12 -04:00
Ryan Dahl
7d01fcbb77
Remove unnecessary drop calls ( #7007 )
2020-08-10 17:31:05 -04:00
Nayeem Rahman
52c1017a74
feat: Stabilize Deno.mainModule ( #6993 )
2020-08-10 16:41:51 -04:00
Bartek Iwańczuk
6fcf06306e
feat(doc): handle imports ( #6987 )
...
This commit adds additional objects to JSON output
of "deno doc" command to facilitate linking between
types in different modules.
2020-08-10 17:41:19 +02:00
uki00a
67fe8cd848
fix: console.log should see color codes when grouping occurs ( #7000 )
2020-08-09 19:09:09 -04:00
Ryan Dahl
92a173bca6
v1.2.3
2020-08-08 18:59:16 -04:00
Bert Belder
604d008190
test(cli/wasm_unreachable): don't assume git work dir is named 'deno' ( #6991 )
2020-08-08 22:06:44 +02:00
Bert Belder
febb972dd4
test(cli/stat_test): older versions of Linux don't support birthtime
( #6991 )
2020-08-08 22:06:44 +02:00
Bert Belder
f17eb634fa
test(cli/inspector_port_collision): skip test on WSL ( #6991 )
2020-08-08 22:06:44 +02:00
Bert Belder
9806933f57
test(cli/inspector_port_collision): fail rather than hang ( #6991 )
2020-08-08 22:06:44 +02:00
Bert Belder
f22b7dc783
fix(cli): show error on unrecognized V8 flag, exit on --help ( #6980 )
2020-08-08 21:23:21 +02:00
Bartek Iwańczuk
165928d5dc
upgrade: deno_lint v0.1.21 ( #6985 )
2020-08-08 16:20:21 +02:00
Bartek Iwańczuk
59ca66a207
Encode op errors as strings instead of numbers ( #6977 )
2020-08-07 16:47:18 -04:00
Nayeem Rahman
479164d287
fix(deno info): Never type check ( #6978 )
2020-08-07 16:46:54 -04:00
Bartek Iwańczuk
41215eb29c
Op crate for Web APIs ( #6906 )
...
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
2020-08-07 16:55:02 +02:00
Luca Casonato
f6cd36f8c8
fix: add missing globals to unstable diagnostics ( #6960 )
2020-08-05 16:17:45 -04:00
Luca Casonato
ce7808baf0
feat(cli): custom http client for fetch ( #6918 )
2020-08-05 20:44:03 +02:00
Luca Casonato
91ed614aa8
fix(cli/dts): MDN attribution in JSDoc for Console.dirxml ( #6961 )
2020-08-05 20:21:20 +02:00
Bartek Iwańczuk
55ea9c7e85
refactor: remove repeated code in main.rs ( #6954 )
2020-08-04 16:08:41 +02:00
josephrocca
8bacd710db
docs: Removed unnecessary await
( #6951 )
2020-08-04 12:16:04 +02:00
Maayan Hanin
5fc5e7b54a
fix(cli): add support for non-UTF8 source files ( #6789 )
...
Fixes: #5542
2020-08-03 23:39:48 +02:00
Luca Casonato
9d50c5c1a6
feat: hash file names in gen cache ( #6911 )
2020-08-03 14:55:03 +02:00
Ryan Dahl
7446230e6b
v1.2.2
2020-07-31 15:14:25 -04:00
Bartek Iwańczuk
b718e6ff53
upgrade: deno_lint, dprint, swc ( #6928 )
...
This commit upgrades:
deno_lint 0.1.20
dprint-plugin-typescript 0.25.0
swc_ecmascript 0.1.0
SWC is no longer reexported from dprint nor deno_lint.
2020-07-31 16:59:22 +02:00
Nayeem Rahman
6e7208bec2
fix(cli/rt): Fix file URL to path conversion on Windows ( #6920 )
2020-07-30 18:37:26 -04:00
Divy Srivastava
0da4779b17
feat(unstable): add "--ignore" flag to deno fmt ( #6890 )
2020-07-30 12:09:08 -04:00
Bartek Iwańczuk
c691713394
refactor: Use SWC to strip types for "--no-check" flag ( #6895 )
2020-07-28 22:33:23 +02:00
Bartek Iwańczuk
315efbc0e8
fix: downcast from SwcDiagnosticBuffer to OpError ( #6909 )
2020-07-28 15:08:13 -04:00
Kitson Kelly
076547fbbb
chore: use matches macro for bool matches ( #6904 )
2020-07-28 09:50:45 -04:00
Mark Tiedemann
9f3ab4dca7
Shorten Windows file description ( #6881 )
2020-07-26 10:39:34 -04:00
Trivikram Kamat
017aa1ca1b
chore: remove TODO about manual JSON parsing ( #6878 )
2020-07-26 14:55:39 +02:00
Bartek Iwańczuk
69552b1def
upgrade: deno_lint v0.1.17 ( #6869 )
2020-07-25 17:47:55 +02:00
Bartek Iwańczuk
b45f9a7357
fix: deno-types directive should have higher precedence than X-TypeScript-Types header ( #6761 )
2020-07-24 14:21:36 +02:00
Ryan Dahl
25a0ad3e16
v1.2.1
2020-07-24 06:32:48 -04:00
Nayeem Rahman
a8f74aa381
fix: Improve URL compatibility ( #6807 )
...
- Fix protocol regex.
- Truncate repeated leading slashes in file paths.
- Make drive letter support platform-independent.
- Drop the hostname if a drive letter is parsed.
- Fix drive letter normalization and basing.
- Allow basing over the host.
- Fix same-protocol basing.
- Remove Windows UNC path support.
- Reverts #6418 . This is non-standard. Wouldn't be too much of a problem but it
makes other parts of the spec hard to realize.
2020-07-23 21:37:11 -04:00
Nayeem Rahman
b61347b255
fix(cli/js/ops/fs_events): Ignore polling errors caused by return() ( #6785 )
2020-07-23 21:33:52 -04:00
Ryan Dahl
c2507d95f5
Align cargo dependency features ( #6860 )
2020-07-23 13:20:08 -04:00
Ryan Dahl
218be6a269
Don't use window.__base64. Combine deno_ns scripts. ( #6858 )
2020-07-23 11:12:25 -04:00
Ryan Dahl
ca4dcb36dd
Rename cli/js2 to cli/rt ( #6857 )
2020-07-23 16:27:26 +02:00
Bartek Iwańczuk
b449964d1a
refactor: remove more compiler runtime code ( #6841 )
2020-07-23 15:29:36 +02:00
Bartek Iwańczuk
b573bbe447
upgrade: tokio 0.2.22 ( #6838 )
2020-07-23 00:23:52 +02:00
Casper Beyer
587eefe773
test(cli/unit): remove rogue console.log statement ( #6846 )
2020-07-22 16:46:43 -04:00
Ryan Dahl
f8695b493d
Add web APIs to cli/js2/README.md ( #6842 )
2020-07-22 19:30:59 +02:00
Ryan Dahl
69706331a5
clean up set_binary_metadata ( #6811 )
2020-07-22 13:19:37 -04:00
Ryan Dahl
bf9930066d
Reduce size of TypeScript Compiler snapshot ( #6809 )
...
This PR is intentionally ugly. It duplicates all of the code in cli/js2/ into
cli/tsc/ ... because it's very important that we all understand that this code
is unnecessarily duplicated in our binary. I hope this ugliness provides the
motivation to clean it up.
The typescript git submodule is removed, because it's a very large repo and
contains all sorts of stuff we don't need. Instead the necessary files are
copied directly into the deno repo. Hence +200k lines.
COMPILER_SNAPSHOT.bin size
```
master 3448139
this branch 3320972
```
Fixes #6812
2020-07-22 12:03:46 -04:00
crowlKats
9d13b539b5
Fix lastModified for DomFile in FormData ( #6830 )
2020-07-22 08:04:35 -04:00
Ryan Dahl
2460689b1a
Remove deno_typescript ( #6813 )
2020-07-20 19:49:57 -04:00
crowlKats
903d28f872
Remove duplicate code and allow filename overwrite for DomFile ( #6817 )
2020-07-20 11:29:47 -04:00
Bartek Iwańczuk
fa61956f03
Port internal TS code to JS ( #6793 )
...
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
2020-07-19 19:49:44 +02:00
Bert Belder
faa64edaf4
Upgrade to rusty_v8 0.7.0 ( #6801 )
2020-07-19 01:47:45 +02:00
Luca Casonato
071a6e284a
Share reqwest client between fetch calls ( #6792 )
2020-07-18 15:05:08 -04:00
Bartek Iwańczuk
6e34f6a7cc
fix: providing empty source code for missing compiled files ( #6760 )
...
This commit adds a fallback mechanism for absent compiled source file.
Because imported type declaration files are not emitted by TS compiler
and their imports are not elided users often hit "No such file or directory"
error. With this commit in such situation an empty source file will be
provided to V8 with a warning to the user suggesting using "import type"/
"export type" syntax instead.
2020-07-17 15:50:17 +02:00
JohannLai
d60f9c2549
fix(cli/js/web): IPv6 hostname should be compressed ( #6772 )
2020-07-16 12:08:29 -04:00
Ryan Dahl
6c637f04bf
refactor(cli): Remove dead code ( #6765 )
2020-07-16 10:53:58 +02:00
Bartek Iwańczuk
98e0ed54db
fix: ModuleSpecifier removes relative path parts ( #6762 )
2020-07-16 10:53:07 +02:00
Maayan Hanin
b0f2bd4a2d
fix(cli): add icon and metadata to deno.exe on Windows ( #6693 )
...
Co-authored-by: Mark Tiedemann <www.marktiedemann@gmail.com>
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
Co-authored-by: Bert Belder <bertbelder@gmail.com>
2020-07-15 21:54:38 +02:00
Bartek Iwańczuk
73a9036089
fix: panic for runtime error in TS compiler ( #6758 )
2020-07-15 14:23:17 +02:00
David Sherret
cde4dbb351
Use dprint for internal formatting ( #6682 )
2020-07-14 15:24:17 -04:00
Gurwinder Singh
f83d672ffa
refactor: new trait JsonOpDispatcher ( #6742 )
2020-07-14 14:22:02 -04:00
Gurwinder Singh
d51972377c
refactor: Make OpDispatcher a trait ( #6736 )
2020-07-13 16:19:51 -04:00
Bartek Iwańczuk
6af5149ea3
v1.2.0
2020-07-13 13:00:24 -04:00
Maayan Hanin
d619e3c7ac
fix(cli): don't panic when no "HOME" env var is set ( #6728 )
2020-07-13 18:24:54 +02:00
Bartek Iwańczuk
11560387bb
Revert "feat: move unstable Deno.permissions to navigator.permissions… ( #6729 )
...
* Revert "feat: move unstable Deno.permissions to navigator.permissions (#6244 )"
This reverts commit 202e7fa6ad
.
2020-07-13 18:23:24 +02:00
Marcos Casagrande
44187c81f4
test: ignore max buffer tests ( #6732 )
2020-07-13 15:40:48 +02:00
uki00a
4731f4800c
fix(Deno.ppid): improve error message when --unstable is missing ( #6717 )
2020-07-13 14:00:56 +02:00
Marcos Casagrande
1a96a96e10
feat(cli): add copy argument to Buffer.bytes ( #6697 )
2020-07-13 00:58:59 -04:00
Nayeem Rahman
63edeb1c36
fix(cli/js/web/url): Implement IPv4 hostname parsing ( #6707 )
2020-07-13 00:56:45 -04:00
Marcos Casagrande
4aeac64ecd
fix(cli/fetch): fix relative redirect ( #6715 )
2020-07-13 00:53:36 -04:00
Kitson Kelly
dd59bf5fc3
fix: more tolerant performance.measure unit tests ( #6726 )
...
Fixes #6725
2020-07-13 00:50:57 -04:00
Oscar Linde
3be2064803
feat(cli): add DENO_CERT environment variable ( #6370 )
2020-07-12 19:18:27 -04:00
simwipado
e1d8140552
feat(install): add --config flag ( #6204 )
...
This commits adds support for "--config" flag in "deno install"
subcommand. Specified configuration file is copied alongside
source code to installation directory.
2020-07-12 15:05:47 +02:00
Valentin Anger
3374c73fba
feat(doc): Improve terminal printer ( #6594 )
...
- Add more support for generics
- Add the --private flag - displays documentation for
not exported and private nodes
- Display more attributes like abstract, static and readonly
- Display type aliases
- Refactor module to use the Display trait
- Use a bit more color
2020-07-12 14:16:33 +02:00
Bartek Iwańczuk
871f9255e3
fix: harden pragma and reference parsing in module analysis ( #6702 )
2020-07-11 18:30:30 +02:00
Bartek Iwańczuk
a26b4a9f1e
chore: reenable ignored integration tests ( #6703 )
2020-07-11 18:29:55 +02:00
Bartek Iwańczuk
98f6a5a47d
chore: upgrade deno_lint, remove direct dprint dep ( #6679 )
...
This PR removes direct dependency on dprint-plugin-typescript
and swc_ecma_visit. Both of these dependencies have been
pushed out to deno_lint crate. This should make it a bit easier
to do the upgrades and prevent having conflicting crate requirements.
2020-07-11 11:47:06 +02:00
Nayeem Rahman
5ec41cbcc2
feat(Deno.inspect): Add sorted, trailingComma, compact and iterableLimit to InspectOptions ( #6591 )
2020-07-11 00:52:18 -04:00
Kitson Kelly
40d081d3d9
feat: add performance user timing APIs ( #6421 )
2020-07-10 22:38:15 -04:00
Nayeem Rahman
69e0886362
fix(URL): Implement spec-compliant host parsing ( #6689 )
2020-07-10 15:51:24 -04:00
Marcos Casagrande
39dba12a06
fix(cli/buffer): allow Buffer to store MAX_SIZE bytes ( #6570 )
2020-07-10 11:49:35 -04:00
Sebastien Filion
1bcc35b84a
feat(unstable): add Deno.consoleSize ( #6520 )
2020-07-10 10:07:12 -04:00
Maayan Hanin
edb7a0eead
fix(cli): panic when stdio is null on windows ( #6528 )
...
Fixes: #6409
2020-07-09 21:06:51 +02:00
Kitson Kelly
202e7fa6ad
feat: move unstable Deno.permissions to navigator.permissions ( #6244 )
2020-07-09 05:00:18 -04:00
Valentin Anger
be7e0f2d49
BREAKING(core): Remove control slice from ops ( #6048 )
2020-07-08 11:23:50 -04:00
Emmanuel
cbbd944359
feat(cli): json option for "deno info" ( #6372 )
2020-07-08 10:50:12 -04:00
uki00a
a2bf61d1ae
feat(unstable): Deno.ppid ( #6539 )
2020-07-08 10:35:45 -04:00
Marcos Casagrande
231899695d
feat(cli): Add WriteFileOptions to writeTextFile & writeTextFileSync ( #6280 )
2020-07-08 09:38:22 -04:00
Kitson Kelly
82aabb657a
feat: add --no-check option ( #6456 )
...
This commit adds a "--no-check" option to following subcommands:
- "deno cache"
- "deno info"
- "deno run"
- "deno test"
The "--no-check" options allows to skip type checking step and instead
directly transpiles TS sources to JS sources.
This solution uses `ts.transpileModule()` API and is just an interim
solution before implementing it fully in Rust.
2020-07-08 11:26:39 +02:00
Marcos Casagrande
e4899b6ba4
perf(cli/body): improve .arrayBuffer() speed ( #6669 )
2020-07-07 22:25:34 -04:00
Sebastien Filion
4534db656d
feat(test): Add support for regex in filter flag ( #6343 )
...
Currently, the documentation makes it sound like the test subcommand's filter
flag could accept some kind of pattern matching value like a glob or a regex,
although the function "createFilterFn" accepts a regex as an argument, there's
no way to pass an actual regex value from the CLI.
This commit makes it possible to pass a string that could be cast as regex
when string matches "^/.*/$".
With this change, a user can use the filter flag as follow:
deno test --filter "/test-.+/"
Also tested that `\` get escaped properly, on MacOS at least, and this is
also a valid flag:
deno test --filter "/test-\d+/"
2020-07-07 15:13:38 +02:00
Takahiko Inayama
14a44464a6
feat: add lockfile support to bundle ( #6624 )
2020-07-07 13:05:28 +02:00
Nayeem Rahman
61d9952ff9
fix(cli/js/process): Fix process socket types ( #6676 )
2020-07-07 12:21:49 +02:00
Stanislav
158ae0bfe9
clean up code in cli/js ( #6611 )
2020-07-06 21:45:39 -04:00
uki00a
ab4c574f52
fix: Deno.setRaw shouldn't panic on ENOTTY ( #6630 )
2020-07-06 18:26:34 -04:00
crowlKats
2b52e3daf1
feat: deno upgrade --output ( #6352 )
2020-07-06 18:21:26 -04:00
Ryan Dahl
5c43131be1
Fix definition of URL constructor ( #6653 )
2020-07-06 17:39:13 -04:00
Ryan Dahl
8788553247
chore: Only use one set of tokio features ( #6655 )
2020-07-06 09:53:36 -04:00
dubiousjim
6b78729ba8
feat: Deno.chown() make uid, gid args optional ( #4612 )
2020-07-06 13:15:13 +02:00
Jacob Gee-Clarke
79610378d3
feat(cli): Added support for the --cert flag with 'deno upgrade' ( #6609 )
2020-07-05 23:58:23 -04:00
Bartek Iwańczuk
d1289db1c3
chore: re-enable tests using media_types ( #6642 )
2020-07-05 23:09:50 -04:00
Marcos Casagrande
3b4260dc54
fix(cli/fetch): response constructor default properties ( #6650 )
2020-07-05 21:37:18 -04:00
Kitson Kelly
4f60a0b3bd
chore: improve type safety of cli/js/compiler ( #6647 )
2020-07-05 20:13:27 -04:00
Marcos Casagrande
f85a0ce634
refactor(cli/body): use Deno.Buffer in bufferFromStream ( #6632 )
2020-07-05 18:05:38 -04:00
Bert Belder
e4e80f20c2
fix(tools): command line args parsing bug, unused function parameter ( #6629 )
2020-07-04 19:15:03 -04:00
Kyle June
d52e4007c8
Update timers to ignore Date Override ( #6552 )
2020-07-04 15:16:27 -04:00
Ryan Dahl
5f9e600c5b
chore: port http_server.py to rust ( #6364 )
2020-07-04 13:05:01 -04:00
Casper Beyer
fca492907c
test(cli): enable realpath symlink tests on Windows ( #6627 )
2020-07-04 16:54:20 +02:00
Bartek Iwańczuk
be07aaed84
v1.1.3
2020-07-03 15:35:19 -04:00
Bartek Iwańczuk
2b0dc32718
upgrade: dprint-typescript-plugin 0.19.5, deno_lint 0.1.15 ( #6614 )
2020-07-03 15:55:34 +02:00
Kitson Kelly
2527a6e296
fix: move ImportMeta to deno.ns lib ( #6588 )
2020-07-03 12:44:45 +02:00
Bartek Iwańczuk
cc12e86fe3
refactor: lock file ( #6569 )
...
- refactor lock file creation
- provide deterministic output in lock file (alphabetically sorted)
- dynamic imports are checked against lock file
2020-07-02 17:54:51 +02:00
Jacob Gee-Clarke
74c260517a
fix: net permissions didn't account for default ports ( #6606 )
2020-07-02 10:16:41 -04:00
Casper Beyer
8a14eafaff
doc: add unstable note to Deno.ftruncateSync and ftruncate ( #6590 )
2020-07-02 09:34:19 -04:00
Bartek Iwańczuk
851344f2ed
upgrade: swc_ecma_visit, dprint, deno_lint ( #6580 )
2020-07-01 16:04:56 +02:00
Kitson Kelly
062d1a41ea
refactor: Improvements to TsCompiler and its tests ( #6576 )
2020-06-30 13:10:51 +02:00
Andrey Filatkin
a690a20679
fix(cli/upgrade): upgrade fails on Windows with space in temp path ( #6522 )
2020-06-29 09:13:07 -04:00
Valentin Anger
db36857288
refactor: util functions take slices instead of heap values ( #6547 )
2020-06-29 14:17:37 +02:00
Valentin Anger
660f86f1a2
fix(cli/doc): doc printer missing [] around tuple type ( #6523 )
2020-06-28 10:35:12 -04:00
Marcos Casagrande
89ebe2079b
fix(cli/body): Maximum call stack size exceeded error ( #6537 )
2020-06-28 10:31:56 -04:00
Casper Beyer
aeadf8189a
fix(cli): change seek offset type from i32 to i64 ( #6518 )
2020-06-27 15:58:35 -04:00
David Sherret
0b28c80e9a
Update to dprint-plugin-typescript 0.19.3 ( #6527 )
2020-06-27 15:55:46 -04:00
Marcos Casagrande
6c093c0b5a
fix(cli): Buffer.bytes() ArrayBuffer size ( #6511 )
2020-06-27 13:52:27 +02:00
Nayeem Rahman
d77a55a973
fix(cli/js/process): Fix conditional types for process sockets ( #6275 )
2020-06-27 13:44:02 +02:00
Bartek Iwańczuk
5bc130be27
v1.1.2
2020-06-26 17:45:12 -04:00
Maayan Hanin
598a7dcc84
fix(cli/permissions): panic on hostless URLs ( #6500 )
2020-06-26 17:37:03 -04:00
Ryan Dahl
42464e922d
'Compile' messages changed to 'Check' messages ( #6504 )
2020-06-26 16:59:08 -04:00
Bert Belder
e10d74a3d3
Upgrade to rusty_v8 0.4.2 / V8 8.5.216 ( #6503 )
2020-06-26 20:17:15 +02:00
Bert Belder
0c735ebdc7
Fix clippy warning ( #6503 )
2020-06-26 20:16:49 +02:00
Andrey Filatkin
b049504bee
fix(cli/disk_cache): Support UNC paths in the typescript DiskCache ( #6495 )
2020-06-26 13:25:13 -04:00
Casper Beyer
e278c90d8a
feat(unstable): add Deno.fdatasyncSync and fdatasync ( #6403 )
2020-06-26 08:36:35 -04:00
Nayeem Rahman
ed0b1d4627
fix(cli/js/web/url): Support UNC paths on Windows ( #6418 )
2020-06-26 08:34:17 -04:00
Casper Beyer
175867ab76
fix(cli): strings shouldn't be interpreted as file URLs ( #6412 )
2020-06-26 08:29:34 -04:00
Kitson Kelly
70463bac7d
fix: Omit buildinfo when --reload passed ( #6489 )
2020-06-26 08:23:25 -04:00
Bartek Iwańczuk
4817c153e4
Re-land "fix(cli): ipv6 parsing for --allow-net params" ( #6472 )
...
With some minor adjustments
2020-06-26 08:09:02 -04:00
Ali Hasani
150c04aea7
remove duplicate identifier ( #6483 )
2020-06-25 21:14:42 +02:00
Luca Casonato
4102a19585
fix: panic when process stdio rid is 0 or invalid ( #6405 )
2020-06-25 12:38:19 -04:00
Kitson Kelly
6f09b8de41
Restore stats for incremental compile ( #6474 )
2020-06-25 15:50:16 +02:00
Casper Beyer
a455a0babf
Fix readLinkSync and readLink tests on Windows ( #6463 )
2020-06-25 07:27:23 -04:00
Casper Beyer
ab0f12fcb8
Remove stale comment referring to deleted code ( #6462 )
2020-06-25 07:08:42 -04:00
Casper Beyer
87f8f99c49
refactor(cli/tests/unit) to use assertThrows ( #6459 )
2020-06-25 00:57:08 +02:00
Bartek Iwańczuk
6bbe52fba3
Revert "fix(cli): ipv6 parsing for --allow-net params ( #6453 )" ( #6458 )
2020-06-25 00:41:13 +02:00
Ryan Dahl
0620862605
Clean up some fetch_remote_source tets ( #6446 )
2020-06-24 14:12:04 -04:00
Bartek Iwańczuk
3cbd1075c7
Incremental compilation for TypeScript ( #6428 )
...
This commit adds incremental compilation capabilities to internal TS compiler.
Instead of using "ts.createProgram()" API for compilation step (during deno
startup), "ts.createIncrementalProgram()" API is used instead.
Thanks to TS' ".tsbuildinfo" file that already stores all necessary metadata
for compilation I was able to remove our own invention that is ".graph" file.
".tsbuildinfo" file is stored alongside compiled source and is used to
cache-bust outdated dependencies, facilitated by the "version" field.
The value for "version" field is computed in Rust during loading of module
graph and is basically a hash of the file contents.
Please keep in mind that incremental compilation is only used for initial
compilation (or dynamic imports compilation) - bundling and runtime compiler
APIs haven't been changed at all.
Due to problems with source map I changed compilation settings to inline
source map (inlineSourceMap instead of sourceMap).
2020-06-24 16:59:12 +02:00
Nayeem Rahman
3314b46321
fix(cli/js/web/console): Improve string quoting behaviour ( #6457 )
2020-06-24 09:47:05 -04:00