Skip to content

Commit

Permalink
Switch to v2 (#1295)
Browse files Browse the repository at this point in the history
  • Loading branch information
timostamm authored Nov 4, 2024
1 parent f154e67 commit e3737e3
Show file tree
Hide file tree
Showing 275 changed files with 22,124 additions and 22,725 deletions.
25 changes: 1 addition & 24 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,7 @@ jobs:
strategy:
fail-fast: false
matrix:
# Node.js v16 does not provide all necessary fetch types by default, so
# we cannot run tests for @connectrpc/connect-web.
# v16 is tested in a separate job below.
node-version: [22.7.0, 20.17.0, 18.20.4]
node-version: [22.7.0, 20.17.0, 18.20.4, 18.14.1]
name: "test on Node.js ${{ matrix.node-version }}"
steps:
- uses: actions/checkout@v4
Expand All @@ -75,23 +72,3 @@ jobs:
restore-keys: ${{ runner.os }}/test
- run: npm ci
- run: npx turbo run test
test16:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
node-version: [16.20.2]
name: "test on Node.js ${{ matrix.node-version }}"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: "npm"
- uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}/test/${{ github.sha }}
restore-keys: ${{ runner.os }}/test
- run: npm ci
- run: npx turbo run test --filter '!@connectrpc/connect-web'
2 changes: 1 addition & 1 deletion .github/workflows/conformance-express.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [22.7.0, 20.17.0, 18.20.4, 16.20.2]
node-version: [22.7.0, 20.17.0, 18.20.4, 18.14.1]
name: "Node.js ${{ matrix.node-version }}"
timeout-minutes: 10
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/conformance-fastify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [22.7.0, 20.17.0, 18.20.4, 16.20.2]
node-version: [22.7.0, 20.17.0, 18.20.4, 18.14.1]
name: "Node.js ${{ matrix.node-version }}"
timeout-minutes: 10
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/conformance-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [22.7.0, 20.17.0, 18.20.4, 16.20.2]
node-version: [22.7.0, 20.17.0, 18.20.4, 18.14.1]
side: [client, server]
name: "Node.js ${{ matrix.node-version }} ${{ matrix.side }}"
timeout-minutes: 10
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/conformance-web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
# Node.js v16 does not provide all necessary fetch types by default
node-version: [22.7.0, 20.17.0, 18.20.4, 18.16.0]
node-version: [22.7.0, 20.17.0, 18.20.4, 18.14.1]
client: [promise, callback]
name: "Node.js ${{ matrix.node-version }} ${{ matrix.client }}"
timeout-minutes: 10
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.wrangler
node_modules
/packages/*/dist
/packages/typescript-compat/*/dist
/packages/connect-web/conformance/logs/*
/packages/connect-web/logs/bstack*
packages/connect-web/local.log
15 changes: 6 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
> [!IMPORTANT]
> 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).
<img src=".github/connect-logo.png" width="15%" />

# Connect for ECMAScript

[![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)
[![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)

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

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

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

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

The libraries and the generated code are compatible with ES2017 and TypeScript 4.1.
The libraries and the generated code are compatible with ES2017 and TypeScript 4.9.5.

## Ecosystem

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

## Status: Stable

All packages are stable and have reached a major version release.

## Legal

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

0 comments on commit e3737e3

Please sign in to comment.