Bartek Iwańczuk
e60922981b
Revert "Deno.bundle supports targets < ES2017. ( #6328 )" ( #6342 )
...
This reverts commit 75bb9dbdfc
.
2020-06-17 19:44:40 +02:00
Kitson Kelly
75bb9dbdfc
Deno.bundle supports targets < ES2017. ( #6328 )
...
This commit provides a "system_loader_es5.js" bundle loader which will be added
to the bundle when the target is < ES2017, which is the minimum target syntax
required for "system_loader.js".
Supports #5913 (via Deno.bundle()) with a couple caveats:
* Allowing "deno bundle" to take a different target is not supported, as we
specifically ignore "target" when passed in a TypeScript config file. This is
because deno bundle is really intended to generate bundles that work in Deno.
It is an unintentional side effect that some bundles are loadable in browsers.
* While a target of "es3" will be accepted, the module loader will still only be
compatible with ES5 or later. Realistically no one should be expecting bundles
generated by Deno to be used on IE8 and prior, and there is just too much
"baggage" to support that at this point.
2020-06-17 15:13:02 +02:00
Bartek Iwańczuk
e88d72f101
chore: remove glob dependency ( #6317 )
2020-06-16 17:29:43 -04:00
skdltmxn
b3c72d1e45
feat(std/hash): reimplement all hashes in WASM ( #6292 )
2020-06-16 17:12:50 -04:00
Bartek Iwańczuk
b8872cd303
fix(cache): apply redirection limit for cached files ( #6308 )
2020-06-15 23:46:48 +02:00
Ryan Dahl
c54dec8576
Fix DENO_DIR docs ( #6271 )
2020-06-15 18:29:39 +02:00
Peter Evers
fc850b11e5
unixpacket should also return byte length on send ( #6291 )
2020-06-15 12:20:45 -04:00
Bartek Iwańczuk
b1893e65f2
fix(compiler): JSX compilation and provide better error message ( #6300 )
2020-06-15 17:53:05 +02:00
Luca Casonato
0ffc99a61d
Move to allowlist and blocklist ( #6282 )
2020-06-13 13:09:39 -04:00
Kermit Xuan
77545219a6
fix: DatagramConn.send should return bytes sent ( #6265 )
2020-06-13 10:14:31 -04:00
Nayeem Rahman
1fff6f55c3
refactor: Don't destructure the Deno namespace ( #6268 )
2020-06-12 15:23:38 -04:00
Bartek Iwańczuk
7d41bacfba
v1.1.0
2020-06-12 18:43:09 +02:00
Nayeem Rahman
e613bfe47a
feat: Add TestDefinition::only ( #5793 )
2020-06-12 11:58:04 -04:00
Jaap Aarts
3eee961473
document "deno run -" ( #6256 )
2020-06-12 10:59:51 -04:00
Bartek Iwańczuk
07bf90779b
feat(lint): add --rules flag ( #6264 )
2020-06-12 16:42:12 +02:00
Ryan Dahl
e9424bf6b5
Revert "feat: add Deno.osName()" ( #6261 )
...
Deno.build.os provides the same functionality
This reverts commit 6ccf9037a6
.
2020-06-12 09:53:53 -04:00
Casper Beyer
b34f468943
improve truncate tests ( #6251 )
2020-06-12 09:40:06 -04:00
Bartek Iwańczuk
c073f552d9
docs(lint): add entry in manual ( #6258 )
2020-06-12 15:31:04 +02:00
Ryan Dahl
d0970daacd
make std deno-lint clean ( #6240 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2020-06-12 09:19:29 -04:00
Chris Knight
ca1c2ee822
doc: fix inspect example with correct InspectOptions ( #6255 )
2020-06-12 14:40:32 +02:00
Casper Beyer
9285221452
fix(cli/js): broken truncate permission tests ( #6249 )
...
The tests for testing that `Deno.truncateSync` and `Deno.truncate`
require write permissions seem to not call the functions they are
testing *at all* and are calling `Deno.mkdir` and `Deno.mkdirSync`
instead.
This commit replaces those calls with calls to `Deno.truncateSync`
and `Deno.truncate` respectively.
2020-06-12 14:25:07 +02:00
Bartek Iwańczuk
e7054d50f0
update: deno_lint to v0.1.10 ( #6248 )
...
* update: deno lint to v0.1.10
* Parallelize "deno lint" subcommand
2020-06-12 01:44:17 +02:00
Rubin Bhandari
6ccf9037a6
feat: add Deno.osName() ( #5714 )
2020-06-11 13:11:26 -04:00
River
818a801092
feat: URL support in Deno filesystem methods ( #5990 )
2020-06-11 12:36:20 -04:00
Casper Beyer
813210d433
fix: WebAssembly runtime error propagation ( #6137 )
...
Currently WebAssembly runtime errors don't propagate up to the user as
they use urls to denote where the error occurred which get caught by the source-map
pipeline which doesn't support the wasm scheme.
2020-06-11 11:03:27 -04:00
Jaap Aarts
5ee2ce1b1c
feat: allow reading the entry file from stdin ( #6130 )
2020-06-11 10:58:09 -04:00
John Gardner
ca5b5ba530
feat: Add Deno.mainModule ( #6180 )
2020-06-10 23:00:29 -04:00
Bartek Iwańczuk
e4e332abbb
feat(lint): use default globs, upgrade to v0.1.9 ( #6222 )
...
This commit:
* added default file globs so "deno lint" can be run
without arguments (just like "deno fmt")
* added test for globs in "deno lint"
* upgrade "deno_lint" crate to v0.1.9
2020-06-10 23:29:48 +02:00
Josh Byrnes
408edbb065
fix(URL): IPv6 hostname support ( #5766 )
2020-06-10 14:05:10 -04:00
Casper Beyer
be8bacaaa4
fix: Remove try-catch from Buffer.readFrom, readFromSync ( #6161 )
2020-06-10 11:54:54 -04:00
Ryan Dahl
54c3f8e27f
fix udp BorrowMutError ( #6221 )
2020-06-10 11:26:28 -04:00
Nayeem Rahman
8f050355ff
fix(cli/js/process): Always return a code in ProcessStatus ( #5244 )
2020-06-10 11:10:08 -04:00
Bartek Iwańczuk
4b7d3b060e
fix: several regressions in TS compiler ( #6177 )
...
This commit fixes several regressions in TS compiler:
* double compilation of same module during same process run
* compilation of JavaScript entry point with non-JS imports
* unexpected skip of emit during compilation
Additional checks were added to ensure "allowJs" setting is
used in TS compiler if JavaScript has non-JS dependencies.
2020-06-10 16:02:41 +02:00
Bartek Iwańczuk
db70b77e4b
fix: handle @deno-types in export {} ( #6202 )
...
* fix: handle @deno-types in export {}
* lint
* fix tests
* fmt
* fix test
2020-06-10 14:19:41 +02:00
Bartek Iwańczuk
8366f36873
upgrade: deno_lint v0.1.8 ( #6208 )
2020-06-09 18:40:08 +02:00
Casper Beyer
1e0808d501
fix: Deno.readSync on stdin ( #6126 )
...
Currently sync operations on stdin are failing because tokio::Stdin
cannot be converted to a std::File.
This commit replaces tokio::stdin with a raw file descriptor
wrapped in a std::fs::File which can be converted to a
tokio::File and back again making the synchronous version
of op_read actually work.
2020-06-09 18:29:12 +02:00
Tuan Le
878f306a39
feat(cli): Add Deno.env.delete() ( #5859 )
2020-06-09 14:58:30 +02:00
Nayeem Rahman
44251ce8ea
fix(cli/js/web/worker): Disable relative module specifiers ( #5266 )
2020-06-09 14:33:52 +02:00
uki00a
2b2d800b43
feat(doc): display all overloads in cli details view ( #6186 )
2020-06-09 14:12:47 +02:00
Nayeem Rahman
b3e189ee4f
fix(cli/js/process): Strengthen socket types based on pipes ( #4836 )
2020-06-09 13:18:18 +02:00
Jack Kelly
cb29f7f323
test: fixed initial [WILDCARD]
not matching empty the on first line ( #5420 )
2020-06-08 19:24:27 +02:00
Peter Indiola
6236252c66
feat(cli/js/net): make rid on listener public ( #5571 )
2020-06-08 18:24:51 +02:00
Marcos Casagrande
d907133944
fix(cli/web/fetch): multipart/form-data request body support for binary files ( #5886 )
2020-06-08 18:08:26 +02:00
Faycel
4feccdd3b7
Adjusting the HTTPS_PROXY flag text ( #6103 )
2020-06-08 12:06:06 -04:00
Bartek Iwańczuk
0e9da7e731
feat: "deno lint" subcommand ( #6125 )
2020-06-08 14:06:20 +02:00
Akshat Agarwal
1e709387e4
Add "fork" method on DenoPermissions, PermissionState ( #5693 )
2020-06-06 16:56:21 +02:00
Filippo Rossi
78333f0ab3
Add diff for "deno fmt --check" ( #5599 )
2020-06-06 09:07:59 -04:00
Ryan Dahl
8a4533eb75
feat: deno eval -p ( #5682 )
2020-06-06 09:07:59 -04:00
Casper Beyer
ed5aedc6b4
Rename abbreviated assertions in std/testing ( #6118 )
2020-06-05 23:43:00 -04:00
Taisuke Fukuno
93175b7a79
added mjs files for default fmt ( #6134 )
2020-06-05 23:36:50 -04:00
Taisuke Fukuno
d2243b1125
deno test should run mjs files ( #6122 )
2020-06-05 17:01:44 -04:00
Bert Belder
18670c47e6
fix: 'deno upgrade' doesn't work on Windows 8.1/PowerShell 4.0 ( #6132 )
...
Fixes: #6109
2020-06-05 22:16:44 +02:00
Bert Belder
ee7727cd07
To find home dir, use only $USERPROFILE on Windows, $HOME on Posix ( #6132 )
...
$HOME is meaningless on Windows. It may be set by users or by third
party software, but it is non-standard and should not be relied upon.
Likewise, $USERPROFILE is meaningless on other platforms.
2020-06-05 22:15:05 +02:00
Ryan Dahl
78bfeebad1
Revert "fix: Use # to denote line number in stack traces" ( #6119 )
...
This reverts commit c4c6a8dae4
There is some controversy about this change because vscode doesn't interpret the fragments correctly. Needs more discussion before landing.
2020-06-05 11:37:40 -04:00
Andrew Mitchell
c4c6a8dae4
fix: Use # to denote line number in stack traces ( #6114 )
...
This makes the URLs in stack traces actual URLs to the files.
Before: https://deno.land/std/testing/asserts.ts:138:11
After: https://deno.land/std/testing/asserts.ts#138:11
2020-06-05 08:01:02 -04:00
Bert Belder
9a783ae4e6
ci: upgrade to Rust 1.44.0 ( #6113 )
2020-06-05 05:11:15 +02:00
Ryan Dahl
e3cc3db20f
Revert "feat: format deno bundle output ( #5139 )" ( #6085 )
...
This reverts commit 93cf3bd534
.
2020-06-04 08:36:25 -04:00
uki00a
9bd5c08d5a
feat(doc): handle detail output for enum ( #6078 )
2020-06-03 21:40:50 +02:00
David Sherret
fcae2fec87
Upgrade to swc_ecma_parser 0.24.5 ( #6077 )
2020-06-03 21:36:55 +02:00
Chris Knight
1ebd330927
doc: complete unstable documentation and make consistent ( #6074 )
2020-06-03 13:46:09 -04:00
Ryan Dahl
515d19d901
v1.0.5
2020-06-03 12:52:01 -04:00
David Sherret
445e44199b
Update to dprint 0.19.1 and swc_ecma_parser 0.24.3 ( #6068 )
2020-06-03 17:24:25 +02:00
Marcos Casagrande
a1915a0d4f
fix(fetch): Support 101 status code ( #6059 )
2020-06-03 09:43:11 -04:00
Ryan Dahl
23dc9c13db
Fix REPL BorrowMutError panic ( #6055 )
2020-06-02 16:37:52 -04:00
Ryan Dahl
b7b6e0674f
Remove unused check-only feature ( #6035 )
2020-06-02 14:56:21 -04:00
Bartek Iwańczuk
9c59a4b18c
v1.0.4
2020-06-02 15:48:17 +02:00
Kitson Kelly
3fe6bc1b82
fix: Better use of @ts-expect-error ( #6038 )
2020-06-02 00:24:44 -04:00
Ryan Dahl
8b1b4766a1
Move create_main_worker to MainWorker::create ( #6034 )
2020-06-01 22:44:17 -04:00
Ali Hasani
30785ed592
fix(bundle): better size output ( #5997 )
2020-06-01 18:42:12 -04:00
Matt Dumler
a4567e0e01
fix(doc): remove JSDoc comment truncation ( #6031 )
2020-06-01 18:40:51 -04:00
Ryan Dahl
b693ca7f7f
upgrade: crates ( #6032 )
2020-06-01 16:25:10 -04:00
Bartek Iwańczuk
c813990806
fix: compile TS dependencies of JS files ( #6000 )
...
This commit fixes regression that caused TS dependencies
not being compiled.
Check was added that ensures TS compiler is run if
any of dependencies in module graph is TS/TSX/JSX.
2020-06-01 21:01:51 +02:00
Valentin Anger
becbb56b19
feat(core): Ops can take several zero copy buffers ( #4788 )
2020-06-01 14:20:47 -04:00
精武陈真
f0ba814a79
fix jsDoc ( #5992 )
2020-06-01 09:53:43 -04:00
Marcos Casagrande
29db4104c4
fix(cli/web): Body.bodyUsed should use IsReadableStreamDisturbed
2020-06-01 14:37:46 +02:00
Marcos Casagrande
1d3dce9a68
fix(cli/js/web): formData parser for binary files ( #6015 )
2020-06-01 14:32:08 +02:00
Marcos Casagrande
edeeedf401
fix(cli/fetch): set null body for null-body status ( #5980 )
2020-05-31 19:21:14 -04:00
Marcos Casagrande
08552fc6b9
fix(fetch): network error on multiple redirects ( #5985 )
2020-05-31 16:13:53 -04:00
Marcos Casagrande
ecb94c06e9
fix Headers.name and FormData.name ( #5994 )
2020-05-31 16:07:24 -04:00
Bartek Iwańczuk
02d46bae9f
fix: media type for .cjs and application/node ( #6005 )
2020-05-31 21:08:26 +02:00
uki00a
464f5bf769
chore(cli/tests/unit/remove_test): remove duplicate codes between sync and async cases ( #6004 )
2020-05-31 13:19:56 -04:00
uki00a
64bd2768f7
fix( #4850 ): Deno.remove() fails to remove unix socket ( #5967 )
2020-05-30 14:48:26 -04:00
Bartek Iwańczuk
550556e948
fix: ES private fields parsing in SWC ( #5964 )
2020-05-30 17:32:48 +02:00
Chris Knight
8b037364ac
doc: add/update jsdoc for global functions ( #5963 )
2020-05-30 11:19:16 -04:00
Ryan Dahl
dad551a3a7
upgrade: Rust crates ( #5959 )
2020-05-30 11:35:44 +02:00
Marcos Casagrande
a82f24e9a8
test to check that resource handle is closed after stream is cancelled ( #5956 )
2020-05-30 01:02:41 -04:00
Ryan Dahl
d4b05dd89e
refactor: Split isolate and state using safe get_slot() ( #5929 )
2020-05-29 17:41:39 -04:00
Bartek Iwańczuk
106b001738
v1.0.3
2020-05-29 18:48:48 +02:00
Nayeem Rahman
8e39275429
fix(cli/permissions): Fix CWD and exec path leaks ( #5642 )
2020-05-29 17:27:43 +02:00
Bartek Iwańczuk
ad6d2a7734
refactor: TS compiler and module graph ( #5817 )
...
This PR addresses many problems with module graph loading
introduced in #5029 , as well as many long standing issues.
"ModuleGraphLoader" has been wired to "ModuleLoader" implemented
on "State" - that means that dependency analysis and fetching is done
before spinning up TS compiler worker.
Basic dependency tracking for TS compilation has been implemented.
Errors caused by import statements are now annotated with import
location.
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
2020-05-29 16:32:15 +02:00
Nayeem Rahman
49c7077401
fix(cli/js/error_stack): Expose Error.captureStackTrace ( #5254 )
2020-05-29 14:02:36 +02:00
Akshat Agarwal
ce246d8d85
feat(cli): deserialize Permissions from JSON ( #5779 )
2020-05-29 13:00:47 +02:00
Luca Casonato
02a6720527
Improved typechecking error for unstable props ( #5503 )
2020-05-29 12:45:20 +02:00
Kitson Kelly
2668637e9b
fix: REPL evaluates in strict mode ( #5565 )
...
Since everything that Deno loads is treated as an ES Module,
it means that all code is treated as "use strict" except for
when using the REPL. This PR changes that so code in the
REPL is also always evaluated with "use strict". There are
also a couple other places where we load code as scripts
which should also use "use strict" just in case.
2020-05-29 12:24:06 +02:00
Adam Odziemkowski
958f21e7ab
fix(cli): write lock file before running any code ( #5794 )
2020-05-29 02:43:31 -04:00
Peter Evers
fe7d6824c9
fix DenoBlob name ( #5879 )
2020-05-29 02:27:57 -04:00
uki00a
55311c33c4
chore(integration_tests): stop collecting unnecessary output in permissions tests ( #5926 )
2020-05-28 19:40:33 -04:00
David Sherret
dc6c07e3ed
fix(cli): Handle formatting UTF-8 w/ BOM files ( #5881 )
2020-05-28 13:35:24 -04:00
Speykious
6d9b06619d
improve indentation when displaying objects with console.log ( #5909 )
2020-05-28 09:04:43 -04:00
Marcos Casagrande
c9bbb200d6
formData: set default filename for Blob to <blob> ( #5907 )
2020-05-28 09:02:00 -04:00