Skip to content

Commit

Permalink
Update dependencies (#1213)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexis Rico <[email protected]>
Co-authored-by: SferaDev <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Alexis Rico <[email protected]>
  • Loading branch information
4 people authored Oct 12, 2023
1 parent 52556c2 commit 533e5a3
Show file tree
Hide file tree
Showing 10 changed files with 1,121 additions and 778 deletions.
34 changes: 17 additions & 17 deletions cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@
"/oclif.manifest.json"
],
"dependencies": {
"@babel/core": "^7.23.0",
"@babel/core": "^7.23.2",
"@babel/preset-react": "^7.22.15",
"@babel/preset-typescript": "^7.23.0",
"@oclif/core": "^2.15.0",
"@babel/preset-typescript": "^7.23.2",
"@oclif/core": "^3.0.7",
"@oclif/plugin-help": "^5.2.20",
"@oclif/plugin-not-found": "^2.4.2",
"@oclif/plugin-plugins": "^3.8.3",
"@rollup/plugin-auto-install": "^3.0.4",
"@rollup/plugin-commonjs": "^25.0.4",
"@rollup/plugin-node-resolve": "^15.2.1",
"@rollup/plugin-virtual": "^3.0.1",
"@oclif/plugin-not-found": "^3.0.1",
"@oclif/plugin-plugins": "^3.9.1",
"@rollup/plugin-auto-install": "^3.0.5",
"@rollup/plugin-commonjs": "^25.0.5",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-virtual": "^3.0.2",
"@types/ini": "^1.3.31",
"@types/prompts": "^2.4.5",
"@types/prompts": "^2.4.6",
"@xata.io/client": "workspace:*",
"@xata.io/codegen": "workspace:*",
"@xata.io/importer": "workspace:*",
Expand All @@ -43,7 +43,7 @@
"deepmerge": "^4.3.1",
"dotenv": "^16.3.1",
"dotenv-expand": "^10.0.0",
"edge-runtime": "^2.5.3",
"edge-runtime": "^2.5.4",
"enquirer": "^2.4.1",
"env-editor": "^1.1.0",
"ini": "^4.1.1",
Expand All @@ -55,15 +55,15 @@
"open": "^9.1.0",
"prompts": "^2.4.2",
"relaxed-json": "^1.0.3",
"rollup": "^3.29.4",
"rollup-plugin-esbuild": "^6.0.2",
"rollup": "^4.0.2",
"rollup-plugin-esbuild": "^6.1.0",
"rollup-plugin-hypothetical": "^2.1.1",
"rollup-plugin-import-cdn": "^0.2.2",
"rollup-plugin-virtual-fs": "^4.0.1-alpha.0",
"text-table": "^0.2.0",
"tmp": "^0.2.1",
"which": "^4.0.0",
"zod": "^3.22.2"
"zod": "^3.22.4"
},
"devDependencies": {
"@babel/types": "^7.23.0",
Expand All @@ -75,10 +75,10 @@
"@types/text-table": "^0.2.3",
"@types/tmp": "^0.2.4",
"@types/which": "^3.0.0",
"eslint": "^8.50.0",
"eslint": "^8.51.0",
"eslint-config-oclif": "^5.0.0",
"eslint-config-oclif-typescript": "^2.0.1",
"oclif": "^3.17.2",
"eslint-config-oclif-typescript": "^3.0.5",
"oclif": "^4.0.2",
"shx": "^0.3.4",
"ts-node": "^10.9.1",
"tslib": "^2.6.2",
Expand Down
6 changes: 3 additions & 3 deletions cli/src/utils/oclif.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Flags } from '@oclif/core';
import { FlagProps } from '@oclif/core/lib/interfaces/parser';

