You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: support DNSLink subdomains
This change adds support for DNSLink subdomains on localhost gateway
(ipfs/kubo#6096)
Example: en.wikipedia-on-ipfs.org.ipfs.localhost:8080
BREAKING CHANGE: `isIPFS.subdomain` now returns true for <domain.tld>.ipns.localhost
BREAKING CHANGE: `isIPFS.subdomainPattern` changed
* test: support peer multiaddr with /p2p/
Context: libp2p/libp2p#79
* fix: explicitly ignore URL param and hash
.url and .path now return true when validating:
https://ipfs.io/ipfs/<CID>?filename=name.png#foo
* refactor: simplify dnslinkSubdomain
License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
* fix: url() check should include subdomain()
When .url was created we only had path gateways. When .subdomain was
added, we did not update .url to test for subdomain gateways, which in
the long run will confuse people and feels like a bug.
Let's fix this: .url() will now check for both subdomain and path gateways
#32 (comment)
BREAKING CHANGE: .url(url) now returns true if .subdomain(url) is true
* refactor: merge DNSLink check into ipnsSubdomain()
This makes subdomain checks follow what path gateway checks do, removing
confusion.
In both cases (IPNS and DNSLink) user needs to perform online record
check, so this is just a handy way of detecting potential matches.
* docs: update examples
* refactor: switch to iso-url
* refactor: lint-package-json
* chore: update deps
License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
Copy file name to clipboardExpand all lines: README.md
+26-10Lines changed: 26 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ $ npm install --save is-ipfs
23
23
The code published to npm that gets loaded on require is in fact an ES5 transpiled version with the right shims added. This means that you can require it and use with your favorite bundler without having to adjust asset management process.
0 commit comments