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

More relaxed react version dependency #4530

Closed
alippai opened this issue Jun 22, 2021 · 16 comments
Closed

More relaxed react version dependency #4530

alippai opened this issue Jun 22, 2021 · 16 comments
Labels

Comments

@alippai
Copy link
Contributor

alippai commented Jun 22, 2021

I'm submitting a ... (check one with "x")

[] bug report => see 'Providing a Reproducible Scenario'
[x] feature request => do not use Github for feature requests, see 'Customers of AG Grid'
[] support request => see 'Requesting Community Support'

Problem
https://github.com/ag-grid/ag-grid/blob/latest/community-modules/react/package.json contains restriction to react semver ^16 so react version 17 (and the future 18) won't match. React (and react-is) dependency will be duplicated with inconsistent versions, deduplication won't happen.

Expected behavior
No strict react 16 dependency

  • AG Grid version: latest (25.3.0)
@makinggoodsoftware
Copy link
Contributor

Hi,

Your ticket has been flagged as in_zendesk, it means that we recognize this as an issue worth investigating so we have moved it to our official support channel for customers (zendesk)

We will carry on there with the investigation and we will update you as soon as possible.

Thanks

@alippai
Copy link
Contributor Author

alippai commented Jun 22, 2021

I'm just guessing here, but maybe it's happening because of this: https://dev.to/layershifter/how-to-kill-tree-shaking-in-webpack-with-static-properties-p72

@makinggoodsoftware
Copy link
Contributor

Hi,

We just checked and in our end it seems that is matches 16 and 17

"react": "^16.3.0 || ^17.0.0"
"react-dom": "^16.3.0 || ^17.0.0"

This should allow for >= 16.3.0 and any version of 17

Is this not working on your end?

@alippai
Copy link
Contributor Author

alippai commented Jul 1, 2021

The following doesn't match your description:
https://github.com/ag-grid/ag-grid/blob/latest/community-modules/react/package.json#L112-L115

Also yes, after installing @ag-grid-community/react running npm list react-is reports react-is version 16.x (while other modules report the main 17.x usage, the react-is module is duplicated)

@alippai
Copy link
Contributor Author

alippai commented Jul 6, 2021

@makinggoodsoftware did you manage to reproduce this little bug or do you need more details?

@fgblomqvist
Copy link

@alippai what you linked is their devdeps, they're irrelevant to you as a user. You should check peerDeps.

@alippai
Copy link
Contributor Author

alippai commented Jul 12, 2021

@fgblomqvist did you try it out?

I'm pretty sure that if you install react 17 and ag-grid/react you'll have react-is v16 in the dependency tree and the final bundle.

@alippai
Copy link
Contributor Author

alippai commented Jul 12, 2021

@alippai
Copy link
Contributor Author

alippai commented Jul 12, 2021

Filed facebook/prop-types#354, but I wonder whether it makes sense to ship prop-types as a mandatory dependency at all.

@fgblomqvist
Copy link

We use

    "@ag-grid-community/react": "25.3.0",
    "@ag-grid-enterprise/all-modules": "25.3.0",

and we have React 17 (in the dep tree and in our package.json).

@fgblomqvist
Copy link

If you can create a package that reproduces the scenario you're describing then it can probably be looked into by the maintainers.

@alippai
Copy link
Contributor Author

alippai commented Jul 12, 2021

I was talking about react-is.

@makinggoodsoftware
Copy link
Contributor

@fgblomqvist thanks for the insight, you are correct in your observations!
@alippai I do think that there is no issue, do you think you could share something that shows your issue, maybe a dummy project?

Thanks

@alippai
Copy link
Contributor Author

alippai commented Jul 20, 2021

@makinggoodsoftware this thread has every detail needed, I don't think I can do more about it. If you open the upstream issue (facebook/prop-types#354), you'll see that ag-grid won't be able to fix the issue (if it doesn't remove the prop-types dependency)

@kiril-matev
Copy link

Hello!

Thank you for bringing this up.

We have added this requirement to our backlog and we are tracking it with the following reference and description:
AG-5555 Move prop-types out from dependencies to peerDependencies

We have no timeline for this at the moment, but this can still be picked up by our team when they're making modifications to this functional area of AG Grid.

You can see the next release date on the product pipeline page:
https://www.ag-grid.com/ag-grid-pipeline/

Now that this is recorded in our backlog, we will soon close the GitHub issue because we will not update it when this bug is fixed in a future version of AG Grid. The best way to get an update on this item is to sign up for AG Grid new release notifications. Once a new AG Grid version is released, look for the item reference above (AG-XXXX) on the changelog page to see if it's resolved in that version:
https://www.ag-grid.com/ag-grid-changelog/

Thanks again for bringing this up with us - we appreciate your time!

@makinggoodsoftware
Copy link
Contributor

Hi,

In order to help us keep our issues queue clear, we are going to close this issue

The official way to check the status for an issue raised here is to check its AG-xxxx ID against our pipeline and changelog

…the pipeline (if not yet developed)

https://www.ag-grid.com/ag-grid-pipeline/

... or the changelog, (if the issue has been resolved)

https://www.ag-grid.com/ag-grid-changelog/

We keep issues raised in the pipeline through github open for a while so that the community can add some feedback to them, and close them when there is no activity for a while.

If you want to add further feedback to a closed ticket with this comment, we would recommend opening a new ticket as we don’t monitor closed issues.

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

No branches or pull requests

4 participants