Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
6d17e66 to
3fadad9
Compare
e6b86c9 to
75c6f64
Compare
75c6f64 to
cd00e88
Compare
cd00e88 to
8930ee4
Compare
8930ee4 to
9a365b2
Compare
9f287b0 to
8d1a597
Compare
8d1a597 to
32f9a16
Compare
3007f1d to
3839e40
Compare
3839e40 to
b8be190
Compare
b8be190 to
82749b5
Compare
82749b5 to
b163e48
Compare
b163e48 to
a327e7d
Compare
a327e7d to
f369e77
Compare
f369e77 to
237965d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@opensaas/stack-auth@0.2.0
Minor Changes
#121
3851a3cThanks @borisno2! - Add strongly-typed session support via module augmentationThis change enables developers to define custom session types with full TypeScript autocomplete and type safety throughout their OpenSaas applications using the module augmentation pattern.
Core Changes:
Sessionfromtypetointerfaceto enable module augmentationSession | nullAccessControl,AccessContext, and access control engine to support nullable sessionsAuth Package:
getSession()helper pattern for transforming Better Auth sessionsDeveloper Experience:
Developers can now augment the
Sessioninterface to get autocomplete everywhere:This provides autocomplete in:
Benefits:
Example:
Migration:
No migration required - this is a fully backward compatible change. Existing projects continue to work with untyped sessions. Projects can opt-in to typed sessions by creating a
types/session.d.tsfile with module augmentation.Patch Changes
#107
f4f3966Thanks @borisno2! - Add strict typing for plugin runtime servicesThis change implements fully typed plugin runtime services, providing autocomplete and type safety for
context.pluginsthroughout the codebase.Core Changes:
Plugintype with optionalruntimeServiceTypesmetadata for type-safe code generationOpenSaasConfigandAccessContextfromtypetointerfaceto enable module augmentationAuth Plugin:
AuthRuntimeServicesinterface defining runtime service typescontext.plugins.auth.getUser()andcontext.plugins.auth.getCurrentUser()RAG Plugin:
RAGRuntimeServicesinterface defining runtime service typescontext.plugins.rag.generateEmbedding()andcontext.plugins.rag.generateEmbeddings()CLI Generator:
.opensaas/plugin-types.tsnow includes proper type importsPluginServicesinterface extendsRecord<string, Record<string, any> | undefined>for type compatibilityUI Package:
AdminUIprops to accept contexts with typed plugin servicesBenefits:
Example:
@opensaas/stack-cli@0.2.0
Minor Changes
#107
f4f3966Thanks @borisno2! - # Add MCP Server for AI-Assisted DevelopmentNew Features
CLI Package (@opensaas/stack-cli)
opensaas mcpcommand group for AI-assisted development:opensaas mcp install- Install MCP server in Claude Codeopensaas mcp uninstall- Remove MCP server from Claude Codeopensaas mcp start- Start MCP server directly (for debugging)opensaas_implement_feature- Start feature wizardopensaas_feature_docs- Search documentationopensaas_list_features- Browse available featuresopensaas_suggest_features- Get personalized recommendationsopensaas_validate_feature- Validate implementationscreate-opensaas-app
Installation
Enable AI development tools for an existing project:
Or during project creation:
npm create opensaas-app@latest my-app # When prompted: Enable AI development tools? → yesBenefits
Example Usage
With Claude Code installed and the MCP server enabled, you can:
#132
fcf5cb8Thanks @borisno2! - Upgrade to Prisma 7 with database adapter supportBreaking Changes
Required
prismaClientConstructorPrisma 7 requires database adapters. All configs must now include
prismaClientConstructor:Removed
urlfromDatabaseConfigThe
urlfield has been removed from theDatabaseConfigtype. Database connection URLs are now passed directly to adapters inprismaClientConstructor:Generated Schema Changes
prisma-client-jstoprisma-clienturlfield from datasource blockprismaClientConstructorRequired Dependencies
Install the appropriate adapter for your database:
@prisma/adapter-better-sqlite3+better-sqlite3@prisma/adapter-pg+pg@prisma/adapter-mysql+mysql2Migration Steps
Install Prisma 7 and adapter:
Update your
opensaas.config.tsto includeprismaClientConstructor(see example above)Regenerate schema and client:
Push schema to database:
See the updated documentation in CLAUDE.md for more examples including PostgreSQL and custom adapters.
Patch Changes
#107
f4f3966Thanks @borisno2! - Add strict typing for plugin runtime servicesThis change implements fully typed plugin runtime services, providing autocomplete and type safety for
context.pluginsthroughout the codebase.Core Changes:
Plugintype with optionalruntimeServiceTypesmetadata for type-safe code generationOpenSaasConfigandAccessContextfromtypetointerfaceto enable module augmentationAuth Plugin:
AuthRuntimeServicesinterface defining runtime service typescontext.plugins.auth.getUser()andcontext.plugins.auth.getCurrentUser()RAG Plugin:
RAGRuntimeServicesinterface defining runtime service typescontext.plugins.rag.generateEmbedding()andcontext.plugins.rag.generateEmbeddings()CLI Generator:
.opensaas/plugin-types.tsnow includes proper type importsPluginServicesinterface extendsRecord<string, Record<string, any> | undefined>for type compatibilityUI Package:
AdminUIprops to accept contexts with typed plugin servicesBenefits:
Example:
Updated dependencies [
fcf5cb8,3851a3c,f4f3966]:@opensaas/stack-core@0.2.0
Minor Changes
#132
fcf5cb8Thanks @borisno2! - Upgrade to Prisma 7 with database adapter supportBreaking Changes
Required
prismaClientConstructorPrisma 7 requires database adapters. All configs must now include
prismaClientConstructor:Removed
urlfromDatabaseConfigThe
urlfield has been removed from theDatabaseConfigtype. Database connection URLs are now passed directly to adapters inprismaClientConstructor:Generated Schema Changes
prisma-client-jstoprisma-clienturlfield from datasource blockprismaClientConstructorRequired Dependencies
Install the appropriate adapter for your database:
@prisma/adapter-better-sqlite3+better-sqlite3@prisma/adapter-pg+pg@prisma/adapter-mysql+mysql2Migration Steps
Install Prisma 7 and adapter:
Update your
opensaas.config.tsto includeprismaClientConstructor(see example above)Regenerate schema and client:
Push schema to database:
See the updated documentation in CLAUDE.md for more examples including PostgreSQL and custom adapters.
#121
3851a3cThanks @borisno2! - Add strongly-typed session support via module augmentationThis change enables developers to define custom session types with full TypeScript autocomplete and type safety throughout their OpenSaas applications using the module augmentation pattern.
Core Changes:
Sessionfromtypetointerfaceto enable module augmentationSession | nullAccessControl,AccessContext, and access control engine to support nullable sessionsAuth Package:
getSession()helper pattern for transforming Better Auth sessionsDeveloper Experience:
Developers can now augment the
Sessioninterface to get autocomplete everywhere:This provides autocomplete in:
Benefits:
Example:
Migration:
No migration required - this is a fully backward compatible change. Existing projects continue to work with untyped sessions. Projects can opt-in to typed sessions by creating a
types/session.d.tsfile with module augmentation.Patch Changes
#107
f4f3966Thanks @borisno2! - Add strict typing for plugin runtime servicesThis change implements fully typed plugin runtime services, providing autocomplete and type safety for
context.pluginsthroughout the codebase.Core Changes:
Plugintype with optionalruntimeServiceTypesmetadata for type-safe code generationOpenSaasConfigandAccessContextfromtypetointerfaceto enable module augmentationAuth Plugin:
AuthRuntimeServicesinterface defining runtime service typescontext.plugins.auth.getUser()andcontext.plugins.auth.getCurrentUser()RAG Plugin:
RAGRuntimeServicesinterface defining runtime service typescontext.plugins.rag.generateEmbedding()andcontext.plugins.rag.generateEmbeddings()CLI Generator:
.opensaas/plugin-types.tsnow includes proper type importsPluginServicesinterface extendsRecord<string, Record<string, any> | undefined>for type compatibilityUI Package:
AdminUIprops to accept contexts with typed plugin servicesBenefits:
Example:
create-opensaas-app@0.2.0
Minor Changes
#107
f4f3966Thanks @borisno2! - # Add MCP Server for AI-Assisted DevelopmentNew Features
CLI Package (@opensaas/stack-cli)
opensaas mcpcommand group for AI-assisted development:opensaas mcp install- Install MCP server in Claude Codeopensaas mcp uninstall- Remove MCP server from Claude Codeopensaas mcp start- Start MCP server directly (for debugging)opensaas_implement_feature- Start feature wizardopensaas_feature_docs- Search documentationopensaas_list_features- Browse available featuresopensaas_suggest_features- Get personalized recommendationsopensaas_validate_feature- Validate implementationscreate-opensaas-app
Installation
Enable AI development tools for an existing project:
Or during project creation:
npm create opensaas-app@latest my-app # When prompted: Enable AI development tools? → yesBenefits
Example Usage
With Claude Code installed and the MCP server enabled, you can:
@opensaas/stack-rag@0.2.0
Patch Changes
#132
fcf5cb8Thanks @borisno2! - Upgrade to Prisma 7 with database adapter supportBreaking Changes
Required
prismaClientConstructorPrisma 7 requires database adapters. All configs must now include
prismaClientConstructor:Removed
urlfromDatabaseConfigThe
urlfield has been removed from theDatabaseConfigtype. Database connection URLs are now passed directly to adapters inprismaClientConstructor:Generated Schema Changes
prisma-client-jstoprisma-clienturlfield from datasource blockprismaClientConstructorRequired Dependencies
Install the appropriate adapter for your database:
@prisma/adapter-better-sqlite3+better-sqlite3@prisma/adapter-pg+pg@prisma/adapter-mysql+mysql2Migration Steps
Install Prisma 7 and adapter:
Update your
opensaas.config.tsto includeprismaClientConstructor(see example above)Regenerate schema and client:
Push schema to database:
See the updated documentation in CLAUDE.md for more examples including PostgreSQL and custom adapters.
#107
f4f3966Thanks @borisno2! - Add strict typing for plugin runtime servicesThis change implements fully typed plugin runtime services, providing autocomplete and type safety for
context.pluginsthroughout the codebase.Core Changes:
Plugintype with optionalruntimeServiceTypesmetadata for type-safe code generationOpenSaasConfigandAccessContextfromtypetointerfaceto enable module augmentationAuth Plugin:
AuthRuntimeServicesinterface defining runtime service typescontext.plugins.auth.getUser()andcontext.plugins.auth.getCurrentUser()RAG Plugin:
RAGRuntimeServicesinterface defining runtime service typescontext.plugins.rag.generateEmbedding()andcontext.plugins.rag.generateEmbeddings()CLI Generator:
.opensaas/plugin-types.tsnow includes proper type importsPluginServicesinterface extendsRecord<string, Record<string, any> | undefined>for type compatibilityUI Package:
AdminUIprops to accept contexts with typed plugin servicesBenefits:
Example:
@opensaas/stack-storage-s3@0.2.0
Patch Changes
@opensaas/stack-storage-vercel@0.2.0
Patch Changes
@opensaas/stack-storage@0.2.0
@opensaas/stack-tiptap@0.2.0
@opensaas/stack-ui@0.2.0