Skip to content

Releases: 2BAD/ryanair

v7.1.2

22 Dec 08:53
ac96ddb
Compare
Choose a tag to compare

Fixed

  • Updated debounce hook to work correctly with new versions of got
  • Made FareType.fareClass optional to match API
  • Added missing README to package (#72)

Changed

  • Switched from prettier to biome for formatting
  • Updated ESLint config to @2bad/axiom

Full Changelog: v7.1.1...v7.1.2

7.1.1

10 Jun 13:14
8a01323
Compare
Choose a tag to compare

Fixed

  • Fix publishing ci action to run npm publish with --ws flag

Full Changelog: v7.1.0...v7.1.1

7.1.0

10 Jun 12:48
bbaaa83
Compare
Choose a tag to compare

Added

  • Add ryanair-cli package to monorepo (still wip)
  • Add api v3 support for airports.getActive() under airports.getActiveV3()

Fixed

  • Fix swc build breaking bug swc-project/cli#281
  • Fix eslint in vscode incorrectly resolving import paths in monorepo
  • Fix script name for linting the code (lint -> check:code)
  • Make payload types available for consumers, #70 #71

Changed

  • Move to monorepo setup
  • Move package scripts to packages/*
  • Replace dependency npm-run-all with npm-run-all2 v6
  • Simplified eslint configuration by switching to eslint-config-love
  • Use zod.datetime() and zod.date() for date and time validations
  • Align swc target with tsc (es2022)

Full Changelog: v7.0.0...v7.1.0

7.0.0

23 Jan 10:40
3f04994
Compare
Choose a tag to compare

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 a RangeError if the end date is before the start date.
  • Will no longer try to match snapshots on dynamic values.
  • Updated dependencies.

6.0.1

03 Nov 21:09
4777216
Compare
Choose a tag to compare

Fixed

  • Addressed an issue where both swc and tsc were generating module specifiers with the .ts extension by utilizing the fix-ext.sh script

6.0.0

31 Oct 15:04
9207750
Compare
Choose a tag to compare

Breaking Changes

  • Rolled back to got based client since cookie modification is impossible with fetch.
  • 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

20 Jul 15:56
212da5f
Compare
Choose a tag to compare

Breaking Changes

  • Removed got HTTP client dependency. This was previously used for cookie spoofing, which is no longer required.
  • Support for node@16 has been dropped as it has reached its End of Life (EOL).

4.0.0

23 Jun 21:28
70de485
Compare
Choose a tag to compare

Breaking Changes

  • The airports.searchByPhrase and airports.searchByRoute methods have been removed as the autocomplete 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 to swc.
  • 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

20 May 01:57
c96195e
Compare
Choose a tag to compare

Breaking Changes

  • The method fares.cheapestPerDay() has been renamed to fares.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

11 May 18:10
20d06de
Compare
Choose a tag to compare

Fixed

  • Add missing mkt cookie
  • Set user-agent header to valid browser