Skip to content

chore(release): 0.4.0 — both packages#16

Merged
rodrigobnogueira merged 1 commit into
mainfrom
release/0.4.0
Jul 20, 2026
Merged

chore(release): 0.4.0 — both packages#16
rodrigobnogueira merged 1 commit into
mainfrom
release/0.4.0

Conversation

@rodrigobnogueira

Copy link
Copy Markdown
Contributor

Version bump for the 0.4.0 line (three merged PRs): identity normalize (#13), resetAll() (#14), audit-logging recipe (#15). @authlock/core 0.3.0 → 0.4.0, @nest-native/lockout 0.3.1 → 0.4.0, adapter dep + 3 sample pins + both VERSION consts synced, CHANGELOG stamped. release:check green.

After merge: tag v0.4.0release.yml OIDC-publishes both with provenance — the first release exercising the trusted publishers configured this cycle.

@authlock/core 0.3.0 -> 0.4.0 (identity normalize + resetAll);
@nest-native/lockout 0.3.1 -> 0.4.0 (resetAll passthrough). Adapter's
@authlock/core dep + all three sample pins + both VERSION consts synced;
CHANGELOG Unreleased -> 0.4.0. release:check green (readme links, sample
version sync, pack + supply-chain audit, packed-consumer smoke).

First release under the configured OIDC trusted publishers — the tag publishes
both packages hands-off with provenance.
@github-actions

Copy link
Copy Markdown

📊 Coverage Coverage Report

Metric PR Base Diff
Statements ████████████████████ 959/959 (100%) 959/959 (100%) ⚪ 0%
Branches ████████████████████ 165/165 (100%) 165/165 (100%) ⚪ 0%
Functions ████████████████████ 56/56 (100%) 56/56 (100%) ⚪ 0%
Lines ████████████████████ 959/959 (100%) 959/959 (100%) ⚪ 0%
🧾 Changed files
File Statements Branches Diff
core/version.ts ████████████████████ 5/5 (100%) 0/0 (100%) ⚪ 0%

Updated for 61a40ff | Compared against base branch

@github-actions

Copy link
Copy Markdown

⏱️ Performance Report

✅ Tests 99 passed, 0 failed, 0 skipped
🧪 Suites 22
⏱️ Total step time 26.00s 🔴 +1.00s
⚙️ Test execution 21.31s 🔴 +484ms
🐢 Slowest test suites
# Suite Tests Duration vs Base
1 LockoutStore contract — postgres (pglite) 6 11.68s 🔴 +356ms
2 LockoutStore contract — sqlite (better-sqlite3) 6 25ms ⚪ ~0
3 MysqlLockoutStore (real drizzle-mysql2 builder, fake client) 6 10ms ⚪ ~0
4 @authlock/core acceptance (framework-neutral login flow) 2 4ms ⚪ ~0
5 lockout table schema parity 4 2ms ⚪ ~0
6 deriveKeys 13 2ms ⚪ ~0
7 LockoutManager — configuration validation 8 2ms ⚪ ~0
8 LockoutStore contract — in-memory 6 1ms ⚪ ~0
9 InMemoryLockoutStore 6 1ms ⚪ ~0
10 LockoutManager — basic lifecycle 4 1ms ⚪ ~0
🐌 Slowest individual tests
# Suite Test Duration vs Base
1 LockoutStore contract — postgres (pglite) LockoutStore contract — postgres (pglite) creates, increments (advancing lastFailureAt), then resets after the window 2.52s ⚪ ~0
2 LockoutStore contract — postgres (pglite) LockoutStore contract — postgres (pglite) clears a single key 1.90s 🔴 +129ms
3 LockoutStore contract — postgres (pglite) LockoutStore contract — postgres (pglite) clearAll removes every key regardless of age 1.84s 🔴 +72ms
4 LockoutStore contract — postgres (pglite) LockoutStore contract — postgres (pglite) counts concurrent increments exactly — no lost updates 1.83s 🔴 +101ms
5 LockoutStore contract — postgres (pglite) LockoutStore contract — postgres (pglite) clearExpired removes only records older than the cutoff and counts them 1.80s ⚪ ~0
6 LockoutStore contract — postgres (pglite) LockoutStore contract — postgres (pglite) reads a stored record, or null when the key is unknown 1.79s ⚪ ~0
7 LockoutStore contract — sqlite (better-sqlite3) LockoutStore contract — sqlite (better-sqlite3) counts concurrent increments exactly — no lost updates 11ms ⚪ ~0
8 MysqlLockoutStore (real drizzle-mysql2 builder, fake client) MysqlLockoutStore (real drizzle-mysql2 builder, fake client) increment issues an atomic windowed upsert then re-reads the row 7ms ⚪ ~0
9 LockoutStore contract — sqlite (better-sqlite3) LockoutStore contract — sqlite (better-sqlite3) creates, increments (advancing lastFailureAt), then resets after the window 7ms ⚪ ~0
10 @authlock/core acceptance (framework-neutral login flow) @authlock/core acceptance (framework-neutral login flow) locks a brute-force loop after the limit, then recovers after cooloff 2ms ⚪ ~0
11 LockoutStore contract — sqlite (better-sqlite3) LockoutStore contract — sqlite (better-sqlite3) reads a stored record, or null when the key is unknown 2ms ⚪ ~0
12 LockoutStore contract — sqlite (better-sqlite3) LockoutStore contract — sqlite (better-sqlite3) clearAll removes every key regardless of age 2ms ⚪ ~0
13 LockoutStore contract — sqlite (better-sqlite3) LockoutStore contract — sqlite (better-sqlite3) clearExpired removes only records older than the cutoff and counts them 2ms ⚪ ~0
14 @authlock/core acceptance (framework-neutral login flow) @authlock/core acceptance (framework-neutral login flow) exposes a semver-shaped version 1ms ⚪ ~0
15 MysqlLockoutStore (real drizzle-mysql2 builder, fake client) MysqlLockoutStore (real drizzle-mysql2 builder, fake client) get returns the mapped record when present 1ms ⚪ ~0

Updated for 61a40ff | Compared against base branch

@github-actions

Copy link
Copy Markdown

🧠 Cognitive Complexity Report

Metric PR Base Diff
Total complexity 72 72 ⚪ 0
Max function complexity 11 11 ⚪ 0
Functions measured 27 27 ⚪ 0
🧩 Most complex functions
Function Location Complexity Status
deriveKeys packages/core/key.ts:32 11 🟢 OK
validateTiers packages/core/manager.ts:28 11 🟢 OK
validateNormalize packages/core/manager.ts:72 4 🟢 OK
cooloffFor packages/core/policy.ts:10 4 🟢 OK
evaluateRecord packages/core/policy.ts:78 4 🟢 OK
mostRestrictive packages/core/manager.ts:105 3 🟢 OK
LockoutManager.clearKeys packages/core/manager.ts:259 3 🟢 OK
LockoutManager.applyFailure packages/core/manager.ts:280 3 🟢 OK
effectiveWindowMs packages/core/policy.ts:33 3 🟢 OK
InMemoryLockoutStore.clearExpired packages/core/store/in-memory.ts:49 3 🟢 OK

🧭 Cognitive complexity is reported as a review signal, not a merge gate. Prefer small, intention-revealing refactors when complexity rises.


Updated for 61a40ff | Compared against base branch

@rodrigobnogueira
rodrigobnogueira merged commit 6cf1fda into main Jul 20, 2026
11 checks passed
@rodrigobnogueira
rodrigobnogueira deleted the release/0.4.0 branch July 20, 2026 15:35
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