Skip to content

Commit

Permalink
chore(deps): bump (#935)
Browse files Browse the repository at this point in the history
* chore(deps): bump @readme/httpsnippet to latest

* chore(deps): bump oas to the latest

* chore(deps): npm up

* chore(deps): bump vitest + friends to latest

* chore: swap out tsimp for tsx

* ci: node version tweaks

* fix: lint
  • Loading branch information
kanadgupta authored Oct 17, 2024
1 parent 3fe2997 commit 88090bc
Show file tree
Hide file tree
Showing 12 changed files with 8,256 additions and 5,607 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20

- run: npm ci
- run: npm run build
Expand All @@ -28,8 +28,12 @@ jobs:
strategy:
matrix:
node-version:
- 18
- 20
# see the following:
# https://github.com/actions/setup-node?tab=readme-ov-file#supported-version-syntax
# https://github.com/nvm-sh/nvm/issues/1998#issuecomment-594958684
- lts/-1
- lts/*
- latest

steps:
- uses: actions/checkout@v4
Expand Down
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ packages/**/dist/

# api
packages/api/.api/
packages/api/.tsimp/
packages/api/example.js

# httpsnippet-client-api
Expand Down
13,817 changes: 8,230 additions & 5,587 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion packages/api/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.api/
.tsimp/
coverage/
dist/
node_modules/
Expand Down
12 changes: 6 additions & 6 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"attw": "attw --pack --format table-flipped",
"build": "tsc",
"build:legacy-handler": "tsc legacy-require-handler.cjs --checkJs --declaration --emitDeclarationOnly",
"build:versioned-files": "node --loader=tsimp/loader bin/buildVersionedFiles.ts",
"debug:bin": "node --loader=tsimp/loader src/bin.ts",
"build:versioned-files": "tsx bin/buildVersionedFiles.ts",
"debug:bin": "tsx src/bin.ts",
"lint:types": "tsc --noEmit",
"prebuild": "rm -rf dist/ && npm run build:versioned-files",
"postbuild": "npm run build:legacy-handler",
Expand Down Expand Up @@ -59,7 +59,7 @@
"js-yaml": "^4.1.0",
"license": "^1.0.3",
"lodash-es": "^4.17.21",
"oas": "^24.0.0",
"oas": "^25.0.1",
"ora": "^8.0.1",
"preferred-pm": "^4.0.0",
"prompts": "^2.4.2",
Expand All @@ -81,18 +81,18 @@
"@types/update-notifier": "^6.0.8",
"@types/uslug": "^1.0.4",
"@types/validate-npm-package-name": "^4.0.2",
"@vitest/coverage-v8": "^1.1.1",
"@vitest/coverage-v8": "^2.1.3",
"ajv": "^8.12.0",
"ajv-formats": "^3.0.1",
"fetch-mock": "^11.1.3",
"oas-normalize": "^11.0.1",
"openapi-types": "^12.1.3",
"tsimp": "^2.0.11",
"tsup": "^8.0.1",
"tsx": "^4.19.1",
"type-fest": "^4.9.0",
"typescript": "^5.2.2",
"unique-temp-dir": "^1.0.0",
"vitest": "^1.1.1"
"vitest": "^2.1.3"
},
"prettier": "@readme/eslint-config/prettier"
}
1 change: 1 addition & 0 deletions packages/api/src/fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export default class Fetcher {
let url;
try {
url = new URL(uri);
// eslint-disable-next-line @typescript-eslint/no-unused-vars
} catch (err) {
// If that try fails for whatever reason than the URI that we have isn't a real URL and
// we can safely attempt to look for it on the filesystem.
Expand Down
1 change: 1 addition & 0 deletions packages/api/src/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ export default class Storage {
const file = fs.readFileSync(Storage.getLockfilePath(), 'utf8');
try {
Storage.lockfile = JSON.parse(file) as Lockfile;
// eslint-disable-next-line @typescript-eslint/no-unused-vars
} catch (err) {
// If we can't parse the lock file for whatever reason then it's probably corrupted so we
// should reset it to the default.
Expand Down
6 changes: 3 additions & 3 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,19 @@
"json-schema-to-ts": "^3.0.0",
"json-schema-traverse": "^1.0.0",
"lodash.merge": "^4.6.2",
"oas": "^24.0.0",
"oas": "^25.0.1",
"remove-undefined-objects": "^5.0.0"
},
"devDependencies": {
"@api/test-utils": "file:../test-utils",
"@readme/oas-examples": "^5.12.0",
"@types/caseless": "^0.12.5",
"@types/lodash.merge": "^4.6.9",
"@vitest/coverage-v8": "^1.1.1",
"@vitest/coverage-v8": "^2.1.3",
"fetch-mock": "^11.1.3",
"get-stream": "^9.0.1",
"typescript": "^5.2.2",
"vitest": "^1.1.1"
"vitest": "^2.1.3"
},
"prettier": "@readme/eslint-config/prettier"
}
1 change: 1 addition & 0 deletions packages/core/src/lib/parseResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export default async function parseResponse<HTTPStatus extends number = number>(
if (isJSON) {
try {
data = JSON.parse(responseBody);
// eslint-disable-next-line @typescript-eslint/no-unused-vars
} catch (e) {
// If our JSON parsing failed then we can just return plaintext instead.
}
Expand Down
8 changes: 4 additions & 4 deletions packages/httpsnippet-client-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,19 @@
"reserved2": "^0.1.5"
},
"peerDependencies": {
"@readme/httpsnippet": ">=10.0.1",
"oas": "^24.0.0"
"@readme/httpsnippet": "^11.0.0",
"oas": "^25.0.1"
},
"devDependencies": {
"@readme/oas-examples": "^5.12.0",
"@readme/openapi-parser": "^2.5.0",
"@types/content-type": "^1.1.8",
"@types/stringify-object": "^4.0.5",
"@vitest/coverage-v8": "^1.1.1",
"@vitest/coverage-v8": "^2.1.3",
"camelcase": "^8.0.0",
"stringify-object": "^5.0.0",
"typescript": "^5.2.2",
"vitest": "^1.1.1"
"vitest": "^2.1.3"
},
"prettier": "@readme/eslint-config/prettier"
}
2 changes: 1 addition & 1 deletion packages/test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"caseless": "^0.12.0",
"datauri": "^4.1.0",
"formdata-to-string": "^2.0.1",
"vitest": "^1.1.1"
"vitest": "^2.1.3"
},
"devDependencies": {
"@types/caseless": "^0.12.3",
Expand Down
3 changes: 2 additions & 1 deletion packages/test-utils/vitest.matchers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ interface CustomMatchers<R = unknown> {
}

declare module 'vitest' {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-empty-object-type
interface Assertion<T = any> extends CustomMatchers<T> {}
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
interface AsymmetricMatchersContaining extends CustomMatchers {}
}

Expand Down

0 comments on commit 88090bc

Please sign in to comment.