-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Rework wrapper and switch to GQL API
- Loading branch information
Showing
67 changed files
with
25,816 additions
and
5,131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Changesets | ||
|
||
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works | ||
with multi-package repos, or single-package repos to help you version and publish your code. You can | ||
find the full documentation for it [in our repository](https://github.com/changesets/changesets) | ||
|
||
We have a quick list of common questions to get you started engaging with this project in | ||
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/config@3.0.5/schema.json", | ||
"changelog": "@changesets/cli/changelog", | ||
"commit": false, | ||
"fixed": [], | ||
"linked": [], | ||
"access": "public", | ||
"baseBranch": "main", | ||
"updateInternalDependencies": "patch", | ||
"ignore": [] | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: CI | ||
|
||
on: push | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: pnpm/action-setup@v4 | ||
with: | ||
version: 10 | ||
- name: Install dependencies | ||
run: pnpm i | ||
- name: Run Biome | ||
run: pnpm check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,13 @@ | ||
app | ||
.env | ||
.env.local | ||
.changeset | ||
.github | ||
.idea | ||
.tsup | ||
node_modules | ||
src | ||
.eslintrc | ||
.gitignore | ||
.npmignore | ||
.prettierrc | ||
rollup.config.ts | ||
tsconfig.json | ||
.gitattributes | ||
yarn-error.log | ||
node_modules/ | ||
.nvmrc | ||
.gitattributes | ||
.env.example | ||
coverage | ||
test | ||
jest.config.ts | ||
.github | ||
*.tgz | ||
.eslintrc.js | ||
.gitignore | ||
.tool-versions | ||
biome.json | ||
pnpm-lock.yaml | ||
tsup.config.ts | ||
vitest.config.mts |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pnpm 9.15.5 | ||
nodejs 22.13.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# albert-heijn-wrapper | ||
|
||
## 3.0.0 | ||
|
||
### Major Changes | ||
|
||
- Switched over to GraphQL API for all requests | ||
- Removed the functions for the subclasses, they can now be accessed directly (`ah.product` vs `ah.product()`) | ||
- Removed the `bonus` & `category` subclasses since the GraphQL API does not have 1-to-1 equivalents | ||
- Reworked the product functions: | ||
- `getProductsFromName` is now `search` and uses a different set of arguments | ||
- `getProductFromId` is now `get` | ||
- Reworked the recipe functions: | ||
- `getRecipeFromName` is now `search` and uses a different set of arguments | ||
- `getRecipeFromId` is now `get` | ||
- Reworked the store functions: | ||
- `getStoresFromLocation` is now `search` and uses a different set of arguments | ||
- Rewrote tests using MSW and Vitest | ||
- Switched from `yarn` to `pnpm` | ||
- Removed `axios` and `date-fns` dependencies, this package now has no external dependencies | ||
- Updated to Node 22 | ||
|
||
## 2.0.1 | ||
|
||
### Patch Changes | ||
|
||
- Fixed error 400 due to missing header | ||
|
||
## 2.0.0 | ||
|
||
### Major changes | ||
|
||
- Updated to major version due to breaking changes | ||
- Restructured all functions to use objects instead of multiple parameters | ||
- Added category & bonus objects | ||
- Added tests | ||
- Updated readme | ||
|
||
## 1.1.0 | ||
|
||
### Minor changes | ||
|
||
- Restructured all functions to use objects instead of multiple parameters | ||
|
||
## 1.0.0 | ||
|
||
### Major changes | ||
|
||
- Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.