Skip to content

Commit e3737e3

Browse files
authored
Switch to v2 (#1295)
1 parent f154e67 commit e3737e3

File tree

275 files changed

+22124
-22725
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

275 files changed

+22124
-22725
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,7 @@ jobs:
5757
strategy:
5858
fail-fast: false
5959
matrix:
60-
# Node.js v16 does not provide all necessary fetch types by default, so
61-
# we cannot run tests for @connectrpc/connect-web.
62-
# v16 is tested in a separate job below.
63-
node-version: [22.7.0, 20.17.0, 18.20.4]
60+
node-version: [22.7.0, 20.17.0, 18.20.4, 18.14.1]
6461
name: "test on Node.js ${{ matrix.node-version }}"
6562
steps:
6663
- uses: actions/checkout@v4
@@ -75,23 +72,3 @@ jobs:
7572
restore-keys: ${{ runner.os }}/test
7673
- run: npm ci
7774
- run: npx turbo run test
78-
test16:
79-
runs-on: ubuntu-22.04
80-
strategy:
81-
fail-fast: false
82-
matrix:
83-
node-version: [16.20.2]
84-
name: "test on Node.js ${{ matrix.node-version }}"
85-
steps:
86-
- uses: actions/checkout@v4
87-
- uses: actions/setup-node@v4
88-
with:
89-
node-version-file: .nvmrc
90-
cache: "npm"
91-
- uses: actions/cache@v4
92-
with:
93-
path: .turbo
94-
key: ${{ runner.os }}/test/${{ github.sha }}
95-
restore-keys: ${{ runner.os }}/test
96-
- run: npm ci
97-
- run: npx turbo run test --filter '!@connectrpc/connect-web'

.github/workflows/conformance-express.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
strategy:
2222
fail-fast: false
2323
matrix:
24-
node-version: [22.7.0, 20.17.0, 18.20.4, 16.20.2]
24+
node-version: [22.7.0, 20.17.0, 18.20.4, 18.14.1]
2525
name: "Node.js ${{ matrix.node-version }}"
2626
timeout-minutes: 10
2727
steps:

.github/workflows/conformance-fastify.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
strategy:
2222
fail-fast: false
2323
matrix:
24-
node-version: [22.7.0, 20.17.0, 18.20.4, 16.20.2]
24+
node-version: [22.7.0, 20.17.0, 18.20.4, 18.14.1]
2525
name: "Node.js ${{ matrix.node-version }}"
2626
timeout-minutes: 10
2727
steps:

.github/workflows/conformance-node.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
strategy:
2222
fail-fast: false
2323
matrix:
24-
node-version: [22.7.0, 20.17.0, 18.20.4, 16.20.2]
24+
node-version: [22.7.0, 20.17.0, 18.20.4, 18.14.1]
2525
side: [client, server]
2626
name: "Node.js ${{ matrix.node-version }} ${{ matrix.side }}"
2727
timeout-minutes: 10

.github/workflows/conformance-web.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ jobs:
4646
runs-on: ubuntu-22.04
4747
strategy:
4848
matrix:
49-
# Node.js v16 does not provide all necessary fetch types by default
50-
node-version: [22.7.0, 20.17.0, 18.20.4, 18.16.0]
49+
node-version: [22.7.0, 20.17.0, 18.20.4, 18.14.1]
5150
client: [promise, callback]
5251
name: "Node.js ${{ matrix.node-version }} ${{ matrix.client }}"
5352
timeout-minutes: 10

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
.wrangler
33
node_modules
44
/packages/*/dist
5+
/packages/typescript-compat/*/dist
56
/packages/connect-web/conformance/logs/*
67
/packages/connect-web/logs/bstack*
78
packages/connect-web/local.log

README.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
> [!IMPORTANT]
2+
> You are looking at the release candidate for version 2. For the current stable version, see the branch [v1](https://github.com/connectrpc/connect-es/tree/v1).
3+
14
<img src=".github/connect-logo.png" width="15%" />
25

36
# Connect for ECMAScript
47

5-
[![License](https://img.shields.io/github/license/connectrpc/connect-es?color=blue)](./LICENSE) [![Build](https://github.com/connectrpc/connect-es/actions/workflows/ci.yaml/badge.svg?branch=main)](https://github.com/connectrpc/connect-es/actions/workflows/ci.yaml) [![NPM Version](https://img.shields.io/npm/v/@connectrpc/connect/latest?color=green&label=%40connectrpc%2Fconnect)](https://www.npmjs.com/package/@connectrpc/connect) [![NPM Version](https://img.shields.io/npm/v/@connectrpc/protoc-gen-connect-es/latest?color=green&label=%40connectrpc%2Fprotoc-gen-connect-es)](https://www.npmjs.com/package/@connectrpc/protoc-gen-connect-es)
8+
[![License](https://img.shields.io/github/license/connectrpc/connect-es?color=blue)](./LICENSE) [![Build](https://github.com/connectrpc/connect-es/actions/workflows/ci.yaml/badge.svg?branch=main)](https://github.com/connectrpc/connect-es/actions/workflows/ci.yaml) [![NPM Version](https://img.shields.io/npm/v/@connectrpc/connect/latest?color=green&label=%40connectrpc%2Fconnect)](https://www.npmjs.com/package/@connectrpc/connect)
69

710
Connect is a family of libraries for building type-safe APIs with different languages and platforms.
811
[@connectrpc/connect](https://www.npmjs.com/package/@connectrpc/connect) brings them to TypeScript,
@@ -62,7 +65,7 @@ to spin up a service in Node.js, and call it from the web, and from a gRPC clien
6265
in your terminal.
6366

6467
You can serve your Connect RPCs with vanilla Node.js, or use our [server plugins](https://connectrpc.com/docs/node/server-plugins)
65-
for **Fastify**, **Next.js**, and **Express**. We support Node.js v16 and later with
68+
for **Fastify**, **Next.js**, and **Express**. We support Node.js v18.14.1 and later with
6669
the builtin `http` and `http2` modules.
6770

6871
## Other platforms
@@ -77,8 +80,6 @@ be more than happy to chat!
7780

7881
- [@connectrpc/connect](https://www.npmjs.com/package/@connectrpc/connect):
7982
RPC clients and servers for your schema ([source code](packages/connect)).
80-
- [@connectrpc/protoc-gen-connect-es](https://www.npmjs.com/package/@connectrpc/protoc-gen-connect-es):
81-
Code generator plugin for the services in your schema ([source code](packages/protoc-gen-connect-es)).
8283
- [@connectrpc/connect-web](https://www.npmjs.com/package/@connectrpc/connect-web):
8384
Adapters for web browsers, and any other platform that has the fetch API on board.
8485
- [@connectrpc/connect-node](https://www.npmjs.com/package/@connectrpc/connect-node):
@@ -90,7 +91,7 @@ be more than happy to chat!
9091
- [@connectrpc/connect-express](https://www.npmjs.com/package/@connectrpc/connect-express):
9192
Adds your services to an [Express](https://expressjs.com/) server.
9293

93-
The libraries and the generated code are compatible with ES2017 and TypeScript 4.1.
94+
The libraries and the generated code are compatible with ES2017 and TypeScript 4.9.5.
9495

9596
## Ecosystem
9697

@@ -110,10 +111,6 @@ The libraries and the generated code are compatible with ES2017 and TypeScript 4
110111
gRPC-Web and Connect interoperability tests
111112
- [Buf Studio](https://buf.build/studio): web UI for ad-hoc RPCs
112113

113-
## Status: Stable
114-
115-
All packages are stable and have reached a major version release.
116-
117114
## Legal
118115

119116
Offered under the [Apache 2 license](/LICENSE).

0 commit comments

Comments
 (0)