Skip to content

Conversation

@rolandjitsu
Copy link
Collaborator

What kind of change does this PR introduce?

  • Bug Fix
  • Feature
  • Refactoring
  • Style
  • Build
  • Chore
  • Documentation
  • CI

Did you add tests for your changes?

  • Yes, my code is well tested
  • Not relevant

If relevant, did you update the documentation?

  • Yes, I've updated the documentation
  • Not relevant

Summary

Complete the impl. of #79 with tests and typescript types.

Does this PR introduce a breaking change?

No.

Other information

@rolandjitsu rolandjitsu self-assigned this Oct 8, 2024
@rolandjitsu
Copy link
Collaborator Author

@tomayac please check this PR out. I've added some tests and additional typescript type support for the new handle property.

@coveralls
Copy link

coveralls commented Oct 8, 2024

Pull Request Test Coverage Report for Build ae387457db4eb1e92b2d2a815de8bc263fd43dd2-PR-91

Details

  • 9 of 9 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 6adbc2fe4dad708280f8bc60590335a892510731: 0.0%
Covered Lines: 89
Relevant Lines: 89

💛 - Coveralls

@rolandjitsu rolandjitsu force-pushed the feat/fs-handle branch 2 times, most recently from 254b192 to cc7ca27 Compare October 8, 2024 19:29
Copy link

@tomayac tomayac left a comment

Choose a reason for hiding this comment

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

LGTM

I'm not sure if it matters, but you may want to replace FileSystemHandle with the more explicit FileSystemFileHandle, since this is only dealing with files, not directories (for which FileSystemDirectoryHandle exists, both inherit from FileSystemHandle).

const name = 'test.json';
const [f, h] = createFileSystemFileHandle(name, {ping: true}, {
type: 'application/json'
})
Copy link

Choose a reason for hiding this comment

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

Suggested change
})
});

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Addressed this.

@rolandjitsu
Copy link
Collaborator Author

LGTM

I'm not sure if it matters, but you may want to replace FileSystemHandle with the more explicit FileSystemFileHandle, since this is only dealing with files, not directories (for which FileSystemDirectoryHandle exists, both inherit from FileSystemHandle).

Made the handle of type FileSystemFileHandle on FileWithPath and kept the internal use as FileSystemHandle.

@rolandjitsu
Copy link
Collaborator Author

@tomayac can we go ahead with this PR or would you like to update yours to match this one?

@tomayac
Copy link

tomayac commented Oct 9, 2024

@tomayac can we go ahead with this PR or would you like to update yours to match this one?

No worries with taking yous. Just close mine in favor of this. Glad the feature is landing.

@rolandjitsu rolandjitsu merged commit 7e3cef5 into master Oct 10, 2024
8 checks passed
@github-actions
Copy link

🎉 This PR is included in version 1.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@rolandjitsu rolandjitsu deleted the feat/fs-handle branch November 2, 2024 11:35
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.

4 participants