Skip to content

Commit

Permalink
Merge pull request #205 from EasyPost/v4_version_bump
Browse files Browse the repository at this point in the history
chore: bump v3 to v4
  • Loading branch information
Justintime50 committed Dec 6, 2023
2 parents 6f47eb6 + 4a7fa52 commit 6a911d3
Show file tree
Hide file tree
Showing 34 changed files with 69 additions and 71 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '1.20'
Expand All @@ -30,7 +30,7 @@ jobs:
go-version: ['1.16', '1.17', '1.18', '1.19', '1.20', '1.21']
steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: use golang ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
Expand All @@ -43,7 +43,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '1.19' # TODO: There is a bug in 1.20 that isn't calculating coverage correctly
Expand All @@ -56,7 +56,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '1.19' # TODO: There is a bug in 1.20 that isn't calculating coverage correctly
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ EasyPost, the simple shipping solution. You can sign up for an account at <https
## Install

```bash
go get -u github.com/EasyPost/easypost-go/v3
go get -u github.com/EasyPost/easypost-go/v4
```

```go
// Import the library
import (
"github.com/EasyPost/easypost-go/v3"
"github.com/EasyPost/easypost-go/v4"
)
```

Expand All @@ -32,7 +32,7 @@ import (
"fmt"
"os"

"github.com/EasyPost/easypost-go/v3"
"github.com/EasyPost/easypost-go/v4"
)

