Michael Lumish
f3ac739175
Merge pull request #554 from cjihrig/creds
...
grpc-js-core: delay composing credentials
2018-09-25 15:48:51 -07:00
murgatroid99
a3e71b3eeb
Fix missing property in ClientHttp2StreamMock
2018-09-25 12:20:53 -07:00
cjihrig
6e87e48607
grpc-js-core: delay composing credentials
...
The channel and stream credentials may change between the time
a CallCredentialsFilterFactory is created and the time that
the metadata is sent. This commit delays composing the credentials
until the time metadata is sent.
2018-09-25 12:57:38 -04:00
Michael Lumish
1b11238d38
Merge pull request #538 from cjihrig/return-await
...
grpc-js-core: remove use of return await
2018-09-14 10:03:58 -07:00
cjihrig
4ae503abee
grpc-js-core: remove use of return await
...
return await isn't typically useful in async functions.
2018-09-10 17:44:31 -04:00
cjihrig
27338349a1
grpc-js-core: use Buffer.from in metadata cloning
...
When cloning binary metadata, use Buffer.from() instead of
Buffer.prototype.slice(), as the latter creates a new Buffer
that shares the same underlying bytes.
2018-09-09 15:42:47 -04:00
Michael Lumish
b7b45e6dd7
Merge pull request #527 from murgatroid99/pure_js_version_0.3
...
Update pure JS version, README
2018-09-06 10:19:18 -07:00
Michael Lumish
1a689a2f4a
Merge pull request #288 from kjin/status-before-end
...
Pure JS: emit 'status'/'error' before 'end' for server streams
2018-09-05 17:26:04 -07:00
murgatroid99
4c07ed3d66
Update pure JS version, README
2018-09-05 16:54:12 -07:00
cjihrig
0781f5df73
grpc-js-core: run linter when tests are run
...
This commit runs the js.core.lint job when js.core.test is
run to ensure the linting doesn't get stale.
2018-09-04 19:05:38 -04:00
cjihrig
a97e81f422
grpc-js-core: remove unused variables
...
This commit removes unused variables reported by temporarily
enabling tslint's no-unused-variable rule. Unused function
parameters have not been removed.
2018-09-04 19:05:34 -04:00
cjihrig
03c261538b
grpc-js-core: make gts check pass
...
This commit makes the gts check command pass.
2018-09-04 19:04:28 -04:00
cjihrig
eecefd3249
grpc-js-core: fix lint
...
This commit makes the lint Gulp task pass again.
2018-09-04 18:46:34 -04:00
Michael Lumish
37f956d92a
Merge pull request #525 from cjihrig/status-builder
...
grpc-js-core: add StatusBuilder support
2018-09-04 15:43:01 -07:00
cjihrig
a4583081dd
grpc-js-core: add StatusBuilder support
...
This commit ports StatusBuilder to TypeScript.
2018-09-02 09:08:07 -04:00
murgatroid99
46b577a682
Pure js: fix engines field, add runtime check
2018-08-31 15:12:20 -07:00
cjihrig
2c75b64071
grpc-js-core: remove extra map() calls in fromHttp2Headers()
...
The extra map() calls added an extra loop over the arrays
just to trim() a string. This commit moves the trim() into
the forEach() and drops the map().
2018-08-28 17:21:07 -04:00
cjihrig
b64ed1c18e
grpc-js-core: add missing space in error message
...
This commit adds a missing space to an error message and
updates a test to prevent regressions.
2018-08-28 17:20:32 -04:00
cjihrig
797bcbaffe
grpc-js-core: simplify regular expression usage
...
This commit moves two regular expressions out of the functions
they are used in, and defines them as constants. This commit
also switches from match() to test(), as a Boolean result is
all that's needed.
2018-08-28 17:20:31 -04:00
Michael Lumish
d777e9312b
Merge pull request #514 from cjihrig/buffer-depr
...
grpc-js-core: remove use of deprecated Buffer() constructor
2018-08-28 12:13:50 -07:00
cjihrig
6573e70ad4
grpc-js-core: implement setLogger() and setLogVerbosity()
...
These were missing from the pure JS implementation. This commit
adds them.
2018-08-26 11:50:33 -04:00
cjihrig
7528efbd32
grpc-js-core: remove use of deprecated Buffer() constructor
...
The Buffer() constructor should not be used. This commit
replaces its use in grpc-js-core tests with Buffer.from().
2018-08-25 11:32:14 -04:00
murgatroid99
8d37d2321e
Mark some methods of ChannelCredentials as internal
2018-08-23 13:56:59 -07:00
murgatroid99
89e47c84f7
Pure JS: Implement public Channel API
2018-08-22 18:06:01 -07:00
murgatroid99
0b945cc89f
Pure JS: add warnings for unhandled channel options
2018-08-15 13:29:14 -07:00
murgatroid99
b4fda0a153
Fix channel credentials tests
2018-08-13 17:16:36 -07:00
murgatroid99
ecb84dafb2
Fix switched condition in channel code
2018-08-13 17:01:28 -07:00
murgatroid99
94f059ae21
Add checkServerIdentity callback to pure js library
2018-08-13 15:57:21 -07:00
murgatroid99
446d560fde
Fix stream.write type incompatibility
2018-08-06 10:58:07 -07:00
murgatroid99
2c0359f230
Fix spelling error, make narrower cast in dereference
2018-08-03 14:28:40 -07:00
murgatroid99
500642b5ac
Create separate subchannel class, fix default keepalive time value
2018-08-03 13:43:23 -07:00
murgatroid99
8bbd4752d9
Make default keepalive time fit in a 32-bit integer
2018-08-01 11:20:42 -07:00
murgatroid99
a750587bb0
Pure js: add simple keepalive logic
2018-07-31 11:30:15 -07:00
murgatroid99
91e1837d16
Publish .d.ts files in grpc-js. Also bump the version
2018-06-14 14:58:04 -07:00
Michael Lumish
49298d20fa
Merge pull request #381 from murgatroid99/pure_js_compression_support
...
Add compression handling to grpc-js
2018-05-30 17:18:59 -07:00
murgatroid99
acfcc9f981
Format code
2018-05-30 16:08:42 -07:00
murgatroid99
3edea49bb3
Compile grpc-js to ES6 to improve debugging
2018-05-30 15:57:58 -07:00
murgatroid99
aa9d47da14
Make grpc-js tests run on Node 8.11.2
2018-05-30 15:57:35 -07:00
murgatroid99
14cf37fdd9
Add compression handling on send and receive paths
2018-05-30 15:56:58 -07:00
Ali Ijaz Sheikh
1192eed498
[squash] fix typo
2018-05-21 07:48:16 -07:00
Ali Ijaz Sheikh
7b9ad34d50
chore: add repository to package.json
2018-05-21 07:44:37 -07:00
Michael Lumish
49c354a223
Revert "Revert "Add coverage reporting for JavaScript and TypeScript files""
2018-05-16 14:03:23 -07:00
Jan Tattermusch
1b4d66b382
Revert "Add coverage reporting for JavaScript and TypeScript files"
2018-05-15 18:29:06 -07:00
Michael Lumish
ec3ba77bdf
Merge pull request #332 from murgatroid99/code_coverage
...
Add coverage reporting for JavaScript and TypeScript files
2018-05-15 11:18:00 -07:00
murgatroid99
09194cb757
Reference and unreference http2 sessions more dynamically
2018-05-14 11:00:15 -07:00
William Yardley
afbb9f4a7f
Update lodash version to ^4.17.5 ( #330 )
...
This should resolve warnings related to
https://nodesecurity.io/advisories/577
2018-05-10 11:03:36 -07:00
Michael Lumish
0cf24ad004
Merge pull request #220 from kjin/test-grpc-js
...
test: test grpc-js in ci
2018-05-09 10:36:09 -07:00
murgatroid99
a6747e910b
Merge remote-tracking branch 'upstream/v1.11.x' into v1.11.x_merge
2018-05-03 14:30:11 -07:00
Kelvin Jin
809e9d1edd
Pure JS: emit 'status' before 'end'
2018-04-20 17:23:19 -07:00
murgatroid99
0b075f18bb
Add subchannel error handler, copy waitForReady wrapper from 1.11
2018-04-20 14:46:51 -07:00