Skip to content

Commit 6ce7e0a

Browse files
authored
Merge branch 'main' into integralist/dm-tools
2 parents de3ba20 + 43f4a56 commit 6ce7e0a

File tree

180 files changed

+699
-288
lines changed

Some content is hidden

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

180 files changed

+699
-288
lines changed

.github/workflows/dependabot_changelog_update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ jobs:
3232
changelogPath: './CHANGELOG.md'
3333
entryPrefix: 'build(deps): '
3434
- name: Commit changelog entry
35-
uses: stefanzweifel/git-auto-commit-action@v6
35+
uses: stefanzweifel/git-auto-commit-action@v7
3636
with:
3737
commit_message: "docs(CHANGELOG.md): add dependency bump from dependabot"

CHANGELOG.md

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,36 @@
22

33
## [UNRELEASED]
44

5-
[Full Changelog](https://github.com/fastly/go-fastly/compare/v11.2.0...)
5+
[Full Changelog](https://github.com/fastly/go-fastly/compare/v12.1.0...)
6+
7+
### Breaking:
8+
9+
### Enhancements:
10+
11+
### Bug fixes:
12+
13+
### Dependencies:
14+
- build(deps): `golang.org/x/crypto` from 0.42.0 to 0.43.0 ([#762](https://github.com/fastly/go-fastly/pull/762))
15+
- build(deps): `golang.org/x/sys` from 0.36.0 to 0.37.0 ([#762](https://github.com/fastly/go-fastly/pull/762))
16+
- build(deps): `stefanzweifel/git-auto-commit-action` from 6 to 7 ([#763](https://github.com/fastly/go-fastly/pull/763))
17+
18+
## [v12.1.0](https://github.com/fastly/go-fastly/releases/tag/v12.1.0) (2025-09-30)
19+
20+
[Full Changelog](https://github.com/fastly/go-fastly/compare/v12.0.0...v12.1.0)
21+
22+
### Breaking:
23+
24+
### Enhancements:
25+
26+
- feat(products/apidiscovery): Add enable/disable support for API Discovery ([#760](https://github.com/fastly/go-fastly/pull/760))
27+
28+
### Bug fixes:
29+
30+
### Dependencies:
31+
32+
## [v12.0.0](https://github.com/fastly/go-fastly/releases/tag/v12.0.0) (2025-09-17)
33+
34+
[Full Changelog](https://github.com/fastly/go-fastly/compare/v11.3.1...v12.0.0)
635

736
### Breaking:
837

@@ -14,8 +43,6 @@
1443

1544
- feat(ngwaf/rules): add support for the multival condition type ([#755](https://github.com/fastly/go-fastly/pull/755))
1645

17-
### Bug fixes:
18-
1946
### Dependencies:
2047

2148
- build(deps): `golang.org/x/crypto` from 0.41.0 to 0.42.0 ([#751](https://github.com/fastly/go-fastly/pull/751))

EXAMPLES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
"log"
1818
"os"
1919

20-
"github.com/fastly/go-fastly/v11/fastly"
20+
"github.com/fastly/go-fastly/v12/fastly"
2121
)
2222

2323
func main() {

Makefile

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -45,29 +45,19 @@ tidy: ## Cleans the Go module.
4545
@$(GO) mod tidy
4646
.PHONY: tidy
4747

48-
install-linter: ## Installs golangci-lint v2.4.0 into ./bin (cross-platform)
48+
install-linter: ## Installs golangci-lint via go install
4949
@echo "==> Installing golangci-lint $(GOLANGCI_LINT_VERSION)"
5050
@mkdir -p $(BIN_DIR)
51-
@if [ ! -x "$(GOLANGCI_LINT)" ]; then \
52-
OS=$$(uname | tr '[:upper:]' '[:lower:]'); \
53-
ARCH=$$(uname -m); \
54-
case "$$ARCH" in \
55-
x86_64) ARCH="amd64" ;; \
56-
arm64|aarch64) ARCH="arm64" ;; \
57-
*) echo "Unsupported architecture: $$ARCH" && exit 1 ;; \
58-
esac; \
59-
URL="https://github.com/golangci/golangci-lint/releases/download/$(GOLANGCI_LINT_VERSION)/golangci-lint-$(GOLANGCI_LINT_VERSION)-$$OS-$$ARCH.tar.gz"; \
60-
echo "Downloading: $$URL"; \
61-
curl -sSfL "$$URL" | tar -xz -C $(BIN_DIR) --strip-components=1; \
62-
fi
51+
@GOBIN=$(BIN_DIR) go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@$(GOLANGCI_LINT_VERSION)
6352
.PHONY: install-linter
6453

6554
check-linter-version: ## Verifies installed golangci-lint version matches expected
6655
@echo "==> Checking golangci-lint version"
6756
@EXPECTED="$(GOLANGCI_LINT_VERSION)"; \
68-
INSTALLED=$$($(GOLANGCI_LINT) version --format short | grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+'); \
57+
EXPECTED=$${EXPECTED#v}; \
58+
INSTALLED=$$($(GOLANGCI_LINT) version --short); \
6959
if [ "$$INSTALLED" != "$$EXPECTED" ]; then \
70-
echo "Expected golangci-lint $$EXPECTED but found $$INSTALLED"; \
60+
echo "Expected golangci-lint v$$EXPECTED but found $$INSTALLED"; \
7161
exit 1; \
7262
fi
7363
.PHONY: check-linter-version

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ fixes available.
3232
## Usage
3333

3434
```go
35-
import "github.com/fastly/go-fastly/v11/fastly"
35+
import "github.com/fastly/go-fastly/v12/fastly"
3636
```
3737

3838
## Reference
@@ -42,4 +42,4 @@ import "github.com/fastly/go-fastly/v11/fastly"
4242
- [EXAMPLES.md](./EXAMPLES.md)
4343
- [TESTING.md](./TESTING.md)
4444

45-
[latest]: https://pkg.go.dev/github.com/fastly/go-fastly/v11/fastly
45+
[latest]: https://pkg.go.dev/github.com/fastly/go-fastly/v12/fastly

SERIALIZATION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ service with SID `1234abcd` might look like this:
3434
```go
3535
import (
3636
"context"
37-
"github.com/fastly/go-fastly/v11/fastly"
37+
"github.com/fastly/go-fastly/v12/fastly"
3838
)
3939

4040
client := fastly.DefaultClient()

fastly/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"github.com/hashicorp/go-cleanhttp"
2525
"github.com/mitchellh/mapstructure"
2626

27-
"github.com/fastly/go-fastly/v11/fastly/impersonation"
27+
"github.com/fastly/go-fastly/v12/fastly/impersonation"
2828
)
2929

3030
// APIKeyEnvVar is the name of the environment variable where the Fastly API
@@ -64,7 +64,7 @@ const UserAgentEnvVar = "FASTLY_USER_AGENT"
6464
var ProjectURL = "github.com/fastly/go-fastly"
6565

6666
// ProjectVersion is the version of this library.
67-
var ProjectVersion = "11.3.1"
67+
var ProjectVersion = "12.1.0"
6868

6969
// UserAgent is the user agent for this particular client.
7070
var UserAgent = fmt.Sprintf("FastlyGo/%s (+%s; %s)",

fastly/client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
"github.com/stretchr/testify/require"
1111

12-
"github.com/fastly/go-fastly/v11/fastly/impersonation"
12+
"github.com/fastly/go-fastly/v12/fastly/impersonation"
1313
)
1414

1515
func TestClient_RawRequest(t *testing.T) {

fastly/computeacls/api_create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"encoding/json"
66
"fmt"
77

8-
"github.com/fastly/go-fastly/v11/fastly"
8+
"github.com/fastly/go-fastly/v12/fastly"
99
)
1010

1111
// CreateInput specifies the information needed for the Create() function to

fastly/computeacls/api_delete.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"context"
55
"net/http"
66

7-
"github.com/fastly/go-fastly/v11/fastly"
7+
"github.com/fastly/go-fastly/v12/fastly"
88
)
99

1010
// DeleteInput specifies the information needed for the Delete() function to

0 commit comments

Comments
 (0)