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

WIP: some major improvements #12

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from
Draft

Conversation

darcyclarke
Copy link
Member

@darcyclarke darcyclarke commented Mar 28, 2025

This pull request introduces several important updates to improve the development workflow, documentation, and configuration of the VSR project. The most significant changes include the addition of contribution and issue templates, updates to the development and deployment processes, and enhancements to database management.

TODO:

  • more tests
  • change distribution to publish vsr as a package/release
  • use store integrity value vs. regenerating integrity on tarball requests
  • test/validate streaming strategy for large packages
  • allow for multiple registry upstreams
    • this requires a consolidated first-in-first-out strategy OR
    • this requires new path routes which

Features:

  • accept-integrity checking to tarball endpoints
  • proxying of configured upstream registry packages
  • semver range support for package manifests (ex. /express/^1.2.3 or /react/>=19)
  • search support (ex. npm search ... now works)
  • custom dist-tag support & validation
  • access support

Documentation Updates:

Workflow and Configuration Enhancements:

  • .github/workflows/publish.yml: Added a GitHub Actions workflow for publishing the VSR project, including steps for checking out the repository, installing dependencies, and running the build process.
  • drizzle.config.ts: Configured Drizzle Kit to locate and use the correct SQLite database file for development.
  • package.json: Updated scripts for database setup, testing, and deployment, and added new dependencies for better development and testing support.

Codebase and Testing Improvements:

  • scripts/check-db.js: Added a script to check the database connection and verify the presence of required tables and data.
  • Removed unnecessary build scripts and simplified the build process by eliminating redundant steps.

These changes collectively enhance the development experience, improve documentation, and streamline workflows for contributors.

@darcyclarke darcyclarke added the enhancement New feature or request label Mar 28, 2025
@darcyclarke darcyclarke requested a review from Copilot March 28, 2025 21:49
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request introduces important workflow, documentation, and configuration enhancements to the VSR project. Key changes include the addition and update of contributing/issue/pull-request templates, improvements to the development and deployment processes (including database management and GitHub Actions workflows), and updates to API documentation for enhanced clarity.

Reviewed Changes

Copilot reviewed 49 out of 56 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/db/client.ts Adds helper functions and operations for type-safe database access
src/api.js Enhances API descriptions and response schemas
scripts/check-db.js Introduces a database checker script
scripts/build.mjs Removes obsolete build script
drizzle.config.ts Configures Drizzle Kit to locate the correct SQLite database file
config.js Updates proxy configuration settings
README.md Fixes typo and adds link to CONTRIBUTING guide
CONTRIBUTING.md and other templates Adds and updates documentation and templates
.github/workflows/publish.yml Adds a GitHub Actions workflow for project publishing
Other .github files Provides updated issue/feature/bug report templates and contribution guidance
Files not reviewed (7)
  • package.json: Language not supported
  • src/db/migrations/0000_faulty_ricochet.sql: Language not supported
  • src/db/migrations/0000_initial.sql: Language not supported
  • src/db/migrations/0001_uuid_validation.sql: Language not supported
  • src/db/migrations/drop.sql: Language not supported
  • src/db/migrations/meta/0000_snapshot.json: Language not supported
  • src/db/migrations/meta/_journal.json: Language not supported
Comments suppressed due to low confidence (2)

config.js:6

  • Changing the configuration from an array (PROXIES) to a boolean (PROXY) along with the addition of PROXY_URL could introduce breaking changes if other parts of the codebase expect an array for proxy settings. Please ensure that all references to proxy settings are updated accordingly.
export const PROXY = true

README.md:49

  • Corrected the typo 'tbe' to 'the' in the README to improve clarity.
# run the development script

@JustFly1984
Copy link

How close is this PR to merge and release?

@darcyclarke
Copy link
Member Author

darcyclarke commented Mar 31, 2025

@JustFly1984 it should be out this week

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants