Skip to content

Commit

Permalink
Prepare next release
Browse files Browse the repository at this point in the history
  • Loading branch information
lpellegr committed Jul 26, 2021
1 parent dcc3fd7 commit 2498f6a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [4.1.0] - 2021-07-26
### Added
- New connection type `government`.
### Changed
- Improve utility function to detect bots/crawlers/spiders based on user-agent value.
### Fixed
- Fix invalid property names: `language.name_native` -> `language.native` and `time_zone.daylight_saving` -> `time_zone.in_daylight_saving`.
### Removed
- Merge connection type `cdn` with `hosting`.

## [4.0.0] - 2021-04-08
### Changed
- [BREAKING] Rename _DefaultCache_ to _InMemoryCache_.
Expand Down Expand Up @@ -91,7 +101,8 @@ https://github.com/ipregistry/ipregistry-javascript#configuring-cache-max-age
## [0.9.1] - 2019-07-23
- First public release.

[Unreleased]: https://github.com/ipregistry/ipregistry-javascript/compare/4.0.0...HEAD
[Unreleased]: https://github.com/ipregistry/ipregistry-javascript/compare/4.1.0...HEAD
[4.1.0]: https://github.com/ipregistry/ipregistry-javascript/compare/4.0.0...4.1.0
[4.0.0]: https://github.com/ipregistry/ipregistry-javascript/compare/3.1.0...4.0.0
[3.1.0]: https://github.com/ipregistry/ipregistry-javascript/compare/3.0.2...3.1.0
[3.0.2]: https://github.com/ipregistry/ipregistry-javascript/compare/3.0.1...3.0.2
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@ipregistry/client",
"description": "Official Ipregistry Javascript Library (ES5, ES6+, TypeScript).",
"version": "4.0.0",
"version": "4.1.0",
"main": "./dist/index.js",
"browser": "./dist/browser/index.js",
"module": "./dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class UserAgent {

public static isBot(userAgent: string): boolean {
const lowerCaseUserAgent = userAgent.toLowerCase();

return lowerCaseUserAgent.includes('bot') ||
lowerCaseUserAgent.includes('spider') ||
lowerCaseUserAgent.includes('slurp');
Expand Down

0 comments on commit 2498f6a

Please sign in to comment.