Skip to content

V1 release#46

Merged
rolandboon merged 13 commits into
mainfrom
feature/v1
Jun 10, 2026
Merged

V1 release#46
rolandboon merged 13 commits into
mainfrom
feature/v1

Conversation

@rolandboon

Copy link
Copy Markdown
Owner

No description provided.

rolandboon added 13 commits June 9, 2026 18:54
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

codecov Bot commented Jun 10, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.32468% with 18 lines in your changes missing coverage. Please review.
✅ Project coverage is 96.67%. Comparing base (b85abdf) to head (f97c610).

Files with missing lines Patch % Lines
src/list-query/prisma-executor.ts 83.33% 7 Missing ⚠️
src/list-query/schema-helpers.ts 90.62% 3 Missing ⚠️
src/http/route-openapi.ts 95.74% 2 Missing ⚠️
src/http/route-response.ts 95.65% 2 Missing ⚠️
src/auth/casl-bridge.ts 85.71% 1 Missing ⚠️
src/core/module-graph.ts 99.03% 1 Missing ⚠️
src/http/route-validation.ts 90.00% 1 Missing ⚠️
src/list-query/unrestricted-schemas.ts 66.66% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            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     
Files with missing lines Coverage Δ
src/auth/abilities.ts 100.00% <100.00%> (ø)
src/auth/assert.ts 100.00% <ø> (ø)
src/auth/middleware.ts 100.00% <100.00%> (ø)
src/core/bootstrap.ts 97.79% <100.00%> (-1.03%) ⬇️
src/core/lifecycle.ts 100.00% <100.00%> (ø)
src/email/compiler/compile-templates.ts 96.92% <100.00%> (ø)
src/email/compiler/compiler.ts 97.18% <100.00%> (ø)
src/email/transports/ses-transport.ts 93.43% <100.00%> (+1.12%) ⬆️
src/email/webhooks/handler-factory.ts 98.03% <ø> (ø)
src/email/webhooks/notification-parser.ts 95.91% <ø> (ø)
... and 24 more

... and 1 file with indirect coverage changes

Impacted file tree graph

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@rolandboon rolandboon merged commit 45885df into main Jun 10, 2026
6 checks passed
@rolandboon rolandboon deleted the feature/v1 branch June 10, 2026 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant