Skip to content

Commit

Permalink
Chaged to emilpriver/cloudflare-go
Browse files Browse the repository at this point in the history
  • Loading branch information
emilpriver committed Sep 30, 2024
1 parent b4e9722 commit 8edf9b7
Show file tree
Hide file tree
Showing 35 changed files with 669 additions and 669 deletions.
8 changes: 4 additions & 4 deletions .changelog/1115.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
```release-note:breaking-change
workers_kv: `CreateWorkersKVNamespace` has been updated to match the experimental client method signatures (https://github.com/cloudflare/cloudflare-go/blob/master/docs/experimental.md).
workers_kv: `CreateWorkersKVNamespace` has been updated to match the experimental client method signatures (https://github.com/emilpriver/cloudflare-go/blob/master/docs/experimental.md).
```

```release-note:breaking-change
workers_kv: `ListWorkersKVNamespaces` has been updated to match the experimental client method signatures (https://github.com/cloudflare/cloudflare-go/blob/master/docs/experimental.md).
workers_kv: `ListWorkersKVNamespaces` has been updated to match the experimental client method signatures (https://github.com/emilpriver/cloudflare-go/blob/master/docs/experimental.md).
```

```release-note:enhancement
workers_kv: `ListWorkersKVNamespaces` automatically paginates all results unless `PerPage` is defined.
```

```release-note:breaking-change
workers_kv: `DeleteWorkersKVNamespace` has been updated to match the experimental client method signatures (https://github.com/cloudflare/cloudflare-go/blob/master/docs/experimental.md).
workers_kv: `DeleteWorkersKVNamespace` has been updated to match the experimental client method signatures (https://github.com/emilpriver/cloudflare-go/blob/master/docs/experimental.md).
```

```release-note:breaking-change
workers_kv: `UpdateWorkersKVNamespace` has been updated to match the experimental client method signatures (https://github.com/cloudflare/cloudflare-go/blob/master/docs/experimental.md).
workers_kv: `UpdateWorkersKVNamespace` has been updated to match the experimental client method signatures (https://github.com/emilpriver/cloudflare-go/blob/master/docs/experimental.md).
```

```release-note:breaking-change
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
blank_issues_enabled: false
contact_links:
- name: v2.0.0 Beta feedback
url: https://github.com/cloudflare/cloudflare-go/discussions/1538
url: https://github.com/emilpriver/cloudflare-go/discussions/1538
about: |
If you have a feature request or feedback on our new v2 library, please comment in our discussion page.
- name: Cloudflare support
Expand Down
40 changes: 20 additions & 20 deletions .semgrep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@ rules:
message: Where a real IPv4 address isn't needed, use IPv4 addresses from RFC5737.
paths:
include:
- '*.go'
- "*.go"
patterns:
- pattern-regex: '(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)'
- pattern-not-regex: '10\.\d+\.\d+.\d+'
- pattern-not-regex: '192\.168\.\d+.\d+'
- pattern-not-regex: '192\.0\.2\.\d+' # 192.0.2.0/24 (TEST-NET-1, rfc5737)
- pattern-not-regex: '192\.0\.2\.\d+' # 192.0.2.0/24 (TEST-NET-1, rfc5737)
- pattern-not-regex: '198\.51\.100\.\d+' # 198.51.100.0/24 (TEST-NET-2, rfc5737)
- pattern-not-regex: '203\.0\.113\.\d+' # 203.0.113.0/24 (TEST-NET-3, rfc5737)
- pattern-not-regex: '203\.0\.113\.\d+' # 203.0.113.0/24 (TEST-NET-3, rfc5737)
severity: WARNING
- id: rfc-3849-ip-address
languages:
- generic
message: Where a real IPv6 address isn't needed, use IPv6 addresses from RFC3849.
paths:
include:
- '*.go'
- "*.go"
patterns:
- pattern-regex: '(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))'
severity: WARNING
Expand All @@ -30,16 +30,16 @@ rules:
message: 'Do not call `errors.Wrap`. Use `fmt.Errorf(".. : %w", err)` instead.'
patterns:
- pattern-either:
- pattern: |
errors.Wrap(...)
- pattern: |
errors.Wrap(...)
severity: WARNING
- id: no-use-of-stdlib-json
languages:
- go
message: Favour "github.com/goccy/go-json" instead of "encoding/json" to allow better customisation of marshaling and unmarshaling JSON attributes. See https://github.com/cloudflare/cloudflare-go/pull/1360 for full details.
message: Favour "github.com/goccy/go-json" instead of "encoding/json" to allow better customisation of marshaling and unmarshaling JSON attributes. See https://github.com/emilpriver/cloudflare-go/pull/1360 for full details.
paths:
include:
- '*.go'
- "*.go"
patterns:
- pattern-regex: '\"encoding\/json\"'
fix-regex:
Expand All @@ -53,36 +53,36 @@ rules:
Booleans should always be represented as pointers in structs with an omitempty marshaling tag (most commonly as JSON). This ensures you can determine unset, false and truthy values.
paths:
include:
- '*.go'
- "*.go"
patterns:
- pattern-regex: "bool"
- pattern-not-regex: "\\*bool"
- pattern-either:
- pattern-inside: |
type $STRUCTNAME struct {
...
}
- pattern-inside: |
type $STRUCTNAME struct {
...
}
severity: WARNING
metadata:
references:
- https://github.com/cloudflare/cloudflare-go/blob/master/docs/conventions.md#booleans
- https://github.com/emilpriver/cloudflare-go/blob/master/docs/conventions.md#booleans
- id: use-pointers-for-time
languages:
- go
message: |
time.Time should always be represented as pointers in structs.
paths:
include:
- '*.go'
- "*.go"
patterns:
- pattern-regex: "time\\.Time"
- pattern-not-regex: "\\*time\\.Time"
- pattern-either:
- pattern-inside: |
type $STRUCTNAME struct {
...
}
- pattern-inside: |
type $STRUCTNAME struct {
...
}
severity: WARNING
metadata:
references:
- https://github.com/cloudflare/cloudflare-go/blob/master/docs/conventions.md#timetime
- https://github.com/emilpriver/cloudflare-go/blob/master/docs/conventions.md#timetime
Loading

0 comments on commit 8edf9b7

Please sign in to comment.