![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
All the cities of the world (according to the periodically updated MaxMind database).
To use this gem, you'll need the JSON data.
Download it, extract it and connect it up as follows.
$ wget https://s3-us-west-2.amazonaws.com/cities-gem/cities.tar.gz
$ tar -xzf cities.tar.gz
Cities.data_path = '/path/to/cities'
Countries are identified by their ISO 3166-1 alpha-2 codes.
cities = Cities.cities_in_country('GB')
#=> { "abberley"=> #<City:0x000001049b9ba0>, "abberton"=> #<City:0x000001049b9b50>, ... }
mcr = cities['manchester']
#=> #<City:0x00000102fb4ea8>
mcr.name
#=> "Manchester"
mcr.population
#=> 395516
mcr.latlong
#=> [53,5, -2.216667]
The database is exhaustive and certainly stretches the definition of the word "city".
Cities.cities_in_country('GB')['buchlyvie'].population
#=> 448
This gem was designed as an extension to the Countries gem. Installing Cities adds two new instance methods to the Country
class.
us = Country.search('US')
#=> #<Country:0x000001020cf5f0>
us.cities?
#=> true
us.cities
#=> { "abanda" => #<Cities::City:0x00000114b34a38>, ... }
Provided under an MIT license by Joe Corcoran. Thanks to hexorx for the countries gem that brought this idea about.
This product includes data created by MaxMind, available from http://www.maxmind.com. All data © 2008 MaxMind Inc. Read the MaxMind WorldCities open data license for more details.
FAQs
Unknown package
We found that cities demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.