Skip to content

Commit

Permalink
Update TypeScript, ESLint, Babel and Jest dependencies (#1012)
Browse files Browse the repository at this point in the history
* chore: Update babel/eslint/prettier/typescript dependencies

* chore: fix eslint warnings

* chore: Update Jest snapshots

A recent Jest update changed the way it formats snapshots. This commit updates
the snapshots to the new format without changing the tests themselves.

* chore: pin transitive @types/istanbul-lib-report dependency

* chore: use node 16 image for CI
  • Loading branch information
chaance committed Nov 19, 2022
1 parent 718b2ef commit e0459f7
Show file tree
Hide file tree
Showing 24 changed files with 2,939 additions and 3,398 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Expand Up @@ -2,7 +2,7 @@ version: 3
jobs:
test:
docker:
- image: circleci/node:12.22.2
- image: cimg/node:16.16.0
working_directory: ~/repo
steps:
- checkout
Expand Down Expand Up @@ -40,7 +40,7 @@ jobs:

typescript:
docker:
- image: circleci/node:12.22.2
- image: cimg/node:16.16.0
working_directory: ~/repo
steps:
- checkout
Expand All @@ -58,7 +58,7 @@ jobs:

lint:
docker:
- image: circleci/node:12.22.2
- image: cimg/node:16.16.0
working_directory: ~/repo
steps:
- checkout
Expand Down
3 changes: 2 additions & 1 deletion .eslintrc
Expand Up @@ -13,8 +13,9 @@
"no-template-curly-in-string": "off",
"camelcase": "off",
"import/no-duplicates": "off",
"no-useless-constructor": "off",
"no-unusued-vars": "off",
"no-use-before-define": "off",
"no-useless-constructor": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{ "argsIgnorePattern": "^_", "ignoreRestSiblings": true }
Expand Down
44 changes: 22 additions & 22 deletions package.json
Expand Up @@ -34,38 +34,38 @@
],
"license": "MIT",
"dependencies": {
"@babel/cli": "^7.10.4",
"@babel/core": "^7.10.4",
"@babel/preset-env": "^7.10.4",
"@babel/preset-typescript": "^7.10.4",
"@babel/runtime": "^7.10.4",
"@babel/cli": "^7.19.3",
"@babel/core": "^7.20.2",
"@babel/preset-env": "^7.20.2",
"@babel/preset-typescript": "^7.18.6",
"@babel/runtime": "^7.20.1",
"@manypkg/cli": "^0.19.1",
"@preconstruct/cli": "^1.1.26",
"@types/fs-extra": "^5.1.0",
"@types/jest": "^24.0.12",
"@types/jest-in-case": "^1.0.1",
"@types/jest-in-case": "^1.0.6",
"@types/js-yaml": "^3.12.1",
"@types/lodash": "^4.14.136",
"@types/meow": "^5.0.0",
"@types/prettier": "^2.7.0",
"@types/prettier": "^2.7.1",
"@types/semver": "^6.0.0",
"@typescript-eslint/eslint-plugin": "^3.5.0",
"@typescript-eslint/parser": "^3.5.0",
"@typescript-eslint/eslint-plugin": "^5.43.0",
"@typescript-eslint/parser": "^5.43.0",
"codecov": "^3.6.5",
"eslint": "^6.6.0",
"eslint-config-prettier": "^6.11.0",
"eslint-config-standard": "^14.1.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-jest": "^23.0.2",
"eslint-plugin-node": "^10.0.0",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"jest": "^25.1.0",
"jest-junit": "^6.4.0",
"jest-watch-typeahead": "^0.4.2",
"eslint": "^8.28.0",
"eslint-config-prettier": "^8.5.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^27.1.5",
"eslint-plugin-n": "^15.5.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-standard": "^5.0.0",
"jest": "^29.3.1",
"jest-junit": "^15.0.0",
"jest-watch-typeahead": "^2.2.1",
"prettier": "^2.7.1",
"typescript": "^4.5.2"
"typescript": "^4.8.4"
},
"preconstruct": {
"packages": [
Expand Down
2 changes: 1 addition & 1 deletion packages/apply-release-plan/package.json
Expand Up @@ -7,7 +7,7 @@
"license": "MIT",
"repository": "https://github.com/changesets/changesets/tree/main/packages/apply-release-plan",
"dependencies": {
"@babel/runtime": "^7.10.4",
"@babel/runtime": "^7.20.1",
"@changesets/config": "^2.2.0",
"@changesets/get-version-range-type": "^0.3.2",
"@changesets/git": "^1.5.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/apply-release-plan/src/index.test.ts
Expand Up @@ -2782,11 +2782,11 @@ describe("apply release plan", () => {
gitCmd.stdout.toString().includes("nothing to commit")
).toEqual(true);
expect((console.error as any).mock.calls).toMatchInlineSnapshot(`
Array [
Array [
[
[
"The following error was encountered while generating changelog entries",
],
Array [
[
"We have escaped applying the changesets, and no files should have been affected",
],
]
Expand Down
2 changes: 1 addition & 1 deletion packages/assemble-release-plan/package.json
Expand Up @@ -7,7 +7,7 @@
"license": "MIT",
"repository": "https://github.com/changesets/changesets/tree/main/packages/assemble-release-plan",
"dependencies": {
"@babel/runtime": "^7.10.4",
"@babel/runtime": "^7.20.1",
"@changesets/errors": "^0.1.4",
"@changesets/get-dependents-graph": "^1.3.4",
"@changesets/types": "^5.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Expand Up @@ -30,7 +30,7 @@
},
"license": "MIT",
"dependencies": {
"@babel/runtime": "^7.10.4",
"@babel/runtime": "^7.20.1",
"@changesets/apply-release-plan": "^6.1.2",
"@changesets/assemble-release-plan": "^5.2.2",
"@changesets/changelog-git": "^0.1.13",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/publish/publishPackages.ts
Expand Up @@ -174,7 +174,7 @@ async function getUnpublishedPackages(
return {
name: packageJson.name,
localVersion: packageJson.version,
publishedState: publishedState,
publishedState,
publishedVersions: response.pkgInfo.versions || [],
};
})
Expand Down
32 changes: 16 additions & 16 deletions packages/cli/src/commands/status/__tests__/status.ts
Expand Up @@ -52,12 +52,12 @@ describe("status", () => {
);
const releaseObj = await status(cwd, {}, defaultConfig);
expect(releaseObj).toMatchInlineSnapshot(`
Object {
"changesets": Array [
Object {
{
"changesets": [
{
"id": "ascii",
"releases": Array [
Object {
"releases": [
{
"name": "pkg-a",
"type": "minor",
},
Expand All @@ -66,9 +66,9 @@ describe("status", () => {
},
],
"preState": undefined,
"releases": Array [
Object {
"changesets": Array [
"releases": [
{
"changesets": [
"ascii",
],
"name": "pkg-a",
Expand Down Expand Up @@ -215,22 +215,22 @@ describe("status", () => {

expect(probsUndefined).toEqual(undefined);
expect(JSON.parse(releaseObj)).toMatchInlineSnapshot(`
Object {
"changesets": Array [
Object {
{
"changesets": [
{
"id": "ascii",
"releases": Array [
Object {
"releases": [
{
"name": "pkg-a",
"type": "minor",
},
],
"summary": "This is a summary",
},
],
"releases": Array [
Object {
"changesets": Array [
"releases": [
{
"changesets": [
"ascii",
],
"name": "pkg-a",
Expand Down

0 comments on commit e0459f7

Please sign in to comment.