type EnumFlagOptions<Enum> = Omit<FlagProps, 'name'> & {
type EnumFlagOptions<Enum> = {
description?: string;
options: (Enum | string)[];
};

export const enumFlag = <Enum extends string>(options: EnumFlagOptions<Enum>) => {
return Flags.custom<Enum>(options)();
return Flags.custom<Enum>({ ...options, multiple: false })();
};
38 changes: 19 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,49 +27,49 @@
},
"homepage": "https://github.com/xataio/client-ts#readme",
"devDependencies": {
"@babel/core": "^7.23.0",
"@babel/preset-env": "^7.22.20",
"@babel/preset-typescript": "^7.23.0",
"@babel/core": "^7.23.2",
"@babel/preset-env": "^7.23.2",
"@babel/preset-typescript": "^7.23.2",
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.2",
"@openapi-codegen/cli": "^2.0.0",
"@openapi-codegen/typescript": "^7.0.1",
"@opentelemetry/api": "^1.6.0",
"@opentelemetry/exporter-trace-otlp-grpc": "^0.43.0",
"@opentelemetry/instrumentation": "^0.43.0",
"@opentelemetry/resources": "^1.17.0",
"@opentelemetry/sdk-trace-base": "^1.17.0",
"@opentelemetry/sdk-trace-node": "^1.17.0",
"@opentelemetry/semantic-conventions": "^1.17.0",
"@opentelemetry/exporter-trace-otlp-grpc": "^0.44.0",
"@opentelemetry/instrumentation": "^0.44.0",
"@opentelemetry/resources": "^1.17.1",
"@opentelemetry/sdk-trace-base": "^1.17.1",
"@opentelemetry/sdk-trace-node": "^1.17.1",
"@opentelemetry/semantic-conventions": "^1.17.1",
"@size-limit/preset-small-lib": "^9.0.0",
"@types/node": "^20.8.0",
"@typescript-eslint/eslint-plugin": "^6.7.3",
"@typescript-eslint/parser": "^6.7.3",
"@types/node": "^20.8.4",
"@typescript-eslint/eslint-plugin": "^6.7.5",
"@typescript-eslint/parser": "^6.7.5",
"doctoc": "^2.2.1",
"dotenv": "^16.3.1",
"eslint": "^8.50.0",
"eslint": "^8.51.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.28.1",
"husky": "^8.0.3",
"lint-staged": "^14.0.1",
"msw": "^1.3.2",
"prettier": "=2.8.8",
"rimraf": "^5.0.5",
"rollup": "^3.29.4",
"rollup": "^4.0.2",
"rollup-plugin-auto-external": "^2.0.0",
"rollup-plugin-dts": "^6.0.2",
"rollup-plugin-esbuild": "^6.0.2",
"rollup-plugin-dts": "^6.1.0",
"rollup-plugin-esbuild": "^6.1.0",
"rollup-plugin-node-builtins": "^2.1.2",
"rollup-plugin-node-globals": "^1.4.0",
"rollup-plugin-preserve-shebang": "^1.0.1",
"rollup-plugin-strip-code": "^0.2.7",
"size-limit": "^9.0.0",
"ts-node": "^10.9.1",
"turbo": "^1.10.14",
"turbo": "^1.10.15",
"typescript": "^5.2.2",
"vite": "^4.4.9",
"vite": "^4.4.11",
"vitest": "^0.34.6",
"zod": "^3.22.2"
"zod": "^3.22.4"
},
"lint-staged": {
"codegen/src/*.{js,ts,tsx}": [
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/util/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function getFetchImplementation(userFetch?: FetchImpl) {
const globalFetch = typeof fetch !== 'undefined' ? fetch : undefined;
// @ts-ignore - globalThis might not be a global
const globalThisFetch = typeof globalThis !== 'undefined' ? globalThis.fetch : undefined;
const fetchImpl: FetchImpl | undefined = userFetch ?? globalFetch ?? globalThisFetch;
const fetchImpl: FetchImpl | undefined = (userFetch as any) ?? (globalFetch as any) ?? (globalThisFetch as any);
if (!fetchImpl) {
/** @todo add a link after docs exist */
throw new Error(`Couldn't find a global \`fetch\`. Pass a fetch implementation explicitly.`);
Expand Down
3 changes: 1 addition & 2 deletions packages/client/src/workers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export function buildWorkerRunner<XataClient>(config: WorkerRunnerConfig) {
? `http://localhost:64749/${name}`
: `https://dispatcher.xata.workers.dev/${config.workspace}/${config.worker}/${name}`;

// @ts-ignore - This is a browser only feature - fetch will be defined in the browser
const result = await fetch(url, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
Expand All @@ -32,7 +31,7 @@ export function buildWorkerRunner<XataClient>(config: WorkerRunnerConfig) {

// TODO: Detect if not compiled yet (+ other errors)

const text = await result.text();
const text = await (result as any).text();
return deserialize<any>(text);
};
};
Expand Down
2 changes: 1 addition & 1 deletion packages/codegen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"prettier": "=2.8.8",
"ts-morph": "^20.0.0",
"typescript": "^5.2.2",
"zod": "^3.22.2"
"zod": "^3.22.4"
},
"devDependencies": {
"@types/pluralize": "^0.0.31",
Expand Down
2 changes: 1 addition & 1 deletion packages/importer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"lodash.pick": "^4.4.0",
"p-queue": "^7.4.1",
"papaparse": "^5.4.1",
"zod": "^3.22.2"
"zod": "^3.22.4"
},
"devDependencies": {
"@types/lodash.chunk": "^4.2.7",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-client-cloudflare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"url": "https://github.com/xataio/client-ts/issues"
},
"dependencies": {
"@cloudflare/workers-types": "^4.20230922.0",
"@cloudflare/workers-types": "^4.20231010.0",
"@xata.io/client": "workspace:*"
}
}
4 changes: 2 additions & 2 deletions packages/plugin-client-netlify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
"url": "https://github.com/xataio/client-ts/issues"
},
"dependencies": {
"@babel/core": "^7.23.0",
"@babel/core": "^7.23.2",
"@netlify/build": "=29.20.6",
"@xata.io/client": "workspace:*"
},
"devDependencies": {
"@types/babel__core": "^7.20.2",
"@types/node": "^20.8.0",
"@types/node": "^20.8.4",
"typescript": "^5.2.2"
}
}
Loading

0 comments on commit 533e5a3

Please sign in to comment.