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

Remove fs-extra #6407

Closed
wants to merge 1 commit into from
Closed

Remove fs-extra #6407

wants to merge 1 commit into from

Conversation

kraenhansen
Copy link
Member

@kraenhansen kraenhansen commented Jan 25, 2024

What, How & Why?

As an alternative to #6373, this removes all use of the fs-extra package.
We weren't actually using it in ways that couldn't easily be replaced by node:fs, so I think we should just avoid it to simplify things and get one less dependency.

In draft

It turns out that since exists doesn't return a Promise when called from node:fs, the libraries cannot be easily replaced, I think we should rethink the way we provide fs and path implementations to the tests: #6408

☑️ ToDos

  • 📝 Changelog entry
  • 📝 Compatibility label is updated or copied from previous entry
  • 📝 Update COMPATIBILITY.md
  • 🚦 Tests
  • 📦 Updated internal package version in consuming package.jsons (if updating internal packages)
  • 📱 Check the React Native/other sample apps work if necessary
  • 💥 Breaking label has been applied or is not necessary

@kraenhansen kraenhansen self-assigned this Jan 25, 2024
@cla-bot cla-bot bot added the cla: yes label Jan 25, 2024
@@ -39,7 +39,7 @@ describe("Analytics", () => {

function getRealmVersion() {
const packageJsonPath = path.resolve(__dirname, "../../../../packages/realm/package.json");
const packageJson = fse.readJsonSync(packageJsonPath);
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, "utf-8"));
Copy link
Member Author

Choose a reason for hiding this comment

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

This was the only actual use of an API that isn't provided by node:fs.

Copy link

Coverage Status

Changes unknown
when pulling ae38987 on kh/remove-fs-extra
into ** on main**.

@kraenhansen kraenhansen marked this pull request as draft January 25, 2024 10:37
@kraenhansen
Copy link
Member Author

Closing as it's unlikely this will ever merge.

@kraenhansen kraenhansen closed this Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant