Skip to content

Commit

Permalink
chore(deps): bump (#735)
Browse files Browse the repository at this point in the history
* chore(deps): bump vitest

* chore(deps): npm up

* fix: httpsnippet build fixes

* chore(deps): bump eslint config

* chore(deps): bump oas and fix up everything to get it working

* chore(deps): bump make-dir

* chore(deps): bump remove-undefined-objects

* Revert "chore(deps): bump remove-undefined-objects"

This reverts commit 2aff943.
  • Loading branch information
kanadgupta authored Sep 21, 2023
1 parent 5a947b9 commit ee1b44d
Show file tree
Hide file tree
Showing 54 changed files with 6,552 additions and 6,904 deletions.
3 changes: 3 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,6 @@ updates:
- dependency-name: stringify-object
versions:
- '>= 4'
- dependency-name: '@types/stringify-object'
versions:
- '>= 4'
13,321 changes: 6,482 additions & 6,839 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"devDependencies": {
"@commitlint/cli": "^17.6.6",
"@commitlint/config-conventional": "^17.7.0",
"@readme/eslint-config": "^12.2.1",
"@readme/eslint-config": "^13.0.1",
"alex": "^11.0.1",
"conventional-changelog-cli": "^4.1.0",
"eslint": "^8.48.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
"lodash.deburr": "^4.1.0",
"lodash.setwith": "^4.3.2",
"lodash.startcase": "^4.4.0",
"make-dir": "^3.1.0",
"oas": "^20.4.0",
"make-dir": "^4.0.0",
"oas": "^21.1.1",
"ora": "^5.4.1",
"prompts": "^2.4.2",
"semver": "^7.3.8",
Expand All @@ -75,7 +75,7 @@
"type-fest": "^4.3.1",
"typescript": "^5.2.2",
"unique-temp-dir": "^1.0.0",
"vitest": "^0.34.1"
"vitest": "^0.34.5"
},
"prettier": "@readme/eslint-config/prettier"
}
2 changes: 1 addition & 1 deletion packages/api/src/codegen/languages/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type Storage from '../../storage';
import type { InstallerOptions } from '../language';
import type Oas from 'oas';
import type { Operation } from 'oas';
import type { HttpMethods, SchemaObject } from 'oas/dist/rmoas.types';
import type { HttpMethods, SchemaObject } from 'oas/rmoas.types';
import type { SemVer } from 'semver';
import type {
ClassDeclaration,
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/fetcher.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { OASDocument } from 'oas/dist/rmoas.types';
import type { OASDocument } from 'oas/rmoas.types';

import fs from 'node:fs';
import path from 'node:path';
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/storage.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { OASDocument } from 'oas/dist/rmoas.types';
import type { OASDocument } from 'oas/rmoas.types';

import fs from 'node:fs';
import path from 'node:path';
Expand Down
2 changes: 1 addition & 1 deletion packages/api/test/storage.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { OASDocument } from 'oas/dist/rmoas.types';
import type { OASDocument } from 'oas/rmoas.types';

import assert from 'node:assert';
import fs from 'node:fs/promises';
Expand Down
2 changes: 2 additions & 0 deletions packages/api/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
"declaration": true,
"esModuleInterop": true,
"lib": ["DOM", "DOM.Iterable", "ES2020"],
"module": "NodeNext",
"noImplicitAny": true,
"outDir": "dist/",
"skipLibCheck": true,
"strict": true,
"useUnknownInCatchVariables": false
},
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"get-stream": "^6.0.1",
"json-schema-traverse": "^1.0.0",
"lodash.merge": "^4.6.2",
"oas": "^20.10.3",
"oas": "^21.1.1",
"remove-undefined-objects": "^3.0.0"
},
"devDependencies": {
Expand All @@ -44,7 +44,7 @@
"@vitest/coverage-v8": "^0.34.4",
"fetch-mock": "^9.11.0",
"typescript": "^5.2.2",
"vitest": "^0.34.4"
"vitest": "^0.34.5"
},
"prettier": "@readme/eslint-config/prettier"
}
2 changes: 1 addition & 1 deletion packages/core/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Har } from 'har-format';
import type Oas from 'oas';
import type { Operation } from 'oas';
import type { HttpMethods } from 'oas/dist/rmoas.types';
import type { HttpMethods } from 'oas/rmoas.types';

