-
-
Notifications
You must be signed in to change notification settings - Fork 2
Support jsr #17
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
Support jsr #17
Conversation
WalkthroughThe project introduces a GitHub Actions workflow for Deno publishing, enhances test automation, and updates the Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Actionable comments outside the diff hunks (1)
README.md (1)
Line range hint
80-95
: Consider making minor grammatical corrections for improved readability:- Use `deno install` command to install the command. + Use the `deno install` command to install the command. - Contributors need to agree that any modifications sent in this repository follow the license. + Contributors need to agree that any modifications sent to this repository follow the license.
Review Status
Configuration used: CodeRabbit UI
Files selected for processing (12)
- .github/workflows/jsr.yml (1 hunks)
- .github/workflows/test.yml (1 hunks)
- README.md (1 hunks)
- bin/browse.ts (1 hunks)
- commit_url.ts (1 hunks)
- deno.jsonc (1 hunks)
- home_url.ts (1 hunks)
- hosting_service/mod.ts (2 hunks)
- hosting_service/mod_test.ts (3 hunks)
- object_url.ts (2 hunks)
- pull_request_url.ts (2 hunks)
- util.ts (1 hunks)
Files skipped from review due to trivial changes (1)
- deno.jsonc
Additional comments not posted (13)
.github/workflows/jsr.yml (1)
1-27
: LGTM! The new GitHub Actions workflow is well-structured and follows best practices.home_url.ts (1)
20-20
: Ensure that all calls togetHostingService
throughout the codebase have been updated to reflect its new synchronous nature.Verification successful
The verification process did not find any asynchronous calls to
getHostingService
, confirming that all calls to this function have been correctly updated to reflect its new synchronous nature.Scripts Executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Search for any remaining asynchronous calls to getHostingService. Expecting no results. ast-grep --lang typescript --pattern $'await getHostingService($_, $_)'Length of output: 72
commit_url.ts (1)
21-21
: Ensure that all calls togetHostingService
throughout the codebase have been updated to reflect its new synchronous nature.Verification successful
The verification process did not find any asynchronous calls to
getHostingService
, indicating that the codebase has been correctly updated to reflect its new synchronous nature.Scripts Executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Search for any remaining asynchronous calls to getHostingService. Expecting no results. ast-grep --lang typescript --pattern $'await getHostingService($_, $_)'Length of output: 72
.github/workflows/test.yml (1)
43-45
: Adding a "JSR publish (dry-run)" step is a good practice to ensure the publish process works as expected. Well done!object_url.ts (1)
1-2
: Good use of TypeScript best practices by importing types with thetype
keyword. This improves code readability and consistency.hosting_service/mod.ts (1)
48-65
: > 📝 NOTEThis review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [6-62]
The introduction of a
serviceMap
object is a clean and efficient way to manage different hosting services. This simplifies the code and makes it more maintainable. Good job!pull_request_url.ts (2)
1-5
: Good use of TypeScript best practices by importing types with thetype
keyword. This improves code readability and consistency.
29-29
: Ensure that all calls togetHostingService
throughout the codebase have been updated to reflect its new synchronous nature.Verification successful
The verification process did not find any asynchronous calls to
getHostingService
, suggesting that all calls to this function have been correctly updated to reflect its new synchronous nature. This aligns with the expectations set in the review comment.Scripts Executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Search for any remaining asynchronous calls to getHostingService. Expecting no results. ast-grep --lang typescript --pattern $'await getHostingService($_, $_)'Length of output: 72
README.md (1)
3-4
: The addition ofjsr
anddenoland
badges is a great way to provide quick access to project status and version information. Well done!bin/browse.ts (2)
61-63
: The modification to useDeno.readTextFile
andJSON.parse
for reading and parsing JSON files is a good improvement for flexibility and runtime configuration changes.
Ensure that the asynchronous nature of this function is properly handled wherever it's called to avoid potential race conditions.
65-65
: Correctly handling theDeno.errors.NotFound
error to return an empty object when the aliases file is not found is a good practice for optional configuration files.util.ts (1)
1-1
: Adding the type declaration forExecuteOptions
in the import statement enhances type safety and clarity in the codebase.hosting_service/mod_test.ts (1)
6-8
: ReplacingassertRejects
withassertThrows
and simplifying certain test steps to synchronous operations aligns with the synchronous nature ofgetHostingService
and improves test clarity and maintainability.
Ensure that all asynchronous operations are correctly awaited elsewhere in the test suite.
Summary by CodeRabbit
git-browse
project to include new version badges in the README.readAliasesFile
for better efficiency.deno.jsonc
for package name, version, and export details.