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

372 commits

Author SHA1 Message Date
Marcos Casagrande
11e3d70c85
Remove duplicate test (#5687) 2020-05-20 21:40:43 -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
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
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
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
Ali Hasani
6072755ead
Implement Deno.symlink() for windows (#5533) 2020-05-19 00:46:02 +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
pontakornth
ce81064e4c
docs(std): Fix typo (#5582) 2020-05-18 12:10:19 +02:00
Andrey Trebler
2d5abbe909
fix(std/hash): SHA1 hash of Uint8Array (#5086) 2020-05-18 00:04:11 +02:00
Bert Belder
36fde75d77
Miscellaneous documentation and spelling improvements (#5527)
* Extended/updated documentation on code editor setup and plugins.
* Moved documentation to the right file.
* Fixed spelling errors in documentation and code.
* Updated broken links.

Co-authored-by: 迷渡 <justjavac@gmail.com>
Co-authored-by: AlfieriChou <alfierichou@gmail.com>
Co-authored-by: Anil Seervi <anil13112000@gmail.com
Co-authored-by: Bert Belder <bertbelder@gmail.com>
Co-authored-by: Fernando Basso <fernandobasso.br@gmail.com>
Co-authored-by: József Sallai <jozsef@sallai.me>
Co-authored-by: S4ltyGo4t <mario.weidner@gmx.de>
Co-authored-by: Tommy May <tommymay37@gmail.com>
Co-authored-by: Turbinya <wownucleos@gmail.com>
Co-authored-by: ᴜɴвʏтᴇ <i@shangyes.net>
2020-05-17 19:24:39 +02:00
Ali Hasani
eddb916883
Implement Deno.kill for windows (#5347) 2020-05-17 19:11:24 +02:00
Masahiro Miyashiro (3846masa)
63bc468365
Fix definition of URL constructor (#5521) 2020-05-17 11:37:16 -04:00
A.E Clarence
4db4a7fbcc
Improve moveSync jsdoc 2020-05-17 11:36:01 -04:00
Marcos Casagrande
4d3bcd807d
docs(std): Fix default value in comment (#5539) 2020-05-17 12:31:19 +02:00
Akash Vishwakarma
6257684da6
Fix spelling: "--alow-write" => "--allow-write" (#5486) 2020-05-16 20:36:13 +02:00
Anil Seervi
59cb3c14c7
Fixed Typo (#5495) 2020-05-16 09:31:21 -04:00
domharrington
b34628a26a
docs(std): Fix spelling mistake on permission (#5476) 2020-05-16 11:36:11 +02:00
Bert Belder
76a6a1ff46
Fix a bunch of spelling errors (#5314) 2020-05-16 00:36:49 +02:00
ddaza
15466c9007
improve chat example (#5474) 2020-05-15 17:00:31 -04:00
Henry Zhuang
e98b759446
improve deferred test (#5459) 2020-05-15 16:59:44 -04:00
Peter Indiola
0e4a927bcf docs(std/fmt): Fix typo (#5315) 2020-05-15 22:33:45 +02:00
Linus Unnebäck
8228ea85fd
refactor(fs): use every instead of reduce (#5323)
The previous usage of `reduce` was basically implementing the `every`

A small difference is that the new implementation will stop checking 
as soon as one element have returned false, which will reduce 
the number of unnecessary checks.
2020-05-15 20:53:23 +02:00
Claudio Cicali
f37967d229
fix link (#5333)
Replaced with the current master version
2020-05-15 10:13:33 -04:00
Tomasz Gałkowski
8440d765d5
fix: setTimeout and friends have too strict types (#5412) 2020-05-15 09:51:49 -04:00
Marcos Casagrande
ce57a1824d
feat(std/node): fs.writeFileSync polyfill (#5414) 2020-05-15 09:50:27 -04:00
Stéphane Klein
62a7fcbdc4
fix(std/testing): Provide message and diff for assertStrictEq (#5417)
closes #5416
2020-05-15 09:49:11 -04:00
skdltmxn
06f3268f3a
feat: add std/hash/fnv (#5403) 2020-05-15 09:42:19 -04:00
Anil Seervi
3e07e0b01d
Fix typos (#5441) 2020-05-15 08:52:01 -04:00
Juan Julián Merelo Guervós
f2e431c2b0
shorten example (#5448) 2020-05-15 08:51:15 -04:00
Evan Hahn
6f7e74d694
[std/node]: remove execute permissions from fs.ts (#5363) 2020-05-14 11:57:12 -04:00
Mike Nikles
0cbd432dc7
Add .css to the MEDIA_TYPES. (#5367) 2020-05-14 11:56:29 -04:00
Bert Belder
676be6632c
Fix flakiness in std file_server tests (#5306)
Fixes: #5275
2020-05-14 14:14:35 +02:00
Bartek Iwańczuk
c474d38354
std/0.51.0 (#5336) 2020-05-14 13:45:05 +02:00
Marcos Casagrande
524b1547b7
std/node fs.readFile should take string as option (#5316) 2020-05-14 07:04:07 -04:00
Dante Calderón
c3a205bae8
Fix typos across the repo (#5295)
Corrections made:
* cli/js/tests/README.md:44:7: corrected "discoveres" to "discovers"
* cli/js/tests/chown_test.ts:111:37: corrected "priviledge" to "privilege"
* cli/worker.rs:231:56: corrected "decendants" to "descendants"
* deno_typescript/lib.rs:136:50: corrected "emmited" to "emitted"
* core/es_isolate.rs:492:67: corrected "registerd" to "registered"
* core/isolate.rs:103:28: corrected "initalize" to "initialize"
* docs/runtime.md:29:14: corrected "ect" to "etc"
* docs/tools/debugger.md:122:16: corrected "implementes" to "implements"
* std/encoding/_yaml/dumper/dumper_state.ts:57:63: corrected "everwhere" to "everywhere"
* std/encoding/csv.ts:37:43: corrected "referal" to "referral"
* std/fmt/sprintf.ts:209:20: corrected "unusuable" to "unusable"
* std/fmt/README.md:21:40: corrected "Alternativly" to "Alternatively"
* std/fmt/README.md:35:68: corrected "seperated" to "separated"
* std/fmt/README.md:179:59: corrected "provded" to "provided"
* std/mime/multipart.ts:581:46: corrected "writen" to "written"
* std/path/_globrex.ts:19:52: corrected "equivelant" to "equivalent"
* std/node/events_test.ts:447:9: corrected "asyncronous" to "asynchronous"
* std/node/events_test.ts:475:9: corrected "asyncronous" to "asynchronous"
* std/node/events_test.ts:500:29: corrected "asyncronous" to "asynchronous"
* std/node/events_test.ts:530:40: corrected "asyncronous" to "asynchronous"
* std/node/events_test.ts:555:9: corrected "asyncronous" to "asynchronous"
* tools/deno_tcp_proxy.ts:1:42: corrected "perfromance" to "performance"
* std/node/module.ts:1003:18: corrected "existend" to "existed"
2020-05-14 06:38:42 +02:00
Kitson Kelly
3d7552af2e
Update to TypeScript 3.9 (#4510) 2020-05-13 08:03:04 -04:00
Lucas Machado
eec0855737
fix(std): fix broken style guide link (#5211) 2020-05-11 20:36:24 -04:00
Ryan Dahl
73d8fa74c6
BREAKING: There is no public Rust API for the CLI (#5226) 2020-05-11 17:33:36 -04:00
Edward Elric
b2da8f3d4e
doc: fix typo in std/node/README.md (#4819) 2020-05-11 15:13:06 +02:00