Commit 55572131 authored by nanahira's avatar nanahira

bump to Koishi 4.10.3

parent cdea8999
import { Context } from 'koishi'; import { Context } from 'koishi';
import TargetPlugin from '../src'; import TargetPlugin from '../src';
import ConsolePlugin from '@koishijs/plugin-console'; import ConsolePlugin from '@koishijs/plugin-console';
import SandboxPlugin from '@koishijs/plugin-sandbox'; import * as SandboxPlugin from '@koishijs/plugin-sandbox';
import DatabasePlugin from '@koishijs/plugin-database-memory'; import DatabasePlugin from '@koishijs/plugin-database-memory';
// import CachePlugin from '@koishijs/plugin-cache-lru'; // import CachePlugin from '@koishijs/plugin-cache-lru';
import ExtrasInDev from './extras'; import ExtrasInDev from './extras';
......
This diff is collapsed.
...@@ -32,15 +32,15 @@ ...@@ -32,15 +32,15 @@
}, },
"homepage": "https://code.mycard.moe/3rdeye/koishi-plugin-typeorm", "homepage": "https://code.mycard.moe/3rdeye/koishi-plugin-typeorm",
"dependencies": { "dependencies": {
"koishi-thirdeye": "^11.1.11", "koishi-thirdeye": "^11.1.13",
"mysql": "^2.18.1", "mysql": "^2.18.1",
"pg": "^8.7.3", "pg": "^8.8.0",
"typeorm": "^0.3.7" "typeorm": "^0.3.10"
}, },
"devDependencies": { "devDependencies": {
"@koishijs/plugin-console": "^4.5.4", "@koishijs/plugin-console": "^4.5.4",
"@koishijs/plugin-database-memory": "^1.5.0", "@koishijs/plugin-database-memory": "^2.0.0",
"@koishijs/plugin-sandbox": "^2.2.9", "@koishijs/plugin-sandbox": "^2.3.5",
"@types/jest": "^29.2.0", "@types/jest": "^29.2.0",
"@types/node": "^17.0.16", "@types/node": "^17.0.16",
"@typescript-eslint/eslint-plugin": "^4.33.0", "@typescript-eslint/eslint-plugin": "^4.33.0",
...@@ -79,6 +79,6 @@ ...@@ -79,6 +79,6 @@
"testEnvironment": "node" "testEnvironment": "node"
}, },
"peerDependencies": { "peerDependencies": {
"koishi": "^4.9.7" "koishi": "^4.10.3"
} }
} }
import { Context, Fork } from 'koishi'; import { Context, ForkScope } from 'koishi';
import TypeORMPlugin from '../src'; import TypeORMPlugin from '../src';
import { import {
Column, Column,
...@@ -44,7 +44,7 @@ class Magic { ...@@ -44,7 +44,7 @@ class Magic {
describe('Koishi typeorm', () => { describe('Koishi typeorm', () => {
let app: Context; let app: Context;
let pluginInstance: Fork; let pluginInstance: ForkScope;
beforeEach(async () => { beforeEach(async () => {
app = new Context(); app = new Context();
...@@ -102,7 +102,7 @@ describe('Koishi typeorm', () => { ...@@ -102,7 +102,7 @@ describe('Koishi typeorm', () => {
}); });
it('should auto dispose when plugin gone', async () => { it('should auto dispose when plugin gone', async () => {
let instance: Fork; let instance: ForkScope;
await new Promise<void>((resolve) => { await new Promise<void>((resolve) => {
instance = app.plugin(async (ctx) => { instance = app.plugin(async (ctx) => {
await ctx.typeorm.create('bar', [User, Book]); await ctx.typeorm.create('bar', [User, Book]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment