starpc 0.32.18 → 0.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/Makefile +15 -15
  2. package/go.mod +2 -2
  3. package/go.sum +2 -2
  4. package/package.json +2 -2
package/Makefile CHANGED
@@ -1,13 +1,13 @@
1
1
  # https://github.com/aperturerobotics/template
2
2
 
3
3
  SHELL:=bash
4
- PROTOWRAP=hack/bin/protowrap
5
- PROTOC_GEN_GO=hack/bin/protoc-gen-go-lite
6
- PROTOC_GEN_STARPC=hack/bin/protoc-gen-go-starpc
7
- GOIMPORTS=hack/bin/goimports
8
- GOFUMPT=hack/bin/gofumpt
9
- GOLANGCI_LINT=hack/bin/golangci-lint
10
- GO_MOD_OUTDATED=hack/bin/go-mod-outdated
4
+ PROTOWRAP=tools/bin/protowrap
5
+ PROTOC_GEN_GO=tools/bin/protoc-gen-go-lite
6
+ PROTOC_GEN_STARPC=tools/bin/protoc-gen-go-starpc
7
+ GOIMPORTS=tools/bin/goimports
8
+ GOFUMPT=tools/bin/gofumpt
9
+ GOLANGCI_LINT=tools/bin/golangci-lint
10
+ GO_MOD_OUTDATED=tools/bin/go-mod-outdated
11
11
  GOLIST=go list -f "{{ .Dir }}" -m
12
12
 
13
13
  export GO111MODULE=on
@@ -20,43 +20,43 @@ vendor:
20
20
  go mod vendor
21
21
 
22
22
  $(PROTOC_GEN_GO):
23
- cd ./hack; \
23
+ cd ./tools; \
24
24
  go build -v \
25
25
  -o ./bin/protoc-gen-go-lite \
26
26
  github.com/aperturerobotics/protobuf-go-lite/cmd/protoc-gen-go-lite
27
27
 
28
28
  $(GOIMPORTS):
29
- cd ./hack; \
29
+ cd ./tools; \
30
30
  go build -v \
31
31
  -o ./bin/goimports \
32
32
  golang.org/x/tools/cmd/goimports
33
33
 
34
34
  $(GOFUMPT):
35
- cd ./hack; \
35
+ cd ./tools; \
36
36
  go build -v \
37
37
  -o ./bin/gofumpt \
38
38
  mvdan.cc/gofumpt
39
39
 
40
40
  $(PROTOWRAP):
41
- cd ./hack; \
41
+ cd ./tools; \
42
42
  go build -v \
43
43
  -o ./bin/protowrap \
44
44
  github.com/aperturerobotics/goprotowrap/cmd/protowrap
45
45
 
46
46
  $(GOLANGCI_LINT):
47
- cd ./hack; \
47
+ cd ./tools; \
48
48
  go build -v \
49
49
  -o ./bin/golangci-lint \
50
50
  github.com/golangci/golangci-lint/cmd/golangci-lint
51
51
 
52
52
  $(GO_MOD_OUTDATED):
53
- cd ./hack; \
53
+ cd ./tools; \
54
54
  go build -v \
55
55
  -o ./bin/go-mod-outdated \
56
56
  github.com/psampaz/go-mod-outdated
57
57
 
58
58
  $(PROTOC_GEN_STARPC):
59
- cd ./hack; \
59
+ cd ./tools; \
60
60
  go build -v \
61
61
  -o ./bin/protoc-gen-go-starpc \
62
62
  github.com/aperturerobotics/starpc/cmd/protoc-gen-go-starpc
