Kevin (Kun) "Kassimo" Qian
1d4b92ac85
Add Deno.kill(pid, signo) and process.kill(signo) (Unix only) ( #2177 )
2019-04-21 21:26:56 -04:00
Kevin (Kun) "Kassimo" Qian
1746a3ac69
Add link/linkSync fs call for hardlinks ( #2074 )
2019-04-08 09:11:32 -04:00
Bartek Iwańczuk
597ee38ef2
Rewrite readFile and writeFile ( #2000 )
...
Using open/read/write
2019-03-27 23:29:36 -04:00
Kitson Kelly
c43cfedeba
namespace reorg: libdeno and DenoCore to Deno.core ( #1998 )
2019-03-26 08:22:07 -04:00
Ryan Dahl
ae4405d747
Make some renames in js/build.ts ( #1912 )
...
* Replace Deno.OSType enum with Deno.OperatingSystem type alias
* Add arm64 to supported CPU architectures
* add type alias for cpu arch Deno.Arch
2019-03-11 20:34:48 -04:00
Vincent LE GOFF
830ce93785
Add OSType enum ( #1909 )
2019-03-11 14:23:11 -04:00
Kevin (Kun) "Kassimo" Qian
de1a10e5f7
Reorganize version and platform into Deno.build and Deno.version ( #1879 )
2019-03-06 16:54:58 -05:00
Simon Menke
77d7ad61f3
Allow inspection and revocation of permissions ( #1875 )
2019-03-04 11:04:19 -05:00
Yoshiya Hinosawa
55edc06218
Add back typescript version number and add Deno.version object. ( #1788 )
2019-02-18 18:43:02 -05:00
Kevin (Kun) "Kassimo" Qian
077af20ceb
Add seek
and implement Seeker
on File
( #1797 )
...
This patch contains a special hack that circumvents the current tokio
seek problem.
tokio `seek` is implemented to take ownership of the original File and
emit a new one in its future, which conflicts with the design of
ResourceTable.
To avoid the problem, the current hack makes the FsFile resource
an Option which we could `take` the value ownership out of it. We then
convert the tokio File into a Rust std File, perform the seek, and then
put it back into the resource.
This might be able to drop this hack after
https://github.com/tokio-rs/tokio/pull/785 lands.
2019-02-18 18:26:41 -05:00
Yoshiya Hinosawa
9fb9048c73
remove dead code ( #1796 )
2019-02-16 20:07:44 -05:00
Dmitry Sharshakov
4dc4329e27
Add execPath function ( #1743 )
2019-02-15 11:22:02 -05:00
Kitson Kelly
c468be64ed
Cleanup Deno namespace ( #1765 )
2019-02-13 08:50:15 -05:00
Ryan Dahl
526497bc29
Adds deno.noColor ( #1716 )
2019-02-08 22:13:04 -05:00
Dmitry Sharshakov
181b03273c
Add isTTY function ( #1622 )
2019-02-02 22:05:30 -05:00
Kitson Kelly
ee9c627cc5
Split out compiler snapshot ( #1566 )
...
Speeds up startup time, reduces runtime heap size.
2019-01-28 20:41:28 -05:00
Jan Lo
f7c0f49443
Combine deno.removeAll into deno.remove ( #1596 )
2019-01-28 17:54:52 -05:00
Ryan Dahl
f37d67e809
Revert "Split Runner from Compiler" ( #1462 )
...
This reverts commit 3d03f5b0cb
.
2019-01-06 14:17:13 -05:00
Ryan Dahl
57301909cd
Add deno.pid ( #1464 )
2019-01-06 14:16:42 -05:00
Ryan Dahl
2c477dd7cb
Happy new year!
2019-01-02 02:37:08 +01:00
Ryan Dahl
6cc998f28b
Remove support for extensionless import ( #1396 )
2018-12-23 11:44:08 -05:00
Kevin (Kun) "Kassimo" Qian
419000d556
Expose deno.inspect ( #1378 )
2018-12-19 22:08:49 -05:00
Kevin (Kun) "Kassimo" Qian
2cb52cc4d1
Fix deno.open permission check ( #1336 )
2018-12-13 16:20:37 -05:00
DanSnow
e749b37b7c
Add deno.readAll() ( #1234 )
2018-11-30 09:58:31 -08:00
Kitson Kelly
3d03f5b0cb
Split Runner from Compiler
2018-11-20 08:46:56 -08:00
Bert Belder
48bf4062e4
First pass at running subprocesses ( #1156 )
2018-11-16 12:07:40 +08:00
Ryan Dahl
b1579460ce
Support streaming response bodies from fetch()
...
Also Buffer.readFrom in fetch() to buffer response.
2018-11-13 21:44:38 -08:00
Ryan Dahl
bd88e56cbc
Add deno.Buffer ( #1121 )
...
Do not confuse this with Node's Buffer. This is a direct port of Go's
bytes.Buffer - it allows buffering of Reader and Writer objects.
2018-11-04 15:36:46 -08:00
Bartek Iwańczuk
162eeca373
Add helper to turn deno.Reader into async iterator ( #1130 )
2018-10-31 07:29:13 -07:00
Bartek Iwańczuk
946acbc559
Add resources op ( #1119 )
2018-10-30 12:58:55 -07:00
Ryan Dahl
7f204b9803
Remove broken feature: trace()
2018-10-26 13:07:33 -07:00
Kevin (Kun) "Kassimo" Qian
a99aaf5def
Add chmod/chmodSync on unix (and fix Cargo.toml) ( #1088 )
...
Initial implementation by Srijan Reddy (@srijanreddy98, #672 ).
2018-10-26 13:01:45 -07:00
ztplz
b809a82fd9
Add missing copyrights ( #1024 )
2018-10-19 15:25:29 -04:00
Shiva Prasanth
bbf88c5295
Add cwd() and chdir() ( #907 )
2018-10-13 16:03:27 -04:00
Bartek Iwańczuk
51f9331ecb
Add deno.metrics()
2018-10-11 15:45:51 -04:00
Bert Belder
f60cc5730a
Format
2018-10-08 18:10:27 +02:00
ns
8e82fa0af6
Export missing io types from deno
2018-10-06 22:16:42 -04:00
Kitson Kelly
6c42ded097
Hide compiler module ( #909 )
...
Fixes #876
2018-10-05 10:13:22 -04:00
Ryan Dahl
2f44db6756
Use underscores in filenames.
2018-10-04 00:25:55 -04:00
Ryan Dahl
0422b224e8
First pass at support for TCP servers and clients. ( #884 )
...
Adds deno.listen(), deno.dial(), deno.Listener and deno.Conn.
2018-10-03 23:58:29 -04:00
J2P
ea87034e26
Implemented readDirSync, readDir
2018-10-03 18:22:57 -04:00
Ryan Dahl
d39055d79b
Clean up deno.platform
...
Renames:
deno.platform -> deno.platform.os
deno.arch -> deno.platform.arch
Removes unsupported operating systems and CPU architectures from the
types. Uses the string "win" instead of "win32".
2018-10-03 16:59:00 -04:00
Bert Belder
aa691ea26c
timers: implement timers in javascript
2018-10-03 13:27:55 -07:00
Kevin (Kun) "Kassimo" Qian
50a9c2b575
Add copyFile/copyFileSync ( #863 )
2018-09-30 18:06:41 -04:00
ztplz
062b22fe56
Add deno.truncate ( #805 )
2018-09-30 15:06:20 -04:00
Ryan Dahl
bcbbee7399
Adds basic File I/O and FD table.
...
Adds deno.stdin, deno.stdout, deno.stderr, deno.open(), deno.write(),
deno.read(), deno.Reader, deno.Writer, deno.copy().
Fixes #721 . tests/cat.ts works.
2018-09-28 20:53:33 -04:00
Ryan Dahl
b088b58f76
Add SetGlobalTimeout().
...
To be used for a timers implementation soon.
2018-09-25 17:02:49 -04:00
Mani Maghsoudlou
ad5065e23e
Implement deno.readlink() ( #797 )
2018-09-25 00:20:49 -04:00
ztplz
f3684c28e5
Rename deno.argv, libdeno::DenoC and deno_set_flags ( #796 )
2018-09-22 08:47:44 -04:00
Kevin (Kun) "Kassimo" Qian
7a0670a951
Implement deno.trace() ( #795 )
2018-09-22 03:59:26 -04:00