forked from nodejs/node-v0.x-archive
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ChangeLog
771 lines (421 loc) · 19.4 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
2010.03.12, Version 0.1.32
* Optimize event emitter for single listener
* Add process.evalcx, require.registerExtension (Tim Smart)
* Replace --cflags with --vars
* Fix bugs in fs.create*Stream (Felix Geisendörfer)
* Deprecate process.mixin, process.unloop
* Remove the 'Error: (no message)' exceptions, print stack
trace instead
* INI parser bug fixes (Isaac Schlueter)
* FreeBSD fixes (Vanilla Hsu)
* Upgrade to V8 2.1.3, WAF 1.5.14a, libev
2010.03.05, Version 0.1.31, 39b63dfe1737d46a8c8818c92773ef181fd174b3
* API: - Move process.watchFile into fs module
- Move process.inherits to sys
* Improve Solaris port
* tcp.Connection.prototype.write now returns boolean to indicate if
argument was flushed to the kernel buffer.
* Added fs.link, fs.symlink, fs.readlink, fs.realpath
(Rasmus Andersson)
* Add setgid,getgid (James Duncan)
* Improve sys.inspect (Benjamin Thomas)
* Allow passing env to child process (Isaac Schlueter)
* fs.createWriteStream, fs.createReadStream (Felix Geisendörfer)
* Add INI parser (Rob Ellis)
* Bugfix: fs.readFile handling encoding (Jacek Becela)
* Upgrade V8 to 2.1.2
2010.02.22, Version 0.1.30, bb0d1e65e1671aaeb21fac186b066701da0bc33b
* Major API Changes
- Promises removed. See
http://groups.google.com/group/nodejs/msg/426f3071f3eec16b
http://groups.google.com/group/nodejs/msg/df199d233ff17efa
The API for fs was
fs.readdir("/usr").addCallback(function (files) {
puts("/usr files: " + files);
});
It is now
fs.readdir("/usr", function (err, files) {
if (err) throw err;
puts("/usr files: " + files);
});
- Synchronous fs operations exposed, use with care.
- tcp.Connection.prototype.readPause() and readResume()
renamed to pause() and resume()
- http.ServerResponse.prototype.sendHeader() renamed to
writeHeader(). Now accepts reasonPhrase.
* Compact garbage on idle.
* Configurable debug ports, and --debug-brk (Zoran Tomicic)
* Better command line option parsing (Jeremy Ashkenas)
* Add fs.chmod (Micheil Smith), fs.lstat (Isaac Z. Schlueter)
* Fixes to process.mixin (Rasmus Andersson, Benjamin Thomas)
* Upgrade V8 to 2.1.1
2010.02.17, Version 0.1.29, 87d5e5b316a4276bcf881f176971c1a237dcdc7a
* Major API Changes
- Remove 'file' module
- require('posix') -----------------> require('fs')
- fs.cat ---------------------------> fs.readFile
- file.write -----------------------> fs.writeFile
- TCP 'receive' event --------------> 'data'
- TCP 'eof' event ------------------> 'end'
- TCP send() -----------------------> write()
- HTTP sendBody() ------------------> write()
- HTTP finish() --------------------> close()
- HTTP 'body' event ----------------> 'data'
- HTTP 'complete' event ------------> 'end'
- http.Client.prototype.close() (formerly finish()) no longer
takes an argument. Add the 'response' listener manually.
- Allow strings for the flag argument to fs.open
("r", "r+", "w", "w+", "a", "a+")
* Added multiple arg support for sys.puts(), print(), etc.
* sys.inspect(Date) now shows the date value (Mark Hansen)
* Calculate page size with getpagesize for armel (Jérémy Lal)
* Bugfix: stderr flushing.
* Bugfix: Promise late chain (Yuichiro MASUI)
* Bugfix: wait() on fired promises
(Felix Geisendörfer, Jonas Pfenniger)
* Bugfix: Use InstanceTemplate() instead of PrototypeTemplate() for
accessor methods. Was causing a crash with Eclipse debugger.
(Zoran Tomicic)
* Bugfix: Throw from connection.connect if resolving.
(Reported by James Golick)
2010.02.09, Version 0.1.28, 49de41ef463292988ddacfb01a20543b963d9669
* Use Google's jsmin.py which can be used for evil.
* Add posix.truncate()
* Throw errors from server.listen()
* stdio bugfix (test by Mikeal Rogers)
* Module system refactor (Felix Geisendörfer, Blaine Cook)
* Add process.setuid(), getuid() (Michael Carter)
* sys.inspect refactor (Tim Caswell)
* Multipart library rewrite (isaacs)
2010.02.03, Version 0.1.27, 0cfa789cc530848725a8cb5595224e78ae7b9dd0
* Implemented __dirname (Felix Geisendörfer)
* Downcase process.ARGV, process.ENV, GLOBAL
(now process.argv, process.env, global)
* Bug Fix: Late promise promise callbacks firing
(Felix Geisendörfer, Jonas Pfenniger)
* Make assert.AssertionError instance of Error
* Removed inline require call for querystring
* Add support for MX, TXT, and SRV records in DNS module.
(Blaine Cook)
* Bugfix: HTTP client automatically reconnecting
* Adding OS X .dmg build scripts. (Standa Opichal)
* Bugfix: ObjectWrap memory leak
* Bugfix: Multipart handle Content-Type headers with charset
(Felix Geisendörfer)
* Upgrade http-parser to fix header overflow attack.
* Upgrade V8 to 2.1.0
* Various other bug fixes, performance improvements.
2010.01.20, Version 0.1.26, da00413196e432247346d9e587f8c78ce5ceb087
* Bugfix, HTTP eof causing crash (Ben Williamson)
* Better error message on SyntaxError
* API: Move Promise and EventEmitter into 'events' module
* API: Add process.nextTick()
* Allow optional params to setTimeout, setInterval
(Micheil Smith)
* API: change some Promise behavior (Felix Geisendörfer)
- Removed Promise.cancel()
- Support late callback binding
- Make unhandled Promise errors throw an exception
* Upgrade V8 to 2.0.6.1
* Solaris port (Erich Ocean)
2010.01.09, Version 0.1.25, 39ca93549af91575ca9d4cbafd1e170fbcef3dfa
* sys.inspect() improvements (Tim Caswell)
* path module improvements (isaacs, Benjamin Thomas)
* API: request.uri -> request.url
It is no longer an object, but a string. The 'url' module
was addded to parse that string. That is, node no longer
parses the request URL automatically.
require('url').parse(request.url)
is roughly equivlent to the old request.uri object.
(isaacs)
* Bugfix: Several libeio related race conditions.
* Better errors for multipart library (Felix Geisendörfer)
* Bugfix: Update node-waf version to 1.5.10
* getmem for freebsd (Vanilla Hsu)
2009.12.31, Version 0.1.24, 642c2773a7eb2034f597af1cd404b9e086b59632
* Bugfix: don't chunk responses to HTTP/1.0 clients, even if
they send Connection: Keep-Alive (e.g. wget)
* Bugfix: libeio race condition
* Bugfix: Don't segfault on unknown http method
* Simplify exception reporting
* Upgrade V8 to 2.0.5.4
2009.12.22, Version 0.1.23, f91e347eeeeac1a8bd6a7b462df0321b60f3affc
* Bugfix: require("../blah") issues (isaacs)
* Bugfix: posix.cat (Jonas Pfenniger)
* Do not pause request for multipart parsing (Felix Geisendörfer)
2009.12.19, Version 0.1.22, a2d809fe902f6c4102dba8f2e3e9551aad137c0f
* Bugfix: child modules get wrong id with "index.js" (isaacs)
* Bugfix: require("../foo") cycles (isaacs)
* Bugfix: require() should throw error if module does.
* New URI parser stolen from Narwhal (isaacs)
* Bugfix: correctly check kqueue and epoll. (Rasmus Andersson)
* Upgrade WAF to 1.5.10
* Bugfix: posix.statSync() was crashing
* Statically define string symbols for performance improvement
* Bugfix: ARGV[0] weirdness
* Added superCtor to ctor.super_ instead superCtor.prototype.
(Johan Dahlberg)
* http-parser supports webdav methods
* API: http.Client.prototype.request() (Christopher Lenz)
2009.12.06, Version 0.1.21, c6affb64f96a403a14d20035e7fbd6d0ce089db5
* Feature: Add HTTP client TLS support (Rhys Jones)
* Bugfix: use --jobs=1 with WAF
* Bugfix: Don't use chunked encoding for 1.0 requests
* Bugfix: Duplicated header weren't handled correctly
* Improve sys.inspect (Xavier Shay)
* Upgrade v8 to 2.0.3
* Use CommonJS assert API (Felix Geisendörfer, Karl Guertin)
2009.11.28, Version 0.1.20, aa42c6790da8ed2cd2b72051c07f6251fe1724d8
* Add gnutls version to configure script
* Add V8 heap info to process.memoryUsage()
* process.watchFile callback has 2 arguments with the stat object
2009.11.28, Version 0.1.19, 633d6be328708055897b72327b88ac88e158935f
* Feature: Initial TLS support for TCP servers and clients.
(Rhys Jones)
* Add options to process.watchFile()
* Add process.umask() (Friedemann Altrock)
* Bugfix: only detach timers when active.
* Bugfix: lib/file.js write(), shouldn't always emit errors or success
* Bugfix: Memory leak in fs.write
(Reported by [email protected])
* Bugfix: Fix regular expressions detecting outgoing message headers.
(Reported by Elliott Cable)
* Improvements to Multipart parser (Felix Geisendörfer)
* New HTTP parser
* Upgrade v8 to 2.0.2
2009.11.17, Version 0.1.18, 027829d2853a14490e6de9fc5f7094652d045ab8
* Feature: process.watchFile() process.unwatchFile()
* Feature: "uncaughtException" event on process
(Felix Geisendörfer)
* Feature: 'drain' event to tcp.Connection
* Bugfix: Promise.timeout() blocked the event loop
(Felix Geisendörfer)
* Bugfix: sendBody() and chunked utf8 strings
(Felix Geisendörfer)
* Supply the strerror as a second arg to the tcp.Connection close
event (Johan Sørensen)
* Add EventEmitter.removeListener ([email protected])
* Format JSON for inspecting objects (Felix Geisendörfer)
* Upgrade libev to latest CVS
2009.11.07, Version 0.1.17, d1f69ef35dac810530df8249d523add168e09f03
* Feature: process.chdir() (Brandon Beacher)
* Revert http parser upgrade. (b893859c34f05db5c45f416949ebc0eee665cca6)
Broke keep-alive.
* API: rename process.inherits to sys.inherits
2009.11.03, Version 0.1.16, 726865af7bbafe58435986f4a193ff11c84e4bfe
* API: Use CommonJS-style module requiring
- require("/sys.js") becomes require("sys")
- require("circle.js") becomes require("./circle")
- process.path.join() becomes require("path").join()
- __module becomes module
* API: Many namespacing changes
- Move node.* into process.*
- Move node.dns into module "dns"
- Move node.fs into module "posix"
- process is no longer the global object. GLOBAL is.
For more information on the API changes see:
http://thread.gmane.org/gmane.comp.lang.javascript.nodejs/6
http://thread.gmane.org/gmane.comp.lang.javascript.nodejs/14
* Feature: process.platform, process.memoryUsage()
* Feature: promise.cancel() (Felix Geisendörfer)
* Upgrade V8 to 1.3.18
2009.10.28, Version 0.1.15, eca2de73ed786b935507fd1c6faccd8df9938fd3
* Many build system fixes (esp. for OSX users)
* Feature: promise.timeout() (Felix Geisendörfer)
* Feature: Added external interface for signal handlers, process.pid, and
process.kill() (Brandon Beacher)
* API: Rename node.libraryPaths to require.paths
* Bugfix: 'data' event for stdio should emit a string
* Large file support
* Upgrade http_parser
* Upgrade v8 to 1.3.16
2009.10.09, Version 0.1.14, b12c809bb84d1265b6a4d970a5b54ee8a4890513
* Feature: Improved addon builds with node-waf
* Feature: node.SignalHandler (Brandon Beacher)
* Feature: Enable V8 debugging (but still need to make a debugger)
* API: Rename library /utils.js to /sys.js
* Clean up Node's build system
* Don't use parseUri for HTTP server
* Remove node.pc
* Don't use /bin/sh to create child process except with exec()
* API: Add __module to reference current module
* API: Remove include() add node.mixin()
* Normalize http headers; "Content-Length" becomes "content-length"
* Upgrade V8 to 1.3.15
2009.09.30, Version 0.1.13, 58493bb05b3da3dc8051fabc0bdea9e575c1a107
* Feature: Multipart stream parser (Felix Geisendörfer)
* API: Move node.puts(), node.exec() and others to /utils.js
* API: Move http, tcp libraries to /http.js and /tcp.js
* API: Rename node.exit() to process.exit()
* Bugfix: require() and include() should work in callbacks.
* Pass the Host header in http.cat calls
* Add warning when coroutine stack size grows too large.
* Enhance repl library (Ray Morgan)
* Bugfix: build script for
GCC 4.4 (removed -Werror in V8),
on Linux 2.4,
and with Python 2.4.4.
* Add read() and write() to /file.js to read and write
whole files at once.
2009.09.24, Version 0.1.12, 2f56ccb45e87510de712f56705598b3b4e3548ec
* Feature: System modules, node.libraryPaths
* API: Remove "raw" encoding, rename "raws" to "binary".
* API: Added connection.setNoDElay() to disable Nagle algo.
* Decrease default TCP server backlog to 128
* Bugfix: memory leak involving node.fs.* methods.
* Upgrade v8 to 1.3.13
2009.09.18, Version 0.1.11, 5ddc4f5d0c002bac0ae3d62fc0dc58f0d2d83ec4
* API: default to utf8 encoding for node.fs.cat()
* API: add node.exec()
* API: node.fs.read() takes a normal encoding parameter.
* API: Change arguments of emit(), emitSuccess(), emitError()
* Bugfix: node.fs.write() was stack allocating buffer.
* Bugfix: ReportException shouldn't forget the top frame.
* Improve buffering for HTTP outgoing messages
* Fix and reenable x64 macintosh build.
* Upgrade v8 to 1.3.11
2009.09.11, Version 0.1.10, 12bb0d46ce761e3d00a27170e63b40408c15b558
* Feature: raw string encoding "raws"
* Feature: access to environ through "ENV"
* Feature: add isDirectory, isFile, isSocket, ... methods
to stats object.
* Bugfix: Internally use full paths when loading modules
this fixes a shebang loading problem.
* Bugfix: Add '--' command line argument for seperating v8
args from program args.
* Add man page.
* Add node-repl
* Upgrade v8 to 1.3.10
2009.09.05, Version 0.1.9, d029764bb32058389ecb31ed54a5d24d2915ad4c
* Bugfix: Compile on Snow Leopard.
* Bugfix: Malformed URIs raising exceptions.
2009.09.04, Version 0.1.8, e6d712a937b61567e81b15085edba863be16ba96
* Feature: External modules
* Feature: setTimeout() for node.tcp.Connection
* Feature: add node.cwd(), node.fs.readdir(), node.fs.mkdir()
* Bugfix: promise.wait() releasing out of order.
* Bugfix: Asyncly do getaddrinfo() on Apple.
* Disable useless evcom error messages.
* Better stack traces.
* Built natively on x64.
* Upgrade v8 to 1.3.9
2009.08.27, Version 0.1.7, f7acef9acf8ba8433d697ad5ed99d2e857387e4b
* Feature: global 'process' object. Emits "exit".
* Feature: promise.wait()
* Feature: node.stdio
* Feature: EventEmitters emit "newListener" when listeners are
added
* API: Use flat object instead of array-of-arrays for HTTP
headers.
* API: Remove buffered file object (node.File)
* API: require(), include() are synchronous. (Uses
continuations.)
* API: Deprecate onLoad and onExit.
* API: Rename node.Process to node.ChildProcess
* Refactor node.Process to take advantage of evcom_reader/writer.
* Upgrade v8 to 1.3.7
2009.08.22, Version 0.1.6, 9c97b1db3099d61cd292aa59ec2227a619f3a7ab
* Bugfix: Ignore SIGPIPE.
2009.08.21, Version 0.1.5, b0fd3e281cb5f7cd8d3a26bd2b89e1b59998e5ed
* Bugfix: Buggy connections could crash node.js. Now check
connection before sending data every time (Kevin van Zonneveld)
* Bugfix: stdin fd (0) being ignored by node.File. (Abe Fettig)
* API: Remove connnection.fullClose()
* API: Return the EventEmitter from addListener for chaining.
* API: tcp.Connection "disconnect" event renamed to "close"
* Upgrade evcom
Upgrade v8 to 1.3.6
2009.08.13, Version 0.1.4, 0f888ed6de153f68c17005211d7e0f960a5e34f3
* Major refactor to evcom.
* Enable test-tcp-many-clients.
* Add -m32 gcc flag to udns.
* Add connection.readPause() and connection.readResume()
Add IncomingMessage.prototype.pause() and resume().
* Fix http benchmark. Wasn't correctly dispatching.
* Bugfix: response.setBodyEncoding("ascii") not working.
* Bugfix: Negative ints in HTTP's on_body and node.fs.read()
* Upgrade v8 to 1.3.4
Upgrade libev to 3.8
Upgrade http_parser to v0.2
2009.08.06, Version 0.1.3, 695f0296e35b30cf8322fd1bd934810403cca9f3
* Upgrade v8 to 1.3.2
* Bugfix: node.http.ServerRequest.setBodyEncoding('ascii') not
working
* Bugfix: node.encodeUtf8 was broken. (Connor Dunn)
* Add ranlib to udns Makefile.
* Upgrade evcom - fix accepting too many connections issue.
* Initial support for shebang
* Add simple command line switches
* Add node.version API
2009.08.01, Version 0.1.2, 025a34244d1cea94d6d40ad7bf92671cb909a96c
* Add DNS API
* node.tcp.Server's backlog option is now an argument to listen()
* Upgrade V8 to 1.3.1
* Bugfix: Default to chunked for client requests without
Content-Length.
* Bugfix: Line numbers in stack traces.
* Bugfix: negative integers in raw encoding stream
* Bugfix: node.fs.File was not passing args to promise callbacks.
2009.07.27, Version 0.1.1, 77d407df2826b20e9177c26c0d2bb4481e497937
* Simplify and clean up ObjectWrap.
* Upgrade liboi (which is now called evcom)
Upgrade libev to 3.7
Upgrade V8 to 1.2.14
* Array.prototype.encodeUtf8 renamed to node.encodeUtf8(array)
* Move EventEmitter.prototype.emit() completely into C++.
* Bugfix: Fix memory leak in event emitters.
http://groups.google.com/group/nodejs/browse_thread/thread/a8d1dfc2fd57a6d1
* Bugfix: Had problems reading scripts with non-ascii characters.
* Bugfix: Fix Detach() in node::Server
* Bugfix: Sockets not properly reattached if reconnected during
disconnect event.
* Bugfix: Server-side clients not attached between creation and
on_connect.
* Add 'close' event to node.tcp.Server
* Simplify and clean up http.js. (Takes more advantage of event
infrastructure.)
* Add benchmark scripts. Run with "make benchmark".
2009.06.30, Version 0.1.0, 0fe44d52fe75f151bceb59534394658aae6ac328
* Update documentation, use asciidoc.
* EventEmitter and Promise interfaces. (Breaks previous API.)
* Remove node.Process constructor in favor of node.createProcess
* Add -m32 flags for compiling on x64 platforms.
(Thanks to András Bártházi)
* Upgrade v8 to 1.2.10 and libev to 3.6
* Bugfix: Timer::RepeatSetter wasn't working.
* Bugfix: Spawning many processes in a loop
(reported by Felix Geisendörfer)
2009.06.24, Version 0.0.6, fbe0be19ebfb422d8fa20ea5204c1713e9214d5f
* Load modules via HTTP URLs (Urban Hafner)
* Bugfix: Add HTTPConnection->size() and HTTPServer->size()
* New node.Process API
* Clean up build tools, use v8's test runner.
* Use ev_unref() instead of starting/stopping the eio thread
pool watcher.
2009.06.18, Version 0.0.5, 3a2b41de74b6c343b8464a68eff04c4bfd9aebea
* Support for IPv6
* Remove namespace node.constants
* Upgrade v8 to 1.2.8.1
* Accept ports as strings in the TCP client and server.
* Bugfix: HTTP Client race
* Bugfix: freeaddrinfo() wasn't getting called after
getaddrinfo() for TCP servers
* Add "opening" to TCP client readyState
* Add remoteAddress to TCP client
* Add global print() function.
2009.06.13, Version 0.0.4, 916b9ca715b229b0703f0ed6c2fc065410fb189c
* Add interrupt() method to server-side HTTP requests.
* Bugfix: onBodyComplete was not getting called on server-side
HTTP
2009.06.11, Version 0.0.3, 6e0dfe50006ae4f5dac987f055e0c9338662f40a
* Many bug fixes including the problem with http.Client on
macintosh
* Upgrades v8 to 1.2.7
* Adds onExit hook
* Guard against buffer overflow in http parser
* require() and include() now need the ".js" extension
* http.Client uses identity transfer encoding by default.