Conversation
…eScript compatibility
|
….json. Override the @ping-identity/rn-types path alias in tsconfig.build.json for all packages to use lib/typescript/src/index instead of the source path. This prevents TS6059 rootDir errors when the types package cache is busted and packages rebuild from scratch.
…kages are built before PingSampleApp typechecks and remove mend sast configExternalUrl for private repo compatibilitty
There was a problem hiding this comment.
Looks like a build artifact. Do we need to commit .map files?
There was a problem hiding this comment.
Good catch, no, those files don’t need to be committed. They were generated build artifacts that slipped into the PR. I’ll clean them up and update the ignore rules if needed.
|
LGTM |
rodrigoareis
left a comment
There was a problem hiding this comment.
Overall changes looks good. Left some minor comments.
|
|
||
| /** | ||
| * Cached default logger used when callers do not provide one. | ||
| */ | ||
| let defaultLoggerInstance: LoggerInstance | null = null; | ||
|
|
||
| const createNoopLogger = (): LoggerInstance => ({ | ||
| nativeHandle: { id: "native-none-id" }, | ||
| nativeHandle: { id: 'native-none-id' }, |
There was a problem hiding this comment.
It seems the storage module is not aligned with other packages changes. It was not updated to match the simplified noop pattern used in browser, device-profile, journey, and oidc.
| return { module, nativeLogger, sdkLogger }; | ||
| }; | ||
|
|
||
| describe('logger package', () => { | ||
| it('configureLogger registers a native logger and returns a handle', async () => { |
There was a problem hiding this comment.
These tests for configureLogger were removed. But since configureLogger is still called internally by logger(), the error path — where registerLogger returns an empty string — is no longer tested.
Also, now it's missing test for default log level.
| @@ -26,5 +26,6 @@ | |||
| "strict": true, | |||
| "target": "ESNext", | |||
| "verbatimModuleSyntax": true | |||
| } | |||
| }, | |||
| "exclude": ["lib"] | |||
There was a problem hiding this comment.
| "exclude": ["lib"] | |
| "exclude": ["lib", "**/__tests__/**"] |
| @@ -26,5 +26,6 @@ | |||
| "strict": true, | |||
| "target": "ESNext", | |||
| "verbatimModuleSyntax": true | |||
| } | |||
| }, | |||
| "exclude": ["lib"] | |||
There was a problem hiding this comment.
| "exclude": ["lib"] | |
| "exclude": ["lib", "**/__tests__/**"] |
| "@ping-identity/rn-journey": ["./src/index"], | ||
| "@ping-identity/rn-types": ["../types/lib/typescript/src/index"] | ||
| } | ||
| }, | ||
| "exclude": ["example", "lib"] |
There was a problem hiding this comment.
| "exclude": ["example", "lib"] | |
| "exclude": ["lib", "**/__tests__/**"] |
| @@ -4,7 +4,8 @@ | |||
| * This software may be modified and distributed under the terms | |||
| * of the MIT license. See the LICENSE file for details. | |||
| */ | |||
| /* eslint-env jest */ | |||
|
|
|||
| import packageJson from '@ping-identity/rn-logger/package.json'; | |||
|
|
|||
| export {}; | |||
There was a problem hiding this comment.
I think it can be removed, the file has a top-level import packageJson
| * - Handles native errors gracefully | ||
| */ | ||
|
|
||
| export {} |
There was a problem hiding this comment.
| export {} | |
| export {}; |
| * - Propagates native errors to callers | ||
| */ | ||
|
|
||
| export {} |
There was a problem hiding this comment.
| export {} | |
| export {}; |
| * - Propagates native errors to callers | ||
| */ | ||
|
|
||
| export {} |
There was a problem hiding this comment.
| export {} | |
| export {}; |
| * - dispose() cleans up the native instance | ||
| */ | ||
|
|
||
| export {} |
There was a problem hiding this comment.
| export {} | |
| export {}; |
JIRA Ticket
SDKS-4801: Address CI failures and refactor logger integration
Description
Removes configureLogger from the public API and simplifies the logger integration contract across all SDK packages. Key changes:
Note
For reviewers: The diff is large but the majority of changes across
PingSampleAppand package source files are automated Prettier and ESLint formatting fixes (quote style, trailing commas, spacing, semicolons). Focus review effort on the logical changes inpackages/logger/src/, the config type deletions across each package'stypes/folder, and thetsconfig.build.jsonadditions.Checklist: