Conversation
🦋 Changeset detectedLatest commit: 6849912 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughUpdated Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Tip CodeRabbit can use TruffleHog to scan for secrets in your code with verification capabilities.Add a TruffleHog config file (e.g. trufflehog-config.yml, trufflehog.yml) to your project to customize detectors and scanning behavior. The tool runs only when a config file is present. |
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
commit: |
There was a problem hiding this comment.
Pull request overview
Bumps @package-json/types to a newer patch version and adds a changeset to publish a patch release, aiming to resolve downstream TypeScript issues tied to that dependency.
Changes:
- Update
@package-json/typesfrom^0.0.12to^0.0.13inpackage.json. - Update
yarn.lockto reflect the new resolved version. - Add a patch changeset entry for the release.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
package.json |
Bumps @package-json/types version requirement. |
yarn.lock |
Updates lockfile resolution/checksum for @package-json/types@0.0.13. |
.changeset/good-kings-sniff.md |
Adds a changeset to publish the dependency bump as a patch release. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
| "dependencies": { | ||
| "@package-json/types": "^0.0.12", | ||
| "@package-json/types": "^0.0.13", |
| "eslint-plugin-import-x": patch | ||
| --- | ||
|
|
||
| Bump `@package-json/types` to latest version |
|
Personally I think we only need a subset of the type #476 🤔. |
|
|
Not a fan of forcing unnecessary type-only dependencies onto consumers personally, unless there is a good reason. |
|
While I would recommend #476 even if I also am behind the @package-json/types update. I'm not a fan of extra dependencies unless explicitely required (especialy with all the dependency hacks these days) but if we can get one of the 2 PRs merged, at least we can remove |
|
The sole reason If we remove Technically, no one would ever import |
|
I'd just remove the function findUp(filename: string): string | undefined {
let dir = cwd();
while (true) {
const filePath = join(dir, filename);
try {
statSync(filePath);
return filePath;
} catch {}
const parent = dirname(dir);
if (parent === dir) break;
dir = parent;
}
return undefined;
}If you really must do this with a dependency, use https://github.com/sindresorhus/find-up-simple, but I find such dependencies not warranted given that it can be implemented in ~10 lines of code. |
Go for it, it's unlikely to break anyone so I would not consider it a real breaking change. |
|
I did some research on the history of this issue and thought I'd share my findings to help decide the best path forward. How we got hereThe root cause isn't Here's the chain of events:
Who actually uses
|
Fixes #471, Fixes #476, Fixes #477
Summary by CodeRabbit