bwh-auth 0.6.3 → 0.6.4

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,35 @@ 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 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/).
346
+
347
+ CI installs the packed artifact into isolated consumers with React 18.3.1 /
348
+ Lucide 0.468.0 and React 19.3.1 / Lucide 1.72.0. It verifies ESM and CommonJS
349
+ runtime exports and compiles `.mts` and `.cts` consumers with TypeScript 7.
350
+ React 18/19 peer support and the public entrypoints remain unchanged. The release
351
+ workflow repeats the packed-consumer check before publishing.
352
+
353
+ ### 0.6.4 dependency refresh
354
+
355
+ This patch publishes the pnpm 12.18.0, tsup 9 and TypeScript 7 toolchain refresh,
356
+ updates the development and packed-consumer Lucide dependency to 1.72.0, and runs
357
+ the packed-consumer checks above. The package's Node engine now requires
358
+ `^22.22.2 || ^24.15.0 || >=26.0.0`, matching its supported build dependencies.
359
+ React 18/19 and Lucide `>=0.468.0 <2.0.0` peer ranges remain unchanged. There are
360
+ no authentication API, component-prop or public-export changes.
361
+
333
362
  ## Releasing
334
363
 
335
364
  Prepare a release from this package directory:
package/dist/index.d.cts CHANGED
@@ -424,4 +424,5 @@ declare function ApiCredentialsSection({ indexUrl, components, links, csrfToken,
424
424
  /** PT4H → "4 hours", P30D → "30 days", P1Y → "1 year". Unknown shapes are shown as given. */
425
425
  declare function describeDuration(spec: string): string;
426
426
 
427
- export { type ApiCredentialApp, type ApiCredentialEndpointLink, type ApiCredentialIndex, type ApiCredentialRequest, type ApiCredentialRequestResult, type ApiCredentialScope, type ApiCredentialScopeGroup, type ApiCredentialScopePreset, type ApiCredentialToken, ApiCredentialsSection, type ApiCredentialsSectionProps, type AuthBadgeComponentProps, type AuthButtonComponent, type AuthButtonComponentInput, type AuthButtonComponentProps, type AuthButtonSize, type AuthButtonVariant, type AuthCheckboxComponentProps, type AuthComponentInput, type AuthComponentOverrides, type AuthComponentSet, type AuthComponentSuperset, type AuthComponents, type AuthContainerComponentProps, type AuthEndpointConfig, type AuthInputComponentProps, type AuthJsonResponse, type AuthLabelComponentProps, type AuthRadioGroupComponentProps, type AuthRadioGroupOption, type AuthSignupField, type AuthSignupValues, type AuthTextareaComponentProps, type AuthValidationErrors, ChangePasswordForm, type IssuedApiCredential, LoginForm, type LoginFormProps, type LoginRememberMeCheckboxProps, type Passkey, PasskeyLoginButton, PasskeySection, PasswordResetRequestForm, type PasswordResetRequestFormProps, type RelyingApplication, ResetPasswordForm, type ResetPasswordFormProps, type ScopeImplications, ScopePicker, type ScopePickerProps, SignupForm, TwoFactorForm, arrayBufferToBase64url, authenticateWithPasskey, base64urlToArrayBuffer, closeImplications, describeDuration, getCsrfToken, getDefaultPasskeyName, inCatalogOrder, isAbortError, isConditionalMediationAvailable, neededBy, registerPasskey, relyingApplicationsFrom, restrictImplications, safeApplicationHref, sameSelection, withScopes, withoutScopes };
427
+ export { ApiCredentialsSection, ChangePasswordForm, LoginForm, PasskeyLoginButton, PasskeySection, PasswordResetRequestForm, ResetPasswordForm, ScopePicker, SignupForm, TwoFactorForm, arrayBufferToBase64url, authenticateWithPasskey, base64urlToArrayBuffer, closeImplications, describeDuration, getCsrfToken, getDefaultPasskeyName, inCatalogOrder, isAbortError, isConditionalMediationAvailable, neededBy, registerPasskey, relyingApplicationsFrom, restrictImplications, safeApplicationHref, sameSelection, withScopes, withoutScopes };
428
+ export type { ApiCredentialApp, ApiCredentialEndpointLink, ApiCredentialIndex, ApiCredentialRequest, ApiCredentialRequestResult, ApiCredentialScope, ApiCredentialScopeGroup, ApiCredentialScopePreset, ApiCredentialToken, ApiCredentialsSectionProps, AuthBadgeComponentProps, AuthButtonComponent, AuthButtonComponentInput, AuthButtonComponentProps, AuthButtonSize, AuthButtonVariant, AuthCheckboxComponentProps, AuthComponentInput, AuthComponentOverrides, AuthComponentSet, AuthComponentSuperset, AuthComponents, AuthContainerComponentProps, AuthEndpointConfig, AuthInputComponentProps, AuthJsonResponse, AuthLabelComponentProps, AuthRadioGroupComponentProps, AuthRadioGroupOption, AuthSignupField, AuthSignupValues, AuthTextareaComponentProps, AuthValidationErrors, IssuedApiCredential, LoginFormProps, LoginRememberMeCheckboxProps, Passkey, PasswordResetRequestFormProps, RelyingApplication, ResetPasswordFormProps, ScopeImplications, ScopePickerProps };
package/dist/index.d.ts CHANGED
@@ -424,4 +424,5 @@ declare function ApiCredentialsSection({ indexUrl, components, links, csrfToken,
424
424
  /** PT4H → "4 hours", P30D → "30 days", P1Y → "1 year". Unknown shapes are shown as given. */
425
425
  declare function describeDuration(spec: string): string;
426
426
 
427
- export { type ApiCredentialApp, type ApiCredentialEndpointLink, type ApiCredentialIndex, type ApiCredentialRequest, type ApiCredentialRequestResult, type ApiCredentialScope, type ApiCredentialScopeGroup, type ApiCredentialScopePreset, type ApiCredentialToken, ApiCredentialsSection, type ApiCredentialsSectionProps, type AuthBadgeComponentProps, type AuthButtonComponent, type AuthButtonComponentInput, type AuthButtonComponentProps, type AuthButtonSize, type AuthButtonVariant, type AuthCheckboxComponentProps, type AuthComponentInput, type AuthComponentOverrides, type AuthComponentSet, type AuthComponentSuperset, type AuthComponents, type AuthContainerComponentProps, type AuthEndpointConfig, type AuthInputComponentProps, type AuthJsonResponse, type AuthLabelComponentProps, type AuthRadioGroupComponentProps, type AuthRadioGroupOption, type AuthSignupField, type AuthSignupValues, type AuthTextareaComponentProps, type AuthValidationErrors, ChangePasswordForm, type IssuedApiCredential, LoginForm, type LoginFormProps, type LoginRememberMeCheckboxProps, type Passkey, PasskeyLoginButton, PasskeySection, PasswordResetRequestForm, type PasswordResetRequestFormProps, type RelyingApplication, ResetPasswordForm, type ResetPasswordFormProps, type ScopeImplications, ScopePicker, type ScopePickerProps, SignupForm, TwoFactorForm, arrayBufferToBase64url, authenticateWithPasskey, base64urlToArrayBuffer, closeImplications, describeDuration, getCsrfToken, getDefaultPasskeyName, inCatalogOrder, isAbortError, isConditionalMediationAvailable, neededBy, registerPasskey, relyingApplicationsFrom, restrictImplications, safeApplicationHref, sameSelection, withScopes, withoutScopes };
427
+ export { ApiCredentialsSection, ChangePasswordForm, LoginForm, PasskeyLoginButton, PasskeySection, PasswordResetRequestForm, ResetPasswordForm, ScopePicker, SignupForm, TwoFactorForm, arrayBufferToBase64url, authenticateWithPasskey, base64urlToArrayBuffer, closeImplications, describeDuration, getCsrfToken, getDefaultPasskeyName, inCatalogOrder, isAbortError, isConditionalMediationAvailable, neededBy, registerPasskey, relyingApplicationsFrom, restrictImplications, safeApplicationHref, sameSelection, withScopes, withoutScopes };
428
+ export type { ApiCredentialApp, ApiCredentialEndpointLink, ApiCredentialIndex, ApiCredentialRequest, ApiCredentialRequestResult, ApiCredentialScope, ApiCredentialScopeGroup, ApiCredentialScopePreset, ApiCredentialToken, ApiCredentialsSectionProps, AuthBadgeComponentProps, AuthButtonComponent, AuthButtonComponentInput, AuthButtonComponentProps, AuthButtonSize, AuthButtonVariant, AuthCheckboxComponentProps, AuthComponentInput, AuthComponentOverrides, AuthComponentSet, AuthComponentSuperset, AuthComponents, AuthContainerComponentProps, AuthEndpointConfig, AuthInputComponentProps, AuthJsonResponse, AuthLabelComponentProps, AuthRadioGroupComponentProps, AuthRadioGroupOption, AuthSignupField, AuthSignupValues, AuthTextareaComponentProps, AuthValidationErrors, IssuedApiCredential, LoginFormProps, LoginRememberMeCheckboxProps, Passkey, PasswordResetRequestFormProps, RelyingApplication, ResetPasswordFormProps, ScopeImplications, ScopePickerProps };
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "bwh-auth",
3
- "version": "0.6.3",
3
+ "version": "0.6.4",
4
4
  "description": "Shared React auth UI and browser WebAuthn helpers for BWH applications.",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
- "packageManager": "pnpm@12.11.2",
7
+ "packageManager": "pnpm@12.18.0",
8
8
  "engines": {
9
- "node": ">=22"
9
+ "node": "^22.22.2 || ^24.15.0 || >=26.0.0"
10
10
  },
11
11
  "repository": {
12
12
  "type": "git",
@@ -35,9 +35,10 @@
35
35
  "build": "tsup src/index.ts --format esm,cjs --dts --dts-resolve --tsconfig tsconfig.build.json",
36
36
  "release": "node scripts/release.mjs",
37
37
  "test": "vitest run",
38
- "typecheck": "tsc --noEmit",
38
+ "typecheck": "node node_modules/@typescript/native/bin/tsc --noEmit",
39
39
  "prepare": "pnpm run build",
40
- "postinstall": "node scripts/spotlight-noindex.mjs"
40
+ "postinstall": "node scripts/spotlight-noindex.mjs",
41
+ "verify-package": "node scripts/verify-package.mjs"
41
42
  },
42
43
  "peerDependencies": {
43
44
  "lucide-react": ">=0.468.0 <2.0.0",
@@ -47,18 +48,19 @@
47
48
  "devDependencies": {
48
49
  "@testing-library/dom": "^10.4.2",
49
50
  "@testing-library/react": "^16.3.3",
50
- "@types/node": "^26.4.1",
51
- "@types/react": "^19.2.18",
52
- "@types/react-dom": "^19.2.7",
51
+ "@types/node": "^26.6.6",
52
+ "@types/react": "^19.3.0",
53
+ "@types/react-dom": "^19.3.0",
53
54
  "@typescript/native": "npm:typescript@^7.0.2",
54
55
  "esbuild": "0.28.2",
55
- "jsdom": "^27.4.0",
56
- "lucide-react": "^0.577.0",
57
- "react": "^19.2.8",
58
- "react-dom": "^19.2.8",
56
+ "jsdom": "^31.0.0",
57
+ "lucide-react": "^1.72.0",
58
+ "react": "^19.3.1",
59
+ "react-dom": "^19.3.1",
59
60
  "spotlight-noindex": "1.1.1",
60
- "tsup": "^8.5.1",
61
+ "tsup": "^9.0.0",
61
62
  "typescript": "npm:@typescript/typescript6@^6.0.2",
62
- "vitest": "^5.0.5"
63
+ "vite": "^7.3.8",
64
+ "vitest": "^5.1.0"
63
65
  }
64
66
  }