Skip to content

Commit

Permalink
refactor: remove AppInsights for React (#5742)
Browse files Browse the repository at this point in the history
  • Loading branch information
gao-sun authored Apr 18, 2024
1 parent fec3c0d commit c1c746b
Show file tree
Hide file tree
Showing 14 changed files with 89 additions and 956 deletions.
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

0 comments on commit c1c746b

Please sign in to comment.