doczjs / docz

✍ It has never been so easy to document your things!
https://docz.site
MIT License
23.61k stars 1.46k forks source link

fix(docz): dependency issues #1647

Closed adbayb closed 3 years ago

adbayb commented 3 years ago

Description

A PR to address several high priority issues. It been tested by emulating new npm release through a local registry (please note that if you found several package version updates in some commits: it's totally normal and I've cleaned all tested version metadata to prepare a future release through this commit https://github.com/adbayb/docz/commit/24027115300b9b79d1811558044fb71357bd9fc5).

However, @renatobenks It could be great if you can publish a new alpha version to let issue authors confirms their issue resolution πŸ˜„

Main updates (fixes):

πŸ‘‰ Some other issue reporting might be solved as well (I have not tested other issue resolution).

Other updates (chore):

Opportunities (for future PRs)

renatobenks commented 3 years ago

Awesome @adbayb, I'll gonna spend some time reviewing it, because I wanna stress some tests here, but great work!

So far I've seen, a couple issues are going to be fixed indeed!

adbayb commented 3 years ago

Hello @renatobenks πŸ‘‹ , any update on this? πŸ™

renatobenks commented 3 years ago

I'll be finishing some tests today, but once it's done, let's merge it, is that sounds good?

adbayb commented 3 years ago

Sounds good, thank you @renatobenks πŸ™

adbayb commented 3 years ago

Any news @renatobenks ?

renatobenks commented 3 years ago

Sorry for the big delay here, but I'm managing a new release for this one. I just need to ensure a few things first with @pedronauck, once I'm still not so sure about removing a few dependencies, even though it seems a good idea. But in general, so far so good in all my tests (which we need to automate ASAP from now on), and also, it'll be a great contribution for us all!

Thank you a lot @adbayb for the heads up on here πŸ™‚

renatobenks commented 3 years ago

hey @adbayb, are you willing to revert the removed dependencies? Let me know, because if not so, we could merge it right away, and right after that, evaluate those dependencies better before launching a new version. Otherwise, we'd be able to launch a new patch version, just after emerging this one. But in both cases, we wanna merge this PR.

adbayb commented 3 years ago

Hello @renatobenks πŸ‘‹ , devDependencies are not removed: they are hoisted at the monorepo level (no impact consumer side since dev dependencies are not installed). But I can rollback it if you're more confortable with πŸ‘

renatobenks commented 3 years ago

Actually, I'm concerned about the "unused" dependencies, from dev or not, but let me list all of them for you, so yeah, I'd feel more comfortable with you rolling back, to publish a new version.

adbayb commented 3 years ago

@renatobenks Done https://github.com/doczjs/docz/pull/1647/commits/90ab65d4376285fa9c7788fea6bcf51ffd7bbd86 Hope it'll help make your dependency review easier afterwards.

adbayb commented 3 years ago

@renatobenks Thank you for your review. Do you plan a release soon?

renatobenks commented 3 years ago

Yeap, I'm releasing today a new alpha version to the next patch, v2.3.2 respectively, and in the meantime, you can be using this one until having the final patch version, which we're pretending to launch as soon as we finish a couple of automated tests that we're working on.

Let us know if you have any issues towards this end.

adbayb commented 3 years ago

Thank you @renatobenks πŸ™ . Unfortunately, I can't find the newly alpha. It seems that the latest one is the 2.0.0-rc.23 (publication date: 02/09/2019). Same for the next tag (the alpha.0 is not new). What's the right version please? Thanks in advance.

Capture d’écran 2021-09-06 aΜ€ 16 46 57
renatobenks commented 3 years ago

Hey @adbayb, this upcoming version it's on https://www.npmjs.com/package/docz/v/2.3.3-alpha.0 (https://github.com/doczjs/docz/tree/v2.3.3-alpha.0), still as alpha because I would like to get some people's feedback about how it goes, before launching it as a final patch, so please, let me know how it moves, that I'll be making some extra work for validation from here as well.

adbayb commented 3 years ago

Thanks @renatobenks , I've tested the alpha release: it works just fine in our company codebase πŸš€

drewlustro commented 2 years ago

This is a lovely patch @adbayb, thank you for contributing it!

The react-docgen upgrade, in particular, made Prop table generation significantly more reliable for us.

Thanks again ❀️

renatobenks commented 2 years ago

We're about to release a new alpha version to that patch because I found a significant problem for those who are not using typescript and have it as not enabled.