Skip to content

Commit

Permalink
Merge pull request #215 from grammyjs/chore/update-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Satont authored Feb 29, 2024
2 parents c16abca + ec32320 commit 575c1cd
Show file tree
Hide file tree
Showing 22 changed files with 3,410 additions and 8,858 deletions.
2 changes: 1 addition & 1 deletion libs/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
},
"keywords": [],
"dependencies": {
"grammy": "^1.16.1"
"grammy": "^1.21.1"
}
}
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@
"publish": "lerna publish --no-private"
},
"devDependencies": {
"@types/node": "^20.5.9",
"@typescript-eslint/eslint-plugin": "^6.6.0",
"@typescript-eslint/parser": "^6.6.0",
"deno2node": "^1.9.0",
"eslint": "^8.48.0",
"husky": "^8.0.3",
"lerna": "^7.2.0",
"lint-staged": "^14.0.1",
"prettier": "^3.0.3",
"rimraf": "^5.0.1",
"tsx": "^3.12.8",
"typescript": "^5.2.2"
"@types/node": "^20.11.22",
"@typescript-eslint/eslint-plugin": "^7.1.0",
"@typescript-eslint/parser": "^7.1.0",
"deno2node": "^1.11.0",
"eslint": "^8.57.0",
"husky": "^9.0.11",
"lerna": "^8.1.2",
"lint-staged": "^15.2.2",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"tsx": "^4.7.1",
"typescript": "^5.3.3"
},
"engines": {
"pnpm": ">=7.0.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/cloudflare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
},
"homepage": "https://github.com/grammyjs/storages/tree/main/packages/workers-kv#readme",
"devDependencies": {
"@cloudflare/workers-types": "^4.20230307.0",
"grammy": "^1.15.1",
"wrangler": "^3.0.0"
"@cloudflare/workers-types": "^4.20240222.0",
"grammy": "^1.21.1",
"wrangler": "^3.30.0"
}
}
4 changes: 2 additions & 2 deletions packages/deta/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
"node-fetch": "^2.6.6"
},
"devDependencies": {
"@types/node-fetch": "^2.5.12",
"grammy": "^1.4.3"
"@types/node-fetch": "^2.6.11",
"grammy": "^1.21.1"
},
"keywords": [
"grammy",
Expand Down
2 changes: 1 addition & 1 deletion packages/file/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"homepage": "https://github.com/grammyjs/storages/tree/main/packages/file#readme",
"devDependencies": {
"@grammyjs/storage-utils": "^2.4.1",
"grammy": "^1.16.1"
"grammy": "^1.21.1"
},
"gitHead": "a7758c4f957f103a14832088c6858d693c444576"
}
4 changes: 2 additions & 2 deletions packages/file/src/deps.deno.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export type { StorageAdapter } from 'https://lib.deno.dev/x/[email protected]/mod.ts';
import { exists, existsSync } from 'https://deno.land/std@0.201.0/fs/mod.ts';
import { resolve } from 'https://deno.land/std@0.201.0/path/mod.ts';
import { exists, existsSync } from 'https://deno.land/std@0.217.0/fs/mod.ts';
import { resolve } from 'https://deno.land/std@0.217.0/path/mod.ts';

export const fs = {
readFile: Deno.readTextFile,
Expand Down
2 changes: 1 addition & 1 deletion packages/free/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"node-fetch": "^2.6.6"
},
"devDependencies": {
"@types/node-fetch": "^2.6.4"
"@types/node-fetch": "^2.6.11"
},
"keywords": [
"grammy",
Expand Down
6 changes: 3 additions & 3 deletions packages/mongodb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
"homepage": "https://github.com/grammyjs/storages/tree/main/packages/mongodb#readme",
"devDependencies": {
"@grammyjs/storage-utils": "^2.4.1",
"grammy": "^1.16.1",
"mongodb": "^5.5.0",
"mongodb-memory-server": "^8.12.2"
"grammy": "^1.21.1",
"mongodb": "^6.3.0",
"mongodb-memory-server": "^9.1.6"
},
"gitHead": "a7758c4f957f103a14832088c6858d693c444576"
}
6 changes: 3 additions & 3 deletions packages/prisma/__tests__/delete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ import { createBot, createMessage } from '@grammyjs/storage-utils';
import prisma from './helpers/prisma';

beforeEach(async () => {
await prisma.session.deleteMany({});
await prisma.pizzaSession.deleteMany({});
});

describe('Delete test', () => {
test('A not yet stored record should be nullable without throwing', async () => {
test('An not yet stored record should be nullable without throwing', async () => {
const bot = createBot();

bot.use(
session({
initial() {
return { pizzaCount: 0 };
},
storage: new PrismaAdapter(prisma.session),
storage: new PrismaAdapter(prisma.pizzaSession),
})
);

Expand Down
6 changes: 3 additions & 3 deletions packages/prisma/__tests__/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { createBot, createMessage } from '@grammyjs/storage-utils';
import prisma from './helpers/prisma';

beforeEach(async () => {
await prisma.session.deleteMany({});
await prisma.pizzaSession.deleteMany({});
});

describe('Pizza counter test', () => {
Expand All @@ -18,7 +18,7 @@ describe('Pizza counter test', () => {
initial() {
return { pizzaCount: 0 };
},
storage: new PrismaAdapter(prisma.session),
storage: new PrismaAdapter(prisma.pizzaSession),
})
);

Expand All @@ -35,7 +35,7 @@ describe('Pizza counter test', () => {
bot.use(
session({
initial: () => ({ pizzaCount: 0 }),
storage: new PrismaAdapter(prisma.session),
storage: new PrismaAdapter(prisma.pizzaSession),
})
);

Expand Down
6 changes: 3 additions & 3 deletions packages/prisma/__tests__/stringssession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { createBot, createMessage } from '@grammyjs/storage-utils';
import prisma from './helpers/prisma';

beforeEach(async () => {
await prisma.session.deleteMany({});
await prisma.stringSession.deleteMany({});
});

describe('Test string session', () => {
Expand All @@ -16,7 +16,7 @@ describe('Test string session', () => {
initial() {
return 'test';
},
storage: new PrismaAdapter(prisma.session),
storage: new PrismaAdapter(prisma.stringSession),
}));

await bot.handleUpdate(ctx.update);
Expand All @@ -33,7 +33,7 @@ describe('Test string session', () => {
initial() {
return 'test';
},
storage: new PrismaAdapter(prisma.session),
storage: new PrismaAdapter(prisma.stringSession),
}));


Expand Down
16 changes: 9 additions & 7 deletions packages/prisma/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@
],
"scripts": {
"test:deno": "echo \"Error: no tests found\"",
"test": "npx prisma generate; npx prisma db push; vitest",
"pre:test": "rm ./prisma/dev.db",
"test": "generate; prisma db push; vitest",
"start": "node dist/index.js",
"dev": "npx prisma generate & npx prisma db push & nodemon",
"generate": "prisma generate",
"dev": "generate & prisma db push & nodemon",
"debug": "node --inspect=0.0.0.0:9229 --nolazy ./dist/index.js",
"prebuild": "rimraf dist",
"build": "tsc -p tsconfig.build.json",
Expand All @@ -33,11 +35,11 @@
"homepage": "https://github.com/grammyjs/storages/tree/main/packages/typeorm#readme",
"devDependencies": {
"@grammyjs/storage-utils": "^2.4.1",
"@prisma/client": "^4.15.0",
"grammy": "^1.16.1",
"prisma": "^4.15.0",
"vite": "^4.3.9",
"vitest": "^0.31.3"
"@prisma/client": "^5.10.2",
"grammy": "^1.21.1",
"prisma": "^5.10.2",
"vite": "^5.1.4",
"vitest": "^1.3.1"
},
"gitHead": "a7758c4f957f103a14832088c6858d693c444576"
}
8 changes: 7 additions & 1 deletion packages/prisma/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ datasource db {
url = "file:./dev.db"
}

model Session {
model StringSession {
id Int @id @default(autoincrement())
key String @unique
value String
}

model PizzaSession {
id Int @id @default(autoincrement())
key String @unique
value String
Expand Down
1 change: 0 additions & 1 deletion packages/prisma/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ export default defineConfig({
include: ['__tests__/*.ts'],
exclude: ['__tests__/helpers'],
watch: false,
threads: false,
},
});
2 changes: 1 addition & 1 deletion packages/psql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Deno

```ts
import { PsqlAdapter } from "https://deno.land/x/grammy_storages/psql/src/mod.ts";
import { Client } from "https://deno.land/x/postgres@v0.17.0/mod.ts";
import { Client } from "https://deno.land/x/postgres@v0.19.2/mod.ts";
```

## Usage
Expand Down
8 changes: 4 additions & 4 deletions packages/psql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
"homepage": "https://github.com/grammyjs/storages/tree/main/packages/psql#readme",
"devDependencies": {
"@grammyjs/storage-utils": "^2.4.1",
"@types/pg": "^8.10.1",
"grammy": "^1.16.1",
"pg": "^8.11.0",
"pg-mem": "^2.6.12"
"@types/pg": "^8.11.2",
"grammy": "^1.21.1",
"pg": "^8.11.3",
"pg-mem": "^2.8.1"
},
"gitHead": "a7758c4f957f103a14832088c6858d693c444576"
}
4 changes: 2 additions & 2 deletions packages/psql/src/deps.deno.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Client } from 'https://deno.land/x/postgres@v0.17.0/mod.ts';
import type { Client } from 'https://deno.land/x/postgres@v0.19.2/mod.ts';
export type { StorageAdapter } from 'https://lib.deno.dev/x/[email protected]/mod.ts';
export type { Client } from 'https://deno.land/x/postgres@v0.17.0/mod.ts';
export type { Client } from 'https://deno.land/x/postgres@v0.19.2/mod.ts';

export function buildQueryRunner(client: Client) {
return async (text: string, args?: string[]) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/redis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Deno

```ts
import { RedisAdapter } from "https://deno.land/x/grammy_storages/redis/src/mod.ts";
import { connect } from "https://deno.land/x/redis@v0.29.4/mod.ts";
import { connect } from "https://deno.land/x/redis@v0.32.1/mod.ts";
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion packages/redis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"devDependencies": {
"@grammyjs/storage-utils": "^2.4.1",
"@types/ioredis": "^5.0.0",
"grammy": "^1.16.1",
"grammy": "^1.21.1",
"ioredis": "^5.3.2"
},
"gitHead": "a7758c4f957f103a14832088c6858d693c444576"
Expand Down
2 changes: 1 addition & 1 deletion packages/redis/src/deps.deno.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export type { Redis as Client, RedisConnectOptions } from 'https://deno.land/x/redis@v0.31.0/mod.ts';
export type { Redis as Client, RedisConnectOptions } from 'https://deno.land/x/redis@v0.32.1/mod.ts';
export type { StorageAdapter } from 'https://lib.deno.dev/x/[email protected]/mod.ts';
16 changes: 7 additions & 9 deletions packages/typeorm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,13 @@
"homepage": "https://github.com/grammyjs/storages/tree/main/packages/typeorm#readme",
"devDependencies": {
"@grammyjs/storage-utils": "^2.4.1",
"better-sqlite3": "^8.4.0",
"grammy": "^1.16.1",
"mongodb": "^5.5.0",
"mongodb-memory-server": "^8.12.2",
"typeorm": "^0.3.16",
"vite": "^4.3.9"
},
"dependencies": {
"vitest": "^0.31.3"
"better-sqlite3": "^9.4.3",
"grammy": "^1.21.1",
"mongodb": "^6.3.0",
"mongodb-memory-server": "^9.1.6",
"typeorm": "^0.3.20",
"vite": "^5.1.4",
"vitest": "^1.3.1"
},
"gitHead": "a7758c4f957f103a14832088c6858d693c444576"
}
Loading

0 comments on commit 575c1cd

Please sign in to comment.