Refactor TypeScript SDK paths and simplify component registry#1602
Conversation
…ve unused imports
…nused resolver function
…ng and simplify imports
🦋 Changeset detectedLatest commit: 6a3d452 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
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: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (13)
💤 Files with no reviewable changes (5)
📝 WalkthroughWalkthroughThe changes replace component registry path resolution, fix StudioCMS script and import behavior, remove playground S3 storage, and update VS Code configuration. Changesets record patch releases for the affected packages. ChangesComponent registry resolution
StudioCMS runtime fixes
Playground storage configuration
Workspace editor settings
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
…ability and maintainability
….json and configuration
Allure Test Report for this PR:✅ Allure Report | History |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
create-studiocms
effectify
studiocms
@studiocms/auth0
@studiocms/blog
@studiocms/cloudinary-image-service
@studiocms/devapps
@studiocms/discord
@studiocms/github
@studiocms/google
@studiocms/html
@studiocms/markdoc
@studiocms/markdown-remark
@studiocms/md
@studiocms/mdx
@studiocms/s3-storage
@studiocms/upgrade
@studiocms/wysiwyg
@withstudiocms/api-spec
@withstudiocms/auth-kit
@withstudiocms/cli-kit
@withstudiocms/component-registry
@withstudiocms/config-utils
@withstudiocms/effect
@withstudiocms/internal_helpers
@withstudiocms/kysely
@withstudiocms/sdk
@withstudiocms/template-lang
commit: |
This pull request includes several dependency and codebase cleanups, as well as improvements to path resolution and configuration handling in the component registry. The most significant changes are the removal of the custom
resolverutility in favor of a newcreatePathResolver, simplification of the code and tests, and removal of the S3 storage integration from the playground. There are also minor updates to VSCode settings and the frontend code component.Component Registry Refactoring and Path Resolution:
Replaced the custom
resolverutility with a newcreatePathResolverfrom@withstudiocms/internal_helpers/pathResolver, simplifying path resolution logic inhandler.tsand removing the old implementation and related tests (packages/@withstudiocms/component-registry/src/registry/handler.ts,packages/@withstudiocms/component-registry/src/utils.ts,packages/@withstudiocms/component-registry/test/utils.test.ts). [1] [2] [3] [4] [5] [6] [7] [8]Improved naming logic for the registry name to ensure it always includes
-component-registry(packages/@withstudiocms/component-registry/src/registry/handler.ts).Configuration and Integration Cleanup:
configResolverBuilder) and removed the S3 storage manager integration from the playground and related dependency files (packages/studiocms/src/index.ts,playground/package.json,playground/studiocms.config.mts,pnpm-lock.yaml). [1] [2] [3] [4] [5]VSCode and Dev Environment Updates:
js/ts.tsdk.pathkey and removed unused or deprecated settings and extensions (.devcontainer/devcontainer.json,.vscode/settings.json,.vscode/extensions.json). [1] [2] [3] [4]Frontend and Test Improvements:
packages/studiocms/frontend/components/shared/Code.astro,packages/studiocms/test/__snapshots__/components.test.ts.snap). [1] [2] [3] [4]Miscellaneous:
packages/studiocms/src/virtuals/i18n/config.ts).Summary by CodeRabbit
Bug Fixes
Chores