airport-data-js 3.0.1 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,9 +1,16 @@
1
1
  {
2
2
  "name": "airport-data-js",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "type": "commonjs",
5
5
  "description": "A comprehensive library providing easy retrieval of airport data based on IATA, ICAO, city codes, country codes, and continents.",
6
- "main": "dist/airport-data.min.js",
6
+ "main": "lib/index.js",
7
+ "browser": "dist/airport-data.min.js",
8
+ "files": [
9
+ "lib/",
10
+ "dist/",
11
+ "LICENSE",
12
+ "README.md"
13
+ ],
7
14
  "scripts": {
8
15
  "test": "jest --config jest.config.cjs",
9
16
  "build:lib": "webpack --config webpack.node.cjs",
@@ -45,7 +52,7 @@
45
52
  "bugs": {
46
53
  "url": "https://github.com/aashishvanand/airport-data-js/issues"
47
54
  },
48
- "homepage": "https://airport-data-js.aashishvanand.me/",
55
+ "homepage": "https://airportdata.dev/",
49
56
  "devDependencies": {
50
57
  "@babel/core": "^7.28.6",
51
58
  "@babel/plugin-transform-modules-commonjs": "^7.28.6",
package/CHANGELOG.md DELETED
@@ -1,109 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
-
8
-
9
- ## [3.0.1] - 2026-01-24
10
-
11
- ### 🔄 Improvements
12
-
13
- - Airport data update Jan 2026
14
-
15
- ### [3.0.0] - 2025-12-05
16
-
17
- #### 🆕 New Features
18
-
19
- - **`getAirportStatsByCountry(countryCode)`** - Get comprehensive statistics for airports in a country
20
- - **`getAirportStatsByContinent(continentCode)`** - Get comprehensive statistics for airports on a continent
21
- - **`getLargestAirportsByContinent(continentCode, limit, sortBy)`** - Get largest airports by runway or elevation
22
- - **`getMultipleAirports(codes)`** - Bulk fetch multiple airports in one call
23
- - **`calculateDistanceMatrix(codes)`** - Calculate distances between all pairs of airports
24
- - **`findNearestAirport(lat, lon, filters)`** - Find single nearest airport with optional filters
25
- - **`validateIataCode(code)`** - Validate IATA code existence
26
- - **`validateIcaoCode(code)`** - Validate ICAO code existence
27
- - **`getAirportCount(filters)`** - Get count of airports matching filters
28
- - **`isAirportOperational(code)`** - Check if airport has scheduled service
29
-
30
- #### 🔄 Improvements
31
-
32
- - Enhanced bulk operations for better performance
33
- - Added comprehensive statistical analysis capabilities
34
- - Improved validation utilities for code checking
35
- - Better support for route planning and analysis
36
- - Professional build pipeline with duplicate checking
37
- - Automated release notes from changelog
38
-
39
- ## [2.0.0] - 2024-07-24
40
-
41
- ### 🆕 New Features
42
-
43
- - **`getAirportsByTimezone(timezone)`** - Find airports by timezone
44
- - **`getAirportLinks(code)`** - Get external links for airports
45
- - **`findAirports(filters)`** - Advanced multi-criteria filtering
46
- - **`getAutocompleteSuggestions(query)`** - Autocomplete functionality
47
- - **Enhanced `getAirportsByType(type)`** - Now supports convenience search for "airport" type
48
- - **External links support** - Wikipedia, websites, and flight tracking URLs
49
- - **Timezone information** - Complete timezone data for all airports
50
- - **Runway length data** - Airport runway information included
51
- - **Scheduled service indicator** - Whether airports have commercial scheduled service
52
-
53
- ### 🔄 Improvements
54
-
55
- - Better error handling and validation
56
- - More comprehensive airport data structure
57
- - Improved type filtering with partial matching
58
- - Enhanced geographic calculations
59
- - Case-insensitive search improvements
60
-
61
- ### ❌ Breaking Changes
62
-
63
- - Legacy data format no longer supported
64
- - Simplified airport objects expanded to include more fields
65
- - Basic filtering replaced with advanced `findAirports` function
66
-
67
- ## [1.0.6] - 2022-11-24
68
-
69
- ### 🔄 Improvements
70
-
71
- - Data updates
72
-
73
- ## [1.0.5] - 2022-11-20
74
-
75
- ### 🔄 Improvements
76
-
77
- - Data updates
78
-
79
- ## [1.0.4] - 2022-11-18
80
-
81
- ### 🔄 Improvements
82
-
83
- - Data updates
84
-
85
- ## [1.0.3] - 2022-11-15
86
-
87
- ### 🔄 Improvements
88
-
89
- - Data updates
90
-
91
- ## [1.0.2] - 2022-11-12
92
-
93
- ### 🔄 Improvements
94
-
95
- - Data updates
96
-
97
- ## [1.0.1] - 2022-11-10
98
-
99
- ### 🐛 Bug Fixes
100
-
101
- - Fixed initial release issues
102
- - Improved error handling
103
-
104
- ## [1.0.0] - 2022-11-08
105
-
106
- ### 🆕 Initial Release
107
-
108
- - Basic airport lookup by IATA and ICAO codes
109
- - Search by country and continent
package/SECURITY.md DELETED
@@ -1,23 +0,0 @@
1
- # Security Policy
2
-
3
- ## Supported Versions
4
-
5
- Currently, only the latest major version of `airport-data-js` (or whatever you name your package) is being actively supported with security updates.
6
-
7
- ## Reporting a Vulnerability
8
-
9
- Your security is of utmost importance. If you believe you've found a security issue in `airport-data-js`, please notify me. I appreciate your efforts in responsibly disclosing your findings and will make every effort to acknowledge and address them as soon as possible.
10
-
11
- ### Disclosure Policy
12
-
13
- - Please give me a detailed overview of the potential issue, avoiding too much technical jargon if possible.
14
- - Let me know as soon as possible upon discovery of a potential security issue.
15
- - Provide me with a reasonable amount of time to address the issue before any disclosure to the public or a third-party.
16
- - Make a good faith effort to avoid privacy violations, destruction of data, and interruption or degradation of the service.
17
-
18
- ### Process
19
-
20
- 1. Email the details of your findings to [aashishvanand@gmail.com](mailto:aashishvanand@gmail.com). Please use a descriptive subject line.
21
- 2. You'll receive a response from me within 48 hours acknowledging your email.
22
- 3. I will investigate the issue and strive to keep you informed about my progress towards a fix.
23
- 4. Once the issue is resolved, I may ask you to validate the solution.
@@ -1,40 +0,0 @@
1
- const path = require('path');
2
-
3
- module.exports = {
4
- target: 'web',
5
- entry: './src/index.js',
6
- mode: 'production',
7
- output: {
8
- filename: 'airport-data.min.js',
9
- path: path.resolve(__dirname, 'dist'),
10
- library: 'AirportData',
11
- libraryTarget: 'umd',
12
- umdNamedDefine: true,
13
- globalObject: 'this'
14
- },
15
- module: {
16
- rules: [
17
- {
18
- test: /\.js$/,
19
- exclude: /node_modules/,
20
- use: {
21
- loader: 'babel-loader',
22
- options: {
23
- presets: ['@babel/preset-env']
24
- }
25
- }
26
- },
27
- {
28
- test: /\.compressed$/,
29
- use: 'raw-loader',
30
- }
31
- ]
32
- },
33
- resolve: {
34
- fallback: {
35
- "fs": false,
36
- "path": require.resolve("path-browserify")
37
- },
38
- extensions: ['.js', '.json']
39
- }
40
- };
package/webpack.node.cjs DELETED
@@ -1,27 +0,0 @@
1
- const path = require('path');
2
-
3
- module.exports = {
4
- entry: './src/index.js',
5
- target: 'node',
6
- mode: 'production',
7
- output: {
8
- filename: 'index.js',
9
- path: path.resolve(__dirname, 'lib'),
10
- libraryTarget: 'commonjs2'
11
- },
12
- module: {
13
- rules: [
14
- {
15
- test: /\.js$/,
16
- exclude: /node_modules/,
17
- use: {
18
- loader: 'babel-loader',
19
- },
20
- },
21
- {
22
- test: /\.compressed$/,
23
- use: 'raw-loader',
24
- },
25
- ]
26
- }
27
- };