Skip to content
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
7 changes: 4 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed
- ⚠️ **Breaking**: Module path renamed from `github.com/eshaffer321/monarchmoney-go` to
`github.com/eshaffer321/monarch-go`, matching Monarch's rebrand from "Monarch Money" to
"Monarch." Consumers must update their import paths and `go get` command:
`go get github.com/eshaffer321/monarch-go`.
`github.com/eshaffer321/monarch-go/v2`, matching Monarch's rebrand from "Monarch Money" to
"Monarch" (the `/v2` suffix is required by Go's module versioning rules for a v2+ release).
Consumers must update their import paths and `go get` command:
`go get github.com/eshaffer321/monarch-go/v2`.
- Rebranded docs, comments, and the client `UserAgent` string (now `monarch-go/2.0.0`) from
"Monarch Money" to "Monarch."

Expand Down
8 changes: 4 additions & 4 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -374,13 +374,13 @@ Breaking Changes:
2. **Test consuming the new version**:
```bash
# In a test project
go get github.com/eshaffer321/monarch-go@vX.Y.Z
go get github.com/eshaffer321/monarch-go/v2@vX.Y.Z
go mod tidy
```

3. **Update dependent projects**:
- If you maintain projects using this library, update them
- Run `go get -u github.com/eshaffer321/monarch-go@vX.Y.Z`
- Run `go get -u github.com/eshaffer321/monarch-go/v2@vX.Y.Z`

### Emergency Hotfix Releases

Expand Down Expand Up @@ -410,7 +410,7 @@ For critical bugs in production:
- ✅ Always use: `git push origin vX.Y.Z`

- ❌ **Using wrong module path**: Module path in go.mod MUST match GitHub repo URL
- ✅ Should be: `module github.com/eshaffer321/monarch-go`
- ✅ Should be: `module github.com/eshaffer321/monarch-go/v2`

- ❌ **Skipping CHANGELOG updates**: Always document what changed
- ✅ Update CHANGELOG.md BEFORE creating tag
Expand All @@ -434,7 +434,7 @@ For critical bugs in production:

Go modules use git tags for versioning. When someone runs:
```bash
go get github.com/eshaffer321/monarch-go@v1.2.0
go get github.com/eshaffer321/monarch-go/v2@v2.1.0
```

Go fetches the code at that exact tag. **Without a tag, users cannot access your changes.**
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![CI](https://github.com/eshaffer321/monarch-go/actions/workflows/ci.yml/badge.svg)](https://github.com/eshaffer321/monarch-go/actions/workflows/ci.yml)
[![codecov](https://codecov.io/github/eshaffer321/monarch-go/branch/main/graph/badge.svg)](https://codecov.io/github/eshaffer321/monarch-go)
[![Go Report Card](https://goreportcard.com/badge/github.com/eshaffer321/monarch-go)](https://goreportcard.com/report/github.com/eshaffer321/monarch-go)
[![GoDoc](https://pkg.go.dev/badge/github.com/eshaffer321/monarch-go)](https://pkg.go.dev/github.com/eshaffer321/monarch-go)
[![GoDoc](https://pkg.go.dev/badge/github.com/eshaffer321/monarch-go/v2)](https://pkg.go.dev/github.com/eshaffer321/monarch-go/v2)
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)

A production-grade Go client library for the [Monarch](https://www.monarchmoney.com/) API, providing a clean, idiomatic interface for managing personal finances programmatically.
Expand All @@ -20,7 +20,7 @@ A production-grade Go client library for the [Monarch](https://www.monarchmoney.
## Installation

```bash
go get github.com/eshaffer321/monarch-go
go get github.com/eshaffer321/monarch-go/v2
```

## Quick Start
Expand All @@ -33,7 +33,7 @@ import (
"fmt"
"log"

"github.com/eshaffer321/monarch-go/pkg/monarch"
"github.com/eshaffer321/monarch-go/v2/pkg/monarch"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions cmd/mcp-server/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/eshaffer321/monarch-go/cmd/mcp-server
go 1.23.0

require (
github.com/eshaffer321/monarch-go v0.1.0
github.com/eshaffer321/monarch-go/v2 v2.0.0
github.com/modelcontextprotocol/go-sdk v1.0.0
)

Expand All @@ -19,4 +19,4 @@ require (
golang.org/x/text v0.14.0 // indirect
)

replace github.com/eshaffer321/monarch-go => ../..
replace github.com/eshaffer321/monarch-go/v2 => ../..
2 changes: 1 addition & 1 deletion cmd/mcp-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log"
"os"

"github.com/eshaffer321/monarch-go/pkg/monarch"
"github.com/eshaffer321/monarch-go/v2/pkg/monarch"
"github.com/modelcontextprotocol/go-sdk/mcp"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/mcp-server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"testing"

"github.com/eshaffer321/monarch-go/pkg/monarch"
"github.com/eshaffer321/monarch-go/v2/pkg/monarch"
"github.com/modelcontextprotocol/go-sdk/mcp"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/mcp-server/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"time"

"github.com/eshaffer321/monarch-go/pkg/monarch"
"github.com/eshaffer321/monarch-go/v2/pkg/monarch"
"github.com/modelcontextprotocol/go-sdk/mcp"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/mcp-server/tools_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"
"time"

"github.com/eshaffer321/monarch-go/pkg/monarch"
"github.com/eshaffer321/monarch-go/v2/pkg/monarch"
)

func TestGetAccountsTool(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion cmd/validator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"strings"
"time"

"github.com/eshaffer321/monarch-go/pkg/monarch"
"github.com/eshaffer321/monarch-go/v2/pkg/monarch"
)

// ValidatorConfig holds configuration for the validator
Expand Down
2 changes: 1 addition & 1 deletion examples/full_example.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"log"
"time"

"github.com/eshaffer321/monarch-go/pkg/monarch"
"github.com/eshaffer321/monarch-go/v2/pkg/monarch"
)

// This example demonstrates all available services and their methods
Expand Down
2 changes: 1 addition & 1 deletion examples/sentry/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"log"
"os"

"github.com/eshaffer321/monarch-go/pkg/monarch"
"github.com/eshaffer321/monarch-go/v2/pkg/monarch"
"github.com/getsentry/sentry-go"
)

Expand Down
2 changes: 1 addition & 1 deletion examples/transaction_deletion/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"log"

"github.com/eshaffer321/monarch-go/pkg/monarch"
"github.com/eshaffer321/monarch-go/v2/pkg/monarch"
)

// This example demonstrates transaction deletion and the hideFromReports workaround
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/eshaffer321/monarch-go
module github.com/eshaffer321/monarch-go/v2

go 1.21

Expand Down
2 changes: 1 addition & 1 deletion internal/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"strings"
"time"

"github.com/eshaffer321/monarch-go/internal/types"
"github.com/eshaffer321/monarch-go/v2/internal/types"
"github.com/google/uuid"
"github.com/pkg/errors"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/transport/graphql.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strings"
"time"

"github.com/eshaffer321/monarch-go/internal/types"
"github.com/eshaffer321/monarch-go/v2/internal/types"
"github.com/hashicorp/go-retryablehttp"
"github.com/pkg/errors"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/transport/graphql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"testing"
"time"

"github.com/eshaffer321/monarch-go/internal/types"
"github.com/eshaffer321/monarch-go/v2/internal/types"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/monarch/accounts_balances_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"github.com/eshaffer321/monarch-go/internal/graphql"
"github.com/eshaffer321/monarch-go/v2/internal/graphql"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
Expand Down
4 changes: 2 additions & 2 deletions pkg/monarch/accounts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"testing"
"time"

"github.com/eshaffer321/monarch-go/internal/graphql"
internalTypes "github.com/eshaffer321/monarch-go/internal/types"
"github.com/eshaffer321/monarch-go/v2/internal/graphql"
internalTypes "github.com/eshaffer321/monarch-go/v2/internal/types"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
Expand Down
4 changes: 2 additions & 2 deletions pkg/monarch/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package monarch
import (
"context"

"github.com/eshaffer321/monarch-go/internal/auth"
internalTypes "github.com/eshaffer321/monarch-go/internal/types"
"github.com/eshaffer321/monarch-go/v2/internal/auth"
internalTypes "github.com/eshaffer321/monarch-go/v2/internal/types"
)

// authService implements the AuthService interface
Expand Down
2 changes: 1 addition & 1 deletion pkg/monarch/budgets_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"github.com/eshaffer321/monarch-go/internal/graphql"
"github.com/eshaffer321/monarch-go/v2/internal/graphql"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/monarch/cashflow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"github.com/eshaffer321/monarch-go/internal/graphql"
"github.com/eshaffer321/monarch-go/v2/internal/graphql"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
Expand Down
6 changes: 3 additions & 3 deletions pkg/monarch/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"net/http"
"time"

"github.com/eshaffer321/monarch-go/internal/graphql"
"github.com/eshaffer321/monarch-go/internal/transport"
internalTypes "github.com/eshaffer321/monarch-go/internal/types"
"github.com/eshaffer321/monarch-go/v2/internal/graphql"
"github.com/eshaffer321/monarch-go/v2/internal/transport"
internalTypes "github.com/eshaffer321/monarch-go/v2/internal/types"
"github.com/getsentry/sentry-go"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/monarch/holdings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"errors"
"testing"

"github.com/eshaffer321/monarch-go/internal/graphql"
"github.com/eshaffer321/monarch-go/v2/internal/graphql"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
Expand Down
2 changes: 1 addition & 1 deletion pkg/monarch/institutions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"testing"

"github.com/eshaffer321/monarch-go/internal/graphql"
"github.com/eshaffer321/monarch-go/v2/internal/graphql"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
Expand Down
2 changes: 1 addition & 1 deletion pkg/monarch/recurring_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"github.com/eshaffer321/monarch-go/internal/graphql"
"github.com/eshaffer321/monarch-go/v2/internal/graphql"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
Expand Down
2 changes: 1 addition & 1 deletion pkg/monarch/tags_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"testing"

"github.com/eshaffer321/monarch-go/internal/graphql"
"github.com/eshaffer321/monarch-go/v2/internal/graphql"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/monarch/transactions_categories_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"testing"

"github.com/eshaffer321/monarch-go/internal/graphql"
"github.com/eshaffer321/monarch-go/v2/internal/graphql"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/monarch/transactions_splits_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"testing"

"github.com/eshaffer321/monarch-go/internal/graphql"
"github.com/eshaffer321/monarch-go/v2/internal/graphql"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/monarch/transactions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

"github.com/eshaffer321/monarch-go/internal/graphql"
"github.com/eshaffer321/monarch-go/v2/internal/graphql"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
Expand Down
Loading