You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/PULL_REQUEST_TEMPLATE.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Describe the big picture of your changes here to communicate to the maintainers
4
4
5
5
## Types of changes
6
6
7
-
What types of changes does your code introduce to IpData?
7
+
What types of changes does your code introduce to IPData?
8
8
_Put an `x` in the boxes that apply_
9
9
10
10
-[ ] Bugfix (non-breaking change which fixes an issue)
@@ -15,7 +15,7 @@ _Put an `x` in the boxes that apply_
15
15
16
16
_Put an `x` in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code._
17
17
18
-
-[ ] I have read the [CONTRIBUTING](https://github.com/alexkhil/IpData/blob/master/.github/CONTRIBUTING.md) doc
18
+
-[ ] I have read the [CONTRIBUTING](https://github.com/alexkhil/IPData/blob/master/.github/CONTRIBUTING.md) doc
19
19
-[ ] Lint and unit tests pass locally with my changes
20
20
-[ ] I have added tests that prove my fix is effective or that my feature works
21
21
-[ ] I have added necessary documentation (if appropriate)
> **v3.0.0 Breaking Changes** — All public types have been renamed to follow .NET naming conventions for two-letter acronyms. See the [Migration Guide](#migrating-from-v2-to-v3) for details.
4
6
5
7
[ipdata.co](https://ipdata.co/) is a fast, reliable and clean service that allows you to look up the location of an IP Address and other data.
6
8
@@ -17,6 +19,7 @@
17
19
-[Currency](#currency)
18
20
-[Threat](#threat)
19
21
-[EU Endpoint](#eu-endpoint)
22
+
-[Migrating from v2 to v3](#migrating-from-v2-to-v3)
20
23
-[Contributing](#contributing)
21
24
-[Versioning](#versioning)
22
25
-[License](#license)
@@ -26,13 +29,13 @@
26
29
NuGet package install using package manager:
27
30
28
31
```bash
29
-
Install-Package IpData -Version 2.0.1
32
+
Install-Package IPData -Version 3.0.0
30
33
```
31
34
32
35
NuGet package install using .NET CLI:
33
36
34
37
```bash
35
-
dotnet add package IpData --version 2.0.1
38
+
dotnet add package IPData --version 3.0.0
36
39
```
37
40
38
41
## Lookup
@@ -42,11 +45,11 @@ All usage examples you can find on `samples` folder.
42
45
### Basic
43
46
44
47
```csharp
45
-
varclient=newIpDataClient("API_KEY");
48
+
varclient=newIPDataClient("API_KEY");
46
49
47
50
// Get IP data from my IP
48
-
varmyIpInfo=awaitclient.Lookup();
49
-
Console.WriteLine($"Country name for {myIpInfo.Ip} is {myIpInfo.CountryName}");
51
+
varmyIp=awaitclient.Lookup();
52
+
Console.WriteLine($"Country name for {myIp.Ip} is {myIp.CountryName}");
50
53
51
54
// Get IP data from IP
52
55
varipInfo=awaitclient.Lookup("8.8.8.8");
@@ -67,7 +70,7 @@ From ipdata.co docs:
67
70
> Note that bulk lookups are only available to paid users and are currently limited to a 100 at a time. Reach out to support if you need to lookup larger batches.
v3.0.0 renames all public types to follow [.NET naming conventions](https://learn.microsoft.com/en-us/dotnet/standard/design-guidelines/capitalization-conventions) for two-letter acronyms. It also adds EU endpoint support and a `Company` lookup.
149
+
150
+
### Renamed types
151
+
152
+
| v2 | v3 |
153
+
|---|---|
154
+
|`IpDataClient`|`IPDataClient`|
155
+
|`IIpDataClient`|`IIPDataClient`|
156
+
|`IpInfo`|`IPLookupResult`|
157
+
158
+
### Namespace change
159
+
160
+
```diff
161
+
- using IpData;
162
+
- using IpData.Models;
163
+
+ using IPData;
164
+
+ using IPData.Models;
165
+
```
166
+
167
+
### NuGet package
168
+
169
+
The package ID has changed from `IpData` to `IPData`:
170
+
171
+
```bash
172
+
dotnet remove package IpData
173
+
dotnet add package IPData --version 3.0.0
174
+
```
175
+
176
+
### New features in v3
177
+
178
+
-**EU endpoint** — Pass a custom base URL to route requests through EU servers:
0 commit comments