-
Notifications
You must be signed in to change notification settings - Fork 29
deps: upgrade some dependencies, including TypeScript and trezor-connect etc. #333
base: master
Are you sure you want to change the base?
Conversation
Hi @quietbits, can you help me see why it doesn't compile successfully? |
Looks like it's caused by an outdated version of TypeScript, maybe we should upgrade it to the latest version(v4+). |
@overcat, I don't see any issues upgrading TypeScript to v4. There might be other packages we'll need to update to support the newer TS version, which might turn into a bigger update. |
* Upgrade TypeScript to ^4.9.4 * Upgrade @stellar/tsconfig to ^1.0.2 * Upgrade prettier to >=2.0.0 (to avoid "any" typing of exceptions stripped on prettier formatting) * Upgrade jest and babel-jest to ^26.6.3 * Exception typing * AccountCredited typing for amount access in effect handling of account merge * package.json adjustments for building on Windows
I forked the overcat fork and made a suggested TS4 upgrade, see mkalen@a280f6e. |
Fixed in trezor/trezor-suite#7395 |
Hi @mkalen, can you check this? trezor/trezor-suite#7451 (comment) |
This fixes Trezor Connect Stellar plug-in's transformTransaction memo incompatibility (trezor/trezor-suite#7395).
Trezor Connect v9
Hi, @quietbits, can you make the Netlify deployment log public? https://www.netlify.com/blog/2017/10/31/introducing-public-deploy-logs-for-open-source-sites/ |
We're looking into making the logs public. Looks the issue was the Yarn version being outdated. I can upgrade the version the env uses a little bit later today and see if that fixes it:
|
@overcat I fixed the issues with the environment, but looks like you have some TS issues with the code in your PR. This is the build command Netlify runs: When you run that on your code, you will notice you get some typedoc errors. I think once you fix those, you should be good to go |
* Bump TypeDoc to ^0.23.24 * Adjust typedocOptions in tsconfig.json to new TypeDoc parameters * Adapt the documentation-site React app to new TypeDoc JSON format, e.g. child/children and typed comments structure * Some minor improvements of TSDoc documentation comment * Make documentation building work on Windows
@overcat There is now a suggested expected completion for this PR: overcat#2 - builds cleanly locally using Netlify commands. Local generated documentation site is comparable to current https://stellar-walletsdk-docs.netlify.app |
Hi @mkalen, I have invited you to be a co-author of overcat/js-stellar-wallets, and you can edit this PR directly after accepting the invitation. |
Upgrade typedoc handling and documentation site to TS4
Don't know about that. :-) I consider the TS4 stuff somewhat of a "side-effect" of the main goal for a Trezor Connect v9 upgrade - contributed 100% by @overcat. Unsure why Netlify build still fails, tricky when the logs are not public. And I can't see where the CI test cases are defined, is that available in this Git repo? Stuff will move around a bit on the documentation site ToC, but I have compared that exported types are visible and rendered in a similar fashion as current published Netlify site. It's not 1:1 between TS3 and TS4 though, hence the recommended package version bump. |
Fix Netlify site generation / regression from 8622280
Building to a fresh Netlify site works after last sh syntax fix/regression revert on doc site generation. So I need a hint from the actual Netlify logs @piyalbasu. Thanks. |
Hi all - sorry for how annoying this has been to debug to with private logs. The issue was an outdated Node version. If you push an empty commit, this should re-trigger the build and it should pass now I'm also creating a ticket to make these logs public. We need to do a security audit before we can enable this, which is why we haven't been able to do this yet. Thanks for your patience! |
Thanks. No worries for my part - I've learned a lot about Stellar Wallet SDK during the process! Great that the Netlify blocked CI build root cause was found, I will make a commit to trigger a build. |
Apart from Trezor Connect v9 upgrade, the TS4 + TypeDoc upgrade of this PR addresses networkPassphrase missing from README (#195) - see https://deploy-preview-333--stellar-walletsdk-docs.netlify.app/. |
This improvement is mainly contributed by @mkalen.