opensea-js 1.2.4 → 1.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/package.json +2 -2
package/CHANGELOG.md ADDED
@@ -0,0 +1,47 @@
1
+ # Changelog
2
+
3
+ Full changelog coming soon. For now, here are the most important changes for doing major migrations:
4
+
5
+ ## Migrating to version 1.2
6
+ - `OpenSeaPort::computeFees()` No longer accepts an `isPrivate` parameter.
7
+
8
+ ## Migrating to version 1.1
9
+ - `OpenSeaPort::computeFees()` No longer accepts a `fees` parameter, relying solely on `asset`.
10
+
11
+ ## Migrating to version 1.0
12
+
13
+ Version 1.0 introduces bundling for semi-fungible and fungible assets, serialized asset collections, a smaller bundle size, and more, along with many bug fixes.
14
+
15
+ **Breaking directory changes**
16
+ - Many constants inside of `/utils` have been moved to `/constants`.
17
+ - Other utils have been moved to `/utils/utils`
18
+
19
+ **Breaking type changes**
20
+ - `profile_img_url` in the `OpenSeaAccount` type has been renamed to `profileImgUrl`
21
+ - `OpenSeaPort::computeFees()` now returns a new type, `ComputedFees`, which expands "BPS" to "BasisPoints" for each of its member keys
22
+
23
+ **Breaking interface changes**
24
+ - `OpenSeaPort::computeFees()` now takes in a single asset, and returns a new and more consistent type, `ComputedFees`
25
+ - `schemaName` has been moved out of main method calls and into the `Asset` type
26
+ - `OpenSeaAPI::getAsset()` now accepts named arguments, consistent with other methods
27
+ - `OpenSeaPort::createFactorySellOrders` now accepts an `assets` parameter consistent with the other `Asset` type parameters in other methods
28
+ - `OpenSeaPort::getTokenBalance()` no longer defaults to the WETH address if no `tokenAddress` is set. And it accepts a `schemaName` parameter instead of an ABI
29
+ - `OpenSeaPort::approveNonFungibleToken()` has been renamed to `approveSemiOrNonFungibleToken()`, though it always worked for semi-fungible tokens like ERC-1155
30
+
31
+ **Removed deprecations:**
32
+ - `OpenSeaPort::transferOne()`, replaced by `OpenSeaPort::transfer()`
33
+ - `tokenId` and `tokenAddress` parameters for most SDK methods, replaced by creating an `Asset` type and passing that in
34
+
35
+ ## Migrating to version 0.6
36
+
37
+ Version 0.6 introduces some major new features, including trading fungible and semi-fungible assets (including ERC-20 and ERC-1155 assets). These have been architected to maximize backwards compatibility, but there were a few breaking changes:
38
+
39
+ - The `Asset` type now has `version` instead of `nftVersion` as a property
40
+ - Similarly, the `NFTVersion` type has been renamed `TokenStandardVersion`
41
+ - `computeFees` now takes in a single, annotated OpenSeaAsset as a parameter instead of a list of assets
42
+ - In `isAssetTransferrable`, `didOwnerApprove` was renamed to `useProxy`
43
+
44
+ Non-breaking changes with deprecation notices:
45
+
46
+ - `getFungibleTokens` has been deprecated. Use `api.getPaymentTokens`
47
+ - Methods now show a deprecation warning when used with `tokenId` or `tokenAddress` as arguments, instead of using `asset` or `assets` (of type `Asset`/`Asset[]`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opensea-js",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "description": "JavaScript SDK for the OpenSea marketplace. Let users buy or sell crypto collectibles and other cryptogoods, all on your own site!",
5
5
  "files": [
6
6
  "lib",
@@ -50,7 +50,7 @@
50
50
  "web3": "0.20.7",
51
51
  "webpack": "^3.10.0",
52
52
  "wyvern-js": "git+https://github.com/ProjectOpenSea/wyvern-js.git#v3.2.1",
53
- "wyvern-schemas": "git+https://github.com/ProjectOpenSea/wyvern-schemas.git#v0.12.1"
53
+ "wyvern-schemas": "git+https://github.com/ProjectOpenSea/wyvern-schemas.git#v0.11.1"
54
54
  },
55
55
  "husky": {
56
56
  "hooks": {