Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
node-version: [18.x, 20.x, 22.x]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v1
Expand All @@ -45,16 +45,12 @@ jobs:
startsWith(github.ref, 'refs/tags/v')

runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
node-version-file: '.nvmrc'

- name: Install package
run: npm i
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![Downloads](https://img.shields.io/npm/dm/bring-shopping.svg)](https://www.npmjs.com/package/bring-shopping)
![Build Status](https://github.com/foxriver76/node-bring-api/workflows/Test%20and%20Release/badge.svg)

A node module for Bring! shopping lists entirely written in TypeScript.
A __zero dependency__ node module for Bring! shopping lists __entirely written in TypeScript__.

## Disclaimer
The developers of this module are in no way endorsed by or affiliated with
Expand Down Expand Up @@ -46,6 +46,9 @@ More important methods are `getItems(listUUID)`, `getItemsDetails(listUUID)`, `s
`moveToRecentList(listUuid, itemName)` and `getAllUsersFromList(listUuid)`.

## Changelog
### 2.0.0 (2024-11-27)
* (@foxriver76) ported to native `fetch` module (BREAKING: Requires Node.js 18 or above)

### 1.5.1 (2022-10-31)
* (foxriver76) updated types
* (foxriver76) fixed `removeItemImage` as headers were missing
Expand Down
12 changes: 6 additions & 6 deletions build/bring.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ declare class Bring {
*
* @param itemUuid The itemUUID which will be updated
* @param image The image you want to link to the item
* returns an imageUrl and answerHttpStatus should contain 204. If not -> error
* @return returns an imageUrl and answerHttpStatus should contain 204. If not -> error
*/
saveItemImage(itemUuid: string, image: Image): Promise<{
imageUrl: string;
Expand All @@ -129,22 +129,22 @@ declare class Bring {
*
* @param listUuid The listUUID you want to remove a item from
* @param itemName Name of the item you want to delete from you shopping list
* should return an empty string and $answerHttpStatus should contain 204. If not -> error
* @return should return an empty string and $answerHttpStatus should contain 204. If not -> error
*/
removeItem(listUuid: string, itemName: string): Promise<string>;
/**
* Remove the image from your item
*
* @param itemUuid The itemUUID you want to remove the image from
* returns an empty string and answerHttpStatus should contain 204. If not -> error
* @return returns an empty string and answerHttpStatus should contain 204. If not -> error
*/
removeItemImage(itemUuid: string): Promise<string>;
/**
* move an item to recent items list
* Move an item to recent items list
*
* @param itemName Name of the item you want to delete from you shopping list
* @param listUuid The lisUUID you want to receive a list of users from.
* should return an empty string and $answerHttpStatus should contain 204. If not -> error
* @return Should return an empty string and $answerHttpStatus should contain 204. If not -> error
*/
moveToRecentList(listUuid: string, itemName: string): Promise<string>;
/**
Expand All @@ -163,7 +163,7 @@ declare class Bring {
*/
loadTranslations(locale: string): Promise<Record<string, string>>;
/**
* Load translation file e. g. via 'de-DE'
* Load translation file e.g. via 'de-DE'
* @param locale from which country translations will be loaded
*/
loadCatalog(locale: string): Promise<LoadCatalogResponse>;
Expand Down
88 changes: 45 additions & 43 deletions build/bring.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading