fix(auth-local): store documentation and bundling #58
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
qa:preview
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
quatrain/core!58
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/56-auth-local-store-docs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Refs #56
Two fixes on
@quatrain/auth-local, which is not on npm yet.1. JSDoc of the stores
#57 was merged a few minutes before its last commit was pushed, so
developholds the package without the JSDoc of its two stores. The JSDoc quality gate fails there (run 91, 26 missing entries) and the publish job is skipped. One documentation line per store method, no code change.2. The package could not be bundled
PostgresLocalAuthStorecomputed the path ofsql/auth_local.sqlfrom__dirnamewhen the module loaded. Bundled into an ES module application (Vite SSR),__dirnamedoes not exist and importing the package failed withReferenceError: __dirname is not defined in ES module scope. Found while wiring the package into an application.The DDL is now the exported constant
AUTH_LOCAL_SCHEMA_SQL;sql/auth_local.sqlstays shipped for migrations and a test keeps the two identical.@quatrain/queue-postgresreads its DDL the same way and has the same defect; it is left for its own issue.Tests
36 tests, all passing locally, PostgreSQL included.
🤖 Generated with Claude Code
docs(auth-local): document the store methodsto fix(auth-local): store documentation and bundling