0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-31 09:14:20 -04:00
Commit graph

564 commits

Author SHA1 Message Date
Tomohito Nakayama
a646c2a885 Implement ignoreBOM option of UTF8Decoder in text_encoding (#3040) 2019-10-01 20:08:51 -04:00
Bartek Iwańczuk
75eeac03f3 use Isolate::register_op in deno_cli (#3039) 2019-10-01 18:51:05 -04:00
Ryan Dahl
ae26a9c7a2
Support top-level-await in TypeScript (#3024) 2019-09-30 12:38:23 -04:00
Kevin (Kun) "Kassimo" Qian
6efca6d1a1 Add Deno.hostname() (#3032) 2019-09-27 19:09:42 -04:00
Yusuke Sakurai
d36391ad20 fix: listenDefaults/dialDefaults may be overriden in some cases (#3027) 2019-09-26 09:14:13 -04:00
Ryan Dahl
3892cf5901 v0.19.0 2019-09-25 10:58:35 -04:00
Jonathon Orsi
045e74bb39 feat: Add Deno.dialTLS()
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2019-09-23 15:12:42 -04:00
Tomohito Nakayama
4ff04ad96f Rename class name DenoFile to DomFileImpl (#3006) 2019-09-23 11:07:13 -04:00
Ryan Dahl
97bb2bdb79
dial/listen API change (#3000)
Previously: dial("tcp", "deno.land:80")
Now: dial({ hostname: "deno.land", port: 80, transport: "tcp" })
Similarly with listen().
2019-09-20 18:32:18 -04:00
Bert Belder
93b7acf99d
js: reschedule global timer if it fires earlier than expected (#2989)
When the global timer fires earlier than expected, which apparently
happens sometimes on server editions of Windows, we didn't call any
setTimeout callbacks, but we *also* didn't reschedule the global timer
to fire again later.

When this situation occurred it would make deno exit abruptly if there
were no other asynchronous ops running on the event loop. It could also
lead to application hangs if the upcoming setTimeout callback was
critical for the application to make progress.
2019-09-20 19:00:12 +02:00
迷渡
1b1ae65a4a Make window compatible with ts 3.6 (#2984) 2019-09-19 11:40:52 -04:00
Kitson Kelly
60a2b5a8d0 Update to TypeScript 3.6.3 (#2969) 2019-09-17 12:24:44 -04:00
Nayeem Rahman
e55e4a2838 Remove some non-standard web API constructors (#2970)
This removes the EventListener, EventInit and CustomEventInit constructors from the userland globals. The type exports stay.

I removed the internal classes as well. EventListener's implementation seemed to be doing some bookkeeping on handled events but that's not being used anywhere so I assume it's old debug stuff. The other two are completely redundant.
2019-09-17 12:17:12 -04:00
Ryan Dahl
9cfdc60a23
Move integration tests to //cli/tests/ (#2964)
This ensures the deno executable is properly created before running the integration tests.

Also allows deno_cli to be used as a lib. Docs are now properly generated: https://docs.rs/deno_cli/0.18.4/deno_cli/

Towards #2933
Prep for #2955
2019-09-16 21:05:14 -04:00
Ryan Dahl
c9ef182886
Make deno_cli installable via crates.io (#2946)
- Fixes cargo publish on deno_typescript, deno_cli_snapshots, and
  deno_cli.
- Combines cli_snapshots and js into one directory.
- Extracts TS version at compile time rather than runtime
- Bumps version awkwardly - it was necessary to test end-to-end
  publishing. Sorry.
- Adds git submodule deno_typescript/typescript
2019-09-15 18:36:27 -04:00
Christian Moritz
9c282d6a0e
Move GN root into //core/libdeno (#2943) 2019-09-15 22:12:12 +02:00
Kitson Kelly
8ab48e7ef7 Fix debug logging in runtime/compiler (#2953) 2019-09-15 11:04:05 -04:00
Kitson Kelly
c30decab77 Fix type directive parsing (#2954) 2019-09-15 08:58:06 -04:00
Bartek Iwańczuk
686b86edb1 feat: parallelize downloads from TS compiler (#2949) 2019-09-14 12:05:00 -04:00
Kitson Kelly
d231df17b0 deno_typescript cleanup/improvements (#2901) 2019-09-12 17:30:04 -04:00
Bartek Iwańczuk
945dc7b84b fix: panic during fetch (#2925) 2019-09-11 17:34:22 -04:00
Nayeem Rahman
ad11f2ad6a Default base URL path to '/' (#2921) 2019-09-11 16:20:54 -04:00
Nayeem Rahman
a1976236d9 Default 'this' to window in EventTarget (#2918) 2019-09-11 12:53:01 -04:00
Bartek Iwańczuk
85c51404ae feat: Set user agent for http client (#2916) 2019-09-11 07:31:00 -04:00
Bartek Iwańczuk
a4e1d7d2e7 fix: type directives import (#2910) 2019-09-11 06:47:34 -04:00
Nayeem Rahman
0b757f3737 Expose the DOM Body interface globally (#2903) 2019-09-10 10:57:17 -04:00
Yoshiya Hinosawa
46cbc6e0e9 refactor: remove Deno.platform (#2895) 2019-09-09 23:39:42 -04:00
Yoshiya Hinosawa
f12acdb50b Update @typescript-eslint/* to v2.1.0 (#2878) 2019-09-07 12:27:18 -04:00
Yoshiya Hinosawa
a205e8a3c2 fetch: implement bodyUsed (#2877) 2019-09-07 12:20:30 -04:00
Yoshiya Hinosawa
595b4daa77 Remove replacements hack in deno_typescript (#2864) 2019-09-06 12:57:15 -04:00
Nayeem Rahman
ca00039285 Fix basing in URL constructor (#2867) 2019-09-05 20:01:27 -04:00
Kevin (Kun) "Kassimo" Qian
49ea932af8 Fix xeval chunk incorrect matching behavior (#2857) 2019-09-04 18:31:14 -04:00
Yoshiya Hinosawa
249db0f7d9 Handle typescript version in rust (#2855) 2019-09-03 22:12:21 -04:00
迷渡
e9908453df do not export isConsoleInstance (#2850) 2019-09-03 03:10:51 -04:00
Ryan Dahl
d43b43ca78
Refactor snapshot build (#2825)
Instead of using core/snapshot_creator.rs, instead two crates are
introduced which allow building the snapshot during build.rs.

Rollup is removed and replaced with our own bundler. This removes
the Node build dependency. Modules in //js now use Deno-style imports
with file extensions, rather than Node style extensionless imports.

This improves incremental build time when changes are made to //js files
by about 40 seconds.
2019-09-02 17:07:11 -04:00
Yoshiya Hinosawa
56508f113d ops/fetch: add statusText (#2851) 2019-09-02 12:30:14 -04:00
Nayeem Rahman
df2f54b2a6 Fix REPL '_' assignment, support '_error' (#2845) 2019-08-31 15:17:56 -04:00
Kevin (Kun) "Kassimo" Qian
fdd4252d49 Add window.queueMicrotask (#2844) 2019-08-31 15:16:30 -04:00
Kevin (Kun) "Kassimo" Qian
07c3c76d0d Save last execution result in for REPL (#2843) 2019-08-31 02:45:35 -04:00
Bartek Iwańczuk
723284fd20
Use 'reqwest' to implement HTTP client (#2822)
Closes #2720
2019-08-30 14:49:03 -07:00
迷渡
65fa2b810b clearTimeout's params should not be bigint (#2838) 2019-08-30 11:51:53 -04:00
Ryan Dahl
c370f749b2
Remove ts_library_builder, maintain lib.deno_runtime.d.ts by hand (#2827) 2019-08-30 11:11:33 -04:00
迷渡
590463bd4a setTimeout's params should not be bigint (#2834) 2019-08-29 10:57:09 -04:00
Bartek Iwańczuk
b5a5e97384 add console.dirxml (#2835) 2019-08-29 10:56:26 -04:00
Ryan Dahl
8f919465b0 Remove @stardazed/streams
This is a regression on several some features in the fetch API. To bring
these back @stardazed/streams simply needs to be ported to TS and
included in the //js directory.

Towards #2608
2019-08-28 18:25:15 -04:00
Ryan Dahl
2b79552dd1 Internalize base64-js, convert to TypeScript 2019-08-28 18:25:15 -04:00
Bartek Iwańczuk
20739a8111 feat: implement Addr interface (#2821) 2019-08-27 11:35:32 -04:00
Nayeem Rahman
b6a4ec7d16 Improve error stacks for async ops (#2820) 2019-08-27 11:33:39 -04:00
Ryan Dahl
725eb98105
Clean up various flatbuffer references (#2819) 2019-08-26 22:29:51 -04:00
Ryan Dahl
f94900406d
Remove flatbuffers (#2818) 2019-08-26 17:02:34 -04:00