Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loosen prosemirror-view dependency #93

Open
aried3r opened this issue Jan 21, 2020 · 4 comments
Open

Loosen prosemirror-view dependency #93

aried3r opened this issue Jan 21, 2020 · 4 comments

Comments

@aried3r
Copy link

aried3r commented Jan 21, 2020

Hey! Thanks for this great package! :)

I was wondering, I believe nib-core is using an outdated version of prosemirror-view since it locks it to 1.10.0. I might be wrong here, since other packages of prosemirror do request a newer version for themselves.

https://github.com/nib-edit/Nib/blob/8cc08f1b9e41c8bec5b6e170f9fc05ec60dee4f1/packages/core/package.json#L36

Could this be loosened like the other dependencies?

https://github.com/nib-edit/Nib/blob/8cc08f1b9e41c8bec5b6e170f9fc05ec60dee4f1/packages/core/package.json#L28-L35

Maybe these should even be peerDependencies since there's no way (at least as of now) in yarn to update nested dependencies (outside of using resolutions in package.json), see yarnpkg/yarn#2394. Unless you want to stay in control of which prosemirror package versions nib uses.

@jpuri
Copy link
Member

jpuri commented Jan 22, 2020

It will be useful for me to control which package of prosemirror Nib uses, I will upgrade this soon.

Thanks a lot, this helps.

@aried3r
Copy link
Author

aried3r commented Jan 22, 2020

Hey, thanks for your reply! Since it's not (easily) possible to update subdependencies (basically, I am stuck with prosemirror package versions of the time I install nib-core), would it be possible for you to set the version constraint to the highest possible version that nib-core works with or is available?

Babel for example does it with @babel/core, with every release of @babel/core they also change the versions of its sub-dependencies.

WDYT?

https://github.com/babel/babel/blob/2486615a74580283c49475d66067bd7fcab3330e/packages/babel-core/package.json#L43-L49

https://github.com/babel/babel/blob/1815c349877acca1d3275ea72512ee7824db49e3/packages/babel-core/package.json#L42-L48

@jpuri
Copy link
Member

jpuri commented Apr 4, 2020

I did a fix here: c89a28e

@aried3r : can you plz add some details to above comment, do you mean that with each release I upgrade prosemirror versions to highest supported versions for Nib ?

@aried3r
Copy link
Author

aried3r commented Apr 23, 2020

Hey!

do you mean that with each release I upgrade prosemirror versions to highest supported versions for Nib ?

Yes, exactly. Since these are dependencies of nib itself, I cannot (easily at least, there's resolutions, and in npm an RFC and another and a guide which works for security fixes as well as this use case) update prosemirror dependencies myself once an update is released.

As you can see above, that's also how babel keeps their own dependencies up to date (also for compatibility reasons, I believe).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants