Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: allow hash character in directory listings #27

Merged
merged 1 commit into from
Mar 16, 2023

Conversation

alanshaw
Copy link
Member

Pulls in the new gateway-lib with the fix for allowing hash character in directory listings.

Also updates all dependencies, which includes a change in dagula to switch from our unixfs exporter fork back to ipfs-unixfs-exporter (since the parallel block fetching from the fork was backported).

ipfs-unixfs-exporter now uses .subarray() everywhere (no buffer copies) which is rad, but it also caused our tests to fail which was tricky to track down the cause. I've commented heavily in the place where the fix is.

@@ -11,7 +11,7 @@ import { Builder } from '../test/helpers.js'

const bucketNames = ['CARPARK', 'SATNAV', 'DUDEWHERE']
const buckets = bucketNames.map(b => new R2Bucket(new FileStorage(`./.mf/r2/${b}`)))
const builder = new Builder(...buckets)
const builder = new Builder(buckets[0], buckets[1], buckets[2])
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to stop typescript complaining...

const block = { cid: blockHeader.cid, bytes }
const block = {
cid: blockHeader.cid,
// FML, this took _so_ long to figure out:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh man! glad you ended up finding it out

@alanshaw alanshaw merged commit 64a678f into main Mar 16, 2023
@alanshaw alanshaw deleted the fix/allow-hash-in-directories branch March 16, 2023 09:08
alanshaw pushed a commit that referenced this pull request Mar 16, 2023
🤖 I have created a release *beep* *boop*
---


##
[1.6.1](v1.6.0...v1.6.1)
(2023-03-16)


### Bug Fixes

* allow hash character in directory listings
([#27](#27))
([64a678f](64a678f))

---
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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants