Skip to content

Commit

Permalink
chore(deps): bump (#1041)
Browse files Browse the repository at this point in the history
## 🧰 Changes

Before:

```
Package                                Current          Wanted   Latest  Location                                      Depended by
@commitlint/cli                         19.3.0          19.4.1   19.4.1  node_modules/@commitlint/cli                  rdme
@commitlint/config-conventional         19.2.2          19.4.1   19.4.1  node_modules/@commitlint/config-conventional  rdme
@readme/eslint-config                   14.0.0          14.1.2   14.1.2  node_modules/@readme/eslint-config            rdme
@readme/oas-examples                    5.16.0          5.18.2   5.18.2  node_modules/@readme/oas-examples             rdme
@rollup/plugin-commonjs                 25.0.8          25.0.8   26.0.1  node_modules/@rollup/plugin-commonjs          rdme
@types/validator                       13.12.0         13.12.1  13.12.1  node_modules/@types/validator                 rdme
@vitest/coverage-v8                      1.6.0           1.6.0    2.0.5  node_modules/@vitest/coverage-v8              rdme
@vitest/expect                           1.6.0           1.6.0    2.0.5  node_modules/@vitest/expect                   rdme
@yao-pkg/pkg                            5.12.0          5.13.0   5.13.0  node_modules/@yao-pkg/pkg                     rdme
ajv                                     8.16.0          8.17.1   8.17.1  node_modules/ajv                              rdme
command-line-args                        5.2.1           5.2.1    6.0.0  node_modules/command-line-args                rdme
command-line-usage                       7.0.1           7.0.3    7.0.3  node_modules/command-line-usage               rdme
configstore                              6.0.0           6.0.0    7.0.0  node_modules/configstore                      rdme
debug                                    4.3.5           4.3.7    4.3.7  node_modules/debug                            rdme
eslint                                  8.57.0          8.57.0   9.10.0  node_modules/eslint                           rdme
husky                                   9.0.11           9.1.5    9.1.5  node_modules/husky                            rdme
knip                                    5.23.3          5.30.1   5.30.1  node_modules/knip                             rdme
nock                             14.0.0-beta.7  14.0.0-beta.12   13.5.5  node_modules/nock                             rdme
oas                                     24.7.0          24.9.0   24.9.0  node_modules/oas                              rdme
ora                                      6.3.1           6.3.1    8.1.0  node_modules/ora                              rdme
prettier                                 3.3.2           3.3.3    3.3.3  node_modules/prettier                         rdme
rollup                                  4.18.0          4.21.2   4.21.2  node_modules/rollup                           rdme
simple-git                              3.25.0          3.26.0   3.26.0  node_modules/simple-git                       rdme
tsx                                     4.16.0          4.19.0   4.19.0  node_modules/tsx                              rdme
type-fest                               4.26.0          4.26.1   4.26.1  node_modules/type-fest                        rdme
typescript                               5.5.3           5.6.2    5.6.2  node_modules/typescript                       rdme
undici                                  5.28.4          5.28.4   6.19.8  node_modules/undici                           rdme
update-notifier                          7.3.0           7.3.1    7.3.1  node_modules/update-notifier                  rdme
vitest                                   1.6.0           1.6.0    2.0.5  node_modules/vitest                           rdme
```

After:

```
Package                        Current          Wanted  Latest  Location                              Depended by
@rollup/plugin-commonjs         25.0.8          25.0.8  26.0.1  node_modules/@rollup/plugin-commonjs  rdme
command-line-args                5.2.1           5.2.1   6.0.0  node_modules/command-line-args        rdme
configstore                      6.0.0           6.0.0   7.0.0  node_modules/configstore              rdme
eslint                          8.57.0          8.57.0  9.10.0  node_modules/eslint                   rdme
nock                     14.0.0-beta.7  14.0.0-beta.12  13.5.5  node_modules/nock                     rdme
ora                              6.3.1           6.3.1   8.1.0  node_modules/ora                      rdme
undici                          5.28.4          5.28.4  6.19.8  node_modules/undici                   rdme
```

unable to bump nock due to nock/nock#2780
  • Loading branch information
kanadgupta authored Sep 10, 2024
1 parent 7a9d8e2 commit 687531d
Show file tree
Hide file tree
Showing 9 changed files with 2,945 additions and 2,081 deletions.
38 changes: 17 additions & 21 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,24 @@
{
"files": ["bin/*.js"],
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
}
"@typescript-eslint/no-var-requires": "off",
},
},
],
"env": {
"es2021": true,
"node": true
"node": true,
},
"parserOptions": {
"sourceType": "module"
"sourceType": "module",
},
"rules": {
"@typescript-eslint/ban-types": [
"error",
{
"types": {
// We specify `{}` in `CommandOptions` generics when those commands don't have their own
// options and it's cleaner for us to do that than `Record<string, unknown>`.
"{}": false
}
}
],
// We specify `{}` in `CommandOptions` generics when those commands don't have their own
// options and it's cleaner for us to do that than `Record<string, unknown>`.
"@typescript-eslint/no-empty-object-type": "off",

// We already have top-level error handling across the codebase, so this rule is not helpful for us.
"try-catch-failsafe/json-parse": "off",

/**
* Because our command classes have a `run` method that might not always call `this` we need to
Expand Down Expand Up @@ -57,13 +53,13 @@
"paths": [
{
"name": "ci-info",
"message": "The `ci-info` package is difficult to test because misleading results will appear when running tests in the GitHub Actions runner. Instead of importing this package directly, create a wrapper function in `lib/isCI.ts` and import that instead."
}
]
}
"message": "The `ci-info` package is difficult to test because misleading results will appear when running tests in the GitHub Actions runner. Instead of importing this package directly, create a wrapper function in `lib/isCI.ts` and import that instead.",
},
],
},
],

// This rule is only really applicable for OSS libraries and doesn't apply to rdme's case.
"readme/no-dual-exports": "off"
}
"readme/no-dual-exports": "off",
},
}
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ jobs:
# https://github.com/nvm-sh/nvm/issues/1998#issuecomment-594958684
- lts/-1
- lts/*
- 22.2 # temporarily pinning due to fetch mocking failures on node v22.3, see https://github.com/readmeio/rdme/pull/1019#issuecomment-2201147488
# - latest
- latest

steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions bin/docker.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// @ts-check
/* eslint-disable no-console */
import { execFile as unpromisifiedExecFile } from 'node:child_process';
import util from 'node:util';
import { promisify } from 'node:util';

const execFile = util.promisify(unpromisifiedExecFile);
const execFile = promisify(unpromisifiedExecFile);

/**
* Retrieves and parses the docker image metadata
Expand Down
4 changes: 2 additions & 2 deletions bin/set-major-version-tag.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#! /usr/bin/env node
// @ts-check
import { execFile as unpromisifiedExecFile } from 'node:child_process';
import util from 'node:util';
import { promisify } from 'node:util';

import { parse } from 'semver';

import pkg from '../package.json' with { type: 'json' };

const execFile = util.promisify(unpromisifiedExecFile);
const execFile = promisify(unpromisifiedExecFile);

/**
* Runs command and logs all output
Expand Down
Loading

0 comments on commit 687531d

Please sign in to comment.