Kitson Kelly
c43cfedeba
namespace reorg: libdeno and DenoCore to Deno.core ( #1998 )
2019-03-26 08:22:07 -04:00
Ryan Dahl
44773c9b0f
Integrate //core into existing code base
...
This disables a few tests which are broken still:
- tests/error_004_missing_module.test
- tests/error_005_missing_dynamic_import.test
- tests/error_006_import_ext_failure.test
- repl_test test_set_timeout
- repl_test test_async_op
- repl_test test_set_timeout_interlaced
- all of permission_prompt_test
2019-03-18 17:17:08 -04:00
Kitson Kelly
034e2cc028
Migrate from tslint to eslint for linting ( #1905 )
2019-03-09 12:30:38 -05:00
Kitson Kelly
54094c7510
Rationalise compiler ops ( #1740 )
2019-02-18 10:42:15 -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
Kitson Kelly
a21a5ad2fa
Add Deno global namespace ( #1748 )
...
Resolves #1705
This PR adds the Deno APIs as a global namespace named `Deno`. For backwards
compatibility, the ability to `import * from "deno"` is preserved. I have tried
to convert every test and internal code the references the module to use the
namespace instead, but because I didn't break compatibility I am not sure.
On the REPL, `deno` no longer exists, replaced only with `Deno` to align with
the regular runtime.
The runtime type library includes both the namespace and module. This means it
duplicates the whole type information. When we remove the functionality from the
runtime, it will be a one line change to the library generator to remove the
module definition from the type library.
I marked a `TODO` in a couple places where to remove the `"deno"` module, but
there are additional places I know I didn't mark.
2019-02-12 10:08:56 -05:00
Kitson Kelly
90c7af27d7
Rationalise startup for compiler/main ( #1737 )
2019-02-10 20:07:02 -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
efa1eeb8b3
Compiler cleanups and minor improvements ( #1656 )
2019-02-02 18:27:53 -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
jingweicai
2547f0296f
fix: set env,key for string and value for string ( #1567 )
2019-01-23 20:29:18 -05:00
Yoshiya Hinosawa
77114fbda4
chore: update license lines ( #1557 )
2019-01-21 13:03:30 -06:00
Ryan Dahl
57301909cd
Add deno.pid ( #1464 )
2019-01-06 14:16:42 -05:00
Ryan Dahl
ea6c9f2f36
Revert "use byte array instead of string for code fetch ( #1307 )" ( #1455 )
...
This reverts commit e976b3e041
.
There is nothing technically wrong with this commit, but it's adding
complexity to a big refactor (native ES modules #975 ). Since it's not
necessary and simply a philosophical preference, I will revert for now
and try to bring it back later.
2019-01-03 22:11:01 -05:00
F001
e976b3e041
use byte array instead of string for code fetch ( #1307 )
2018-12-12 04:43:42 -05:00
Ryan Dahl
52079b26db
Minor rename for CodeFetch parameters
...
This bring it inline with terminology used in V8
See ResolveCallback in v8.h
2018-12-11 15:06:56 -05:00
Ryan Dahl
ee24254bad
Rename EnvPair to KeyValue.
2018-11-02 20:50:01 -07:00
Kitson Kelly
8b39d2c99e
Separate source map from output code.
2018-10-29 08:16:35 -07:00
Kitson Kelly
8ef7da2611
Enforce media types
2018-10-23 04:48:00 -07:00
Ryan Dahl
213885a9d0
Optimization: Reuse ArrayBuffer during serialization.
2018-10-17 20:20:06 -04:00
Kitson Kelly
10a97679ac
Align JSDoc to style guide.
2018-10-14 17:38:23 -04:00
Kitson Kelly
ffb41e61f1
Updates to js to clean up default library
2018-10-07 22:52:27 -04:00
Ryan Dahl
818ad37678
Rename fbs to msg.
2018-10-04 00:25:55 -04:00
Ryan Dahl
f774953011
Rename flatbuffer base.msg to base.inner
...
This better disambiguates with the msg_generated.ts module, which in JS
we call "fbs", but would be better called "msg".
2018-10-04 00:25:55 -04:00
Yoshiya Hinosawa
0ca7301a2d
feat: add deno.makeTempDir
2018-09-12 22:33:11 -07:00
Mani Maghsoudlou
88d42f0b18
Implement deno.rename() ( #731 )
2018-09-12 11:44:58 -04:00
Sajjad Hashemian
7c50c11f40
Implement deno.stat() and deno.lstat()
2018-09-11 16:05:00 -04:00
Kevin (Kun) "Kassimo" Qian
05f87a0cf2
Move writeFileSync to write_file.ts, add writeFile and tests ( #728 )
2018-09-11 12:00:57 -04:00
Sajjad Hashemian
c2663e1d82
Implement deno.mkdir()
2018-09-10 15:02:07 -04:00
Ryan Dahl
35bc9ddf63
Implement deno.readFile()
...
As an example of how to implement ops that have both sync and async
versions.
2018-09-10 00:14:28 -04:00
Ryan Dahl
3afc0b8482
fbs_util.ts -> dispatch.ts
...
And send() -> sendSync()
2018-09-10 00:14:28 -04:00
Ryan Dahl
a4f1b367b9
Remove namespace from src/msg.fbs
2018-09-09 23:12:22 -04:00
Ryan Dahl
ff6eefdf87
Add better assert message for CodeFetchRes
2018-09-09 18:47:22 -04:00
J2P
d814949896
Add and edit comments
2018-09-07 12:01:43 -04:00
Ryan Dahl
d6c310596e
lStat -> lstat
2018-09-04 15:57:18 -04:00
Mani Maghsoudlou
641e3d404d
Implement renameSync
2018-09-04 11:57:04 -04:00
Sajjad Hashemian
b2b4299e3b
Implement mkdirSync
2018-09-03 15:06:00 -04:00
ShinDarth
bbc4e55bda
Minor code refactoring
2018-09-01 21:59:52 -04:00
Kitson Kelly
f83aee02e6
Bundle most types into globals.d.ts ( #642 )
2018-09-01 10:45:26 -04:00
Aaron Power
9b7e5a2558
Document lStatSync & statSync and correct FileInfo.
2018-08-31 16:18:31 -04:00
Aaron Power
f131445a46
Implemented deno.env and refactored flags.rs
2018-08-31 13:18:24 -04:00
Ryan Dahl
45dafe15ee
Refactor libdeno.send() code to reduce boilerplate.
...
Also removes assignCmdId as it's currently unused.
2018-08-31 10:43:11 -04:00
Ryan Dahl
0ec629d105
format
2018-08-30 14:41:55 -04:00
Aaron Power
b86bf4d8a4
Implemented statSync and lStatSync
2018-08-30 12:39:33 -04:00
Bert Belder
ceaf822682
Implement makeTempDirSync()
2018-08-29 22:40:05 +02:00
Francesco Borzì
84c38f34ee
Prevent circular imports in ts code ( #576 )
2018-08-25 15:42:49 -04:00
Ryan Dahl
7d7263c48f
Implement writeFileSync
...
In collaboration with Tommy Savaria <tommy.savaria@protonmail.ch>
2018-08-22 18:39:07 -04:00
Ryan Dahl
18d495c7d1
Better error handling in src/handlers.rs
...
Introduces error codes that are shared between JS/RS
Fixes #526 .
2018-08-21 15:37:45 -04:00