Skip to content

Update code base based on sp7 #1285

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

Merged
merged 16 commits into from
Jul 22, 2023
Merged

Update code base based on sp7 #1285

merged 16 commits into from
Jul 22, 2023

Conversation

ahangarha
Copy link
Collaborator

@ahangarha ahangarha commented Jul 6, 2023

Summary

This PR updates the code base based on Shakapacker 7.

Pull Request checklist

  • Add/update test to cover these changes
  • Update documentation
  • Update CHANGELOG file

@@ -11,10 +11,11 @@ _Please add entries here for your pull requests that are not yet released._

### Breaking Changes
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just require shakapacker v7 for v3 of react-rails so no older versions of webpacker, etc.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exactly

@ahangarha ahangarha force-pushed the update-codebase-based-on-sp7 branch from 9794c58 to 0e270ff Compare July 21, 2023 14:58
This is an internal attribute of React and it is removed since React 16.
Despite this, it gets added in some cases, specially when we use the
bundled react with Sprocket. We don't need to depend our tests on the
existance of such attributes
@ahangarha
Copy link
Collaborator Author

Please check 9a2ec83

That looks like a left-out debugging comment. I removed it, but please check if it was needed for something.

Also, take a look at 376c2fa.

@ahangarha ahangarha requested a review from Judahmeek July 21, 2023 16:48
Copy link
Collaborator

@Judahmeek Judahmeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test review

Copy link
Collaborator

@Judahmeek Judahmeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test change request

@ahangarha
Copy link
Collaborator Author

test change request

@Judahmeek, May you be more specific?

@Judahmeek Judahmeek merged commit a4bd5b3 into master Jul 22, 2023
@Judahmeek Judahmeek deleted the update-codebase-based-on-sp7 branch July 22, 2023 03:37
@Judahmeek
Copy link
Collaborator

@ahangarha sorry. I was just experimenting with Github's review functionality.

okuramasafumi added a commit to okuramasafumi/react-rails that referenced this pull request Oct 18, 2023
https://github.com/reactjs/react-rails/blob/master/CHANGELOG.md

> If using Webpacker/Shakapacker, requires upgrading to Shakapacker v7 reactjs#1274 and reactjs#1285

It looks like react-rails v3 supports Shakapacker v7 only.
@okuramasafumi okuramasafumi mentioned this pull request Oct 18, 2023
3 tasks
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

Successfully merging this pull request may close these issues.

3 participants