Commit Graph

168 Commits

Author SHA1 Message Date
penenin
1ab096c80a
THRIFT-5185: Support for using WebSockets as a server transport
Client: cpp
2020-05-18 20:27:31 +01:00
Mario Emmenlauer
25f81d11c2
Rework NodeJS / Javascript consistency
Client: js

* Re-worked consistency of browser.js and index.js in lib/nodejs

* Wrap non-standard V8 method 'Error.captureStackTrace()'
2020-04-24 14:45:05 +01:00
Mario Emmenlauer
93171d2482 THRIFT-5109 Misc Cmake build improvements
Patch: Mario Emmenlauer

This closes #2094
2020-04-22 21:17:33 +02:00
Márton Csordás
102428d35d THRIFT-5163 adds Q to exports for browserify
Client: NodeJS
Patch: Márton Csordás

This closes #2061
2020-04-03 02:19:11 +02:00
Márton Csordás
dfd6df7588 THRIFT-3356: handle undefined captureStackTrace
Client: nodejs
Patch: Márton Csordás

This closes #2082
2020-04-03 02:12:25 +02:00
Jens Geyer
1b7b00cde9 CI broken, reverting following PRs
reverted https://github.com/apache/thrift/pull/2025
reverted https://github.com/apache/thrift/pull/2026
Reverted https://github.com/apache/thrift/pull/2021
2020-02-28 19:20:27 +01:00
Jens Geyer
aec555aac8 make dist fails due to CMakeList.txt files missing from the generated tarball 2020-02-26 22:14:12 +01:00
Mario Emmenlauer
61d502075b THRIFT-5109 Misc Cmake build improvements
Patch: Mario Emmenlauer

This closes #2026
This closes #2025
This closes #2021
2020-02-23 14:51:48 +01:00
Eugen
30ac2598e8 THRIFT-5003: Websocket Connection in Browsers with nodejs code
* changed this to self in forEach callback

* updated minimum node version to 8.16.2 (Maintenance LTS until December 2019)
changed ws_connection.js to work in the browser, with isomorphic-ws
added exports for `wsConnection`, `createWSConnection`, `createWSClient`

* added exports for WSConnection to browser.js

* extended the sample of nodejs code in the browser with webpack

* tested and updated node version to LTS 10.18.0 Dubnium
discussion based: https://github.com/apache/thrift/pull/1927#discussion_r358140463
2020-01-07 14:28:45 +00:00
Eugen Kandakov
f7b2197916 THRIFT-4994 changed this to self in forEach callback
Client: nodejs
Patch: Eugen Kandakov

This closes #1918
2019-11-04 22:00:24 +01:00
HIRANO Satoshi
8098428901 Add Node.js example for browsers
Client: js

