Skip to content

Commit

Permalink
v3.2.3: Fix types declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelmhtr committed Sep 29, 2021
1 parent cbfae2e commit 4d2d165
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .fixTypes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
# "countries" and "timezones" constants.
#
# This script should be removed once the problem has been resolved in the plugin.
sed -i '' 's/^const countries/declare const countries/' ./esm/types.d.ts
sed -i '' 's/;const timezones/;\ndeclare const timezones/' ./esm/types.d.ts
sed -i '' 's/^const countries=/declare const countries:/' ./esm/types.d.ts
sed -i '' 's/;const timezones=/;\ndeclare const timezones:/' ./esm/types.d.ts
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Changelog
All notable changes to this project will be documented in this file.

## [3.2.3] - 2021-09-28
### Fixed
- Constant declarations on Types ([#41](https://github.com/manuelmhtr/countries-and-timezones/issues/41))

### Added
- Eslint config

## [3.2.1] - 2021-08-17
### Fixed
- Correct ESM build config ([#36](https://github.com/manuelmhtr/countries-and-timezones/pull/36) by [Kyle Herock](https://github.com/kherock))
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -372,9 +372,9 @@ A timezone is defined by the following parameters:
* [location-by-ip](https://www.npmjs.com/package/location-by-ip): Get the location of any IP address.


## Sponsors
## Support

You / your company could be [the first](https://github.com/sponsors/manuelmhtr).
Consider supporting this project by [buying me a beer](https://github.com/sponsors/manuelmhtr) 🍺


## Working on something more complex?
Expand Down
4 changes: 2 additions & 2 deletions esm/types.d.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "countries-and-timezones",
"version": "3.2.2",
"version": "3.2.3",
"description": "Minimalistic library to work with countries and timezones data.",
"main": "./dist/index.js",
"module": "./esm/index.js",
Expand Down

0 comments on commit 4d2d165

Please sign in to comment.