Skip to content

Commit

Permalink
Update all child packages to reference @improbable-eng/grpc-web
Browse files Browse the repository at this point in the history
  • Loading branch information
jonny-improbable committed Jan 12, 2019
1 parent 935fb98 commit 7e31f74
Show file tree
Hide file tree
Showing 19 changed files with 26 additions and 79 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.8.0
### Breaking Changes
* Scoped npm package under the @improbable-eng org; consumers should now `npm install @improbable-eng/grpc-web`.

## 0.7.0
### Breaking Changes
* Removed built-in support for NodeJS Environments; if you want to use `grpc-web-client` in a NodeJS environment you will need to import `grpc-web-node-http-transport` and specify it as your Default Transport.
Expand Down
6 changes: 3 additions & 3 deletions client/grpc-web-node-http-transport/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# grpc-web-node-http-transport
Node HTTP Transport for use with [grpc-web-client](https://github.com/improbable-eng/grpc-web)
Node HTTP Transport for use with [@improbable-eng/grpc-web](https://github.com/improbable-eng/grpc-web)

## Usage
When making a gRPC request, specify this transport:

```typescript
import { grpc } from 'grpc-web-client';
import { grpc } from '@improbable-eng/grpc-web';
import { NodeHttpTransport } from 'grpc-web-node-http-transport';

grpc.invoke(MyService.DoQuery, {
Expand All @@ -17,7 +17,7 @@ grpc.invoke(MyService.DoQuery, {

Alternatively specify the Default Transport when your server/application bootstraps:
```typescript
import { grpc } from "grpc-web-client";
import { grpc } from "@improbable-eng/grpc-web";
import { NodeHttpTransport } from "grpc-web-node-http-transport";

// Do this first, before you make any grpc requests!
Expand Down
13 changes: 0 additions & 13 deletions client/grpc-web-node-http-transport/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/grpc-web-node-http-transport/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"grpc-web-client": "^0.7.0"
"@improbable-eng/grpc-web": "^0.8.0"
},
"author": "",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion client/grpc-web-node-http-transport/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as http from "http";
import * as https from "https";
import * as url from "url";
import { grpc } from "grpc-web-client";
import { grpc } from "@improbable-eng/grpc-web";

export function NodeHttpTransport(): grpc.TransportFactory {
return (opts: grpc.TransportOptions) => {
Expand Down
36 changes: 6 additions & 30 deletions client/grpc-web-react-example/go/Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 0 additions & 13 deletions client/grpc-web-react-example/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/grpc-web-react-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"license": "none",
"dependencies": {
"google-protobuf": "^3.6.1",
"grpc-web-client": "^0.6.2"
"@improbable-eng/grpc-web": "^0.8.0"
},
"devDependencies": {
"@types/google-protobuf": "^3.2.5",
Expand Down
2 changes: 1 addition & 1 deletion client/grpc-web-react-example/ts/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {grpc} from "grpc-web-client";
import {grpc} from "@improbable-eng/grpc-web";
import {BookService} from "../_proto/examplecom/library/book_service_pb_service";
import {QueryBooksRequest, Book, GetBookRequest} from "../_proto/examplecom/library/book_service_pb";

Expand Down
8 changes: 0 additions & 8 deletions integration_test/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion integration_test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"browser-headers": "^0.4.0",
"event-stream": "^3.3.4",
"google-protobuf": "^3.2.0",
"grpc-web-client": "^0.7.0",
"@improbable-eng/grpc-web": "^0.8.0",
"grpc-web-node-http-transport": "^0.0.1",
"typedarray": "0.0.6"
},
Expand Down
2 changes: 1 addition & 1 deletion integration_test/ts/src/cancellation.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// gRPC-Web library
import {
grpc,
} from "grpc-web-client";
} from "@improbable-eng/grpc-web";

import {debug} from "../../../client/grpc-web/src/debug";
import {assert} from "chai";
Expand Down
2 changes: 1 addition & 1 deletion integration_test/ts/src/client.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// gRPC-Web library
import {grpc} from "grpc-web-client";
import {grpc} from "@improbable-eng/grpc-web";

import {debug} from "../../../client/grpc-web/src/debug";
import {assert} from "chai";
Expand Down
2 changes: 1 addition & 1 deletion integration_test/ts/src/client.websocket.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// gRPC-Web library
import { grpc } from "grpc-web-client";
import { grpc } from "@improbable-eng/grpc-web";

import { debug } from "../../../client/grpc-web/src/debug";
import { assert } from "chai";
Expand Down
2 changes: 1 addition & 1 deletion integration_test/ts/src/invoke.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// gRPC-Web library
import {
grpc,
} from "grpc-web-client";
} from "@improbable-eng/grpc-web";

import {debug} from "../../../client/grpc-web/src/debug";
import {assert} from "chai";
Expand Down
2 changes: 1 addition & 1 deletion integration_test/ts/src/testRpcCombinations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
testHost,
corsHost
} from "../../hosts-config";
import {grpc} from "grpc-web-client";
import {grpc} from "@improbable-eng/grpc-web";
import {NodeHttpTransport} from "grpc-web-node-http-transport";

type TestConfig = {
Expand Down
2 changes: 1 addition & 1 deletion integration_test/ts/src/unary.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// gRPC-Web library
import {
grpc,
} from "grpc-web-client";
} from "@improbable-eng/grpc-web";

import {debug} from "../../../client/grpc-web/src/debug";
import {assert} from "chai";
Expand Down
2 changes: 1 addition & 1 deletion integration_test/ts/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {ContinueStreamRequest} from "../_proto/improbable/grpcweb/test/test_pb";
import {TestUtilService} from "../_proto/improbable/grpcweb/test/test_pb_service";
import {
grpc,
} from "grpc-web-client";
} from "@improbable-eng/grpc-web";

export const DEBUG: boolean = (global as any).DEBUG;

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "grpc-web-ci",
"private": true,
"scripts": {
"postinstall": "npm run bootstrap",
"bootstrap": "lerna bootstrap",
Expand Down

0 comments on commit 7e31f74

Please sign in to comment.