Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

refactor: export types and utilities statically #1908

Merged
merged 2 commits into from
Mar 6, 2019

Commits on Mar 6, 2019

  1. refactor: export types and utilities statically

    Allows users to access these additional types and utilities without having to create an instance first.
    
    BREAKING CHANGE: `ipfs.util.isIPFS` and `ipfs.util.crypto` have moved to static exports and should be accessed via `const { isIPFS, crypto } = require('ipfs')`.
    
    The modules available under `ipfs.types.*` have also become static exports.
    
    License: MIT
    Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
    alanshaw committed Mar 6, 2019
    Configuration menu
    Copy the full SHA
    811f2dd View commit details
    Browse the repository at this point in the history
  2. fix: remove redundant utils test

    License: MIT
    Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
    alanshaw committed Mar 6, 2019
    Configuration menu
    Copy the full SHA
    cdbeed7 View commit details
    Browse the repository at this point in the history