What's Changed
- Switched over to GraphQL API for all requests
- Removed the functions for the subclasses, they can now be accessed directly (
ah.product
vsah.product()
) - Removed the
bonus
&category
subclasses since the GraphQL API does not have 1-to-1 equivalents - Reworked the product functions:
getProductsFromName
is nowsearch
and uses a different set of argumentsgetProductFromId
is nowget
- Reworked the recipe functions:
getRecipeFromName
is nowsearch
and uses a different set of argumentsgetRecipeFromId
is nowget
- Reworked the store functions:
getStoresFromLocation
is nowsearch
and uses a different set of arguments
- Rewrote tests using MSW and Vitest
- Switched from
yarn
topnpm
- Removed
axios
anddate-fns
dependencies, this package now has no external dependencies - Updated to Node 22
Full Changelog: 2.0.1...3.0.0