Skip to content

Commit

Permalink
Merge pull request #771 from xeroxinteractive/renovate/all-minor-patch
Browse files Browse the repository at this point in the history
BREAKING CHANGE: minimum node 16 + Update all non-major dependencies
  • Loading branch information
AndrewLeedham authored Aug 15, 2023
2 parents 3630c82 + 9e820f7 commit 8947755
Show file tree
Hide file tree
Showing 9 changed files with 596 additions and 298 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
node-version: [16.x, 18.x, 20.x]

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
main-branch-name: 'next'
- uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: 18.x
- uses: bahmutov/npm-install@v1
- run: yarn global add nx
- run: nx affected:lint
Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"author": "Andrew Leedham <[email protected]>",
"license": "MIT",
"engines": {
"node": ">=14"
"node": ">=16"
},
"scripts": {
"test": "nx run-many --all --target=test",
Expand All @@ -28,25 +28,25 @@
"@nrwl/js": "16.6.0",
"@nrwl/linter": "16.6.0",
"@nrwl/node": "16.6.0",
"@nrwl/nx-cloud": "16.1.0",
"@nrwl/nx-cloud": "16.3.0",
"@nrwl/workspace": "16.6.0",
"@types/jest": "29.5.3",
"@types/node": "18.17.5",
"@types/node-fetch": "2.6.4",
"@types/semver": "7.5.0",
"@xerox/eslint-config": "5.0.3",
"@xerox/prettier-config": "4.0.0",
"@xerox/eslint-config": "5.0.6",
"@xerox/prettier-config": "4.0.3",
"auto": "10.46.0",
"eslint": "8.45.0",
"eslint-import-resolver-typescript": "3.5.5",
"eslint-plugin-import": "2.27.5",
"eslint": "8.47.0",
"eslint-import-resolver-typescript": "3.6.0",
"eslint-plugin-import": "2.28.0",
"jest": "29.6.2",
"jest-circus": "29.6.2",
"jest-package-audit": "5.0.3",
"lerna": "7.1.5",
"mockdate": "3.0.5",
"nx": "16.6.0",
"prettier": "2.8.8",
"prettier": "3.0.2",
"ts-jest": "29.1.1",
"ts-node": "10.9.1",
"typescript": "5.1.6"
Expand All @@ -57,7 +57,7 @@
"root"
],
"dependencies": {
"tslib": "2.6.0"
"tslib": "2.6.1"
},
"resolutions": {
"jsonwebtoken": ">=9.0.0"
Expand Down
11 changes: 7 additions & 4 deletions packages/adobe-analytics/library/__tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,13 @@ describe('writeBrowserslistStats', () => {
beforeAll(() => {
genericStats = Object.entries(getBaseStats()).reduce(
(browsers, [key, value]) => {
browsers[key] = Object.keys(value).reduce((versions, cur) => {
versions[cur] = expect.any(Number);
return versions;
}, {} as { [version: string]: number });
browsers[key] = Object.keys(value).reduce(
(versions, cur) => {
versions[cur] = expect.any(Number);
return versions;
},
{} as { [version: string]: number }
);
return browsers;
},
{} as GenericStats
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ test('HTTP error', async () => {
ok: false,
statusText: 'Forbidden',
status: 403,
} as Partial<Response> as Response)
}) as Partial<Response> as Response
);
await expect(getAnalyticsResponse(mockOptions)).rejects.toThrow(
new ResponseError('Forbidden', 403)
Expand All @@ -69,7 +69,7 @@ test('Fetch error', async () => {
throw mockFetchError;
},
ok: true,
} as Partial<Response> as Response)
}) as Partial<Response> as Response
);
await expect(getAnalyticsResponse(mockOptions)).rejects.toThrow(
mockFetchError
Expand Down
11 changes: 7 additions & 4 deletions packages/adobe-analytics/library/library/getBaseStats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,13 @@ export default function getBaseStats(): Stats {
return b[1] - a[1];
}
})
.reduce((versions, [version]) => {
versions[version] = 0;
return versions;
}, {} as { [version: string]: number });
.reduce(
(versions, [version]) => {
versions[version] = 0;
return versions;
},
{} as { [version: string]: number }
);
}
return stats;
}, baseStats);
Expand Down
6 changes: 3 additions & 3 deletions packages/adobe-analytics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
"license": "MIT",
"type": "commonjs",
"engines": {
"node": ">=14"
"node": ">=16"
},
"dependencies": {
"@types/caniuse-lite": "*",
"@adobe/jwt-auth": "*",
"@types/yargs": "*",
"browserslist": "4.21.9",
"caniuse-lite": "1.0.30001516",
"browserslist": "4.21.10",
"caniuse-lite": "1.0.30001520",
"moment": "2.29.4",
"node-fetch": "2.6.12",
"ora": "6.3.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/browserstack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"dependencies": {
"@types/node-fetch": "*",
"browserslist": "4.21.9",
"browserslist": "4.21.10",
"node-fetch": "2.6.12"
}
}
Loading

0 comments on commit 8947755

Please sign in to comment.