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

144 commits

Author SHA1 Message Date
Tim Reichen
ae86cbb551
rename(std/testing): rename assert*Contains to assert*Includes (#7951)
This commit renames two assertion functions to better align with JS API:
- assertStringContains -> assertStringIncludes
- assertArrayContains -> assertArrayIncludes
2020-10-26 16:03:30 +01:00
Steven Guerrero
d52fb903cd
fix(std/node): Buffer.copy doesn't work as expected (#8125) 2020-10-26 15:42:36 +01:00
Bartek Iwańczuk
9b20cfbee8
upgrade: deno_doc, deno_lint, dprint, swc (#8077)
- deno_doc 0.1.13
- deno_lint 0.2.5
- dprint-plugin-typescript 0.32.6
- swc_bundler 0.12.0
- swc_ecmascript 0.11.1
2020-10-22 20:36:06 +02:00
ali ahmed
5bed06fb94
feat(std/fs/node): adding some functions (#7921) 2020-10-14 11:59:28 -04:00
timonson
1956cb8137
fix(std/encoding): base64 properly encodes mbc and handles Uint8Arrays (#7807)
Fixes #6094
Fixes #4794
2020-10-13 12:12:10 +11:00
Bartek Iwańczuk
7af5041a06
Revert "feat(std/node/fs): adding readdir, rename, and some others (#7666)" (#7917)
This reverts commit 40324ff748.
2020-10-10 15:05:19 +02:00
ali ahmed
40324ff748
feat(std/node/fs): adding readdir, rename, and some others (#7666) 2020-10-06 01:35:22 -04:00
ali ahmed
a51408a4bc
fix(std/node/fs): allow appendFileSync to accept Uint8Array as type for data (#7835) 2020-10-06 01:26:12 -04:00
tokiedokie
3d65177dbc
docs(std): version all imports in README (#7442)
Use $STD_VERSION in std/ README files to automatically
display proper version.
2020-10-04 14:18:36 +02:00
David Sherret
df02e31507
feat(fmt): Sort named import and export specifiers (#7711) 2020-09-27 12:22:32 +02:00
Schwarzkopf Balázs
f601721851
feat(std/node): implement getSystemErrorName() (#7624) 2020-09-22 16:07:35 -04:00
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