Skip to content

Commit 0a4903f

Browse files
chore(release): v0.11.0
1 parent 08149b8 commit 0a4903f

Some content is hidden

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

85 files changed

+12917
-11279
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 122 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/update_all.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Trigger all s2-proto-update for downstream sdks
2+
on:
3+
push:
4+
paths:
5+
- 's2/**'
6+
jobs:
7+
dispatch:
8+
strategy:
9+
matrix:
10+
repo: ['s2-streamstore/docs']
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/create-github-app-token@v1
14+
id: app-token
15+
with:
16+
app-id: ${{ secrets.APP_ID }}
17+
private-key: ${{ secrets.APP_SECRET_KEY }}
18+
owner: ${{ github.repository_owner }}
19+
- name: Repository Dispatch
20+
uses: peter-evans/repository-dispatch@v3
21+
with:
22+
token: ${{ steps.app-token.outputs.token }}
23+
repository: ${{ matrix.repo }}
24+
event-type: s2-proto-update
25+
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Trigger openapi s2-proto-update for downstream sdks
2+
on:
3+
push:
4+
paths:
5+
- 's2/**/*.json'
6+
jobs:
7+
dispatch:
8+
strategy:
9+
matrix:
10+
repo: ['s2-streamstore/s2-sdk-typescript']
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/create-github-app-token@v1
14+
id: app-token
15+
with:
16+
app-id: ${{ secrets.APP_ID }}
17+
private-key: ${{ secrets.APP_SECRET_KEY }}
18+
owner: ${{ github.repository_owner }}
19+
- name: Repository Dispatch
20+
uses: peter-evans/repository-dispatch@v3
21+
with:
22+
token: ${{ steps.app-token.outputs.token }}
23+
repository: ${{ matrix.repo }}
24+
event-type: s2-proto-update
25+
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'
Lines changed: 19 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,25 @@
1-
name: Update protos
2-
3-
permissions:
4-
contents: write
5-
pull-requests: write
6-
1+
name: Trigger grpc p2-proto-update for downstream sdks
72
on:
8-
repository_dispatch:
9-
types: [s2-proto-update]
10-
3+
push:
4+
paths:
5+
- 's2/**/*.proto'
116
jobs:
12-
generate-docs:
7+
dispatch:
8+
strategy:
9+
matrix:
10+
repo: ['s2-streamstore/s2-sdk-python', 's2-streamstore/s2-sdk-java', 's2-streamstore/s2-sdk-go', 's2-streamstore/s2-sdk-rust']
1311
runs-on: ubuntu-latest
14-
1512
steps:
16-
- uses: actions/checkout@v4
13+
- uses: actions/create-github-app-token@v1
14+
id: app-token
1715
with:
18-
submodules: true
19-
20-
- name: Update Submodules
21-
id: submodules
22-
uses: sgoudham/update-git-submodules@v2.1.1
16+
app-id: ${{ secrets.APP_ID }}
17+
private-key: ${{ secrets.APP_SECRET_KEY }}
18+
owner: ${{ github.repository_owner }}
19+
- name: Repository Dispatch
20+
uses: peter-evans/repository-dispatch@v3
2321
with:
24-
submodules: proto
25-
- uses: actions/setup-go@v5
26-
with:
27-
go-version: "1.23"
28-
- uses: arduino/setup-task@v2
29-
with:
30-
version: 3.40.x
31-
- uses: arduino/setup-protoc@v3
32-
with:
33-
version: 30.2
34-
- name: Setup protoc
35-
run: |
36-
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
37-
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
38-
- name: build protos
39-
run: |
40-
task gen
41-
42-
- name: Create Pull Request
43-
if: ${{ steps.submodules.outputs['proto--updated'] }}
44-
uses: peter-evans/create-pull-request@v7
45-
with:
46-
committer: s2-helper[bot] <194906454+s2-helper[bot]@users.noreply.github.com>
47-
author: s2-helper[bot] <194906454+s2-helper[bot]@users.noreply.github.com>
48-
title: chore - proto update
49-
branch: "proto/update-s2-protos-${{ steps.submodules.outputs['proto--latestShortCommitSha'] }}"
50-
body: ${{ steps.submodules.outputs.prBody }}
22+
token: ${{ steps.app-token.outputs.token }}
23+
repository: ${{ matrix.repo }}
24+
event-type: s2-proto-update
25+
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'

.gitignore

Lines changed: 4 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,5 @@
1-
# If you prefer the allow list template instead of the deny list, see community template:
2-
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
3-
#
4-
# Binaries for programs and plugins
5-
*.exe
6-
*.exe~
7-
*.dll
8-
*.so
9-
*.dylib
1+
.task
2+
.gocache
103

11-
# Test binary, built with `go test -c`
12-
*.test
13-
14-
# Output of the go coverage tool, specifically when used with LiteIDE
15-
*.out
16-
17-
# Dependency directories
18-
vendor/
19-
20-
# Go workspace file
21-
go.work
22-
go.work.sum
23-
24-
# env file
25-
.env
26-
27-
# IDE Specific configurations
28-
.idea/
29-
.helix/
30-
31-
# Taskfile fingerprints
32-
.task/
33-
34-
# Generated binaries
35-
.out/
4+
.idea
5+
.claude

.gitmodules

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
[submodule "proto"]
2-
path = proto
3-
url = https://github.com/s2-streamstore/s2-protos
4-
branch = main
1+
[submodule "s2-protos"]
2+
path = s2-protos
3+
url = https://github.com/s2-streamstore/s2-protos.git

.golangci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ linters:
44
default: none
55
disable:
66
- errcheck
7+
- wsl
8+
- dupl
9+
- godot
10+
- nilnil
11+
- nlreturn
12+
- unparam
713
enable:
814
- govet
915
- ineffassign
@@ -39,4 +45,3 @@ linters:
3945
- usestdlibvars
4046
- wastedassign
4147
- whitespace
42-
- wsl

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,23 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [v0.11.0] - 2025-12-31
6+
7+
### Added
8+
9+
- AppendSession for streaming appends with automatic retries
10+
- ReadSession for streaming reads with automatic retries
11+
- Producer API with batching support
12+
- Batcher with configurable size, count, and time thresholds
13+
- Iterator support for basins, streams, and access tokens
14+
- Metrics API support
15+
- Configurable retry policies
16+
17+
### Changed
18+
19+
- Migrated from gRPC to REST
20+
- Simplified API surface
21+
522
## [v0.10.0] - 2025-07-23
623

724
### Features

CODEOWNERS

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)