Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
3b9e1cd
update: reference duplicate promised to original promise [skip ci]
hemant-fundwave Nov 7, 2024
f33bb93
update: add test case for duplicate url ref
hemant-fundwave Nov 11, 2024
ca71b24
chore: disable no-explicit-any lint for next-line
hemant-fundwave Nov 11, 2024
96ffedf
CI: bumps @fundwave/fetch-queue to 1.1.4-replace-duplicate-promise-ref.0
Nov 11, 2024
07d91f4
chore: refactor variable names & add code comments
hemant-fundwave Nov 11, 2024
cfce05f
update: set queue to undefined if queueKey is empty
hemant-fundwave Nov 12, 2024
6af643a
refacor: `nextTask` to `request`
hemant-fundwave Nov 12, 2024
1b83cce
fix: queue length check
hemant-fundwave Nov 12, 2024
fda9041
fix: linting @ extra-boolean-cast
hemant-fundwave Nov 12, 2024
f52042a
CI: bumps @fundwave/fetch-queue to 1.1.4-replace-duplicate-promise-ref.1
Nov 12, 2024
240b119
refactor: variable names of key in queue to `requestKey`
hemant-fundwave Nov 14, 2024
3e66dff
feat: add keyBuilder method to build a unique key for fetch based on …
hemant-fundwave Nov 14, 2024
4e9fb49
chore: to maintain FIFO in resolving the queue [skip ci]
hemant-fundwave Nov 14, 2024
b524b15
chore: change private function definition to avoid creating docs
hemant-fundwave Nov 14, 2024
0e4f23c
chore: update README.md
hemant-fundwave Nov 14, 2024
7fde560
CI: bumps @fundwave/fetch-queue to 1.1.4-replace-duplicate-promise-ref.2
Nov 14, 2024
635e4b0
refactor: README.md config definitions [skip ci]
hemant-fundwave Nov 14, 2024
71e388f
refactor: `queueKey` to `queueKeys` [skip ci]
hemant-fundwave Nov 14, 2024
6a2db75
fix: typo in README.md [skip ci]
hemant-fundwave Nov 20, 2024
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
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
},
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-var-requires": 0,
"no-constant-binary-expression": "error",
"no-useless-concat": "error",
Expand Down
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,14 @@ const fetch = MyFetchQueue.getFetchMethod();

## Options

| `Property` | `Description` | `Default Value` |
| ---------- | ----------------------------------- | --------------- |
| concurrent | number of concurrent fetch requests | 3 |
| debug | set debug mode | false |
| `Property` | `Description` | `Default Value` |
| ----------------- | ------------------------------------- | -------------- |
| concurrent | number of concurrent fetch requests | 3 |
| pauseQueueOnInit | start queue with a paused state | false |
| pre | array of configs for pre-fetch-hooks | [] |
| queuingPatterns | array of regex to queue matching requests | [] |
| debug | set debug mode | false |
| keyBuilderParams | to build a unique key for queue | ["url", "options.method", "options.body"] |

## Usage

Expand Down
53 changes: 29 additions & 24 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fundwave/fetchq",
"version": "1.1.3",
"version": "1.1.4-replace-duplicate-promise-ref.2",
"description": "Queue for fetch requests",
"main": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
Expand Down
Loading