Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .nxignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.opensource/*
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ e2e/*/dist
*/dist
**/dist/*
**/**/*.d.ts*
tools/treeshake-check/src/__fixtures__/**
20 changes: 17 additions & 3 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@
"dependsOn": ["^test:coverage"],
"outputs": ["{projectRoot}/./coverage"],
"cache": true
},
"treeshake-check": {
"inputs": ["production", "^production"],
"dependsOn": ["build"],
"cache": true
}
},
"sync": {
Expand All @@ -103,7 +108,8 @@
"configName": "tsconfig.lib.json"
}
},
"include": ["e2e/**/**/*", "packages/**/**/*", "tools/**/**/*"]
"include": ["e2e/**/**/*", "packages/**/**/*", "tools/**/**/*"],
"exclude": ["tools/treeshake-check/*"]
},
{
"plugin": "@nx/playwright/plugin",
Expand All @@ -119,7 +125,7 @@
"targetName": "nxLint"
},
"include": ["e2e/**/**/*", "packages/**/**/*", "tools/**/**/*"],
"exclude": ["tools/**/fixtures/**/*"]
"exclude": ["tools/**/fixtures/**/*", "tools/**/__fixtures__/**/*"]
},
{
"plugin": "@nx/vite/plugin",
Expand All @@ -136,7 +142,7 @@
},
{
"plugin": "@nx/js/typescript",
"include": ["packages/journey-client/**"],
"include": ["packages/journey-client/**", "tools/treeshake-check/*"],
"options": {
"typecheck": {
"targetName": "typecheck"
Expand All @@ -153,6 +159,14 @@
"testTargetName": "nxTest"
},
"include": ["packages/**/**/*", "e2e/**/**/*", "tools/**/**/*"]
},
{
"plugin": "@nx/vitest",
"options": {
"testTargetName": "vitest:test",
"ciTargetName": "test-ci",
"testMode": "watch"
}
}
],
"parallel": 1,
Expand Down
12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"serve": "nx serve",
"test": "CI=true nx affected:test",
"test:e2e": "CI=true nx affected:e2e",
"treeshake-check": "@forgerock/treeshake-check",
"verdaccio": "nx local-registry",
"watch": "nx vite:watch-deps"
},
Expand All @@ -45,16 +46,18 @@
"path": "./node_modules/cz-conventional-changelog"
}
},
"dependencies": {},
"devDependencies": {
"@changesets/changelog-github": "^0.6.0",
"@changesets/cli": "^2.27.9",
"@commitlint/cli": "^20.0.0",
"@commitlint/config-conventional": "^20.0.0",
"@commitlint/prompt": "^20.0.0",
"@effect/cli": "catalog:effect",
"@effect/tsgo": "^0.5.1",
"@eslint/eslintrc": "^3.0.0",
"@eslint/js": "~9.39.0",
"@forgerock/treeshake-check": "workspace:*",
"@evilmartians/lefthook": "^2.1.4",
"@nx/devkit": "22.6.5",
"@nx/eslint": "22.6.5",
"@nx/eslint-plugin": "22.6.5",
Expand Down Expand Up @@ -92,7 +95,6 @@
"eslint-plugin-playwright": "^2.0.0",
"eslint-plugin-prettier": "^5.2.3",
"fast-check": "^4.0.0",
"@evilmartians/lefthook": "^2.1.4",
"jiti": "2.6.1",
"jsdom": "27.4.0",
"jsonc-eslint-parser": "^2.1.0",
Expand All @@ -101,12 +103,13 @@
"pkg-pr-new": "^0.0.67",
"playwright": "^1.47.2",
"prettier": "^3.2.5",
"setup": "^0.0.3",
"shx": "^0.4.0",
"swc-loader": "0.2.7",
"ts-node": "10.9.2",
"tsx": "^4.20.0",
"ts-patch": "3.3.0",
"tslib": "^2.5.0",
"tsx": "^4.20.0",
"typedoc": "^0.27.4",
"typedoc-github-theme": "0.2.1",
"typedoc-plugin-rename-defaults": "^0.7.2",
Expand All @@ -130,7 +133,8 @@
"rollup": "^4.59.0",
"undici@^7": "^7.24.0",
"picomatch@>=4": "^4.0.4",
"picomatch@<3": "^2.3.2"
"picomatch@<3": "^2.3.2",
"yaml": ">=2.8.3"
}
}
}
14 changes: 7 additions & 7 deletions packages/davinci-client/api-report/davinci-client.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,13 +267,11 @@ export function davinci<ActionType extends ActionTypes = ActionTypes>(input: {
resume: (input: {
continueToken: string;
}) => Promise<InternalErrorResponse | NodeStates>;
start: <QueryParams extends OutgoingQueryParams = OutgoingQueryParams>(options?: StartOptions<QueryParams> | undefined) => Promise<ContinueNode | StartNode | ErrorNode | FailureNode | SuccessNode>;
start: <QueryParams extends OutgoingQueryParams = OutgoingQueryParams>(options?: StartOptions<QueryParams> | undefined) => Promise<ContinueNode | ErrorNode | FailureNode | StartNode | SuccessNode>;
update: <T extends SingleValueCollectors | MultiSelectCollector | ObjectValueCollectors | AutoCollectors>(collector: T) => Updater<T>;
validate: (collector: SingleValueCollectors | ObjectValueCollectors | MultiValueCollectors | AutoCollectors) => Validator;
poll: (collector: PollingCollector) => Poller;
pollStatus: (collector: PollingCollector) => Poller;
getClient: () => {
status: "start";
} | {
action: string;
collectors: Collectors[];
description?: string;
Expand All @@ -287,6 +285,8 @@ export function davinci<ActionType extends ActionTypes = ActionTypes>(input: {
status: "error";
} | {
status: "failure";
} | {
status: "start";
} | {
authorization?: {
code?: string;
Expand All @@ -297,7 +297,7 @@ export function davinci<ActionType extends ActionTypes = ActionTypes>(input: {
getCollectors: () => Collectors[];
getError: () => DaVinciError | null;
getErrorCollectors: () => CollectorErrors[];
getNode: () => ContinueNode | StartNode | ErrorNode | FailureNode | SuccessNode;
getNode: () => ContinueNode | ErrorNode | FailureNode | StartNode | SuccessNode;
getServer: () => {
_links?: Links;
id?: string;
Expand All @@ -306,8 +306,6 @@ export function davinci<ActionType extends ActionTypes = ActionTypes>(input: {
href?: string;
eventName?: string;
status: "continue";
} | {
status: "start";
} | {
_links?: Links;
eventName?: string;
Expand All @@ -323,6 +321,8 @@ export function davinci<ActionType extends ActionTypes = ActionTypes>(input: {
interactionId?: string;
interactionToken?: string;
status: "failure";
} | {
status: "start";
} | {
_links?: Links;
eventName?: string;
Expand Down
14 changes: 7 additions & 7 deletions packages/davinci-client/api-report/davinci-client.types.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,13 +267,11 @@ export function davinci<ActionType extends ActionTypes = ActionTypes>(input: {
resume: (input: {
continueToken: string;
}) => Promise<InternalErrorResponse | NodeStates>;
start: <QueryParams extends OutgoingQueryParams = OutgoingQueryParams>(options?: StartOptions<QueryParams> | undefined) => Promise<ContinueNode | StartNode | ErrorNode | FailureNode | SuccessNode>;
start: <QueryParams extends OutgoingQueryParams = OutgoingQueryParams>(options?: StartOptions<QueryParams> | undefined) => Promise<ContinueNode | ErrorNode | FailureNode | StartNode | SuccessNode>;
update: <T extends SingleValueCollectors | MultiSelectCollector | ObjectValueCollectors | AutoCollectors>(collector: T) => Updater<T>;
validate: (collector: SingleValueCollectors | ObjectValueCollectors | MultiValueCollectors | AutoCollectors) => Validator;
poll: (collector: PollingCollector) => Poller;
pollStatus: (collector: PollingCollector) => Poller;
getClient: () => {
status: "start";
} | {
action: string;
collectors: Collectors[];
description?: string;
Expand All @@ -287,6 +285,8 @@ export function davinci<ActionType extends ActionTypes = ActionTypes>(input: {
status: "error";
} | {
status: "failure";
} | {
status: "start";
} | {
authorization?: {
code?: string;
Expand All @@ -297,7 +297,7 @@ export function davinci<ActionType extends ActionTypes = ActionTypes>(input: {
getCollectors: () => Collectors[];
getError: () => DaVinciError | null;
getErrorCollectors: () => CollectorErrors[];
getNode: () => ContinueNode | StartNode | ErrorNode | FailureNode | SuccessNode;
getNode: () => ContinueNode | ErrorNode | FailureNode | StartNode | SuccessNode;
getServer: () => {
_links?: Links;
id?: string;
Expand All @@ -306,8 +306,6 @@ export function davinci<ActionType extends ActionTypes = ActionTypes>(input: {
href?: string;
eventName?: string;
status: "continue";
} | {
status: "start";
} | {
_links?: Links;
eventName?: string;
Expand All @@ -323,6 +321,8 @@ export function davinci<ActionType extends ActionTypes = ActionTypes>(input: {
interactionId?: string;
interactionToken?: string;
status: "failure";
} | {
status: "start";
} | {
_links?: Links;
eventName?: string;
Expand Down
4 changes: 3 additions & 1 deletion packages/davinci-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"build": "pnpm nx nxBuild",
"lint": "pnpm nx nxLint",
"test": "pnpm nx nxTest",
"test:watch": "pnpm nx nxTest --watch"
"test:watch": "pnpm nx nxTest --watch",
"treeshake-check": "treeshake-check"
},
"dependencies": {
"@forgerock/sdk-logger": "workspace:*",
Expand All @@ -38,6 +39,7 @@
},
"devDependencies": {
"@effect/vitest": "catalog:effect",
"@forgerock/treeshake-check": "workspace:*",
"vitest": "catalog:vitest"
},
"publishConfig": {
Expand Down
3 changes: 3 additions & 0 deletions packages/davinci-client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
{
"path": "../sdk-effects/logger"
},
{
"path": "../../tools/treeshake-check"
},
{
"path": "./tsconfig.lib.json"
},
Expand Down
3 changes: 3 additions & 0 deletions packages/davinci-client/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@
},
{
"path": "../sdk-effects/logger/tsconfig.lib.json"
},
{
"path": "../../tools/treeshake-check/tsconfig.lib.json"
}
]
}
4 changes: 3 additions & 1 deletion packages/device-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@
"build": "pnpm nx nxBuild",
"lint": "pnpm nx nxLint",
"test": "pnpm nx nxTest",
"test:watch": "pnpm nx nxTest --watch"
"test:watch": "pnpm nx nxTest --watch",
"treeshake-check": "treeshake-check"
},
"dependencies": {
"@forgerock/javascript-sdk": "4.7.0",
"@reduxjs/toolkit": "catalog:"
},
"devDependencies": {
"@forgerock/treeshake-check": "workspace:*",
"msw": "catalog:"
},
"nx": {
Expand Down
5 changes: 5 additions & 0 deletions packages/device-client/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,10 @@
"src/**/*.test.ts",
"src/**/*.test.utils.ts",
"src/lib/mock-data/*"
],
"references": [
{
"path": "../../tools/treeshake-check/tsconfig.lib.json"
}
]
}
4 changes: 3 additions & 1 deletion packages/journey-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"build": "pnpm nx nxBuild",
"lint": "pnpm nx nxLint",
"test": "pnpm nx nxTest",
"test:watch": "pnpm nx nxTest --watch"
"test:watch": "pnpm nx nxTest --watch",
"treeshake-check": "treeshake-check"
},
"dependencies": {
"@forgerock/sdk-logger": "workspace:*",
Expand All @@ -42,6 +43,7 @@
"tslib": "^2.3.0"
},
"devDependencies": {
"@forgerock/treeshake-check": "workspace:*",
"@vitest/coverage-v8": "catalog:vitest",
"vite": "catalog:vite",
"vitest": "catalog:vitest",
Expand Down
3 changes: 3 additions & 0 deletions packages/journey-client/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
},
{
"path": "../sdk-effects/logger/tsconfig.lib.json"
},
{
"path": "../../tools/treeshake-check/tsconfig.lib.json"
}
]
}
4 changes: 3 additions & 1 deletion packages/oidc-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"build": "pnpm nx nxBuild",
"lint": "pnpm nx nxLint",
"test": "pnpm nx nxTest",
"test:watch": "pnpm nx nxTest --watch"
"test:watch": "pnpm nx nxTest --watch",
"treeshake-check": "treeshake-check"
},
"dependencies": {
"@forgerock/iframe-manager": "workspace:*",
Expand All @@ -38,6 +39,7 @@
},
"devDependencies": {
"@effect/vitest": "catalog:effect",
"@forgerock/treeshake-check": "workspace:*",
"msw": "catalog:"
},
"nx": {
Expand Down
3 changes: 3 additions & 0 deletions packages/oidc-client/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
},
{
"path": "../sdk-effects/iframe-manager/tsconfig.lib.json"
},
{
"path": "../../tools/treeshake-check/tsconfig.lib.json"
}
],
"exclude": [
Expand Down
6 changes: 5 additions & 1 deletion packages/protect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,13 @@
"scripts": {
"lint": "pnpm nx nxLint",
"test": "pnpm nx nxTest",
"test:watch": "pnpm nx nxTest --watch"
"test:watch": "pnpm nx nxTest --watch",
"treeshake-check": "treeshake-check"
},
"dependencies": {},
"devDependencies": {
"@forgerock/treeshake-check": "workspace:*"
},
"publishConfig": {
"access": "public"
},
Expand Down
6 changes: 5 additions & 1 deletion packages/protect/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,9 @@
"src/**/*.types.test-d.ts",
"src/**/*.utils.test-d.ts"
],
"references": []
"references": [
{
"path": "../../tools/treeshake-check/tsconfig.lib.json"
}
]
}
6 changes: 5 additions & 1 deletion packages/sdk-effects/iframe-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,13 @@
"build": "pnpm nx nxBuild",
"lint": "pnpm nx nxLint",
"test": "pnpm nx nxTest",
"test:watch": "pnpm nx nxTest --watch"
"test:watch": "pnpm nx nxTest --watch",
"treeshake-check": "treeshake-check"
},
"dependencies": {},
"devDependencies": {
"@forgerock/treeshake-check": "workspace:*"
},
"nx": {
"tags": ["scope:sdk-effects"]
}
Expand Down
Loading
Loading