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

merge v3.2.2 backport into main #356

Merged
merged 14 commits into from
Jul 15, 2024
Merged

merge v3.2.2 backport into main #356

merged 14 commits into from
Jul 15, 2024

Conversation

ljharb
Copy link
Collaborator

@ljharb ljharb commented Jun 22, 2024

Followup to #354; this omits/reverts 3a89d8c, and bumps engines.node to >= 6.

It will be released as v4.0.1.

@benmccann
Copy link
Contributor

My understanding is that the test runner was switched on the 3.x branch because you wanted to test against old versions of Node such as Node 0.4 that standard tools don't cover. However, since main only supports Node 6, there isn't a need to switch all the testing infrastructure here. The current infrastructure like jest, actions/setup-node, etc. are far more widely used. Switching to less commonly used infrastructure will make it harder for everyone else to contribute as they now need to learn a new set of tools and APIs.

@ljharb
Copy link
Collaborator Author

ljharb commented Jun 22, 2024

jest doesn’t support node 6, and it aggressively drops support for things. Using jest on packages is a maintenance obstacle that I’d prefer not to endure. (also, tape is just as much a “standard tool” as jest).

@ljharb
Copy link
Collaborator Author

ljharb commented Jun 22, 2024

Similarly, i use my custom actions on all 500+ of my projects; setup-node is largely unmaintained and only has wide usage because it was created by the GitHub actions team (who don’t seem very staffed now since it’s not AI-related)

@benmccann
Copy link
Contributor

We could cut a v5 with a higher engines requirement to keep using the standard tools

Jest has about 35x more usage than tape, so the dev community is definitely more familiar with it: https://npmcharts.com/compare/tape,jest?log=true&interval=30

@ljharb
Copy link
Collaborator Author

ljharb commented Jun 22, 2024

Why would we want to go out of our way to exclude more users, just to use a more common test runner? Maintainer preferences matter here, not potential contributors - if it ends up being a problem (it hasn’t been one on any of my other packages), i can write the tests for contributors on their PRs.

package.json Show resolved Hide resolved
@ljharb ljharb force-pushed the merge branch 3 times, most recently from e7bdf65 to bb93436 Compare June 23, 2024 05:25
@TheDevMinerTV

This comment was marked as abuse.

@ljharb

This comment was marked as off-topic.

Inspection of the code and types showed that the actual check does not need to handle all cases, but rather there is a small handful of attributes and cases to check. As such do it in the project and remove the entire need for a dep.

Ref: #354
@marcysutton
Copy link
Member

👋 @ljharb org admin here digging in after a long time away. I understand you're trying to restore backwards compatibility, and upgrading dependencies as a result. My first question is around dependencies that you personally own, like the ESLint config and GitHub actions. Rather than depending on your own stuff, are there parts that could be added to this repo instead so that other maintainers can make changes rather than being locked out of those source files in your lhjarb ownership?

@ljharb
Copy link
Collaborator Author

ljharb commented Jun 24, 2024

@marcysutton hey! given the current outrage and harassment, i'd love if we could chat privately, and then publicly summarize the outcome afterwards. DM?

Copy link
Member

@marcysutton marcysutton left a comment

Choose a reason for hiding this comment

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

@ljharb left you some comments, mostly what we already discussed. Let me know if you have any questions!

.eslintrc Outdated Show resolved Hide resolved
.github/workflows/test.yml Outdated Show resolved Hide resolved
__tests__/src/util/iterationDecorator-test.js Show resolved Hide resolved
@ljharb ljharb requested a review from marcysutton June 28, 2024 23:46
ljharb added a commit that referenced this pull request Jun 28, 2024
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (main@39030e7). Learn more about missing BASE report.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@          Coverage Diff           @@
##             main    #356   +/-   ##
======================================
  Coverage        ?   0.00%           
======================================
  Files           ?       1           
  Lines           ?     105           
  Branches        ?      20           
======================================
  Hits            ?       0           
  Misses          ?     105           
  Partials        ?       0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

marcysutton
marcysutton previously approved these changes Jul 10, 2024
Copy link
Member

@marcysutton marcysutton left a comment

Choose a reason for hiding this comment

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

Thanks for all the updates!

marcysutton
marcysutton previously approved these changes Jul 15, 2024
@ljharb ljharb dismissed marcysutton’s stale review July 15, 2024 19:07

The merge-base changed after approval.

@ljharb ljharb merged commit 0202ee9 into main Jul 15, 2024
68 checks passed
@ljharb ljharb deleted the merge branch July 15, 2024 19:08
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.

7 participants