Commit graph

1441 commits

Author SHA1 Message Date
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
Ryan Dahl
e109941bd2 Improve readme (#1822) 2019-02-21 20:22:44 -08:00
Bartek Iwańczuk
9d025facaa manual: add Deno.run example (#1811) 2019-02-21 15:52:35 -05:00
EnokMan
8c6d6b2832 Add section explaining resources and metrics to the manual (#1819) 2019-02-20 03:29:25 -05:00
Ryan Dahl
9076592a31
Improve README (#1815) 2019-02-19 23:25:52 -05:00
Dmitry Teplov
36eecad148 fix: revert http server example on the homepage (#1814) 2019-02-19 22:53:03 -05:00
Yoshiya Hinosawa
c4e3728575 remove global_eval.ts (#1813) 2019-02-19 21:42:19 -05:00
Ryan Dahl
a5720d9e28 v0.3.0 2019-02-18 23:22:41 -05:00
Ryan Dahl
c0b8756797 build: fix deps for deno_runtime_declaration 2019-02-18 23:04:59 -05:00
Ryan Dahl
42408febe8 Add window.location 2019-02-18 23:04:59 -05:00
Bartek Iwańczuk
27afbd1351 Match TypeScript & JavaScript error colors (#1793) 2019-02-18 19:20:07 -05:00
Bartek Iwańczuk
57dee15844 Add example of starting subprocess to docs (#1791) 2019-02-18 18:52:46 -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
Saad Quadri
97e29e3dd0 Fix http server example in homepage (#1801)
This fixes http server example by updating the import path as well as
using respond() correctly.
2019-02-18 18:20:58 -05:00
Mark Tiedemann
a1de28dbef Update installation documentation (Fixes #1786) (#1802) 2019-02-18 18:19:43 -05:00
Maxim Mazurok
55b2f0195f Rename welcome.js to welcome.ts (#1803) 2019-02-18 18:18:00 -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
EnokMan
96afb62dfb Add code block language decoration to StyleGuide doc (#1799) 2019-02-17 00:15:19 -05:00
Yoshiya Hinosawa
9fb9048c73 remove dead code (#1796) 2019-02-16 20:07:44 -05:00
Luke
a8ebb8f05a Added website icon link (#1792) 2019-02-16 09:02:14 -05:00
Dmitry Sharshakov
4dc4329e27 Add execPath function (#1743) 2019-02-15 11:22:02 -05:00
满远荣
1d7c74e9b5 Syntax highlighting on the website paegs (#1780) 2019-02-15 11:15:44 -05:00
Greg Altman
061a9353ba Module dep pretty printing in --info 2019-02-15 11:06:49 -05:00
Ryan Dahl
0412ab2308 Remove unnecessary tests/021_info_flag_setup.test 2019-02-15 11:06:49 -05:00
Yoshiya Hinosawa
142aedd329 remove unnecessary build opt (#1783) 2019-02-15 11:06:26 -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
Ryan Dahl
748e456cdb
Use prebuilt hyperfine (#1755) 2019-02-14 18:18:24 -05:00
Ryan Dahl
9a6d89fc40
Turn on v8_postmortem_support (#1758) 2019-02-13 21:54:01 -05:00
Kitson Kelly
8686f49ee4 Update contribution guidelines (#1771)
To make it clearer how people should indicate that are contributing to Deno.
2019-02-13 20:12:11 -05:00
Ryan Dahl
8d1567fafb
Upgrade V8 to 7.4.158 (#1767)
This is to have access to this fix:
https://bugs.chromium.org/p/v8/issues/detail?id=8838
necessary for v8_postmortem_support.
2019-02-13 14:23:17 -05:00
Philipp A
e782ba1a6f Use proper directory for cache files (#1763)
Operating systems have defined directories for cache files.
That allows them to do smart things such as leaving them out when doing a backup,
or deleting them when disk space gets low.

Also a %home%\.deno folder on windows made no sense whatsoever.

Fixes #481
2019-02-13 08:57:00 -05:00
Kitson Kelly
c468be64ed Cleanup Deno namespace (#1765) 2019-02-13 08:50:15 -05:00
Ryan Dahl
473d7317ea
More web design work (#1759) 2019-02-12 23:54:08 -05:00
Kevin (Kun) "Kassimo" Qian
163c334521 Drop assert!() from untrack_task() (#1757) 2019-02-12 21:51:45 -05:00
Ryan Dahl
f29c40a433
Decouple ts_library_builder from std/testing (#1749) 2019-02-12 15:22:43 -05:00
Ryan Dahl
677a48781d
Include deno version in source_code_hash (#1751)
Fixes #472
2019-02-12 15:20:54 -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
Bert Belder
9240f9b57f
third_party: upgrade rust crates 2019-02-12 09:30:36 -08: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
Ryan Dahl
a4dec944bc
web design (#1728) 2019-02-11 17:41:13 -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