V1 release#46
Merged
Merged
Conversation
Split the monolithic public API into glasswork/core, http, auth, list-query, jobs, email, uploads, and observability. Slim the root entry to core+http, replace lazy AWS SDK imports in email/jobs drivers, and add verify pipeline.
Add a package exports guide, update the API reference and all import examples to use glasswork/core, glasswork/http, and optional subpaths.
Bump valibot to 1.4, align @prisma/client peer to ^7, adopt CASL 7 and @casl/prisma 2 (Ability types, accessibleBy.ofType), and MJML 5 with async template compilation. Remove unused html-to-text, refresh devDependencies, and tighten peer ranges to match tested versions.
Move collectModules, provider registration, and async factory resolution into module-graph.ts, lifecycle hooks into lifecycle.ts, and point jobs/worker at the shared core module instead of bootstrap internals.
Split validation, authorization, response handling, OpenAPI metadata, and route context into dedicated modules while keeping route() and createRoutes() as a thin facade.
Add shared test/helpers for router, SQS, and cradle access.
Apps register createPrismaAbility at startup, same pattern as registerCasl in list-query. Tighten ProviderConfig and RouteFactory types; deduplicate authorize helpers.
Document 1.0 breaking changes. Mark API reference as manually curated. Add smoke:pack to verify for tarball subpath import checks.
Remove direct standard-openapi/json deps (provided by hono-openapi). Move Hono context augmentation into a checked .ts file. Add optional typecheck:strict.
Reuse FactoryProvider from ProviderConfig and cast only at the Awilix boundary; update stale Constructor comment.
Build nested Valibot object schemas from paths like organization.name so validation matches buildOrderBy output; add integration tests.
createPrismaListExecutor, bindPrismaListDelegate, runGroupByAggregations, and InferListParams for wiring Prisma findMany/count/groupBy to list-query.
The coverage job skipped tsc while subpath export tests import dist/. Limit coverage to TypeScript sources and resolve dist imports via file URLs.
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #46 +/- ##
==========================================
- Coverage 96.99% 96.67% -0.33%
==========================================
Files 64 76 +12
Lines 3364 3431 +67
Branches 902 913 +11
==========================================
+ Hits 3263 3317 +54
- Misses 101 114 +13
🚀 New features to boost your workflow:
|
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.
No description provided.