Skip to content

feat: support abort controller - #1644

Merged
kodiakhq[bot] merged 2 commits into
masterfrom
feat/support-abort-controller
Feb 21, 2026
Merged

kodiakhq[bot] merged 2 commits into
masterfrom
feat/support-abort-controller

Conversation

@blacha

@blacha blacha commented Feb 17, 2026 •

Copy link
Copy Markdown
Owner

Motivation

Abort signals allow consumers to cancel inflight requests, not all sources support abort controllers so YMMV

Modifcation

Add optional signal to all fetch requests to sources to abort.

also Fixes #1645

@kylebarron

Copy link
Copy Markdown
Contributor

Oh I hadn't seen this. Anything blocking?

@kylebarron

kylebarron commented Feb 19, 2026 •

Copy link
Copy Markdown
Contributor

I think this AbortSignal support is the one reason why my deck.gl-raster demos are slower on main than with the previous release with geotiff.js. I'd love to either merge and release this or I can easily temporarily vendor the code for some internal demos next week.

(I don't put decoding on a worker yet either, but it looks like it's a network slowdown, not a CPU-bound lag)

Let me know if I can help out. I think my PR in #1646 didn't touch the middlewares at all

@blacha

blacha commented Feb 20, 2026

Copy link
Copy Markdown
Owner Author

Oh I hadn't seen this. Anything blocking?

I just need to fix the unit tests, I may have some time later today to do that.

@kylebarron

Copy link
Copy Markdown
Contributor

I would try to help but I can't get the tests to run locally.

git clone https://github.com/blacha/chunkd
cd chunkd
npm install
npm build
npm test

and that errored (even on master) with:

> npm run test

> @chunkd/[email protected] test
> lerna run test

lerna notice cli v9.0.3
lerna info versioning independent


> @chunkd/source:test

 Lerna (powered by Nx)   Running target test for 8 projects

 Lerna (powered by Nx)   Running target test for 8 projects

   →  Executing 1/8 remaining tasks...

   ⠸  @chunkd/source:test

Could not find '/Users/kyle/github/blacha/chunkd/packages/source/build/**/*.test.js'
npm error Lifecycle script `test` failed with error:
npm error code 1
npm error path /Users/kyle/github/blacha/chunkd/packages/source
   ✖  @chunkd/source:test



——————————————————————————————————————————————————————————————————————————————————————————————————

 Lerna (powered by Nx)   Ran target test for 8 projects (591ms)

   ✔  0/1 succeeded [0 read from cache]

   ✖  1/1 targets failed, including the following:

      - @chunkd/source:test

Running npm test from inside of packages/source didn't help either:

> npm run test

> @chunkd/[email protected] test
> node --test "build/**/*.test.js"

Could not find '/Users/kyle/github/blacha/chunkd/packages/source/build/**/*.test.js'
npm error Lifecycle script `test` failed with error:
npm error code 1
npm error path /Users/kyle/github/blacha/chunkd/packages/source
npm error workspace @chunkd/[email protected]
npm error location /Users/kyle/github/blacha/chunkd/packages/source
npm error command failed
npm error command sh -c node --test "build/**/*.test.js"

@blacha

blacha commented Feb 20, 2026

Copy link
Copy Markdown
Owner Author

I would try to help but I can't get the tests to run locally.

git clone https://github.com/blacha/chunkd
cd chunkd
npm install
npm build
npm test

and that errored (even on master) with:

> npm run test

> @chunkd/[email protected] test
> lerna run test

lerna notice cli v9.0.3
lerna info versioning independent


> @chunkd/source:test

 Lerna (powered by Nx)   Running target test for 8 projects

 Lerna (powered by Nx)   Running target test for 8 projects

   →  Executing 1/8 remaining tasks...

   ⠸  @chunkd/source:test

Could not find '/Users/kyle/github/blacha/chunkd/packages/source/build/**/*.test.js'
npm error Lifecycle script `test` failed with error:
npm error code 1
npm error path /Users/kyle/github/blacha/chunkd/packages/source
   ✖  @chunkd/source:test



——————————————————————————————————————————————————————————————————————————————————————————————————

 Lerna (powered by Nx)   Ran target test for 8 projects (591ms)

   ✔  0/1 succeeded [0 read from cache]

   ✖  1/1 targets failed, including the following:

      - @chunkd/source:test

Running npm test from inside of packages/source didn't help either:

> npm run test

> @chunkd/[email protected] test
> node --test "build/**/*.test.js"

Could not find '/Users/kyle/github/blacha/chunkd/packages/source/build/**/*.test.js'
npm error Lifecycle script `test` failed with error:
npm error code 1
npm error path /Users/kyle/github/blacha/chunkd/packages/source
npm error workspace @chunkd/[email protected]
npm error location /Users/kyle/github/blacha/chunkd/packages/source
npm error command failed
npm error command sh -c node --test "build/**/*.test.js"

🤔 what version of node are you running? I can reproduce this if I downgrade to node20. the node --test interface was very unstable in node 20.

@blacha
blacha marked this pull request as ready for review February 21, 2026 06:00
@kodiakhq
kodiakhq Bot merged commit 7fc54da into master Feb 21, 2026
4 checks passed
@kodiakhq
kodiakhq Bot deleted the feat/support-abort-controller branch February 21, 2026 06:00
@github-actions github-actions Bot mentioned this pull request Feb 21, 2026
@kylebarron

Copy link
Copy Markdown
Contributor

Maybe I was using node 20.. I have no idea; I'll check on Monday. Thanks!

@kylebarron

Copy link
Copy Markdown
Contributor

Ah yes I was using Node 20. Switching to Node 24 I can run and pass the tests. Sorry for the noise

blacha pushed a commit that referenced this pull request Mar 3, 2026
🤖 I have created a release *beep* *boop*
---


<details><summary>fs: 11.3.2</summary>

##
[11.3.2](fs-v11.3.1...fs-v11.3.2)
(2026-02-21)


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @chunkd/source bumped from ^11.1.0 to ^11.2.0
    * @chunkd/source-memory bumped from ^11.0.2 to ^11.0.3
    * @chunkd/source-file bumped from ^11.0.1 to ^11.0.2
    * @chunkd/source-http bumped from ^11.1.1 to ^11.2.0
</details>

<details><summary>fs-aws: 11.4.2</summary>

##
[11.4.2](fs-aws-v11.4.1...fs-aws-v11.4.2)
(2026-02-21)


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @chunkd/fs bumped from 11.3.1 to 11.3.2
    * @chunkd/source-aws bumped from 11.0.4 to 11.0.5
</details>

<details><summary>middleware: 11.2.0</summary>

##
[11.2.0](middleware-v11.1.0...middleware-v11.2.0)
(2026-02-21)


### Features

* support abort controller
([#1644](#1644))
([7fc54da](7fc54da))


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @chunkd/source bumped from ^11.1.0 to ^11.2.0
</details>

<details><summary>source: 11.2.0</summary>

##
[11.2.0](source-v11.1.0...source-v11.2.0)
(2026-02-21)


### Features

* support abort controller
([#1644](#1644))
([7fc54da](7fc54da))
</details>

<details><summary>source-aws: 11.0.5</summary>

##
[11.0.5](source-aws-v11.0.4...source-aws-v11.0.5)
(2026-02-21)


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @chunkd/source bumped from ^11.1.0 to ^11.2.0
</details>

<details><summary>source-file: 11.0.2</summary>

##
[11.0.2](source-file-v11.0.1...source-file-v11.0.2)
(2026-02-21)


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @chunkd/source bumped from ^11.1.0 to ^11.2.0
</details>

<details><summary>source-http: 11.2.0</summary>

##
[11.2.0](source-http-v11.1.1...source-http-v11.2.0)
(2026-02-21)


### Features

* support abort controller
([#1644](#1644))
([7fc54da](7fc54da))


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @chunkd/source bumped from ^11.1.0 to ^11.2.0
</details>

<details><summary>source-memory: 11.0.3</summary>

##
[11.0.3](source-memory-v11.0.2...source-memory-v11.0.3)
(2026-02-21)


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @chunkd/source bumped from ^11.1.0 to ^11.2.0
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Outdated docs in @chunkd/middleware

2 participants