Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sywhb committed Mar 8, 2024
1 parent 13876e5 commit 59f1857
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
node-version: [18.x, 20.x]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ The `Omnivore` class accepts an options object with the following properties:

## Requirements

- Node.js 16 or later
- Node.js 18 or later

## License

Expand Down
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "@omnivore-app/api",
"version": "1.0.0",
"version": "1.0.1",
"description": "Omnivore API Client Library for Node.js",
"main": "./dist/src/index.js",
"types": "./dist/src/index.d.ts",
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"files": [
"dist/src"
Expand All @@ -18,8 +18,8 @@
],
"scripts": {
"build": "tsc",
"lint": "eslint . --ext .ts",
"lint:fix": "eslint . --ext .ts --fix"
"lint": "eslint .",
"lint:fix": "eslint . --fix"
},
"repository": {
"type": "git",
Expand All @@ -32,21 +32,21 @@
},
"homepage": "https://github.com/omnivore-app/omnivore-api#readme",
"dependencies": {
"gql.tada": "^1.3.1",
"urql": "^4.0.6"
"@urql/core": "^4.3.0",
"gql.tada": "^1.3.1"
},
"devDependencies": {
"@0no-co/graphqlsp": "^1.4.2",
"@typescript-eslint/eslint-plugin": "^7.1.0",
"@typescript-eslint/parser": "^7.1.0",
"@0no-co/graphqlsp": "^1.4.3",
"@typescript-eslint/eslint-plugin": "^7.1.1",
"@typescript-eslint/parser": "^7.1.1",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"prettier": "^3.2.5",
"typescript": "^5.3.3"
"typescript": "5.3.3"
},
"volta": {
"node": "18.16.1",
"node": "18.18.0",
"yarn": "1.22.19"
}
}
2 changes: 1 addition & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Client, fetchExchange } from 'urql'
import { Client, fetchExchange } from '@urql/core'
import { buildOmnivoreError } from './errors'
import {
DeleteMutation,
Expand Down
2 changes: 1 addition & 1 deletion src/errors.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CombinedError } from 'urql'
import { CombinedError } from '@urql/core'

// Error codes are used to identify the type of error that occurred
export enum OmnivoreErrorCode {
Expand Down
7 changes: 3 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es2020",
"module": "CommonJS",
"target": "es2022",
"rootDir": ".",
"outDir": "dist",
"esModuleInterop": true,
Expand All @@ -17,6 +17,5 @@
}
]
},
"include": ["src/**/*.ts"],
"exclude": ["node_modules"]
"include": ["src/**/*.ts"]
}

0 comments on commit 59f1857

Please sign in to comment.