Skip to content

Commit 2498f6a

Browse files
Prepare next release
1 parent dcc3fd7 commit 2498f6a

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

CHANGELOG.md

+12-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [4.1.0] - 2021-07-26
11+
### Added
12+
- New connection type `government`.
13+
### Changed
14+
- Improve utility function to detect bots/crawlers/spiders based on user-agent value.
15+
### Fixed
16+
- Fix invalid property names: `language.name_native` -> `language.native` and `time_zone.daylight_saving` -> `time_zone.in_daylight_saving`.
17+
### Removed
18+
- Merge connection type `cdn` with `hosting`.
19+
1020
## [4.0.0] - 2021-04-08
1121
### Changed
1222
- [BREAKING] Rename _DefaultCache_ to _InMemoryCache_.
@@ -91,7 +101,8 @@ https://github.com/ipregistry/ipregistry-javascript#configuring-cache-max-age
91101
## [0.9.1] - 2019-07-23
92102
- First public release.
93103

94-
[Unreleased]: https://github.com/ipregistry/ipregistry-javascript/compare/4.0.0...HEAD
104+
[Unreleased]: https://github.com/ipregistry/ipregistry-javascript/compare/4.1.0...HEAD
105+
[4.1.0]: https://github.com/ipregistry/ipregistry-javascript/compare/4.0.0...4.1.0
95106
[4.0.0]: https://github.com/ipregistry/ipregistry-javascript/compare/3.1.0...4.0.0
96107
[3.1.0]: https://github.com/ipregistry/ipregistry-javascript/compare/3.0.2...3.1.0
97108
[3.0.2]: https://github.com/ipregistry/ipregistry-javascript/compare/3.0.1...3.0.2

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@ipregistry/client",
33
"description": "Official Ipregistry Javascript Library (ES5, ES6+, TypeScript).",
4-
"version": "4.0.0",
4+
"version": "4.1.0",
55
"main": "./dist/index.js",
66
"browser": "./dist/browser/index.js",
77
"module": "./dist/esm/index.js",

src/util.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class UserAgent {
1818

1919
public static isBot(userAgent: string): boolean {
2020
const lowerCaseUserAgent = userAgent.toLowerCase();
21-
21+
2222
return lowerCaseUserAgent.includes('bot') ||
2323
lowerCaseUserAgent.includes('spider') ||
2424
lowerCaseUserAgent.includes('slurp');

0 commit comments

Comments
 (0)