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

feat: support subdomains in isIPFS.url(url) #32

Merged
merged 10 commits into from
Apr 5, 2020
Merged

Commits on Mar 20, 2020

  1. 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
    
    License: MIT
    Signed-off-by: Marcin Rataj <lidel@lidel.org>
    lidel committed Mar 20, 2020
    Configuration menu
    Copy the full SHA
    cc40cd4 View commit details
    Browse the repository at this point in the history
  2. test: support peer multiaddr with /p2p/

    Context: libp2p/libp2p#79
    
    License: MIT
    Signed-off-by: Marcin Rataj <lidel@lidel.org>
    lidel committed Mar 20, 2020
    Configuration menu
    Copy the full SHA
    2644db0 View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2020

  1. fix: explicitly ignore URL param and hash

    .url and .path now return true when validating:
    https://ipfs.io/ipfs/<CID>?filename=name.png#foo
    
    License: MIT
    Signed-off-by: Marcin Rataj <lidel@lidel.org>
    lidel committed Mar 21, 2020
    Configuration menu
    Copy the full SHA
    72c0344 View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2020

  1. refactor: simplify dnslinkSubdomain

    License: MIT
    Signed-off-by: Marcin Rataj <lidel@lidel.org>
    lidel committed Mar 22, 2020
    Configuration menu
    Copy the full SHA
    f1823cc View commit details
    Browse the repository at this point in the history

Commits on Mar 24, 2020

  1. 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
    
    License: MIT
    Signed-off-by: Marcin Rataj <lidel@lidel.org>
    lidel committed Mar 24, 2020
    Configuration menu
    Copy the full SHA
    c520efc View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2020

  1. 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.
    
    License: MIT
    Signed-off-by: Marcin Rataj <lidel@lidel.org>
    lidel committed Mar 25, 2020
    Configuration menu
    Copy the full SHA
    d9e7082 View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2020

  1. docs: update examples

    License: MIT
    Signed-off-by: Marcin Rataj <lidel@lidel.org>
    lidel committed Apr 3, 2020
    Configuration menu
    Copy the full SHA
    d5717e9 View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2020

  1. refactor: switch to iso-url

    License: MIT
    Signed-off-by: Marcin Rataj <lidel@lidel.org>
    lidel committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    87d746a View commit details
    Browse the repository at this point in the history
  2. refactor: lint-package-json

    License: MIT
    Signed-off-by: Marcin Rataj <lidel@lidel.org>
    lidel committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    404957e View commit details
    Browse the repository at this point in the history
  3. chore: update deps

    License: MIT
    Signed-off-by: Marcin Rataj <lidel@lidel.org>
    lidel committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    18d80d4 View commit details
    Browse the repository at this point in the history