Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: bbc/sqs-consumer
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v8.2.0
Choose a base ref
...
head repository: bbc/sqs-consumer
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v9.0.0
Choose a head ref
  • 8 commits
  • 10 files changed
  • 1 contributor

Commits on Mar 11, 2024

  1. chore: handle breaking changes

    nicholasgriffintn committed Mar 11, 2024
    Copy the full SHA
    2924ca2 View commit details
  2. chore(deps): upgrading dependencies - March 24 (#468)

    nicholasgriffintn authored Mar 11, 2024
    Copy the full SHA
    2d342cd View commit details
  3. feat!: replacing the isRunning method with status (#459)

    * feat!: replacing the isRunning method with getStatus
    
    * chore: putting debugger back
    
    * chore: putting test back
    nicholasgriffintn authored Mar 11, 2024
    Copy the full SHA
    9f07383 View commit details
  4. Copy the full SHA
    b554da6 View commit details
  5. chore: adding a link to the documentation (#471)

    nicholasgriffintn authored Mar 11, 2024
    Copy the full SHA
    bd7fbbb View commit details
  6. Copy the full SHA
    9546a55 View commit details
  7. chore(release): v9.0.0

    nicholasgriffintn committed Mar 11, 2024
    Copy the full SHA
    bc5593c View commit details
  8. chore: upgrading @semantic-release/npm

    nicholasgriffintn committed Mar 11, 2024
    Copy the full SHA
    bed4dc6 View commit details
2 changes: 0 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -17,8 +17,6 @@ jobs:
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -26,6 +26,10 @@ npm install sqs-consumer
We will only support Node versions that are actively or security supported by the Node team. If you are still using an Node 14, please use a version of this library before the v7 release, if you are using Node 16, please use a version before the v7.3.0 release.
## Documentation
Visit [https://bbc.github.io/sqs-consumer/](https://bbc.github.io/sqs-consumer/) for the full API documentation.
## Usage
```js
@@ -125,9 +129,15 @@ By default, the value of `abort` is set to `false` which means pre existing requ
`consumer.stop({ abort: true })`
### `consumer.isRunning`
### `consumer.status`
Returns the current status of the consumer.
- `isRunning` - `true` if the consumer has been started and not stopped, `false` if was not started or if it was stopped.
- `isPolling` - `true` if the consumer is actively polling, `false` if it is not.
Returns the current polling state of the consumer: `true` if it is actively polling, `false` if it is not.
> **Note:**
> This method is not available in versions before v9.0.0 and replaced the method `isRunning` to supply both running and polling states.
### `consumer.updateOption(option, value)`
Loading