Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misc: fix vulnerability libraries #24

Merged
merged 2 commits into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .chglog/CHANGELOG.tpl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Ferstream

{{ if .Versions -}}
{{ if .Unreleased.CommitGroups -}}
{{ range .Unreleased.CommitGroups -}}
### {{ .Title }}
{{ range .Commits -}}
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
{{ end }}
{{ end -}}
{{ end -}}
{{ end -}}

{{ range .Versions }}
<a name="{{ .Tag.Name }}"></a>
## {{ if .Tag.Previous }}[{{ .Tag.Name }}]{{ else }}{{ .Tag.Name }}{{ end }} - {{ datetime "2006-01-02" .Tag.Date }}
{{ range .CommitGroups -}}
### {{ .Title }}
{{ range .Commits -}}
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
{{ end }}
{{ end -}}

{{- if .NoteGroups -}}
{{ range .NoteGroups -}}
### {{ .Title }}
{{ range .Notes }}
{{ .Body }}
{{ end }}
{{ end -}}
{{ end -}}
{{ end -}}

{{- if .Versions }}
[Unreleased]: {{ .Info.RepositoryURL }}/compare/{{ $latest := index .Versions 0 }}{{ $latest.Tag.Name }}...HEAD
{{ range .Versions -}}
{{ if .Tag.Previous -}}
[{{ .Tag.Name }}]: {{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}
{{ end -}}
{{ end -}}
{{ end -}}
31 changes: 31 additions & 0 deletions .chglog/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
style: gitlab
template: CHANGELOG.tpl.md
info:
title: CHANGELOG
repository_url: https://github.com/kumparan/ferstream
options:
commits:
filters:
Type:
- feature
- bugfix
- hotfix
- refactor
- test
- misc
commit_groups:
title_maps:
feature: New Features
bugfix: Fixes
hotfix: Fixes
refactor: Code Improvements
test: Test Improvements
misc: Other Improvements
header:
pattern: "^(\\w*)\\:\\s(.*)$"
pattern_maps:
- Type
- Subject
notes:
keywords:
- BREAKING CHANGE
159 changes: 159 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
# Ferstream


<a name="v1.9.1"></a>
## [v1.9.1] - 2024-07-11
### Other Improvements
- fix vulnerablity libraries


<a name="v1.9.0"></a>
## [v1.9.0] - 2024-05-10
### Other Improvements
- upgrade nats client ([#23](https://github.com/kumparan/ferstream/issues/23))


<a name="v1.8.3"></a>
## [v1.8.3] - 2024-03-13
### New Features
- migrate to go.uber.org/mock


<a name="v1.8.2"></a>
## [v1.8.2] - 2022-12-14
### New Features
- update github action go.yml
- add github action for run unit test


<a name="v1.8.1"></a>
## [v1.8.1] - 2022-11-17

<a name="v1.8.0"></a>
## [v1.8.0] - 2022-11-02
### New Features
- new connection method with default config and reconnect handler


<a name="v1.7.0"></a>
## [v1.7.0] - 2022-10-28
### New Features
- subscribe ([#18](https://github.com/kumparan/ferstream/issues/18))


<a name="v1.6.1"></a>
## [v1.6.1] - 2022-10-11
### Fixes
- add log payload to help development ([#17](https://github.com/kumparan/ferstream/issues/17))


<a name="v1.6.0"></a>
## [v1.6.0] - 2022-10-07
### New Features
- add ParseNatsEventMessageFromBytes


<a name="v1.5.1"></a>
## [v1.5.1] - 2022-10-04
### Fixes
- revert parseFromBytes NatsEventMessage using fallbackWith

### Other Improvements
- add readme ([#12](https://github.com/kumparan/ferstream/issues/12))


<a name="v1.5.0"></a>
## [v1.5.0] - 2022-09-29

<a name="v1.4.0"></a>
## [v1.4.0] - 2022-09-28
### New Features
- add NatsEventAuditLogMessage ([#13](https://github.com/kumparan/ferstream/issues/13))


<a name="v1.3.5"></a>
## [v1.3.5] - 2022-08-31
### Fixes
- add nil checker for errHandler ([#11](https://github.com/kumparan/ferstream/issues/11))


<a name="v1.3.4"></a>
## [v1.3.4] - 2022-08-25
### Other Improvements
- upgrade go-utils


<a name="v1.3.3"></a>
## [v1.3.3] - 2022-08-24
### Fixes
- add missing method on MockJetStream


<a name="v1.3.2"></a>
## [v1.3.2] - 2022-08-23
### New Features
- add IDStr field

### Other Improvements
- fix error message


<a name="v1.3.1"></a>
## [v1.3.1] - 2022-07-27

<a name="v1.3.0"></a>
## [v1.3.0] - 2022-07-20
### New Features
- add consumer info and register method
- add message parser


<a name="v1.2.0"></a>
## [v1.2.0] - 2022-02-22
### New Features
- add tenantID in nats event message


<a name="v1.1.0"></a>
## [v1.1.0] - 2022-02-04
### New Features
- add subject in msg event


<a name="v1.0.2"></a>
## [v1.0.2] - 2022-01-24

<a name="v1.0.1"></a>
## [v1.0.1] - 2022-01-24

<a name="v1.0.0"></a>
## v1.0.0 - 2022-01-20
### New Features
- handle update config in AddStream method and update proto
- add method AddStream
- implement jetstream


[Unreleased]: https://github.com/kumparan/ferstream/compare/v1.9.1...HEAD
[v1.9.1]: https://github.com/kumparan/ferstream/compare/v1.9.0...v1.9.1
[v1.9.0]: https://github.com/kumparan/ferstream/compare/v1.8.3...v1.9.0
[v1.8.3]: https://github.com/kumparan/ferstream/compare/v1.8.2...v1.8.3
[v1.8.2]: https://github.com/kumparan/ferstream/compare/v1.8.1...v1.8.2
[v1.8.1]: https://github.com/kumparan/ferstream/compare/v1.8.0...v1.8.1
[v1.8.0]: https://github.com/kumparan/ferstream/compare/v1.7.0...v1.8.0
[v1.7.0]: https://github.com/kumparan/ferstream/compare/v1.6.1...v1.7.0
[v1.6.1]: https://github.com/kumparan/ferstream/compare/v1.6.0...v1.6.1
[v1.6.0]: https://github.com/kumparan/ferstream/compare/v1.5.1...v1.6.0
[v1.5.1]: https://github.com/kumparan/ferstream/compare/v1.5.0...v1.5.1
[v1.5.0]: https://github.com/kumparan/ferstream/compare/v1.4.0...v1.5.0
[v1.4.0]: https://github.com/kumparan/ferstream/compare/v1.3.5...v1.4.0
[v1.3.5]: https://github.com/kumparan/ferstream/compare/v1.3.4...v1.3.5
[v1.3.4]: https://github.com/kumparan/ferstream/compare/v1.3.3...v1.3.4
[v1.3.3]: https://github.com/kumparan/ferstream/compare/v1.3.2...v1.3.3
[v1.3.2]: https://github.com/kumparan/ferstream/compare/v1.3.1...v1.3.2
[v1.3.1]: https://github.com/kumparan/ferstream/compare/v1.3.0...v1.3.1
[v1.3.0]: https://github.com/kumparan/ferstream/compare/v1.2.0...v1.3.0
[v1.2.0]: https://github.com/kumparan/ferstream/compare/v1.1.0...v1.2.0
[v1.1.0]: https://github.com/kumparan/ferstream/compare/v1.0.2...v1.1.0
[v1.0.2]: https://github.com/kumparan/ferstream/compare/v1.0.1...v1.0.2
[v1.0.1]: https://github.com/kumparan/ferstream/compare/v1.0.0...v1.0.1
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,13 @@ check-cognitive-complexity:
find . -type f -name '*.go' -not -name "*.pb.go" -not -name "mock*.go" -not -name "*_test.go" \
-exec gocognit -over 15 {} +

changelog_args=-o CHANGELOG.md --tag-filter-pattern '^v'

changelog:
ifdef version
$(eval changelog_args=--next-tag $(version) $(changelog_args))
@echo $$(basename $$(git remote get-url origin) .git)@$(version) > VERSION
endif
git-chglog $(changelog_args)

.PHONY: test test-only lint check-cognitive-complexity mockgen clean
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ferstream@v1.9.1
44 changes: 24 additions & 20 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,44 +4,48 @@ go 1.22

require (
github.com/kumparan/tapao v1.2.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tapao masih dipake disini kah?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/nats-io/nats.go v1.34.1
github.com/nats-io/nats.go v1.36.0
github.com/pkg/errors v0.9.1
github.com/sirupsen/logrus v1.9.3
github.com/stretchr/testify v1.9.0
go.uber.org/mock v0.4.0
google.golang.org/protobuf v1.33.0
google.golang.org/protobuf v1.34.2
)

require (
github.com/aymerick/douceur v0.2.0 // indirect
github.com/cockroachdb/apd v1.1.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/getsentry/sentry-go v0.11.0 // indirect
github.com/goodsign/monday v1.0.0 // indirect
github.com/gorilla/css v1.0.0 // indirect
github.com/klauspost/compress v1.17.2 // indirect
github.com/leekchan/accounting v0.3.1 // indirect
github.com/microcosm-cc/bluemonday v1.0.19 // indirect
github.com/minio/highwayhash v1.0.1 // indirect
github.com/nats-io/jwt/v2 v2.2.1-0.20220113022732-58e87895b296 // indirect
github.com/getsentry/sentry-go v0.28.1 // indirect
github.com/globalsign/mgo v0.0.0-20181015135952-eeefdecb41b8 // indirect
github.com/gofrs/uuid/v5 v5.2.0 // indirect
github.com/goodsign/monday v1.0.2 // indirect
github.com/gorilla/css v1.0.1 // indirect
github.com/klauspost/compress v1.17.9 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/leekchan/accounting v1.0.0 // indirect
github.com/microcosm-cc/bluemonday v1.0.27 // indirect
github.com/minio/highwayhash v1.0.2 // indirect
github.com/nats-io/jwt/v2 v2.5.7 // indirect
github.com/oklog/ulid v1.3.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/shopspring/decimal v1.2.0 // indirect
github.com/robfig/cron/v3 v3.0.1 // indirect
github.com/shopspring/decimal v1.4.0 // indirect
github.com/vmihailenco/msgpack/v5 v5.3.5 // indirect
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
golang.org/x/sys v0.16.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/time v0.0.0-20211116232009-f0f3c7e86c11 // indirect
golang.org/x/sys v0.21.0 // indirect
golang.org/x/text v0.16.0 // indirect
golang.org/x/time v0.5.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

require (
github.com/graph-gophers/graphql-go v1.4.0 // indirect
github.com/kumparan/go-utils v1.25.1
github.com/nats-io/nats-server/v2 v2.7.0
github.com/graph-gophers/graphql-go v1.5.0 // indirect
github.com/kumparan/go-utils v1.39.2
github.com/nats-io/nats-server/v2 v2.10.17
github.com/nats-io/nkeys v0.4.7 // indirect
github.com/nats-io/nuid v1.0.1 // indirect
golang.org/x/crypto v0.18.0 // indirect
golang.org/x/net v0.10.0 // indirect
google.golang.org/grpc v1.27.1 // indirect
golang.org/x/crypto v0.24.0 // indirect
golang.org/x/net v0.26.0 // indirect
google.golang.org/grpc v1.65.0 // indirect
)
Loading
Loading