1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-15 16:43:44 -05:00
Commit graph

5126 commits

Author SHA1 Message Date
Ergenekon Yiğit
4fa69e890e
fix: atob should throw dom exception (#5730) 2020-05-22 21:52:50 -04:00
Bartek Iwańczuk
526c9196e2
v1.0.2 2020-05-22 20:00:28 +02:00
Ali Hasani
1a6c541327
re-enable symlink tests on windows (#5746) 2020-05-22 13:37:25 -04:00
Bartek Iwańczuk
960f9ccb2e
fix: SWC lexer settings and silent errors (#5752)
This commit changes how error occurring in SWC are handled.
Changed lexer settings to properly handle TS decorators.
Changed output of SWC error to annotate with position in file.
2020-05-22 19:23:35 +02:00
Bartek Iwańczuk
e191c70989
fix: ts type imports (#5733) 2020-05-22 19:05:18 +02:00
Chris Knight
4b06e35765
doc: clarify and warn on Deno.read/write behaviour (#5743) 2020-05-22 12:56:12 -04:00
Bartek Iwańczuk
f9e45114b9
fix: redirects handling in module analysis (#5726)
This commit fixes a bug introduced in #5029 that caused bad 
handling of redirects during module analysis. 

Also ensured that duplicate modules are not downloaded.
2020-05-22 16:01:00 +02:00
David Sherret
ee71099492
fix(fmt): Do not panic on new expr with no parens. (#5734)
Closes #5567
2020-05-21 20:43:32 -04:00
Bartek Iwańczuk
491feb859f
fix: --inspect flag working like --inspect-brk (#5697) 2020-05-21 20:34:25 +02:00
moyinzi
8d8a2f573f
fix(std/http): file_server's target directory (#5695) 2020-05-21 13:55:18 -04:00
Khang Dinh
65f4e59122
typos (#5713) 2020-05-21 12:40:02 -04:00
skdltmxn
49c85a2c23
feat(std/hash): add md5 (#5719) 2020-05-21 12:39:32 -04:00
Bartek Iwańczuk
f98cc34c40
docs: add entry for 'deno info' (#5703) 2020-05-21 10:43:56 -04:00
Bhumij Gupta
88e8c32652
docd: Replace obsolete Deno.homeDir() with Deno.dir('home') (#5708) 2020-05-21 14:06:42 +02:00
Colin Harrington
aea5b12bae
ci: Errors in benchmarks should fail CI (#5422) 2020-05-21 13:08:43 +02:00
Bartek Iwańczuk
5f9c1c7da6
fix: disallow http imports for modules loaded over https (#5680) 2020-05-21 13:06:12 +02:00
Chris Schepman
bebb8c029f
docs: Update debugger.md (#5615) 2020-05-21 13:05:25 +02:00
JavaScriptDude
0f1c66cb6d
docs: update permissions docs (#5426) 2020-05-21 12:54:09 +02:00
Ryan Dahl
6f52ad9052
Move std/fmt/sprintf.ts to std/fmt/printf.ts (#4567) 2020-05-21 11:12:37 +02:00
Maple Miao
9fdc6dc435
docs: fix test glob pattern (#5661) 2020-05-21 01:02:32 -04:00
Marcos Casagrande
11e3d70c85
Remove duplicate test (#5687) 2020-05-20 21:40:43 -04:00
Marcos Casagrande
47b089ffa8
fix: streams hwm validation (#5681) 2020-05-20 20:18:43 -04:00
Ryan Dahl
30702e2678
move js unit tests to cli/tests (#5678) 2020-05-20 17:52:51 -04:00
Ryan Dahl
49dda23f6b
v1.0.1 2020-05-20 12:40:26 -04:00
Hendrik
765acd3170
Provide required arguments to walk in example. (#5668) 2020-05-20 12:24:02 -04:00
uki00a
6d7e3621da
fix: compilation error introduced by #4543 (#5673) 2020-05-20 12:15:41 -04:00
Ali Hasani
22da75b8e5
feat(std/node): first pass at url module (#4700) 2020-05-20 10:37:30 -04:00
Garrone Joseph
7630326b4c
feat(std/node) Export TextDecoder and TextEncoder from util (#5663) 2020-05-20 10:35:51 -04:00
uki00a
9b4da88a96
fix(std/io): BufReader should not share the internal buffer across reads (#4543) 2020-05-20 16:34:20 +02:00
Ali Hasani
ef14d62462
feat(std/bytes): add hasSuffix and contains functions, update docs (#4801) 2020-05-20 16:32:28 +02:00
David Sherret
91d576aa5a
Update dprint 0.18.4 (#5671)
Fixes trailing comma issue
2020-05-20 10:30:33 -04:00
Oliver Lenehan
662eb8f8c9
feat(std/fmt): rgb24 and bgRgb24 can use numbers for color (#5198) 2020-05-20 10:29:59 -04:00
Evan Hahn
f5c0188b5e
std/node: add util.callbackify (#5415)
This adds [Node's `util.callbackify`][0] to `std/node/util.ts`.

I lifted most of this from the [original Node source code][1] (and [its
tests][2]). I tried to make minimal modifications to the source.

I made a few arbitrary decisions:

- I was unable to do the function's types elegantly. I made overloads
  for functions that have 0 to 5 (inclusive) arguments, excluding the
  callback. I would love to know a better way to do this. (It seems that
  the folks at DefinitelyTyped [were also stumped][3], though maybe
  their solution is deliberate.)
- There are a few edge cases that cause custom Node errors to be
  produced. Instead of re-implementing those errors completely, I
  created simplified classes. These are mostly correct but are not
  identical to the real Node errors.
- The tests implement a possibly-arcane `TestQueue` class. I originally
  used a lot of inline promises but found it too repetitive.

Closes [#5366][4].

[0]: https://nodejs.org/api/util.html#util_util_callbackify_original
[1]: 4780493301/lib/util.js (L183-L226)
[2]: 4780493301/test/parallel/test-util-callbackify.js
[3]: 7d24857ddb/types/node/util.d.ts (L61-L84)
[4]: https://github.com/denoland/deno/issues/5366
2020-05-20 10:29:05 -04:00
Marcos Casagrande
7566aa8765
fix(std/log): await default logger setup (#5341) 2020-05-20 16:27:01 +02:00
Bartek Iwańczuk
8799855fdc
refactor: reorganize TS compiler (#5603) 2020-05-20 16:25:40 +02:00
Anil Seervi
f366e5e9bb
docs(std): fixed spelling mistake (#5662) 2020-05-20 13:20:20 +02:00
Marcos Casagrande
eb5acb39d5
feat(std/node): Add fs.promises.readFile (#5656) 2020-05-20 02:50:48 -04:00
Marcos Casagrande
62c34bc21e
fix(std/node) improve fs.close compatibility (#5649) 2020-05-19 19:01:06 -04:00
Ryan Dahl
0fb5f23466
fix(doc): crash on formatting type predicate (#5651) 2020-05-19 18:55:06 -04:00
moumni
949061c4b6
fix url (#5637) 2020-05-19 15:25:38 -04:00
zfx
7589d4d7c4
fix(multipart): fix error when parsing file name in utf8 format (#5428) 2020-05-19 14:22:26 -04:00
Speykious
9752b853dd
Provide better ANSI colorized output when inspecting objects (#5404) 2020-05-19 14:19:26 -04:00
uki00a
cdc9323ccc
fix: REPL does not exit properly when close() is called (#5451) 2020-05-19 13:33:11 -04:00
buckle2000
1be7ec47ac
Mark Deno.pid and Deno.noColor as const (#5593) 2020-05-18 21:51:54 -04:00
Ali Hasani
6072755ead
Implement Deno.symlink() for windows (#5533) 2020-05-19 00:46:02 +02:00
Matt Dumler
88b24261ba
adjust docs (#5598) 2020-05-18 15:53:25 -04:00
Nayeem Rahman
76ee5c7808
docs: Clarify external code vendoring (#5597) 2020-05-18 15:50:57 -04:00
Nayeem Rahman
93c2164673
Fix URL encoding (#5557) 2020-05-18 09:47:45 -04:00
Ali Hasani
c3ec16535f
Make Deno.remove() work with directory symlinks on windows (#5488) 2020-05-18 14:50:44 +02:00
Ryan Dahl
2a038eafcd
Revert "Fix definition of URL constructor (#5521)" (#5564)
This reverts commit 63bc468365.
2020-05-18 08:46:56 -04:00