This is an automated email from the ASF dual-hosted git repository.
liujun pushed a change to branch dubbo3
in repository https://gitbox.apache.org/repos/asf/dubbo-js.git
from 0b753ed Merge pull request #351 from jianyi-gronk/improve_crosstest
add 1dfb0a3 feat: add testRoutes about isolation test
add 62fdc87 test: add Server with isolation test
add 8e0ef7b test: add transports about Isolation test
add be1acbc test: change test transports name
add 4c18dc7 test: change test structure in testserver.ts
add 2d11a26 fix: fix callback client param
add 561b05c feat: export Expand option in Handler
add 8c89f77 fix: fix handler type
add 283a68a fix: fix server test about fastify
add 4e36597 test: add test samples about server isolation
add 9216e84 fix: fix fastify bug about multiple handles corresponding to
the one request
add d3f42f3 fix: fastify server should return 404 response
add 938fd56 refactor: publish new version
add dd9eba1 style: renew proto file
add 5cd963e feat: renew dubbo-node-example
add a979e1e feat: renew dubbo-web-example
add cbda6b8 feat: migrate proto file
add b1b7335 refactor: publish new alpha version
add ff335aa Update node.js.yml
new 1e13938 Merge pull request #352, add isolation test in crosstest
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.github/workflows/node.js.yml | 10 +-
LICENSE | 4 +-
Makefile | 6 +-
example/dubbo-node-example/README.md | 14 +-
example/dubbo-node-example/client.ts | 4 +-
example/dubbo-node-example/dubbo.ts | 2 +-
example/dubbo-node-example/gen/example_dubbo.ts | 2 +-
example/dubbo-node-example/package-lock.json | 140 +++----
example/dubbo-node-example/package.json | 6 +-
example/dubbo-node-example/server.ts | 2 +-
example/dubbo-web-example/README.md | 16 +-
example/dubbo-web-example/package-lock.json | 434 +++------------------
example/dubbo-web-example/package.json | 6 +-
example/dubbo-web-example/src/App.tsx | 4 +-
.../src/util/gen/example_dubbo.ts | 2 +-
internal/proto/buf.yaml | 12 +
internal/proto/grpc/testing/empty.proto | 29 ++
internal/proto/grpc/testing/messages.proto | 284 ++++++++++++++
internal/proto/grpc/testing/test.proto | 126 ++++++
.../proto/server/v1/server.proto | 36 +-
packages/dubbo-express/README.md | 18 +-
packages/dubbo-express/package.json | 8 +-
.../dubbo-express/src/express-dubbo-middleware.ts | 13 +-
packages/dubbo-fastify/README.md | 18 +-
packages/dubbo-fastify/package.json | 8 +-
packages/dubbo-fastify/src/fastify-dubbo-plugin.ts | 37 +-
packages/dubbo-next/README.md | 20 +-
packages/dubbo-next/package.json | 8 +-
packages/dubbo-next/src/dubbo-nextjs-adapter.ts | 13 +-
packages/dubbo-node-test/README.md | 4 +-
packages/dubbo-node-test/dubbo-node-h1-server.mjs | 2 +-
packages/dubbo-node-test/package.json | 14 +-
.../src/badweather/broken-input.spec.ts | 8 +-
.../unsupported-content-encoding.spec.ts | 8 +-
.../src/badweather/unsupported-media-type.spec.ts | 4 +-
.../src/badweather/unsupported-method.spec.ts | 4 +-
packages/dubbo-node-test/src/compression.spec.ts | 4 +-
.../src/crosstest/cacheable_unary.spec.ts | 2 +-
.../src/crosstest/cancel_after_begin.spec.ts | 2 +-
.../crosstest/cancel_after_first_response.spec.ts | 50 +--
.../src/crosstest/client_streaming.spec.ts | 2 +-
.../src/crosstest/custom_metadata.spec.ts | 2 +-
.../custom_metadata_server_streaming.spec.ts | 2 +-
.../src/crosstest/empty_stream.spec.ts | 2 +-
.../src/crosstest/empty_unary.spec.ts | 2 +-
.../src/crosstest/empty_unary_with_timeout.spec.ts | 2 +-
.../src/crosstest/fail_server_streaming.spec.ts | 2 +-
.../fail_server_streaming_after_response.spec.ts | 2 +-
.../src/crosstest/fail_unary.spec.ts | 2 +-
.../src/crosstest/large_unary.spec.ts | 2 +-
.../src/crosstest/ping_pong.spec.ts | 50 +--
.../src/crosstest/server_isolation.spec.ts | 88 +++++
.../src/crosstest/server_streaming.spec.ts | 2 +-
.../src/crosstest/special_status.spec.ts | 2 +-
.../src/crosstest/status_code_and_message.spec.ts | 2 +-
.../crosstest/timeout_on_sleeping_server.spec.ts | 4 +-
.../src/crosstest/unimplemented_method.spec.ts | 2 +-
.../unimplemented_server_streaming_method.spec.ts | 2 +-
.../unimplemented_server_streaming_service.spec.ts | 2 +-
.../src/crosstest/unimplemented_service.spec.ts | 2 +-
.../src/crosstest/unresolvable_host.spec.ts | 16 +-
.../dubbo-node-test/src/express-readme.spec.ts | 8 +-
.../src/extra/protocol-name.spec.ts | 10 +-
.../src/gen/grpc/testing/test_dubbo.ts | 2 +-
.../dubbo-node-test/src/helpers/test-routes.ts | 8 +-
packages/dubbo-node-test/src/helpers/testserver.ts | 428 ++++++++++++++------
packages/dubbo-node-test/src/node-readme.spec.ts | 6 +-
packages/dubbo-node-test/src/transports.spec.ts | 4 +-
packages/dubbo-node/README.md | 28 +-
packages/dubbo-node/package.json | 6 +-
packages/dubbo-node/src/compression.ts | 8 +-
packages/dubbo-node/src/dubbo-node-adapter.ts | 13 +-
packages/dubbo-node/src/dubbo-transport.ts | 6 +-
packages/dubbo-node/src/grpc-transport.ts | 6 +-
packages/dubbo-node/src/grpc-web-transport.ts | 6 +-
.../dubbo-node/src/http2-session-manager.spec.ts | 2 +-
packages/dubbo-node/src/http2-session-manager.ts | 2 +-
packages/dubbo-node/src/node-error.ts | 2 +-
packages/dubbo-node/src/node-transport-options.ts | 4 +-
.../dubbo-node/src/node-universal-client.spec.ts | 4 +-
packages/dubbo-node/src/node-universal-client.ts | 6 +-
.../dubbo-node/src/node-universal-handler.spec.ts | 4 +-
packages/dubbo-node/src/node-universal-handler.ts | 4 +-
.../dubbo-node/src/use-node-server-helper.spec.ts | 2 +-
packages/dubbo-web-bench/package.json | 4 +-
packages/dubbo-web-bench/src/entry-dubbo.ts | 4 +-
.../buf/connect/demo/eliza/v1/eliza_dubbo.ts | 2 +-
packages/dubbo-web-test/README.md | 6 +-
packages/dubbo-web-test/package.json | 8 +-
.../src/browserstackonly/eliza.spec.ts | 4 +-
packages/dubbo-web-test/src/cancellation.spec.ts | 4 +-
.../src/crosstest/cacheable_unary.spec.ts | 2 +-
.../src/crosstest/custom_metadata.spec.ts | 2 +-
.../custom_metadata_server_streaming.spec.ts | 2 +-
.../src/crosstest/empty_stream.spec.ts | 2 +-
.../src/crosstest/empty_unary.spec.ts | 2 +-
.../src/crosstest/empty_unary_with_timeout.spec.ts | 2 +-
.../src/crosstest/fail_server_streaming.spec.ts | 2 +-
.../fail_server_streaming_after_response.spec.ts | 2 +-
.../src/crosstest/fail_unary.spec.ts | 2 +-
.../src/crosstest/large_unary.spec.ts | 2 +-
.../src/crosstest/server_streaming.spec.ts | 2 +-
.../src/crosstest/special_status.spec.ts | 2 +-
.../src/crosstest/status_code_and_message.spec.ts | 2 +-
.../crosstest/timeout_on_sleeping_server.spec.ts | 4 +-
.../src/crosstest/unimplemented_method.spec.ts | 2 +-
.../unimplemented_server_streaming_method.spec.ts | 2 +-
.../unimplemented_server_streaming_service.spec.ts | 2 +-
.../src/crosstest/unimplemented_service.spec.ts | 2 +-
packages/dubbo-web-test/src/fetch.spec.ts | 4 +-
.../gen/buf/connect/demo/eliza/v1/eliza_dubbo.ts | 2 +-
.../src/gen/grpc/testing/test_dubbo.ts | 2 +-
.../dubbo-web-test/src/helpers/crosstestserver.ts | 16 +-
packages/dubbo-web-test/src/helpers/test-routes.ts | 4 +-
packages/dubbo-web-test/src/interceptor.spec.ts | 4 +-
packages/dubbo-web/README.md | 14 +-
packages/dubbo-web/package.json | 6 +-
packages/dubbo-web/src/dubbo-transport.ts | 10 +-
packages/dubbo-web/src/grpc-web-transport.ts | 6 +-
packages/dubbo/README.md | 4 +-
packages/dubbo/package.json | 4 +-
packages/dubbo/src/callback-client.ts | 5 +-
packages/dubbo/src/legacy-interceptor.ts | 4 +-
.../src/protocol-grpc-web/request-header.spec.ts | 2 +-
.../dubbo/src/protocol-grpc-web/request-header.ts | 2 +-
.../dubbo/src/protocol-grpc/request-header.spec.ts | 2 +-
packages/dubbo/src/protocol-grpc/request-header.ts | 2 +-
packages/dubbo/src/protocol-triple/index.ts | 1 +
packages/dubbo/src/router.ts | 4 +-
packages/protoc-gen-apache-dubbo-es/README.md | 24 +-
packages/protoc-gen-apache-dubbo-es/package.json | 8 +-
.../src/protoc-gen-apache-dubbo-es-plugin.ts | 2 +-
packages/protoc-gen-apache-dubbo-web/README.md | 12 +-
packages/protoc-gen-apache-dubbo-web/package.json | 8 +-
.../src/protoc-gen-apache-dubbo-web-plugin.ts | 2 +-
pnpm-lock.yaml | 122 +++---
136 files changed, 1450 insertions(+), 1041 deletions(-)
create mode 100644 internal/proto/buf.yaml
create mode 100644 internal/proto/grpc/testing/empty.proto
create mode 100644 internal/proto/grpc/testing/messages.proto
create mode 100644 internal/proto/grpc/testing/test.proto
copy packages/dubbo-web-test/karma.serve.conf.cjs =>
internal/proto/server/v1/server.proto (55%)
create mode 100644
packages/dubbo-node-test/src/crosstest/server_isolation.spec.ts