Skip to content

Commit

Permalink
Merge pull request #60 from appannie/bump_deps
Browse files Browse the repository at this point in the history
bump deps
  • Loading branch information
ZigZagT authored Mar 11, 2022
2 parents e74d09e + fcdf201 commit 2f203e8
Show file tree
Hide file tree
Showing 7 changed files with 1,691 additions and 1,964 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,9 @@ node_modules
coverage
packages/*/lib
packages/*/README.md
.yarn/*
!.yarn/patches
!.yarn/releases
!.yarn/plugins
!.yarn/sdks
!.yarn/versions
1 change: 0 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module.exports = {
preset: 'ts-jest',
setupFiles: ['./jest.setup.js'],
testEnvironment: 'node',
testPathIgnorePatterns: ['/node_modules/', '/output/'],
collectCoverage: true,
Expand Down
1 change: 0 additions & 1 deletion jest.setup.js

This file was deleted.

42 changes: 21 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,32 @@
"packages/*"
],
"devDependencies": {
"@testing-library/react": "^11.2.6",
"@testing-library/react-hooks": "^5.1.2",
"@babel/preset-typescript": "^7.16.7",
"@testing-library/react": "^12.1.4",
"@testing-library/react-hooks": "^7.0.2",
"@types/create-hash": "^1.2.2",
"@types/jest": "^26.0.23",
"@types/node": "^15.0.1",
"@types/jest": "^27.4.1",
"@types/node": "^17.0.21",
"@types/testing-library__react": "^10.2.0",
"@types/testing-library__react-hooks": "^4.0.0",
"@typescript-eslint/eslint-plugin": "^4.22.0",
"@typescript-eslint/parser": "^4.22.0",
"conventional-changelog-conventionalcommits": "^4.6.0",
"eslint": "^7.25.0",
"eslint-config-prettier": "^8.3.0",
"@typescript-eslint/eslint-plugin": "^5.14.0",
"@typescript-eslint/parser": "^5.14.0",
"conventional-changelog-conventionalcommits": "^4.6.3",
"eslint": "^8.10.0",
"eslint-config-prettier": "^8.5.0",
"eslint-formatter-friendly": "^7.0.0",
"eslint-plugin-jest": "^24.3.6",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-react": "^7.23.2",
"eslint-plugin-react-hooks": "^4.2.0",
"husky": "^6.0.0",
"jest": "^26.6.3",
"eslint-plugin-jest": "^26.1.1",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.29.3",
"eslint-plugin-react-hooks": "^4.3.0",
"husky": "^7.0.4",
"jest": "^27.5.1",
"lerna": "^4.0.0",
"lint-staged": "^10.5.4",
"prettier": "^2.2.1",
"lint-staged": "^12.3.5",
"prettier": "^2.5.1",
"react": "^17.0.2",
"react-test-renderer": "^17.0.2",
"ts-jest": "^26.5.5",
"ts-polyfill": "^3.8.2",
"typescript": "^4.2.4"
"typescript": "^4.6.2"
},
"resolutions": {
"@types/react": "^17.0.2",
Expand Down Expand Up @@ -62,6 +61,7 @@
"@appannie/ab-testing": "link:packages/ab-testing",
"@appannie/ab-testing-hash-object": "link:packages/ab-testing-hash-object",
"@appannie/react-ab-testing": "link:packages/react-ab-testing",
"py-ab-testing": "link:packages/py-ab-testing"
"py-ab-testing": "link:packages/py-ab-testing",
"ts-jest": "^27.1.3"
}
}
9 changes: 4 additions & 5 deletions packages/react-ab-testing/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@ export const ABTestingController: React.FunctionComponent<{
userProfile: { [key: string]: string };
children: ReactNode;
}> = ({ config, userId, userProfile, children }) => {
const experiments = React.useMemo(() => new Experiments(config, userId, userProfile), [
config,
userId,
userProfile,
]);
const experiments = React.useMemo(
() => new Experiments(config, userId, userProfile),
[config, userId, userProfile]
);
return <ABTestingContext.Provider value={experiments}>{children}</ABTestingContext.Provider>;
};

Expand Down
47 changes: 30 additions & 17 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,32 @@
{
"$schema": "http://json.schemastore.org/tsconfig",
"compilerOptions": {
"module": "commonjs",
"target": "ES2015",
"lib": ["ES2019", "dom"],
"jsx": "react",
"sourceMap": false,
"allowJs": false,
"noImplicitAny": true,
"esModuleInterop": true,
"moduleResolution": "node",
"strict": true,
"declaration": true,
"downlevelIteration": true,
"typeRoots": ["./node_modules/@types", "./@types"]
},
"exclude": ["**/*.test.ts", "**/test.config.ts", "node_modules", "**/build/*", "**/*.d.ts"]
"$schema": "http://json.schemastore.org/tsconfig",
"compilerOptions": {
"module": "commonjs",
"target": "ES2015",
"lib": [
"ES2019",
"dom"
],
"jsx": "react",
"sourceMap": true,
"allowJs": false,
"noImplicitAny": true,
"esModuleInterop": true,
"moduleResolution": "node",
"strictNullChecks": true,
"strict": true,
"declaration": true,
"downlevelIteration": true,
"typeRoots": [
"./node_modules/@types",
"./@types"
]
},
"exclude": [
"**/*.test.ts",
"**/test.config.ts",
"node_modules",
"**/build/*",
"**/*.d.ts"
]
}
Loading

0 comments on commit 2f203e8

Please sign in to comment.