opensea-js icon indicating copy to clipboard operation
opensea-js copied to clipboard

NPM Packages for 4.0.19 and 4.0.20 doesn't seem to have been rebuild?

Open SMLaursen opened this issue 3 years ago • 8 comments

After upgrading to 4.0.19 and 4.0.20 I kept getting "Unsupported Protocol", when looking into sdk.js, I realized that it doesn't look like it have been re-transpiled?

From https://www.npmjs.com/package/opensea-js?activeTab=explore; image

SMLaursen avatar Mar 09 '23 11:03 SMLaursen

Looks and older version of the code got published to NPM under a new version tag. The current sdk.ts in this repo calls the isValidProtocol() function which was added in 4.0.18 (#863) but is not present in 4.0.20

reaganchisholm avatar Mar 09 '23 17:03 reaganchisholm

I pushed version 4.0.21 and confirmed the method is in the NPM package explorer. https://www.npmjs.com/package/opensea-js?activeTab=explore

JoshuaSchmidt-OpenSea avatar Mar 09 '23 18:03 JoshuaSchmidt-OpenSea

Please reopen this issue if version 4.0.21 has the same problem

JoshuaSchmidt-OpenSea avatar Mar 09 '23 18:03 JoshuaSchmidt-OpenSea

@JoshuaSchmidt-OpenSea @cterech

Hello.

I have confirmed that isValidProtocol is included in 4.0.21, but in the just released 4.0.22, it seems to be back to the old code again. Therefore, the Unsupported Protocol is occurring again in the latest version. We apologize for the inconvenience, but we would appreciate it if you could check the code again.

Thanks.

pi9min avatar Mar 10 '23 00:03 pi9min

We have tracked down the root cause of this churn. Sorry for the inconvenience. I will fix the latest.

JoshuaSchmidt-OpenSea avatar Mar 10 '23 01:03 JoshuaSchmidt-OpenSea

This should be fixed (again) in version 4.0.23

JoshuaSchmidt-OpenSea avatar Mar 10 '23 02:03 JoshuaSchmidt-OpenSea

@JoshuaSchmidt-OpenSea Thanks for working to fix this, but there appears to still be an issue with the npm deploy. Originally the lib folder contained all the compiled js code, where the main pointer in your root package.json is lib/index.js. However, the most recent deploy now contains the src folder and a copy of package.json in the lib folder. This is causing our build process to fail because it can not find the module files.

I manually edited my local node_modules to move the files in lib/src into lib, and it seems to have the updated code. Could you please make this correction?

nickfujita avatar Mar 10 '23 04:03 nickfujita

@nickfujita The correction has been made to the latest version

JoshuaSchmidt-OpenSea avatar Mar 10 '23 14:03 JoshuaSchmidt-OpenSea