This closes #1864.
2019-10-08 23:06:30 +01:00
fmalaguti
234e80e1b9 THRIFT-4844: createConnection ignores connect_timeout option 2019-07-08 13:06:21 -04:00
Mustafa Senol Cosar
3f0d444791 Implement episodic compilation for js code generation 2019-06-21 06:38:32 -04:00
Henrik Tudborg
c035eca3c6 hotfix: clear the offline queue when once written 2019-05-14 14:26:48 -04:00
David Mai
ddd2224e9c [THRIFT-4771] add nodejs THeaderProtocol support (#1743)
Client: nodejs
2019-02-22 06:37:49 -05:00
James E. King III
dbc1f8def5
THRIFT-4024, THRIFT-4783: throw when skipping invalid type (#1742)
* THRIFT-4024: make c_glib throw on unsupported type when skipping
* THRIFT-4783: throw on invalid skip (py)
* THRIFT-4024: make cpp throw on unsupported type when skipping
* THRIFT-4024: uniform skip behavior on unsupported type
2019-02-14 16:46:38 -05:00
James E. King III
3ec4031a4c THRIFT-4405: fix cygwin on appveyor 2019-02-01 11:13:49 -05:00
James E. King III
b96c43892a THRIFT-4717: fix up make clean with autoconf 2019-01-25 23:33:54 -05:00
Mustafa Senol Cosar
129bb3e10d THRIFT-4675: Fix int64 constants generation for map keys 2019-01-25 10:03:37 -05:00
Mustafa Senol Cosar
f86845e8ed THRIFT-4675: Generate Int64 constants for js 2019-01-15 09:20:54 -05:00
邹异雄
0f79045627 Fix: free useless timer 2019-01-05 01:59:19 -05:00
邹异雄
b239b0a53b Style: fix style 2019-01-05 01:59:19 -05:00
邹异雄
41d5d3a9ef Fix: do not reconnect if connection.destroyed, prevent connection leak 2019-01-05 01:59:19 -05:00
griffinmichl
208a048dc4 THRIFT-4679: Remove unused variable declaration 2018-12-07 16:18:46 -05:00
bforbis
da1169d75b THRIFT-4653: ES6 classes support (#1615)
* ES6 classes support
* Lint generated code
* ES6 Tests for NodeJS
* Add eslint rules for nodejs
* Run prettier/eslint on nodejs test code
2018-10-28 11:27:38 -04:00
jfarrell
2a2b72f6c8 Thrift-4647: Node.js Filesever webroot fixed path
Updates the node.js fileserver to have a fixed based webroot which can
not be escaped by end users.
2018-10-11 10:19:50 -04:00
Kevin Greene
fdd735eec3 THRIFT-4604: NodeJS add Int64 to exports for browserify (#1573) 2018-08-01 08:59:18 -04:00
bforbis
f2867c2498 THRIFT-3950: Memory leak while calling oneway methods (#1568)
* THRIFT-3950: Memory leak while calling oneway methods
* THRIFT-3950: Update NodeJS Oneway tests
2018-07-17 12:19:49 -04:00
Brian Forbis
896c206c56 THRIFT-4564: Reset buffered transport on serizliation errors 2018-06-21 20:48:16 -04:00
Filip Spiridonov
0293c3643b Add JS language highlighting in readme (#1538)
Client: nodejs
2018-04-17 23:21:30 -04:00
Filip Spiridonov
63b75d9e3a THRIFT-3926: Fix undeclared statusCode variable (#1531)
Client: nodejs
2018-04-06 08:56:54 -04:00
Daniel Shih
e41de0fbcb THRIFT-4489: Add unix domain socket support for nodejs
Client: nodejs

This closes #1491
2018-03-21 07:48:31 -04:00
Philip Frank
b963e286b4 THRIFT-4509: remove nodejs browser test
Client: nodejs

This closes #1501
2018-03-08 11:55:08 -05:00
Brian Forbis
b4f22ff301 THRIFT-4480 - Handle seqid = 0
Client: js

This closes #1487
2018-03-06 18:27:59 -05:00
James E. King III
a37feafd42 THRIFT-4508: end trusty CI builds; handle nodejs 4.x LTS EOL; update docs 2018-03-06 16:16:45 -05:00
Kerri Devine
91c74b6019 THRIFT-4443: Implement skip function in json_protocol
Client: node.js

This closes #1460
2018-01-10 21:21:03 -05:00
James E. King, III
58402ff6a7 THRIFT-2013: add multiplex server and client test support to cpp language
add multiplex client test support to csharp and java languages
fix a bug in the server-side header protocol factory
fix a bug in the cpp SSL server socket implementation
remove unnecessary sleep in cpp server testOneway

This closes #1414
2017-11-18 21:10:40 -05:00
James E. King, III
375bfee701 THRIFT-2998: enable cross test for nodejs http transport,
fix missing apache license headers in nodejs
Client: nodejs

This closes #1403
2017-10-28 17:54:58 -04:00
stanevt
5a4f7382d2 THRIFT-2998: Set Content-Type for HTTP request in Node.js wrapper.
Client: nodejs

This closes #378
2017-10-28 17:54:17 -04:00
James E. King, III
0ad20bdbfe THRIFT-4351: use travis build stages to optimize build,
avoiding duplicate rebuilds of the same image, and also
allow personal docker hub repositories for private fork
builds to be optimized. Move ubsan build to artful image
because it catches more stuff and fix what was found.

THRIFT-4345: solidify docker build strategy for maximum
coverage: trusty, xenial, artful as stock as they can be

THRIFT-4344: add top level language summary markdown and
update readme with a new image on the layered architecture

THRIFT-3847: remove VERSION macro from config.h which
was causing a conflict on artful builds.

THRIFT-4359: fix haxe map/set decode when key is binary,
as a missing break statement caused it to use an int
during decode

This closes #1389
2017-10-19 11:29:04 -04:00
cclauss
4bd3682c79 THRIFT-4309: Python print() function
Client: py

This closes #1339
2017-09-24 06:04:15 -07:00
Equim
c8e0207053 THRIFT-4288: Implement logging levels in node.js properly
Client: nodejs

This closes #1334
2017-09-23 06:11:34 -07:00
James E. King, III
699b5bc47a THRIFT-4064: update node dependencies
This closes #1359
2017-09-21 07:02:51 -07:00
Thomas Petazzoni
1744cdcb67 configure.ac, Makefile.am: introduce THRIFT variable to support cross-compilation
The thrift build system currently assumes that the thrift compiler is
always available in $(top_builddir)/compiler/cpp/thrift. However, in a
cross-compilation context, this location contains the thrift compiler
built for the target... which obviously will not run on the build
machine.

In order to support such cross-compilation situation, we introduce the
THRIFT variable as a an argument for the configure script (using
AC_ARG_VAR). If not specified, it defaults to the existing value of
using compiler/cpp/thrift from the build directory, but it can be
overridden when calling ./configure.

Note that $(top_builddir) cannot be used within the configure script,
so we simply use `pwd`, which is the same as the top_builddir.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

This closes #1336
This closes #1350
2017-09-09 07:50:54 -07:00
Victor Boivie
9235bec082 THRIFT-4246 Multiplexed clients sequence id fix
Client: nodejs

Previously, all clients would use the latest created multiplexer
for generating sequence numbers which would create a mismatch
between the mapping of sequence number->service in the connection.

This makes the client instances use the multiplexer that is
bound to it.

This closes #1322
2017-09-04 21:46:24 -07:00
James E. King, III
c60b69b376 THRIFT-4284: remove extraneous character
Client: js

This closes #1330
2017-08-12 16:19:04 -07:00
Adam Curtis
4361ecc3a1 THRIFT-3801 - Node Thrift client throws exception with multiplexer and responses that are bigger than a single buffer
Client: nodejs

This closes #773
This closes #1063
This closes #1202
2017-02-22 11:24:41 -05:00
James E. King, III
06190874c8 THRIFT-4084: Add a SSL/TLS negotiation check to crossfeature to verify SSLv3 is not active and that at least one of TLSv1.0 through 1.2 are accepted.
Client: csharp, d, go, nodejs, perl

This closes #1197
2017-02-20 08:52:11 -05:00
James E. King, III
3d6e2a5071 THRIFT-3926 There should be an error emitted when http status code is not 200
Client: nodejs
Patch: lifei <lifei@bytedance.com>

This closes #1086
2017-01-24 23:31:54 -05:00
Jens Geyer
fa133629a2 THRIFT-4015 Fix wrongly spelled "Thirft"s
Client: Perl + NodeJS
Patch: Jens Geyer
2016-12-26 11:35:43 +01:00