bwh-auth 0.6.4 → 0.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -337,12 +337,18 @@ ranges match the build/test dependencies; CI covers both minimum versions and
337
337
  Node 26. Run focused checks locally and use CI for the full tests, typecheck,
338
338
  build and packed-consumer matrix.
339
339
 
340
- Typechecking uses TypeScript 7.0.2 explicitly. The `typescript` dependency is
341
- intentionally an alias to the last JavaScript compiler (`@typescript/typescript6`)
342
- for tsup's declaration bundler only. tsup 9 still calls `createProgram` and
343
- `createCompilerHost`; TypeScript 7.0's main export has neither API. Removing that
344
- alias requires an upstream declaration-bundler migration, not an unchecked swap
345
- to a native compiler. See the [TypeScript 7.0 API notes](https://devblogs.microsoft.com/typescript/announcing-typescript-7-0/).
340
+ Typechecking and declaration generation use the native TypeScript 7.0.2 compiler.
341
+ The build uses exact tsdown 0.23.7 with rolldown-plugin-dts pinned to 0.30.2,
342
+ whose `tsgo` backend supports the TS7.0 CLI. That fallback is deprecated upstream;
343
+ requalify the build and packed-consumer matrix before changing either pin or
344
+ moving to the TS7.1 API backend. No classic TypeScript compiler or ESLint engine
345
+ is installed. `pnpm check:toolchain` verifies the resolved lock and actual
346
+ installed package identities, including aliases.
347
+
348
+ The build retains `dist/index.js`, `dist/index.cjs`, `dist/index.d.ts` and
349
+ `dist/index.d.cts`. Conditional exports route ESM and CJS consumers to matching
350
+ declarations. Packed consumers also compare runtime exports and declaration type
351
+ compatibility against the published 0.6.4 baseline.
346
352
 
347
353
  CI installs the packed artifact into isolated consumers with React 18.3.1 /
348
354
  Lucide 0.468.0 and React 19.3.1 / Lucide 1.72.0. It verifies ESM and CommonJS
@@ -359,6 +365,29 @@ the packed-consumer checks above. The package's Node engine now requires
359
365
  React 18/19 and Lucide `>=0.468.0 <2.0.0` peer ranges remain unchanged. There are
360
366
  no authentication API, component-prop or public-export changes.
361
367
 
368
+ ### 0.6.5 passkey enrollment confirmation
369
+
370
+ Passkey enrollment reacts to auth-laravel 0.30's JSON 423
371
+ `password_confirmation_required` response with an inline password or existing
372
+ passkey confirmation step. No extra prompt appears for older servers or a fresh
373
+ session. Passwordless accounts can prove their identity with an existing passkey;
374
+ that assertion requires user verification and signs nobody in. After confirmation,
375
+ enrollment starts with fresh options rather than replaying an old attestation.
376
+
377
+ `AuthEndpointConfig` adds optional `confirmPassword`, `passkeyConfirmOptions` and
378
+ `passkeyConfirm` URLs. Mounted providers should supply their server-generated URLs.
379
+ Defaults are `/api/auth/confirm-password`, `/api/passkeys/confirm/options` and
380
+ `/api/passkeys/confirm`. `confirmPasswordForPasskey`, `confirmPasskey` and
381
+ `PasswordConfirmationRequiredError` are exported for app-owned enrollment flows.
382
+ Cancellation, unmount and endpoint/session changes abort pending confirmation and
383
+ prevent its continuation. Passwords are sent only to the confirmation endpoint,
384
+ are cleared from the input, and are never persisted. The server remains responsible
385
+ for account binding, expiry, MFA policy and authorization. Removal policy is unchanged.
386
+
387
+ CI retains generated tarballs before asserting dist reproducibility, so a source
388
+ change can regenerate its committed bundles in hosted CI without relaxing the
389
+ required drift or packed-consumer gates.
390
+
362
391
  ## Releasing
363
392
 
364
393
  Prepare a release from this package directory: