@memberjunction/auth-providers 5.48.0 → 5.50.0

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.
@@ -1,4 +1,4 @@
1
1
 
2
- > @memberjunction/auth-providers@5.48.0 build
2
+ > @memberjunction/auth-providers@5.50.0 build
3
3
  > tsc && tsc-alias -f
4
4
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,48 @@
1
1
  # @memberjunction/auth-providers
2
2
 
3
+ ## 5.50.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [623dfc5]
8
+ - Updated dependencies [ce6374c]
9
+ - Updated dependencies [deb02b4]
10
+ - Updated dependencies [0ba33b3]
11
+ - Updated dependencies [dd04a24]
12
+ - @memberjunction/core@5.50.0
13
+ - @memberjunction/global@5.50.0
14
+
15
+ ## 5.49.0
16
+
17
+ ### Patch Changes
18
+
19
+ - 7af258e: Fix duplicate class names in CoreActions, and export the concrete auth providers.
20
+
21
+ `find-candidate-actions.action.ts` and `find-candidate-agents.action.ts` were copy-pasted from their `find-best-*` siblings and the class name was never changed, so each pair declared the same TypeScript class name (`FindBestActionAction` / `FindBestAgentAction`) under **different** ClassFactory keys.
22
+
23
+ This was not cosmetic. A barrel can only export one class per name, so only the copy was exported — which meant `find-best-action` / `find-best-agent` were **absent from the ServerBootstrap class manifest** and therefore unprotected from tree-shaking. A shaken-out registration resolves to `BaseAction`, producing a hollow action rather than a hard failure. It also made the manifest's `FindBestActionAction` symbol resolve to the _candidate_ implementation, so the manifest was actively misleading.
24
+
25
+ Renamed the copies to match their files and registration keys (`FindCandidateActionsAction` / `FindCandidateAgentsAction`) and exported all four.
26
+
27
+ Also exports the six concrete auth providers (`Auth0Provider`, `CognitoProvider`, `GoogleProvider`, `MSALProvider`, `OktaProvider`, `WorkOSProvider`). They are `@RegisterClass` plugins resolved by key at runtime, so they were reachable through the factory but not importable by name — leaving downstream consumers unable to subclass or reference them. `MagicLinkProvider` was already exported; this brings the rest to parity.
28
+
29
+ - Updated dependencies [463aa51]
30
+ - Updated dependencies [c5e4b9e]
31
+ - Updated dependencies [4c441dd]
32
+ - Updated dependencies [1e5b9b2]
33
+ - Updated dependencies [a8cb2b6]
34
+ - Updated dependencies [13d9b8e]
35
+ - Updated dependencies [505c8b5]
36
+ - Updated dependencies [1a15bd2]
37
+ - Updated dependencies [85575cf]
38
+ - Updated dependencies [9c07270]
39
+ - Updated dependencies [e945700]
40
+ - Updated dependencies [1475e6c]
41
+ - Updated dependencies [6d0ec83]
42
+ - Updated dependencies [70c658c]
43
+ - @memberjunction/core@5.49.0
44
+ - @memberjunction/global@5.49.0
45
+
3
46
  ## 5.48.0
4
47
 
5
48
  ### Patch Changes