@@ -70,7 +70,7 @@ genproto: vendor node_modules $(GOIMPORTS) $(PROTOWRAP) $(PROTOC_GEN_GO) $(PROTO
70
70
  set -eo pipefail; \
71
71
  export PROTOBUF_GO_TYPES_PKG=github.com/aperturerobotics/protobuf-go-lite/types; \
72
72
  export PROJECT=$$(go list -m); \
73
- export PATH=$$(pwd)/hack/bin:$${PATH}; \
73
+ export PATH=$$(pwd)/tools/bin:$${PATH}; \
74
74
  export OUT=./vendor; \
75
75
  mkdir -p $${OUT}/$$(dirname $${PROJECT}); \
76
76
  rm ./vendor/$${PROJECT} || true; \
package/go.mod CHANGED
@@ -13,11 +13,11 @@ replace nhooyr.io/websocket => github.com/paralin/nhooyr-websocket v1.8.12-0.202
13
13
 
14
14
  require (
15
15
  github.com/aperturerobotics/protobuf-go-lite v0.6.5 // latest
16
- github.com/aperturerobotics/util v1.23.10 // latest
16
+ github.com/aperturerobotics/util v1.24.0 // latest
17
17
  )
18
18
 
19
19
  require (
20
- github.com/libp2p/go-libp2p v0.35.3 // latest
20
+ github.com/libp2p/go-libp2p v0.35.4 // latest
21
21
  github.com/libp2p/go-yamux/v4 v4.0.2-0.20240322071716-53ef5820bd48 // master
22
22
  github.com/pkg/errors v0.9.1 // latest
23
23
  github.com/sirupsen/logrus v1.9.3 // latest
package/go.sum CHANGED
@@ -4,8 +4,8 @@ github.com/aperturerobotics/json-iterator-lite v1.0.0 h1:cihbrYWoK/S2RYXhJLpDZd+
4
4
  github.com/aperturerobotics/json-iterator-lite v1.0.0/go.mod h1:snaApCEDtrHHP6UWSLKiYNOZU9A5NyzccKenx9oZEzg=
5
5
  github.com/aperturerobotics/protobuf-go-lite v0.6.5 h1:AuPPcZ7ZaJe9ZYYC4gF7/5/Xbn9Mt9uXyV3+ADWy+Ys=
6
6
  github.com/aperturerobotics/protobuf-go-lite v0.6.5/go.mod h1:YTbfnUj3feSULhs8VgepAHFnF3wUc0CPj4jd2axy21I=
7
- github.com/aperturerobotics/util v1.23.10 h1:igX3/8E6bCp9DSQApn+Kkz4MoltnsadiIgX2AWJ+mjM=
8
- github.com/aperturerobotics/util v1.23.10/go.mod h1:QiSWcOha1HhCI4f48w6rd3gia9jIMGpfoeJiZMU+jLM=
7
+ github.com/aperturerobotics/util v1.24.0 h1:QIZ2Fr9H+pV9uYs7JHMQPL4+Lz/2BagdrQq09Kru3mQ=
8
+ github.com/aperturerobotics/util v1.24.0/go.mod h1:QiSWcOha1HhCI4f48w6rd3gia9jIMGpfoeJiZMU+jLM=
9
9
  github.com/cloudflare/circl v1.3.8 h1:j+V8jJt09PoeMFIu2uh5JUyEaIHTXVOHslFoLNAKqwI=
10
10
  github.com/cloudflare/circl v1.3.8/go.mod h1:PDRU+oXvdD7KCtgKxW95M5Z8BpSCJXQORiZFnBQS5QU=
11
11
  github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starpc",
3
- "version": "0.32.18",
3
+ "version": "0.33.0",
4
4
  "description": "Streaming protobuf RPC service protocol over any two-way channel.",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -65,7 +65,7 @@
65
65
  "lint": "npm run lint:go && npm run lint:js",
66
66
  "lint:go": "make lint",
67
67
  "lint:js": "ESLINT_USE_FLAT_CONFIG=false eslint -c .eslintrc.cjs --ignore-pattern *.js --ignore-pattern *.d.ts ./",
68
- "prepare": "go mod vendor && rimraf ./hack/bin",
68
+ "prepare": "go mod vendor && rimraf ./tools/bin",
69
69
  "precommit": "lint-staged",
70
70
  "release": "npm run release:version && npm run release:commit",
71
71
  "release:minor": "npm run release:version:minor && npm run release:commit",