func main() {
Expand Down Expand Up @@ -159,7 +159,7 @@ client.Hooks.RemoveResponseEventSubscriber(responseSubscriber)

API documentation can be found at: <https://easypost.com/docs/api>.

Library documentation can be found on the web at [GoDoc](https://pkg.go.dev/github.com/EasyPost/easypost-go/v3).
Library documentation can be found on the web at [GoDoc](https://pkg.go.dev/github.com/EasyPost/easypost-go/v4).

Upgrading major versions of this project? Refer to the [Upgrade Guide](UPGRADE_GUIDE.md).

Expand Down Expand Up @@ -232,7 +232,7 @@ make a request that does not match any of the configured mock requests, the requ
To use the mock client:

```golang
import "github.com/EasyPost/easypost-go/v3"
import "github.com/EasyPost/easypost-go/v4"

// create a list of mock request-response pairs
mockRequests := []easypost.MockRequest{
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/EasyPost/easypost-go/v3
module github.com/EasyPost/easypost-go/v4

go 1.16

Expand Down
2 changes: 1 addition & 1 deletion tests/address_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package easypost_test

import (
"github.com/EasyPost/easypost-go/v3"
"github.com/EasyPost/easypost-go/v4"
"reflect"
"strings"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/api_key_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package easypost_test

import (
"github.com/EasyPost/easypost-go/v3"
"github.com/EasyPost/easypost-go/v4"
"reflect"
)

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

"github.com/EasyPost/easypost-go/v3"
"github.com/EasyPost/easypost-go/v4"
)

func (c *ClientTests) TestBatchCreate() {
Expand Down
2 changes: 1 addition & 1 deletion tests/billing_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package easypost_test

import "github.com/EasyPost/easypost-go/v3"
import "github.com/EasyPost/easypost-go/v4"

func GetBillingMockRequests() []easypost.MockRequest {
return []easypost.MockRequest{
Expand Down
2 changes: 1 addition & 1 deletion tests/bootstrap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"testing"
"time"

"github.com/EasyPost/easypost-go/v3"
"github.com/EasyPost/easypost-go/v4"
"github.com/dnaeon/go-vcr/cassette"
"github.com/dnaeon/go-vcr/recorder"
"github.com/stretchr/testify/suite"
Expand Down
2 changes: 1 addition & 1 deletion tests/carrier_account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"strings"

"github.com/EasyPost/easypost-go/v3"
"github.com/EasyPost/easypost-go/v4"
)

func (c *ClientTests) GenerateCarrierAccount() (*easypost.CarrierAccount, error) {
Expand Down
60 changes: 29 additions & 31 deletions tests/cassettes/TestShipmentRegenerateRates.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package easypost_test

import (
"context"
"github.com/EasyPost/easypost-go/v3"
"github.com/EasyPost/easypost-go/v4"
"github.com/google/uuid"
)

Expand Down
2 changes: 1 addition & 1 deletion tests/customs_info_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"strings"

"github.com/EasyPost/easypost-go/v3"
"github.com/EasyPost/easypost-go/v4"
)

func (c *ClientTests) TestCustomsInfoCreate() {
Expand Down
2 changes: 1 addition & 1 deletion tests/customs_item_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"strings"

"github.com/EasyPost/easypost-go/v3"
"github.com/EasyPost/easypost-go/v4"
)

func (c *ClientTests) TestCustomsItemCreate() {
Expand Down
2 changes: 1 addition & 1 deletion tests/datetime_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package easypost_test

import (
"github.com/EasyPost/easypost-go/v3"
"github.com/EasyPost/easypost-go/v4"
"reflect"
"time"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/easypost_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package easypost_test

import (
"github.com/EasyPost/easypost-go/v3"
"github.com/EasyPost/easypost-go/v4"
)

func (c *ClientTests) TestClientTimeout() {
Expand Down
2 changes: 1 addition & 1 deletion tests/endshipper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"strings"

"github.com/EasyPost/easypost-go/v3"
"github.com/EasyPost/easypost-go/v4"
)

func (c *ClientTests) TestEndShipperCreate() {
Expand Down
2 changes: 1 addition & 1 deletion tests/error_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net/http"
"strings"

"github.com/EasyPost/easypost-go/v3"
"github.com/EasyPost/easypost-go/v4"
)

// TestApiError tests that a bad API request returns an InvalidRequestError (a subclass of APIError), and that the
Expand Down
2 changes: 1 addition & 1 deletion tests/event_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"
"time"

"github.com/EasyPost/easypost-go/v3"
"github.com/EasyPost/easypost-go/v4"
)

func (c *ClientTests) TestEventAll() {
Expand Down
2 changes: 1 addition & 1 deletion tests/fixture_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"path/filepath"
"time"

"github.com/EasyPost/easypost-go/v3"
"github.com/EasyPost/easypost-go/v4"
)

type Fixture struct {
Expand Down
2 changes: 1 addition & 1 deletion tests/insurance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"strings"

"github.com/EasyPost/easypost-go/v3"
"github.com/EasyPost/easypost-go/v4"
)

func (c *ClientTests) TestInsuranceCreate() {
Expand Down
2 changes: 1 addition & 1 deletion tests/order_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"strings"

"github.com/EasyPost/easypost-go/v3"
"github.com/EasyPost/easypost-go/v4"
)

func (c *ClientTests) TestOrderCreate() {
Expand Down
2 changes: 1 addition & 1 deletion tests/paginated_collection_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package easypost_test

import (
"github.com/EasyPost/easypost-go/v3"
"github.com/EasyPost/easypost-go/v4"
)

func (c *ClientTests) TestGetNextPage() {
Expand Down
2 changes: 1 addition & 1 deletion tests/parcel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"strings"

"github.com/EasyPost/easypost-go/v3"
"github.com/EasyPost/easypost-go/v4"
)

func (c *ClientTests) TestParcelCreate() {
Expand Down
2 changes: 1 addition & 1 deletion tests/pickup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"strings"

"github.com/EasyPost/easypost-go/v3"
"github.com/EasyPost/easypost-go/v4"
)

func (c *ClientTests) TestPickupCreate() {
Expand Down
2 changes: 1 addition & 1 deletion tests/rate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"strings"

"github.com/EasyPost/easypost-go/v3"
"github.com/EasyPost/easypost-go/v4"
)

func (c *ClientTests) TestRateRetrieve() {
Expand Down
2 changes: 1 addition & 1 deletion tests/referral_customer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"strings"

"github.com/EasyPost/easypost-go/v3"
"github.com/EasyPost/easypost-go/v4"
)

func (c *ClientTests) TestBetaReferralAddPaymentMethod() {
Expand Down
2 changes: 1 addition & 1 deletion tests/refund_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"strings"

"github.com/EasyPost/easypost-go/v3"
"github.com/EasyPost/easypost-go/v4"
)

func (c *ClientTests) TestRefundCreate() {
Expand Down
2 changes: 1 addition & 1 deletion tests/report_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"strings"

"github.com/EasyPost/easypost-go/v3"
"github.com/EasyPost/easypost-go/v4"
)

func (c *ClientTests) TestReportCreate() {
Expand Down
2 changes: 1 addition & 1 deletion tests/scan_form_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"strings"

"github.com/EasyPost/easypost-go/v3"
"github.com/EasyPost/easypost-go/v4"
)

func (c *ClientTests) TestScanFormCreate() {
Expand Down
2 changes: 1 addition & 1 deletion tests/shipment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"strings"

"github.com/EasyPost/easypost-go/v3"
"github.com/EasyPost/easypost-go/v4"
)

func (c *ClientTests) TestShipmentCreate() {
Expand Down
2 changes: 1 addition & 1 deletion tests/tracker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strconv"
"strings"

"github.com/EasyPost/easypost-go/v3"
"github.com/EasyPost/easypost-go/v4"
)

func (c *ClientTests) TestTrackerCreate() {
Expand Down
2 changes: 1 addition & 1 deletion tests/user_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"strings"

"github.com/EasyPost/easypost-go/v3"
"github.com/EasyPost/easypost-go/v4"
)

func (c *ClientTests) TestUserCreate() {
Expand Down
2 changes: 1 addition & 1 deletion tests/util_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package easypost_test

import (
"github.com/EasyPost/easypost-go/v3"
"github.com/EasyPost/easypost-go/v4"
)

func (c *ClientTests) TestStringPointer() {
Expand Down
2 changes: 1 addition & 1 deletion tests/webhook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"strings"

"github.com/EasyPost/easypost-go/v3"
"github.com/EasyPost/easypost-go/v4"
)

func (c *ClientTests) TestWebhookCreate() {
Expand Down

0 comments on commit 6a911d3

Please sign in to comment.