Skip to content

Releases: liteflow-labs/liteflow-js

v3.0.0

17 May 09:40
584c791
Compare
Choose a tag to compare

@liteflow/core@3.0.0

Major Changes

Patch Changes

@liteflow/react@3.0.0

Major Changes

Patch Changes

v2.0.0

16 Jan 08:33
3ab725b
Compare
Choose a tag to compare

@liteflow/core

2.0.0

Major Changes

@liteflow/react

2.0.0

Major Changes

Patch Changes

v1.3.1

16 Jan 08:25
da045cf
Compare
Choose a tag to compare

@liteflow/core

1.3.1

Patch Changes

@liteflow/react

1.3.1

Patch Changes

v1.3.0

15 Dec 04:41
65142ae
Compare
Choose a tag to compare

@liteflow/core

1.3.0

Minor Changes

  • #202 426e3fd Thanks @antho1404! - Add batch purchase feature to purchase multiple offers in a single transaction

Patch Changes

@liteflow/react

1.3.0

Minor Changes

  • #202 426e3fd Thanks @antho1404! - Add batch purchase feature to purchase multiple offers in a single transaction

Patch Changes

@liteflow/core@v1.1.1

26 Jul 09:47
2956807
Compare
Choose a tag to compare

What's Changed

Full Changelog: https://github.com/liteflow-labs/liteflow-js/compare/v1.1.0...core@v1.1.1

v1.1.0

14 Jul 11:17
d098657
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.0.0...v1.1.0

v1.0.0

03 Jul 15:52
8615562
Compare
Choose a tag to compare

Migration Guide from @nft/hooks to @liteflow/react

We've made significant changes to our libraries to deliver the most efficient and up-to-date solutions for your development needs. This guide will walk you through the steps to transition from the legacy @nft/hooks library to our new and improved @liteflow/react library.

1. Update LiteflowProvider

The LiteflowProvider now utilizes an apiKey for authentication. You can obtain your apiKey from your dashboard:

  • Go to the Liteflow Dashboard
  • Your apiKey can be found under the API Keys section. Copy this key.
  • Replace the previous authentication method in your LiteflowProvider initialization with the apiKey.

Here is a simple example:

import { LiteflowProvider } from "@liteflow/react";

<LiteflowProvider apiKey="your-api-key">
  // your app
</LiteflowProvider>

2. Update Offer Handling

Hooks such as useAcceptOffer and useCancelOffer have been updated to accept the id of the offer directly. You no longer need to pass an object containing the id.

Here is how you can update your hooks:

const [acceptOffer] = useAcceptOffer();

// Before
acceptOffer({ id: "your-offer-id" })

// After
acceptOffer("your-offer-id");

3. Replace assetId with Chain, Collection, and Token

We've replaced assetId with a combination of chain, collection, and token identifiers. This change provides better granularity for your applications.

Replace your asset ID references as follows:

// Before
const assetId = "chain-address-token";

// After
const chain = "chain";
const collection = "address";
const token = "token";

4. Change Price Definition

Price definitions have been updated. Previously, they were a combination of xxxPrice and currencyId. Now, you should use xxx of type price which contains an amount and a currency.

currency can be the address of the currency or null for a native token.

Here is an example:

// Before
const price = {
  xxxPrice: "your-xxx-price",
  currencyId: "your-currency-id",
};

// After
const price = {
  xxx: {
    amount: "your-amount",
    currency: "your-currency-or-null",
  },
};

Remember to check your application thoroughly after making these changes. As always, don't hesitate to reach out if you encounter any difficulties or have any questions regarding this migration. We're here to help! Happy coding!

What's Changed

Full Changelog: v1.0.0-beta.13...v1.0.0

v1.0.0-beta.13

16 Feb 05:15
dc86145
Compare
Choose a tag to compare

Hooks

Fixed

  • Fix issue with pending ownership on lazyminted assets #137
  • Fix future issues with config type and too permissive type #138

v1.0.0-beta.12

07 Feb 05:47
26510d8
Compare
Choose a tag to compare

Hooks

Added

Changed

  • Use mutations createCurrencyApprovalTransaction and createCollectionApprovalTransaction instead of token.approval and currency.approval in useCreateOffer and useAcceptOffer hooks #117
  • Use use createOfferFillTransaction instead of deprecated offer.fill in useAcceptOffer hook #118
  • Use new flow of offer creation using the new mutation createOfferSignature #119
  • Update dependency @nft/api-graphql to v1.0.0-beta.11 #129 #119

Fixed

  • Invalid jwt with expired date #123

v1.0.0-beta.11

09 Jan 07:48
11668f0
Compare
Choose a tag to compare

Hooks

Breaking Changes

  • Update useConfig return parameter from Promise<Config> to { data?: Config, error?: Error, loading: boolean } #120
    • Make sure to update your codebase with const { data } = useConfig();

Removed

  • config has been removed from the LiteflowContext #120

Fixed

  • Fix imports order by updating prettier and prettier-plugin-organize-imports #114
  • Fix issue on initial render on SSR due to pending promise #120