package/README.md CHANGED
@@ -243,7 +243,7 @@ export class KeycloakProvider extends BaseAuthProvider {
243
243
  // Then in mj.config.cjs use type: 'keycloak'
244
244
  ```
245
245
 
246
- > **Important:** because the provider is loaded via class-factory metadata and not by direct reference, your bundler may tree-shake it out. Make sure the file containing the `@RegisterClass` decorator is imported (directly or transitively) before `AuthProviderFactory.createProvider()` runs. The built-in providers do this from [`AuthProviderFactory.ts`](src/AuthProviderFactory.ts); follow the same pattern in your own entry point or a manifest. See the class-registration manifest discussion in the [root project guide](../../CLAUDE.md) for background.
246
+ > **Important:** because the provider is loaded via class-factory metadata and not by direct reference, your bundler may tree-shake it out. Make sure the file containing the `@RegisterClass` decorator is imported (directly or transitively) before `AuthProviderFactory.createProvider()` runs. The built-in providers do this from [`AuthProviderFactory.ts`](src/AuthProviderFactory.ts); follow the same pattern in your own entry point or a manifest. See the class-registration manifest discussion in [packages/CodeGenLib/CLAUDE.md](../CodeGenLib/CLAUDE.md) for background.
247
247
 
248
248
  ## API reference
249
249
 
@@ -309,8 +309,8 @@ A `GraphQLError` with `extensions.code = 'JWT_EXPIRED'` and `extensions.expiryDa
309
309
 
310
310
  ## Project guidelines
311
311
 
312
- - Class registration & tree-shaking caveats: see the manifest section of the [root project guide](../../CLAUDE.md)
313
- - Singleton best practices: see the `BaseSingleton` rules in the [root project guide](../../CLAUDE.md)
312
+ - Class registration & tree-shaking caveats: see the manifest section of [packages/CodeGenLib/CLAUDE.md](../CodeGenLib/CLAUDE.md)
313
+ - Singleton best practices: see the `BaseSingleton` rules in [.claude/rules/typescript-style.md](../../.claude/rules/typescript-style.md)
314
314
 
315
315
  ## License
316
316
 
package/dist/index.d.ts CHANGED
@@ -5,4 +5,10 @@ export { TokenExpiredError } from './tokenExpiredError.js';
5
5
  export { MagicLinkProvider } from './providers/MagicLinkProvider.js';
6
6
  export { HostIdentityProvider, type HostAssertionVerifyResult, type HostAssertionError, } from './providers/HostIdentityProvider.js';
7
7
  export type { AuthProviderConfig, AuthUserInfo } from '@memberjunction/core';
8
+ export { Auth0Provider } from './providers/Auth0Provider.js';
9
+ export { CognitoProvider } from './providers/CognitoProvider.js';
10
+ export { GoogleProvider } from './providers/GoogleProvider.js';
11
+ export { MSALProvider } from './providers/MSALProvider.js';
12
+ export { OktaProvider } from './providers/OktaProvider.js';
13
+ export { WorkOSProvider } from './providers/WorkOSProvider.js';
8
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EACL,oBAAoB,EACpB,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,GACxB,MAAM,qCAAqC,CAAC;AAG7C,YAAY,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EACL,oBAAoB,EACpB,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,GACxB,MAAM,qCAAqC,CAAC;AAG7C,YAAY,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAM7E,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC"}
package/dist/index.js CHANGED
@@ -3,4 +3,14 @@ export { AuthProviderFactory } from './AuthProviderFactory.js';
3
3
  export { TokenExpiredError } from './tokenExpiredError.js';
4
4
  export { MagicLinkProvider } from './providers/MagicLinkProvider.js';
5
5
  export { HostIdentityProvider, } from './providers/HostIdentityProvider.js';
6
+ // Concrete auth providers. These are @RegisterClass plugins resolved by key at runtime, so
7
+ // they were reachable via the factory but not importable by name — leaving downstream
8
+ // consumers unable to subclass or reference them directly. MagicLinkProvider (above) was
9
+ // already exported; these are the remaining six, for parity.
10
+ export { Auth0Provider } from './providers/Auth0Provider.js';
11
+ export { CognitoProvider } from './providers/CognitoProvider.js';
12
+ export { GoogleProvider } from './providers/GoogleProvider.js';
13
+ export { MSALProvider } from './providers/MSALProvider.js';
14
+ export { OktaProvider } from './providers/OktaProvider.js';
15
+ export { WorkOSProvider } from './providers/WorkOSProvider.js';
6
16
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EACL,oBAAoB,GAGrB,MAAM,qCAAqC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EACL,oBAAoB,GAGrB,MAAM,qCAAqC,CAAC;AAK7C,2FAA2F;AAC3F,sFAAsF;AACtF,yFAAyF;AACzF,6DAA6D;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberjunction/auth-providers",
3
- "version": "5.48.0",
3
+ "version": "5.50.0",
4
4
  "description": "Authentication provider interfaces, base classes, and implementations for MemberJunction",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -11,8 +11,8 @@
11
11
  "test:watch": "vitest"
12
12
  },
13
13
  "dependencies": {
14
- "@memberjunction/core": "5.48.0",
15
- "@memberjunction/global": "5.48.0",
14
+ "@memberjunction/core": "5.50.0",
15
+ "@memberjunction/global": "5.50.0",
16
16
  "graphql": "^16.12.0",
17
17
  "jsonwebtoken": "9.0.3",
18
18
  "jwks-rsa": "^3.2.2"
package/src/index.ts CHANGED
@@ -11,3 +11,14 @@ export {
11
11
 
12
12
  // Re-export types consumers commonly need alongside the auth providers
13
13
  export type { AuthProviderConfig, AuthUserInfo } from '@memberjunction/core';
14
+
15
+ // Concrete auth providers. These are @RegisterClass plugins resolved by key at runtime, so
16
+ // they were reachable via the factory but not importable by name — leaving downstream
17
+ // consumers unable to subclass or reference them directly. MagicLinkProvider (above) was
18
+ // already exported; these are the remaining six, for parity.
19
+ export { Auth0Provider } from './providers/Auth0Provider.js';
20
+ export { CognitoProvider } from './providers/CognitoProvider.js';
21
+ export { GoogleProvider } from './providers/GoogleProvider.js';
22
+ export { MSALProvider } from './providers/MSALProvider.js';
23
+ export { OktaProvider } from './providers/OktaProvider.js';
24
+ export { WorkOSProvider } from './providers/WorkOSProvider.js';