Ryan Dahl
b8a537d020
deno_core ( #1827 )
...
A new low-level crate with focus on speed.
This doesn't yet hook into the existing code base.
2019-02-26 17:36:05 -05:00
Bartek Iwańczuk
5dfbbbb07a
Add import.meta.main ( #1835 )
2019-02-26 13:29:45 -05:00
Kevin (Kun) "Kassimo" Qian
c66d043ac6
Fix console.table display of Map and move tests to unit test ( #1839 )
2019-02-25 19:11:54 -05:00
Ryan Dahl
ce5d5c5133
Upgrade deno_std ( #1833 )
2019-02-25 19:03:49 -05:00
Ryan Dahl
99d3483291
Fix copyright header ( #1832 )
2019-02-25 15:28:22 -08:00
Bartek Iwańczuk
9d025facaa
manual: add Deno.run example ( #1811 )
2019-02-21 15:52:35 -05:00
Yoshiya Hinosawa
c4e3728575
remove global_eval.ts ( #1813 )
2019-02-19 21:42:19 -05:00
Ryan Dahl
42408febe8
Add window.location
2019-02-18 23:04:59 -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
Kitson Kelly
54094c7510
Rationalise compiler ops ( #1740 )
2019-02-18 10:42:15 -05:00
Yoshiya Hinosawa
9e942f30b9
refactor: replace any in console ( #1804 )
2019-02-18 10:31:35 -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
Kevin (Kun) "Kassimo" Qian
fe0ceae543
Fix behavior for extensionless files with .mime file ( #1779 )
2019-02-15 11:05:29 -05:00
Yoshiya Hinosawa
2241049c34
feat: env option in run api ( #1773 )
2019-02-15 10:37:04 -05:00
Kitson Kelly
c468be64ed
Cleanup Deno namespace ( #1765 )
2019-02-13 08:50:15 -05:00
Ryan Dahl
0b0d962eb9
Revert "Rewrite tools/format.py in deno ( #1528 )" ( #1752 )
...
tools/format.ts is making CI flaky and it's difficult to run right now.
Reverting to tools/format.py
This reverts commit f19622e768
.
2019-02-12 15:20:32 -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
Kevin (Kun) "Kassimo" Qian
1e5e091cb0
Fix REPL formatting ( #1744 )
2019-02-11 18:06:22 -05:00
Kevin (Kun) "Kassimo" Qian
489c69f8e1
REPL multiline support with recoverable errors ( #1731 )
2019-02-11 14:01:28 -05:00
Yoshiya Hinosawa
d26655371b
fix: improve formatting ( #1732 )
2019-02-11 12:57:26 -05:00
Kitson Kelly
90c7af27d7
Rationalise startup for compiler/main ( #1737 )
2019-02-10 20:07:02 -05:00
Bartek Iwańczuk
1e837f3281
Respect NO_COLOR in TypeScript output ( #1736 )
2019-02-10 18:19:31 -05:00
Bartek Iwańczuk
fe8c5d358b
Set globals on compiler startup ( #1735 )
2019-02-10 18:18:36 -05:00
Kevin (Kun) "Kassimo" Qian
1d36eb47eb
Support scoped variables, unblock REPL async op, and REPL error colors ( #1721 )
2019-02-09 16:55:40 -05:00
Ryan Dahl
526497bc29
Adds deno.noColor ( #1716 )
2019-02-08 22:13:04 -05:00
Dmitry Sharshakov
9ab03389f0
Add --allow-read ( #1689 )
...
Co-authored-by: Greg Altman <g.s.altman@gmail.com>
2019-02-08 15:59:38 -05:00
JaePil Jung
ffe8f73d34
Add missing run permission in test function ( #1697 )
2019-02-06 09:21:26 -05:00
JaePil Jung
ed6aec9bf0
Fixed test code ( #1688 )
2019-02-05 11:20:17 -05:00
Kitson Kelly
48fedee34e
Add WebAssembly to runtime library ( #1677 )
...
This also modifies the `ts_library_builder` to support inlining assets.
Includes integration tests from @sh7dm
2019-02-05 08:12:58 -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
Ryan Dahl
f84da880bb
Upgrade deno_std for std/prettier/main.ts
2019-02-02 17:48:43 -05:00
Kevin (Kun) "Kassimo" Qian
0b082c4361
Clarify writeFile options and avoid unexpected perm modification ( #1643 )
2019-02-02 14:26:18 -05:00
Dmitry Sharshakov
16ed1f2545
Add performance.now ( #1633 )
2019-02-02 01:27:42 -05:00
Ryan Dahl
eff7a1484e
Upgrade deno_std to bef7ba ( #1609 )
2019-01-31 18:11:37 -05:00
Masashi Hirano
02b9046a0e
Fix example code of writeFile ( #1626 )
...
According to spec, `TextEncoder()` takes no parameters. However `TextEncoder("utf-8")` is written in example codes.
Spec of TextEncoder: https://www.w3.org/TR/encoding/#interface-textencoder
MDN: https://developer.mozilla.org/ja/docs/Web/API/TextEncoder/TextEncoder#Parameters
2019-01-30 10:44:40 -05:00
Sergey Golovin
240ca25617
Add repl functions "help" and "exit" ( #1563 )
2019-01-29 14:41:12 -05:00
bdistin
457e65bc2f
docs/typo: readerIterator -> toAsyncIterator as exported ( #1620 )
2019-01-29 13:24:40 -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
Sergey Golovin
f05fd7a1f3
Add console.table ( #1608 )
2019-01-28 16:41:29 -05:00
bokuweb
aaaa35548e
timers: use int instead of double for timeout type ( #1469 )
2019-01-26 22:10:38 +01:00
binaryta
4a0a47dcde
Add console.clear() ( #1562 )
2019-01-24 13:24:39 -05:00
迷渡
6904628aaa
console output with format ( #1565 )
2019-01-24 12:07:08 -05:00
jingweicai
2547f0296f
fix: set env,key for string and value for string ( #1567 )
2019-01-23 20:29:18 -05:00
thefliik
41cf82870b
Minor optimization to repl.ts ( #1561 )
2019-01-23 20:23:25 -05:00
Adam Conrad
e470f31d32
Web API: CustomEvent ( #1505 )
2019-01-23 06:20:53 -06:00
Yoshiya Hinosawa
77114fbda4
chore: update license lines ( #1557 )
2019-01-21 13:03:30 -06:00