Commit Graph

87 Commits

Author SHA1 Message Date
Michael Lumish bb26dcfd1e grpc-js: Fix handling of grpc.enable_channelz option 2021-11-05 10:12:12 -07:00
Michael Lumish d60c4ea16f Add channelz tests and fix some bugs 2021-09-27 10:46:39 -07:00
Michael Lumish bd1571fa94
Merge pull request #1852 from murgatroid99/grpc-js_bind_creds_typecheck
grpc-js: Tighten server.bindAsync creds typecheck
2021-07-19 13:15:29 -07:00
murgatroid99 af1676a5a5 Add test for passing client credentials to server 2021-07-16 16:39:26 -07:00
murgatroid99 9e4039d86b Updated text in bindAsync error test 2021-07-16 10:45:40 -07:00
murgatroid99 6359bf066f Remove test for exact default logger identity 2021-07-15 10:55:50 -07:00
Michael Lumish 8605ef2ded Fix subchannel address import, resolver test setup 2021-06-29 10:43:45 -07:00
Michael Lumish 82fada33ff Merge remote-tracking branch 'upstream/@grpc/grpc-js@1.3.x' into grpc-js_upmerge_from_1.3 2021-06-29 10:02:33 -07:00
Michael Lumish 031ae9472e grpc-js: Refactor code to eliminate runtime dependency cycles 2021-06-24 09:50:02 -07:00
Michael Lumish d51551f6d7 grpc-js-xds: Add support for timeout xDS interop test
Add more logging
2021-05-19 13:25:33 -07:00
Michael Lumish c9aad43358 grpc-js: Add support for ipv4 and ipv6 schemes 2021-04-16 13:35:42 -07:00
Michael Lumish fe4bd2641a
Merge pull request #1654 from 418sec/1-npm-grpc
Security Fix for Prototype Pollution - huntr.dev
2021-01-07 12:54:54 -08:00
d3v53c 6101694397 added test case 2020-12-07 22:40:14 -08:00
Michael Lumish a006be07f4 grpc-js-xds: Shutdown the xDS client used by the resolver when the channel shuts down 2020-11-25 12:33:36 -08:00
Michael Lumish ae2b64bd65 grpc-js: Implement deadline and cancellation propagation 2020-10-30 11:38:30 -07:00
Daniel Shmuglin 51ca00298e implement Server#unregisterService(serviceDefinition) 2020-10-29 11:33:29 +02:00
Daniel Shmuglin 7c3ccda8ff implement Server#unregister(handlerName) 2020-10-29 10:54:33 +02:00
Daniel Shmuglin e49524a2ba Server#addService - lift the limitation of adding a new service to started server 2020-10-29 10:24:31 +02:00
Michael Lumish 967eeb5443 grpc-js: Prevent prototype pollution in loadPackageDefinition 2020-10-20 11:19:22 -07:00
Michael Lumish 1fc284f59d
Revert "fix(grpc-js): Add support for impl type to server.addService" 2020-09-02 15:17:57 -07:00
Slavo Vojacek fba1ee0cc3 fix(grpc): Fix typings 2020-09-02 20:32:31 +01:00
Slavo Vojacek 38e988ea03 fix(grpc-js): Add support for impl type to server.addService 2020-08-31 20:34:14 +01:00
Michael Lumish 52eb0df1f8 grpc-js: Add XdsResolver and corresponding XdsClient behavior 2020-08-03 10:44:28 -07:00
Michael Lumish 69d4116057
Merge pull request #1413 from murgatroid99/grpc-js_pick_first_reconnect_fix
grpc-js: Fix pick_first handling of IDLE subchannels.
2020-05-21 10:29:58 -07:00
Michael Lumish c6deb79269 Test header splitting behavior 2020-05-21 10:12:08 -07:00
Michael Lumish 3d8c9af401 grpc-js: Fix pick_first handling of IDLE subchannels. Also stop reporting IDLE on LB creation 2020-05-08 10:30:56 -07:00
Alexander Fenster ebfc5c9594 fix: make stream.write() synchronous in server-call 2020-04-22 13:58:26 -07:00
Michael Lumish e0533363ec Fix "other" resolver test 2020-04-21 10:55:06 -07:00
Michael Lumish 23e2353ea0 Update tests and add new ones 2020-04-21 09:58:34 -07:00
Michael Lumish ae61562be2
Merge pull request #1364 from murgatroid99/grpc-js_uri_parsing
grpc-js: Use a more structured representation of URIs internally
2020-04-20 12:19:18 -07:00
Michael Lumish 8b16b3b699
Merge pull request #1368 from badsyntax/client-waitforready-fix
grpc-js: Client waitForReady callback fix.  Fixes #1352
2020-04-20 12:18:15 -07:00
Richard Willis 7e381f7f2a grpc-js: Simplify client.waitForReady tests. Refs #1352
No need to add a service to the server to test the client.
2020-04-20 19:14:20 +01:00
Richard Willis 615a3c65b1 grpc-js: Add test for client.waitForReady. Refs #1352 2020-04-18 09:45:22 +01:00
Michael Lumish dbe98ad090 Fix "other" resovler registration code 2020-04-16 08:34:24 -07:00
Michael Lumish 1cd0ef12f2 Fix target name in "other" resolver test 2020-04-16 07:45:29 -07:00
Michael Lumish 13cc016e4e grpc-js: Use a more structured representation of URIs internally 2020-04-15 18:04:49 -07:00
Patrick Remy 53f3daa685
Revert "grpc-js: allow any for linting globally"
This reverts commit 16ec0f0f64 and
replaces tslint-disable statements by eslint-disable.
2020-04-10 11:03:53 +02:00
Patrick Remy 0d927e6872
grpc-js: remove tslint disable statements 2020-04-09 12:10:39 +02:00
Patrick Remy 16ec0f0f64
grpc-js: allow any for linting globally
The any type is purposely used. All functions validate their input at runtime.
2020-04-09 11:52:24 +02:00
Michael Lumish 2f953e4457 grpc-js: Don't wait for TXT record to return DNS lookup result 2020-03-26 16:30:48 -07:00
murgatroid99 ca18cca813 grpc-js: tests: skip checking for IPv6 addresses from DNS servers 2020-03-10 10:47:17 -07:00
Michael Lumish f2b740f6ce grpc-js: Always return IPv6 addresses from DNS resolver 2020-03-03 10:17:10 -08:00
murgatroid99 1fe6432d92 Differentiate more strongly between TCP and IPC addresses 2020-01-29 16:50:29 -08:00
murgatroid99 c5428c5733 lint and formatting fixes 2020-01-29 09:56:49 -08:00
murgatroid99 57c18382d8 grpc-js: Use an object to represent subchannel addresses 2020-01-29 09:42:13 -08:00
murgatroid99 8af2bc83f8 Don't test irrelevant parts of output 2019-12-12 14:17:46 -08:00
James Sharp ad9e53ada6
grpc-js: fix explicit ipv6 addresses not resolving correctly 2019-11-22 12:28:57 +00:00
James Sharp dd414b6ddc
grpc-js: fix error messages truncating at commas 2019-11-20 17:36:05 +00:00
Jared Dellitt 54a95106a6 Change getDefaultAuthority in resolver to look at the registered resolvers instead of registerDefaultResolver function 2019-11-10 18:00:27 -06:00
Natan Sągol 50067fe9c4
style(grpc-js): format files using gts 2019-11-08 08:01:18 +01:00