Releases: 2BAD/ryanair
Releases · 2BAD/ryanair
v7.0.0
Breaking Changes
- Updated
got
dependency to v14. - Dropped support for node@18.
Added
- Implemented
airports.getSchedules
method. - Implemented
airports.getNearby
method. - Added renovate for dependency management.
- Pinned npm version and added section for corepack.
- Added tests for extractCoordinates helper.
- Added postman badge with a link to the collection.
Changed
- Now reports unused disable directives while using eslint.
getFirstDayOfEachMonthInRange
now throws aRangeError
if the end date is before the start date.- Will no longer try to match snapshots on dynamic values.
- Updated dependencies.
6.0.1
6.0.0
Breaking Changes
- Rolled back to
got
based client since cookie modification is impossible withfetch
. - Prefixed methods that require multiple API calls and computations with
find...
:getCheapestRoundTrip()
->findCheapestRoundTrip()
getDailyFaresInRange()
->findDailyFaresInRange()
Added
- Implemented debounce to limit requests at a rate of 100 per minute.
- Added
airports.findRoutes()
- to find available routes between two airports. - Added
airports.calculateDistance()
- calculates distance between two geo points using the haversine formula.
Fixed
- Used spoofed cookie value to circumvent API restrictions.
5.0.0
4.0.0
Breaking Changes
- The
airports.searchByPhrase
andairports.searchByRoute
methods have been removed as theautocomplete
endpoint can no longer be publicly accessed.
Added
- The
fares.getCheapestRoundTrip
method has been added, which finds the cheapest round trip fares for a given route and date range in a specific currency.
Changed
- TypeScript compilation has been switched from
tsc
toswc
. - Paths have been updated to conform with the esm module resolution specification.
allowImportingTsExtensions
has been set to true.- Dependencies have been updated.
3.0.0
Breaking Changes
- The method
fares.cheapestPerDay()
has been renamed tofares.getCheapestPerDay()
. This change was made to maintain consistency across all other methods.
Added
- A new method, fares.getDailyFaresInRange(), has been included.
- Various utility methods to work with dates using
date-fns
. - Renovate config has been configured to update dependencies every week automatically.
- Eslint plugins have been added to validate jsdoc blocks and tests.
Fixed
- A separate tsconfig has been added for build purposes to avoid shipping test files with builds.
Changed
- Dev dependencies have been updated and cleaned up
2.0.2
2.0.1
2.0.0
Breaking Changes
- The replacement of
fetch
withgot
resulted in the loss of support for browsers.
Added
- CHANGELOG.md file in the repository
- Retrieve and retain necessary cookies to access specific API endpoints
- Helper function to generate tomorrow date for tests 8719967
Fixed
Changed
- Updated headings in documentation and some other cosmetic changes
- Changed prettier printWidth to 120 symbols
- Set tests timeouts for
vitest
to 30 seconds - Unify origin and destination airports for testing purposes f72af1b