tokiedokie
c4ed3fb7e7
chore: add copyright ( #7593 )
2020-09-21 08:26:41 -04:00
Casper Beyer
38196f7850
fix(cli/console): always quote and escape inspected strings ( #7546 )
2020-09-18 09:28:30 -04:00
Jarrett Helton
cead79f5b8
feat(std/node) stub out process.stdin, stdout, stderr ( #7184 )
2020-09-17 23:31:50 -04:00
tokiedokie
04d3472257
refactor(cli/tests): change std_path to root_path in std_tests() ( #7438 )
2020-09-15 06:26:57 +02:00
Schwarzkopf Balázs
f6bfdd66a6
feat(std/node): Add AssertionError class ( #7210 )
2020-09-14 16:22:07 +02:00
Bartek Iwańczuk
b216d48e5f
upgrade: deno_doc, deno_lint, dprint, swc ( #7434 )
...
upgrades:
- swc_ecmascript 0.7.7
- dprint-plugin-typescript 0.31.3
- deno_lint 0.2.0
- deno_doc 0.1.9
Split std_lint test into std_lint and unit_test_lint.
Added lint ignores to CommonJS files in std/node.
2020-09-13 14:15:38 +02:00
Casper Beyer
11afd071ae
test(std/node): make tests runnable from any directory ( #7397 )
...
This makes std/node tests runnable from any directory by resolving the
testdata directory and files relative to the module directory resolved
from import.meta.url.
2020-09-08 11:37:58 -04:00
Yusuke Tanaka
71f0171ab0
fix no-inner-declaration lint rule ( #7287 )
2020-08-31 14:11:17 -04:00
Schwarzkopf Balázs
e1564f385c
fix(std/node): "events" and "util" modules ( #7170 )
2020-08-27 11:00:38 +02:00
Kitson Kelly
c4d5b01acf
feat: update to TypeScript 4.0 ( #6514 )
2020-08-24 19:43:54 -04:00
Benjamin Lupton
b7ad544dd6
feat(std/node): add URL export ( #7132 )
2020-08-21 22:39:56 -04:00
Schwarzkopf Balázs
87b1b8c461
fix(std/node): misnamed assert exports ( #7123 )
2020-08-20 11:56:31 -04:00
Benjamin Lupton
b21a7b0fd0
feat(std/node): add basic asserts ( #7091 )
2020-08-18 14:15:59 -04:00
Jarrett Helton
514cbc2808
fix: remove @ts-expect-error directives ( #7024 )
2020-08-12 17:32:03 -04:00
Benjamin Lupton
452693256c
feat(std/node): add util.inspect ( #6833 )
2020-08-12 14:03:51 -04:00
Nayeem Rahman
81ce4499e7
fix: Make std work with isolatedModules ( #7016 )
2020-08-12 12:01:36 +02:00
Trivikram Kamat
35a1421fb1
chore: use ts-expect-error instead of ts-ignore ( #6876 )
2020-07-26 10:41:10 -04:00
David Sherret
cde4dbb351
Use dprint for internal formatting ( #6682 )
2020-07-14 15:24:17 -04:00
Steven Guerrero
fe8399973a
feat(std/node): add string_decoder ( #6638 )
2020-07-14 14:30:03 -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
Casper Beyer
9ac416913e
test(std/node): include windows in link tests ( #6620 )
2020-07-05 18:06:16 -04:00
Marcos Casagrande
43db7aa05d
fix(std/node): add encoding argument to Buffer.byteLength ( #6639 )
2020-07-05 18:02:09 -04:00
Marcos Casagrande
91767501e1
feat(std/node): add buf.equals method ( #6640 )
2020-07-05 18:01:36 -04:00
WJH
538504f57c
improve(std/asserts): allow assert functions to specify type parameter ( #6413 )
2020-07-02 18:03:15 +02:00
Ryan Dahl
f5242f333e
fix(std/node): do not use absolute urls ( #6562 )
2020-06-29 15:09:59 -04:00
Marcos Casagrande
0374eadcf7
feat(std/node): Add Buffer.isEncoding ( #6521 )
2020-06-28 12:27:02 -04:00
Marcos Casagrande
d779053dc6
feat(std/node): Add Buffer.allocUnsafe ( #6533 )
2020-06-28 10:16:54 -04:00
Marcos Casagrande
a216bd06fc
feat(std/node): support hex/base64 encoding in fs.readFile/fs.writeFile ( #6512 )
2020-06-27 16:52:49 -04:00
Marcos Casagrande
f0093a9d8b
test(std/node): Add Buffer tests ( #6524 )
2020-06-27 15:57:32 -04:00
Marcos Casagrande
4302941b06
fix(std/node): add fill & encoding args to Buffer.alloc ( #6526 )
2020-06-27 15:56:39 -04:00
Benjamin Lupton
16038b8f82
fix(std/node/process): env, argv exports ( #6455 )
...
The promise approach still required permissions to be specified
at initialisation, rather than at request.
Using a Proxy instance solves this permission issue.
The Proxy instance approach also eliminates the need for the
await. Achieving direct compatibility with Node.js.
/ref pr #6392
/ref commit d16337cc9c
2020-06-25 07:18:01 -04:00
Benjamin Lupton
49c54c0805
fix(std/node): fix readFile types, add encoding types ( #6451 )
2020-06-23 22:32:43 -04:00
Benjamin Lupton
d16337cc9c
fix(std/node): global process should usable ( #6392 )
2020-06-23 16:00:47 -04:00
Marcos Casagrande
86448fd9aa
feat(std/node): support hex / base64 encoding in Buffer ( #6414 )
2020-06-21 09:47:03 -04:00
Ryan Dahl
0a81ec6b1e
Remove Deno.dir and dirs dependency ( #6385 )
2020-06-20 23:49:27 -04:00
David Gonzalez
0bc70b89c0
fix(std/node): added tests for static methods of Buffer ( #6276 )
2020-06-13 10:00:02 -04:00
Michael Yuan
d3aa37dd9c
Doc: Node buffer is now supported ( #6274 )
2020-06-13 09:58:08 -04:00
Nayeem Rahman
1fff6f55c3
refactor: Don't destructure the Deno namespace ( #6268 )
2020-06-12 15:23:38 -04: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
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
Rubin Bhandari
6ccf9037a6
feat: add Deno.osName() ( #5714 )
2020-06-11 13:11:26 -04:00
blairzhao111
6c21ba0575
fix(std/node): emitter.removeAllListeners ( #5583 )
...
When given a non-registered eventName to
emitter.removeAllListeners(eventName), current code
would remove all listeners instead of silently skip,
which is not ideal.
2020-06-09 15:07:25 +02:00
Marcos Casagrande
0bf952bb49
feat(std/node) - Add util.promisify ( #5540 )
2020-06-08 19:26:52 +02:00
Peter Evers
7b597c82fc
feat(std/node) add util.types ( #6159 )
2020-06-07 09:21:49 -04:00
Chris Knight
3ef94c5473
refactor(std): remove testing dependencies from non-test code ( #5838 )
2020-06-07 09:20:33 -04:00
Nikolai Vavilov
09ee9a8280
feat(std/node): Buffer ( #5925 )
2020-06-06 15:56:49 -04:00
Marcos Casagrande
26287ef87b
fix: use queueMicrotask instead of setTimeout ( #6112 )
2020-06-06 15:32:17 -04:00
Casper Beyer
ed5aedc6b4
Rename abbreviated assertions in std/testing ( #6118 )
2020-06-05 23:43:00 -04:00
Kitson Kelly
3fe6bc1b82
fix: Better use of @ts-expect-error ( #6038 )
2020-06-02 00:24:44 -04:00
Peter Evers
6b0d286a3d
feat(std/node): add util.type.isDate ( #6029 )
2020-06-01 18:43:43 -04:00