1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-11 10:07:54 -05:00
Commit graph

2959 commits

Author SHA1 Message Date
Christian Moritz
351d40e51c CI: don't build while linting and publish in forks (#3070) 2019-10-05 10:45:35 -04:00
Ryan Riginding
2a02107bba merge build.yml and lint.yml (#3066)
Fixes #3063
2019-10-05 03:17:18 -04:00
Ryan Dahl
b81e5db17a
Merge deno_cli_snapshots into deno_cli (#3064) 2019-10-04 20:28:51 -04:00
Bartek Iwańczuk
9049213867 add timeout to CI (#3061) 2019-10-04 14:50:29 -04:00
Ryan Dahl
ddcad56ee9
Move deno_std to a more convenient location. (#3057)
js/deps/https/deno.land/std -> js/std
2019-10-04 14:49:32 -04:00
Nayeem Rahman
eecb4fea26 Use xeval from deno_std (#3058) 2019-10-04 09:02:36 -04:00
Kitson Kelly
403bdfc3ec Fix iterators on UrlSearchParams (#3044) 2019-10-03 18:20:12 -04:00
Ryan Dahl
d9acc5b17e
Remove travis and appveyor. Release with github actions (#3052)
Fixes #2979
2019-10-03 13:20:59 -04:00
Ryan Dahl
aa34c1df6a Use github action badges (#3056) 2019-10-03 18:26:48 +02:00
Andy Hayden
f7bbd71e21 Update rust to 1.38.0 (#3030) 2019-10-03 09:16:06 -04:00
Ryan Dahl
e6e7977199 Upgrade sccache binaries to 0.2.11 (#3051) 2019-10-03 14:11:14 +02:00
Kitson Kelly
d9ff4eccb5 Async compiler processing (#3043)
Basically this does pre-processing of TypeScript files and gathers all the
dependencies asynchronously. Only then after all the dependencies are gathered,
does it do a compile, which at that point all the dependencies are cached in
memory in the compiler, so with the exception of the hard coded assets, there
are no ops during the compilation.

Because op_fetch_source_files is now handled asynchronously in the runtime, we
can eliminate the tokio_util::block_on() which was causing the increase in
threads. Benchmarking on my machine has shown about a 5% improvement in speed
when dealing with compiling TypeScript. Still a long way to go, but an
improvement.

In theory the module name resolution and the fetching of the source files could
be broken out as two different ops. This would prevent situations of sending the
full source file all the time when actually the module is the same module
referenced by multiple modules, but that could be done subsequently to this.
2019-10-03 07:23:29 -04:00
JaePil Jung
c878a14365 Fix deno_typescript repository url in Cargo.toml (#3053) 2019-10-03 01:32:22 -04:00
Tyr Chen
37bbd928e0 fix typo in deno_typescript readme (#3048) 2019-10-02 20:56:09 -04:00
Ryan Dahl
8727d1c4f6
Run benchmarks from GH actions instead of Travis (#3049) 2019-10-02 19:00:46 -04:00
Nayeem Rahman
2f90225c89 Implement expandGlob() and expandGlobSync() (denoland/deno_std#617)
fs/glob.ts:
- Improve prototypes for expandGlob() and expandGlobSync() from denoland/deno_std#604.
- Rename glob() to globToRegExp().
- Add normalizeGlob() and joinGlobs().
- Extract GlobToRegExpOptions from GlobOptions, remove the strict
  and filepath options.

fs/globrex.ts:
- Add GlobrexOptions.

fs/path/constants.ts:
- Add SEP_PATTERN.

fs/walk.ts:
- Add WalkOptions::includeFiles
- Default WalkOptions::includeDirs to true.
- Don't traverse directories matching a skip pattern.
- Remove walkSync()'s default root value.

prettier:
- Refactor to use expandGlob().

testing:
- Make findTestModules() an async generator.
Original: 8c90bd9d0b
2019-10-02 13:59:27 -04:00
Bartek Iwańczuk
a569be861a remove legacy Isolate.set_dispatch API (#3041)
* migrate deno_typescript crate to Isolate.register_op API
* remove dual-dispatch mechanism
* update Isolate tests to new dispatch mechanism
2019-10-02 13:05:48 -04:00
Jed Fox
99eec73b4b feat: Add support for passing a key to Deno.env() (#2952)
This adds a new op to get a single env var.
2019-10-02 11:55:28 -04:00
Bartek Iwańczuk
c920c5f62a feat: window.onunload (#3023) 2019-10-02 11:32:51 -04:00
Yusuke Sakurai
d32f39f2ec feat: JSX Support (#3038) 2019-10-02 10:46:36 -04:00
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
Bartek Iwańczuk
ffbf0c20cc feat: op registration in core (#3002) 2019-09-30 14:59:44 -04:00
Ryan Dahl
ae26a9c7a2
Support top-level-await in TypeScript (#3024) 2019-09-30 12:38:23 -04:00
Ryan Dahl
5f7ab4884c
Use 0.0.0.0 for servers in benchmarks and tests (#3010) 2019-09-30 12:35:48 -04:00
timonson
aca2253305 added type number to 'size' parameter (denoland/deno_std#618)
Original: f3bdf1a77b
2019-09-29 10:11:18 -04:00
Bartek Iwańczuk
c8a5d9c585 bump deps version on homepage (#3036) 2019-09-29 10:09:36 -04:00
Bartek Iwańczuk
3a982a014b bump deno_std deps (#3034) 2019-09-28 15:14:49 -04:00
Yusuke Sakurai
04e4f10087 fix(ws) mask must not be set by default for server (denoland/deno_std#616)
Original: de99fcbaf9
2019-09-28 12:47:38 -04:00
Yusuke Sakurai
3cba0a4f4a feat: wss support with dialTLS (denoland/deno_std#615)
Original: cac2d5ee68
2019-09-28 12:46:21 -04:00
Nayeem Rahman
a472b6732d Test runner v2 (denoland/deno_std#604)
Original: 17a214bbd5
2019-09-28 09:33:17 -04:00
Kevin (Kun) "Kassimo" Qian
6efca6d1a1 Add Deno.hostname() (#3032) 2019-09-27 19:09:42 -04:00
Ryan Dahl
af18093498 Bump v0.19.0 (denoland/deno_std#613)
Original: 5d0dd5878e
2019-09-26 21:06:59 -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
Kitson Kelly
3d2d0ee771 Handle uncaught worker errors without panicking (#3019) 2019-09-25 10:46:58 -04:00
Bartek Iwańczuk
112ce0df1f test: add HTTP_PROXY tests (#2977) 2019-09-24 18:52:01 -04:00
Ryan Dahl
a497f87b59
Upgrade V8 for top-level-await (#3015) 2019-09-24 18:37:04 -04:00
Christian Moritz
726f08694b tools: fix cc_wrapper in setup.py (#3017) 2019-09-24 15:19:23 -04:00
Bartek Iwańczuk
2201414a7a fix: run missing integration tests (#2997) 2019-09-24 10:46:57 -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
Yusuke Sakurai
aa21e7bc81 fix TOML's key encoding (denoland/deno_std#612)
Original: 54a5b95fef
2019-09-23 11:08:57 -04:00
Tomohito Nakayama
4ff04ad96f Rename class name DenoFile to DomFileImpl (#3006) 2019-09-23 11:07:13 -04:00
Dmitry Sharshakov
9739ba55df Implement readString (denoland/deno_std#607)
Original: 20b6408e10
2019-09-22 13:04:46 -04:00
Dmitry Sharshakov
f545f1d571 Fix types in example_client for ws module (denoland/deno_std#609)
Original: a4a8bb2948
2019-09-21 14:37:05 -04:00
Dmitry Sharshakov
b7dea16a37 Update mime-db to commit c50e0d1 (denoland/deno_std#608)
Original: 51134571c4
2019-09-21 14:33:21 -04:00
Nayeem Rahman
6fdf92d1ab Remove //testing/main.ts (denoland/deno_std#605)
Original: e3a33a79e6
2019-09-21 14:32:15 -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
Yoshiya Hinosawa
560edc536c Fix handling of config file (#2996) 2019-09-20 10:19:51 -04:00