import oasToHar from '@readme/oas-to-har';
import fetchHar from 'fetch-har';
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/lib/getJSONSchemaDefaults.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SchemaWrapper } from 'oas/dist/operation/get-parameters-as-json-schema';
import type { SchemaObject } from 'oas/dist/rmoas.types';
import type { SchemaWrapper } from 'oas/operation/get-parameters-as-json-schema';
import type { SchemaObject } from 'oas/rmoas.types';

import traverse from 'json-schema-traverse';

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/lib/prepareAuth.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable no-underscore-dangle */
import type { Operation } from 'oas';
import type { KeyedSecuritySchemeObject } from 'oas/dist/rmoas.types';
import type { KeyedSecuritySchemeObject } from 'oas/rmoas.types';

export default function prepareAuth(authKey: (number | string)[], operation: Operation) {
if (authKey.length === 0) {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/lib/prepareParams.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { ReadStream } from 'node:fs';
import type { Operation } from 'oas';
import type { ParameterObject, SchemaObject } from 'oas/dist/rmoas.types';
import type { ParameterObject, SchemaObject } from 'oas/rmoas.types';

import fs from 'node:fs';
import path from 'node:path';
Expand Down
2 changes: 1 addition & 1 deletion packages/core/test/lib/prepareAuth.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { OASDocument } from 'oas/dist/rmoas.types';
import type { OASDocument } from 'oas/rmoas.types';

import loadSpec from '@api/test-utils/load-spec';
import Oas from 'oas';
Expand Down
2 changes: 2 additions & 0 deletions packages/core/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
"declaration": true,
"esModuleInterop": true,
"lib": ["DOM", "DOM.Iterable", "ES2020"],
"module": "NodeNext",
"noImplicitAny": true,
"outDir": "dist/",
"skipLibCheck": true,
"strict": true
},
"include": ["./src/**/*"]
Expand Down
6 changes: 3 additions & 3 deletions packages/httpsnippet-client-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@
},
"peerDependencies": {
"@readme/httpsnippet": ">=4",
"oas": "^20.0.0"
"oas": "^21.1.1"
},
"devDependencies": {
"@readme/oas-examples": "^5.12.0",
"@readme/openapi-parser": "^2.5.0",
"@types/content-type": "^1.1.6",
"@types/stringify-object": "^4.0.2",
"@types/stringify-object": "^3.3.1",
"@vitest/coverage-v8": "^0.34.4",
"typescript": "^5.2.2",
"vitest": "^0.34.1"
"vitest": "^0.34.5"
},
"prettier": "@readme/eslint-config/prettier"
}
8 changes: 4 additions & 4 deletions packages/httpsnippet-client-api/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { ReducedHelperObject } from '@readme/httpsnippet/dist/helpers/reducer';
import type { Client } from '@readme/httpsnippet/dist/targets/targets';
import type { ReducedHelperObject } from '@readme/httpsnippet/helpers/reducer';
import type { Client } from '@readme/httpsnippet/targets';
import type { Operation } from 'oas';
import type { HttpMethods, OASDocument } from 'oas/dist/rmoas.types';
import type { HttpMethods, OASDocument } from 'oas/rmoas.types';

import { CodeBuilder } from '@readme/httpsnippet/dist/helpers/code-builder';
import { CodeBuilder } from '@readme/httpsnippet/helpers/code-builder';
import contentType from 'content-type';
import Oas, { utils } from 'oas';
import stringifyObject from 'stringify-object';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test';
import type { OASDocument } from 'oas/dist/rmoas.types';
import type { OASDocument } from 'oas/rmoas.types';

import definition from './openapi.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test';
import type { OASDocument } from 'oas/dist/rmoas.types';
import type { OASDocument } from 'oas/rmoas.types';

import definition from './openapi.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test';
import type { OASDocument } from 'oas/dist/rmoas.types';
import type { OASDocument } from 'oas/rmoas.types';

import definition from '@readme/oas-examples/3.0/json/security.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test';
import type { OASDocument } from 'oas/dist/rmoas.types';
import type { OASDocument } from 'oas/rmoas.types';

import definition from '@readme/oas-examples/3.0/json/security.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test';
import type { OASDocument } from 'oas/dist/rmoas.types';
import type { OASDocument } from 'oas/rmoas.types';

