This repository has been archived by the owner on Sep 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BREAKING CHANGE: v1 CIDs created by this module now default to base32 encoding when stringified refs: ipfs/js-ipfs#1995 License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
Not a direct dependency of this module but ipld-dag-pb changed the case of some property names that are used by this module.
4 tasks
License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
I ran these against the branch this PR is blocking and they passed! $ npm test
> ipfs-http-response@0.2.2 test /Users/alan/Code/protocol-labs/js-ipfs-http-response
> aegir test -t node
Test Node.js
Warning: Could not find any test files matching pattern: test/node.js
resolve file (CIDv0)
Swarm listening on /ip4/127.0.0.1/tcp/57336/ipfs/QmVcSypeVpVEeCWZe6p9JJGun2mb8ewYYY7XTntrK7NcCU
Swarm listening on /p2p-circuit/ipfs/QmVcSypeVpVEeCWZe6p9JJGun2mb8ewYYY7XTntrK7NcCU
Swarm listening on /p2p-circuit/ip4/127.0.0.1/tcp/57336/ipfs/QmVcSypeVpVEeCWZe6p9JJGun2mb8ewYYY7XTntrK7NcCU
✓ should resolve a CIDv0
resolve file (CIDv1)
Swarm listening on /ip4/127.0.0.1/tcp/57353/ipfs/QmTkRo8dNBeVC7UFt2gcVRUXfUHAKsKWb36Bd1qanagjUu
Swarm listening on /p2p-circuit/ipfs/QmTkRo8dNBeVC7UFt2gcVRUXfUHAKsKWb36Bd1qanagjUu
Swarm listening on /p2p-circuit/ip4/127.0.0.1/tcp/57353/ipfs/QmTkRo8dNBeVC7UFt2gcVRUXfUHAKsKWb36Bd1qanagjUu
✓ should resolve a CIDv1
resolve directory (CIDv0)
Swarm listening on /ip4/127.0.0.1/tcp/57370/ipfs/QmPwMq8W2EVEYo7oL3wksdTPfN3gjYGacUMgkwjcZEvWGq
Swarm listening on /p2p-circuit/ipfs/QmPwMq8W2EVEYo7oL3wksdTPfN3gjYGacUMgkwjcZEvWGq
Swarm listening on /p2p-circuit/ip4/127.0.0.1/tcp/57370/ipfs/QmPwMq8W2EVEYo7oL3wksdTPfN3gjYGacUMgkwjcZEvWGq
✓ should return the list of files of a directory
✓ should return the pp.txt file
✓ should return the holmes.txt file
resolve directory (CIDv1)
Swarm listening on /ip4/127.0.0.1/tcp/57397/ipfs/QmcbeinnyxFKPfqd1dJcxrpnJoKRr4xTYSHZGGAmi3JZnV
Swarm listening on /p2p-circuit/ipfs/QmcbeinnyxFKPfqd1dJcxrpnJoKRr4xTYSHZGGAmi3JZnV
Swarm listening on /p2p-circuit/ip4/127.0.0.1/tcp/57397/ipfs/QmcbeinnyxFKPfqd1dJcxrpnJoKRr4xTYSHZGGAmi3JZnV
✓ should return the list of files of a directory
✓ should return the pp.txt file
✓ should return the holmes.txt file
resolve web page (CIDv0)
Swarm listening on /ip4/127.0.0.1/tcp/57428/ipfs/QmUPaf78raFjSjmsTAJAUzjSJHoCgkFZRG2BoUmDELHrNP
Swarm listening on /p2p-circuit/ipfs/QmUPaf78raFjSjmsTAJAUzjSJHoCgkFZRG2BoUmDELHrNP
Swarm listening on /p2p-circuit/ip4/127.0.0.1/tcp/57428/ipfs/QmUPaf78raFjSjmsTAJAUzjSJHoCgkFZRG2BoUmDELHrNP
✓ should return the entry point of a web page when a trying to fetch a directory containing a web page
resolve web page (CIDv1)
Swarm listening on /ip4/127.0.0.1/tcp/57452/ipfs/QmR5QkaFjPdNHCaqqNVNtheLy6eHLxhWKoBY5GvYXZTJZz
Swarm listening on /p2p-circuit/ipfs/QmR5QkaFjPdNHCaqqNVNtheLy6eHLxhWKoBY5GvYXZTJZz
Swarm listening on /p2p-circuit/ip4/127.0.0.1/tcp/57452/ipfs/QmR5QkaFjPdNHCaqqNVNtheLy6eHLxhWKoBY5GvYXZTJZz
✓ should return the entry point of a web page when a trying to fetch a directory containing a web page
mime-types
Swarm listening on /ip4/127.0.0.1/tcp/57481/ipfs/QmPwvoyJaTqWh2WinmANMWtrzPSTcx9oXSk6f8MeX2Yi97
Swarm listening on /p2p-circuit/ipfs/QmPwvoyJaTqWh2WinmANMWtrzPSTcx9oXSk6f8MeX2Yi97
Swarm listening on /p2p-circuit/ip4/127.0.0.1/tcp/57481/ipfs/QmPwvoyJaTqWh2WinmANMWtrzPSTcx9oXSk6f8MeX2Yi97
✓ should return the correct mime-type for pp.txt
✓ should return the correct mime-type for cat.jpg
✓ should return the correct mime-type for index.html
✓ should return the correct mime-type for hexagons.svg
✓ should return the correct mime-type for hexagons.svg
resolve file (CIDv0)
Swarm listening on /ip4/127.0.0.1/tcp/57523/ipfs/QmaUQHJJVFSmRDC8sKZ1fyhKigLY4A8UVu47SCqxiE3pgT
Swarm listening on /p2p-circuit/ipfs/QmaUQHJJVFSmRDC8sKZ1fyhKigLY4A8UVu47SCqxiE3pgT
Swarm listening on /p2p-circuit/ip4/127.0.0.1/tcp/57523/ipfs/QmaUQHJJVFSmRDC8sKZ1fyhKigLY4A8UVu47SCqxiE3pgT
✓ should resolve a multihash
✓ should resolve a cid
resolve file (CIDv1)
Swarm listening on /ip4/127.0.0.1/tcp/57554/ipfs/QmQNFbfhNfVbwjz7mhWCnEDM5wFHzFZppeJbwbuwGbBsFG
Swarm listening on /p2p-circuit/ipfs/QmQNFbfhNfVbwjz7mhWCnEDM5wFHzFZppeJbwbuwGbBsFG
Swarm listening on /p2p-circuit/ip4/127.0.0.1/tcp/57554/ipfs/QmQNFbfhNfVbwjz7mhWCnEDM5wFHzFZppeJbwbuwGbBsFG
✓ should resolve a multihash
✓ should resolve a cid
resolve directory (CIDv0)
Swarm listening on /ip4/127.0.0.1/tcp/57585/ipfs/QmTUQWkn7fmPPHwkTREFpsjRZYYBHgoUC4svJ52NRpVTnZ
Swarm listening on /p2p-circuit/ipfs/QmTUQWkn7fmPPHwkTREFpsjRZYYBHgoUC4svJ52NRpVTnZ
Swarm listening on /p2p-circuit/ip4/127.0.0.1/tcp/57585/ipfs/QmTUQWkn7fmPPHwkTREFpsjRZYYBHgoUC4svJ52NRpVTnZ
✓ should throw an error when trying to fetch a directory
✓ should return HTML listing of files of a directory
resolve directory (CIDv1)
Swarm listening on /ip4/127.0.0.1/tcp/57620/ipfs/QmbmZDnRqSKBKVDq63Eknpi2LibyByf8cot4gzorxCgChL
Swarm listening on /p2p-circuit/ipfs/QmbmZDnRqSKBKVDq63Eknpi2LibyByf8cot4gzorxCgChL
Swarm listening on /p2p-circuit/ip4/127.0.0.1/tcp/57620/ipfs/QmbmZDnRqSKBKVDq63Eknpi2LibyByf8cot4gzorxCgChL
✓ should throw an error when trying to fetch a directory
✓ should return HTML listing of files of a directory
resolve web page (CIDv0)
Swarm listening on /ip4/127.0.0.1/tcp/57655/ipfs/QmNhCxtWxu1u816T7z655RdhSiKonh7ammQwKwhZdipTGr
Swarm listening on /p2p-circuit/ipfs/QmNhCxtWxu1u816T7z655RdhSiKonh7ammQwKwhZdipTGr
Swarm listening on /p2p-circuit/ip4/127.0.0.1/tcp/57655/ipfs/QmNhCxtWxu1u816T7z655RdhSiKonh7ammQwKwhZdipTGr
✓ should throw an error when trying to fetch a directory containing a web page
✓ should return the entry point of a web page when a trying to fetch a directory containing a web page
resolve web page (CIDv1)
Swarm listening on /ip4/127.0.0.1/tcp/57694/ipfs/QmStQAv2qzENUTGy9zsnx9sYZBJ9BLgwkHySDYFSzfPXnW
Swarm listening on /p2p-circuit/ipfs/QmStQAv2qzENUTGy9zsnx9sYZBJ9BLgwkHySDYFSzfPXnW
Swarm listening on /p2p-circuit/ip4/127.0.0.1/tcp/57694/ipfs/QmStQAv2qzENUTGy9zsnx9sYZBJ9BLgwkHySDYFSzfPXnW
✓ should throw an error when trying to fetch a directory containing a web page
✓ should return the entry point of a web page when a trying to fetch a directory containing a web page
27 passing (9s) |
vasco-santos
approved these changes
May 21, 2019
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good to me!
alanshaw
pushed a commit
to ipfs/js-ipfs
that referenced
this pull request
May 21, 2019
…2068) This is part of the Awesome Endeavour: Async Iterators: #1670 Depends on * [x] ipld/js-ipld-dag-pb#137 * [x] ipfs-inactive/interface-js-ipfs-core#473 * [x] ipfs-inactive/js-ipfs-http-client#1010 * [x] ipfs/js-ipfs-http-response#25 resolves #1995 BREAKING CHANGE: The default string encoding for version 1 CIDs has changed to `base32`. IPLD formats have been updated to the latest versions. IPLD nodes returned by `ipfs.dag` and `ipfs.object` commands have significant breaking changes. If you are using these commands in your application you are likely to encounter the following changes to `dag-pb` nodes (the default node type that IPFS creates): * `DAGNode` properties have been renamed as follows: * `data` => `Data` * `links` => `Links` * `size` => `size` (Note: no change) * `DAGLink` properties have been renamed as follows: * `cid` => `Hash` * `name` => `Name` * `size` => `Tsize` See CHANGELOGs for each IPLD format for it's respective changes, you can read more about the [`dag-pb` changes in the CHANGELOG](https://github.com/ipld/js-ipld-dag-pb/blob/master) License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
oliveriosousa
pushed a commit
to ipfs-examples/js-ipfs-examples
that referenced
this pull request
Jul 26, 2021
…#2068) This is part of the Awesome Endeavour: Async Iterators: ipfs/js-ipfs#1670 Depends on * [x] ipld/js-ipld-dag-pb#137 * [x] ipfs-inactive/interface-js-ipfs-core#473 * [x] ipfs-inactive/js-ipfs-http-client#1010 * [x] ipfs/js-ipfs-http-response#25 resolves #1995 BREAKING CHANGE: The default string encoding for version 1 CIDs has changed to `base32`. IPLD formats have been updated to the latest versions. IPLD nodes returned by `ipfs.dag` and `ipfs.object` commands have significant breaking changes. If you are using these commands in your application you are likely to encounter the following changes to `dag-pb` nodes (the default node type that IPFS creates): * `DAGNode` properties have been renamed as follows: * `data` => `Data` * `links` => `Links` * `size` => `size` (Note: no change) * `DAGLink` properties have been renamed as follows: * `cid` => `Hash` * `name` => `Name` * `size` => `Tsize` See CHANGELOGs for each IPLD format for it's respective changes, you can read more about the [`dag-pb` changes in the CHANGELOG](https://github.com/ipld/js-ipld-dag-pb/blob/master) License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Not a direct dependency of this module but ipld-dag-pb changed the case of some property names that are used by this module.
The tests probably won't pass until a new version of IPFS is released.
We really need to break the dependency in this module.
BREAKING CHANGE: The default string encoding for version 1 CIDs has changed to
base32
refs: ipfs/js-ipfs#1995
closes: #18