Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: remove AppInsights for React #5742

Merged
merged 1 commit into from
Apr 18, 2024
Merged
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
5 changes: 5 additions & 0 deletions .changeset/ten-steaks-melt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@logto/app-insights": major
---

remove application insights for react
22 changes: 1 addition & 21 deletions packages/app-insights/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
"./*": {
"import": "./lib/*.js",
"types": "./lib/*.d.ts"
},
"./react": {
"import": "./lib/react/index.js",
"types": "./lib/react/index.d.ts"
}
},
"publishConfig": {
Expand All @@ -34,46 +30,30 @@
},
"devDependencies": {
"@silverhand/eslint-config": "5.0.0",
"@silverhand/eslint-config-react": "5.0.0",
"@silverhand/ts-config": "5.0.0",
"@silverhand/ts-config-react": "5.0.0",
"@types/node": "^20.9.5",
"@types/react": "^18.0.31",
"@vitest/coverage-v8": "^1.4.0",
"eslint": "^8.44.0",
"history": "^5.3.0",
"lint-staged": "^15.0.0",
"prettier": "^3.0.0",
"react": "^18.0.0",
"typescript": "^5.3.3",
"vitest": "^1.4.0"
},
"engines": {
"node": "^20.9.0"
},
"eslintConfig": {
"extends": "@silverhand/react"
"extends": "@silverhand"
},
"prettier": "@silverhand/eslint-config/.prettierrc",
"dependencies": {
"@microsoft/applicationinsights-clickanalytics-js": "^3.1.2",
"@microsoft/applicationinsights-react-js": "^17.1.2",
"@microsoft/applicationinsights-web": "^3.1.2",
"@silverhand/essentials": "^2.9.0",
"applicationinsights": "^2.9.5"
},
"peerDependencies": {
"history": "^5.3.0",
"react": "^18.0.0",
"tslib": "^2.4.1"
},
"peerDependenciesMeta": {
"history": {
"optional": true
},
"react": {
"optional": true
},
"tslib": {
"optional": true
}
Expand Down
48 changes: 0 additions & 48 deletions packages/app-insights/src/react/AppInsightsBoundary.tsx

This file was deleted.

137 changes: 0 additions & 137 deletions packages/app-insights/src/react/AppInsightsReact.ts

This file was deleted.

47 changes: 0 additions & 47 deletions packages/app-insights/src/react/TrackOnce.tsx

This file was deleted.

61 changes: 0 additions & 61 deletions packages/app-insights/src/react/context.tsx

This file was deleted.

5 changes: 0 additions & 5 deletions packages/app-insights/src/react/index.ts

This file was deleted.

5 changes: 0 additions & 5 deletions packages/app-insights/src/react/utils.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/app-insights/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@silverhand/ts-config-react/tsconfig.base",
"extends": "@silverhand/ts-config/tsconfig.base",
"compilerOptions": {
"outDir": "lib",
"types": ["node"],
Expand Down
1 change: 0 additions & 1 deletion packages/experience/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const config: Config.InitialOptions = {
},
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
'^@logto/app-insights/(.*)$': '<rootDir>/../app-insights/lib/$1',
'^@logto/shared/(.*)$': '<rootDir>/../shared/lib/$1',
'\\.module\\.(css|sass|scss)$': 'identity-obj-proxy',
},
Expand Down
1 change: 0 additions & 1 deletion packages/experience/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
},
"devDependencies": {
"@jest/types": "^29.5.0",
"@logto/app-insights": "workspace:^1.4.0",
"@logto/connector-kit": "workspace:^3.0.0",
"@logto/core-kit": "workspace:^2.4.0",
"@logto/language-kit": "workspace:^1.1.0",
Expand Down
Loading
Loading