import definition from '@readme/oas-examples/3.0/json/readme.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test';
import type { OASDocument } from 'oas/dist/rmoas.types';
import type { OASDocument } from 'oas/rmoas.types';

import definition from '@readme/oas-examples/3.0/json/readme.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test';
import type { OASDocument } from 'oas/dist/rmoas.types';
import type { OASDocument } from 'oas/rmoas.types';

import definition from '@readme/oas-examples/3.0/json/readme.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test';
import type { OASDocument } from 'oas/dist/rmoas.types';
import type { OASDocument } from 'oas/rmoas.types';

import definition from '@readme/oas-examples/3.0/json/security.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test';
import type { OASDocument } from 'oas/dist/rmoas.types';
import type { OASDocument } from 'oas/rmoas.types';

import definition from '@readme/oas-examples/3.0/json/security.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test';
import type { OASDocument } from 'oas/dist/rmoas.types';
import type { OASDocument } from 'oas/rmoas.types';

import definition from './openapi.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test';
import type { OASDocument } from 'oas/dist/rmoas.types';
import type { OASDocument } from 'oas/rmoas.types';

import definition from './openapi.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test';
import type { OASDocument } from 'oas/dist/rmoas.types';
import type { OASDocument } from 'oas/rmoas.types';

import definition from './openapi.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test';
import type { OASDocument } from 'oas/dist/rmoas.types';
import type { OASDocument } from 'oas/rmoas.types';

import definition from './openapi.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test';
import type { OASDocument } from 'oas/dist/rmoas.types';
import type { OASDocument } from 'oas/rmoas.types';

import definition from './openapi.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test';
import type { OASDocument } from 'oas/dist/rmoas.types';
import type { OASDocument } from 'oas/rmoas.types';

import definition from './openapi.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test';
import type { OASDocument } from 'oas/dist/rmoas.types';
import type { OASDocument } from 'oas/rmoas.types';

import definition from './openapi.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test';
import type { OASDocument } from 'oas/dist/rmoas.types';
import type { OASDocument } from 'oas/rmoas.types';

import definition from './openapi.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test';
import type { OASDocument } from 'oas/dist/rmoas.types';
import type { OASDocument } from 'oas/rmoas.types';

import definition from './openapi.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test';
import type { OASDocument } from 'oas/dist/rmoas.types';
import type { OASDocument } from 'oas/rmoas.types';

import definition from './openapi.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test';
import type { OASDocument } from 'oas/dist/rmoas.types';
import type { OASDocument } from 'oas/rmoas.types';

import definition from './openapi.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test';
import type { OASDocument } from 'oas/dist/rmoas.types';
import type { OASDocument } from 'oas/rmoas.types';

import definition from './openapi.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test';
import type { OASDocument } from 'oas/dist/rmoas.types';
import type { OASDocument } from 'oas/rmoas.types';

import definition from './openapi.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test';
import type { OASDocument } from 'oas/dist/rmoas.types';
import type { OASDocument } from 'oas/rmoas.types';

import definition from './openapi.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test';
import type { OASDocument } from 'oas/dist/rmoas.types';
import type { OASDocument } from 'oas/rmoas.types';

import definition from './openapi.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test';
import type { OASDocument } from 'oas/dist/rmoas.types';
import type { OASDocument } from 'oas/rmoas.types';

import definition from './openapi.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test';
import type { OASDocument } from 'oas/dist/rmoas.types';
import type { OASDocument } from 'oas/rmoas.types';

import definition from './openapi.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test';
import type { OASDocument } from 'oas/dist/rmoas.types';
import type { OASDocument } from 'oas/rmoas.types';

import definition from './openapi.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test';
import type { OASDocument } from 'oas/dist/rmoas.types';
import type { OASDocument } from 'oas/rmoas.types';

import definition from '@readme/oas-examples/3.0/json/petstore.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test';
import type { OASDocument } from 'oas/dist/rmoas.types';
import type { OASDocument } from 'oas/rmoas.types';

import definition from './openapi.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test';
import type { OASDocument } from 'oas/dist/rmoas.types';
import type { OASDocument } from 'oas/rmoas.types';

import definition from './openapi.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test';
import type { OASDocument } from 'oas/dist/rmoas.types';
import type { OASDocument } from 'oas/rmoas.types';

import definition from './openapi.json';

Expand Down
Loading

0 comments on commit ee1b44d

Please sign in to comment.