Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Releases: ipld/js-ipld

v0.19.2

07 Nov 17:43
@vmx vmx
Compare
Choose a tag to compare

Features

Performance Improvements

  • fail fast for missing format (ebd2d1b)

v0.19.1

27 Oct 17:15
Compare
Choose a tag to compare
chore: release version v0.19.1

v0.19.0

25 Oct 15:06
@vmx vmx
Compare
Choose a tag to compare

Code Refactoring

  • make blockService an option parameter (f1c2e12)
  • pass in IPLD Formats into the constructor (b003ad1)

BREAKING CHANGES

  • Not all IPLD Formats are included by default

By default only the ipld-dag-cbor, ipld-dag-pb and [raw]
IPLD Formats are included. If you want to use other IPLD Formats
you need to pass them into the constructor.

The code to restore the old behaviour could look like this:

const ipldBitcoin = require('ipld-bitcoin')
const ipldDagCbor = require('ipld-dag-cbor')
const ipldDagPb = require('ipld-dag-pb')
const ipldEthAccountSnapshot = require('ipld-ethereum').ethAccountSnapshot
const ipldEthBlock = require('ipld-ethereum').ethBlock
const ipldEthBlockList = require('ipld-ethereum').ethBlockList
const ipldEthStateTrie = require('ipld-ethereum').ethStateTrie
const ipldEthStorageTrie = require('ipld-ethereum').ethStorageTrie
const ipldEthTrie = require('ipld-ethereum').ethTxTrie
const ipldEthTx = require('ipld-ethereum').ethTx
const ipldGit = require('ipld-git')
const ipldRaw = require('ipld-raw')
const ipldZcash = require('ipld-zcash')



const ipld = new Ipld({
  blockService: blockService,
  formats: [
    ipldBitcoin, ipldDagCbor, ipldDagPb, ipldEthAccountSnapshot,
    ipldEthBlock, ipldEthBlockList, ipldEthStateTrie, ipldEthStorageTrie,
    ipldEthTrie, ipldEthTx, ipldGit, ipldRaw, ipldZcash
  ]
})
  • The IPLD constructor is no longer taking a BlockService as its
    only parameter, but an objects object with blockService as a
    key.

You need to upgrade your code if you initialize IPLD.

Prior to this change:

const ipld = new Ipld(blockService)

Now:

const ipld = new Ipld({blockService: blockService})

v0.18.0

12 Oct 14:16
@vmx vmx
Compare
Choose a tag to compare
chore: release version v0.18.0

v0.17.4

25 Sep 10:04
@vmx vmx
Compare
Choose a tag to compare

Bug Fixes

Features

  • use package-table vs custom script (366176c)

Performance Improvements

  • lazy load format resolvers (f4a094a)

v0.17.3

17 Jul 13:49
@vmx vmx
Compare
Choose a tag to compare

Bug Fixes

  • put: pass CID options to resolver (a419048)

v0.17.2

29 May 21:39
@vmx vmx
Compare
Choose a tag to compare
chore: release version v0.17.2

v0.17.1

29 May 16:13
@vmx vmx
Compare
Choose a tag to compare

Bug Fixes

  • "resolver exists" error message typo (d3d78e0)

v0.17.0

11 Apr 14:29
@vmx vmx
Compare
Choose a tag to compare
chore: release version v0.17.0

v0.16.0

09 Apr 15:45
Compare
Choose a tag to compare

Bug Fixes

  • handle required options for IPLDResolver.put (3612289)