bwh-auth 0.6.3 → 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
@@ -330,6 +330,64 @@ Passkey components default to the Laravel package routes:
330
330
  - `POST /api/passkeys/auth/options`
331
331
  - `POST /api/passkeys/auth`
332
332
 
333
+ ## Development toolchain
334
+
335
+ Use pnpm 12.18.0 and Node 22.22.2+, 24.15.0+, or 26+. The supported Node
336
+ ranges match the build/test dependencies; CI covers both minimum versions and
337
+ Node 26. Run focused checks locally and use CI for the full tests, typecheck,
338
+ build and packed-consumer matrix.
339
+
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.
352
+
353
+ CI installs the packed artifact into isolated consumers with React 18.3.1 /
354
+ Lucide 0.468.0 and React 19.3.1 / Lucide 1.72.0. It verifies ESM and CommonJS
355
+ runtime exports and compiles `.mts` and `.cts` consumers with TypeScript 7.
356
+ React 18/19 peer support and the public entrypoints remain unchanged. The release
357
+ workflow repeats the packed-consumer check before publishing.
358
+
359
+ ### 0.6.4 dependency refresh
360
+
361
+ This patch publishes the pnpm 12.18.0, tsup 9 and TypeScript 7 toolchain refresh,
362
+ updates the development and packed-consumer Lucide dependency to 1.72.0, and runs
363
+ the packed-consumer checks above. The package's Node engine now requires
364
+ `^22.22.2 || ^24.15.0 || >=26.0.0`, matching its supported build dependencies.
365
+ React 18/19 and Lucide `>=0.468.0 <2.0.0` peer ranges remain unchanged. There are
366
+ no authentication API, component-prop or public-export changes.
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
+
333
391
  ## Releasing
334
392
 
335
393
  Prepare a release from this package directory: